Hello

I want to write ebuild for some golang application and ebuild fails to
merge at src_unpack phase. Any idea what I need to do?

~ ❯ cat ~/whiteman808_overlay/www-misc/shiori/shiori-1.7.4.ebuild               
                                                                   4s 03:16:41
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module

DESCRIPTION="Simple bookmarks manager written in the Go language."
HOMEPAGE="https://github.com/go-shiori/shiori";
SRC_URI="https://github.com/go-shiori/shiori/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
SRC_URI+=" 
https://git.paraboletancza.org/whiteman808/gentoo-distfiles/raw/branch/main/${P}-deps.tar.xz";

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

S="${WORKDIR}/${P}"

src_compile() {
        ego build -trimpath -v -work -x
}

src_install() {
        dobin shiori

        default
}

The rest stuff like emerge log and emerge --info are in attachments.

Best wishes,
whiteman808
 * Package:    www-misc/shiori-1.7.4:0
 * Repository: whiteman808
 * Maintainer: whiteman...@paraboletancza.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv 
usersandbox
>>> Unpacking source...
>>> Unpacking shiori-1.7.4.tar.gz to /var/tmp/portage/www-misc/shiori-1.7.4/work
>>> Unpacking shiori-1.7.4-deps.tar.xz to 
>>> /var/tmp/portage/www-misc/shiori-1.7.4/work
go mod verify
go: dario.cat/mergo@v1.0.0: Get 
"https://proxy.golang.org/dario.cat/mergo/@v/v1.0.0.mod": dial tcp: lookup 
proxy.golang.org on 127.0.0.53:53: read udp 127.0.0.1:39692->127.0.0.53:53: 
read: connection refused
 * ERROR: www-misc/shiori-1.7.4::whiteman808 failed (unpack phase):
 *   go mod verify failed
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_unpack
 *   environment, line 1682:  Called go-module_src_unpack
 *   environment, line 1297:  Called ego 'mod' 'verify'
 *   environment, line  630:  Called die
 * The specific snippet of code:
 *       "$@" || die -n "${*} failed"
 * 
 * If you need support, post the output of `emerge --info 
'=www-misc/shiori-1.7.4::whiteman808'`,
 * the complete build log and the output of `emerge -pqv 
'=www-misc/shiori-1.7.4::whiteman808'`.
 * The complete build log is located at 
'/var/tmp/portage/www-misc/shiori-1.7.4/temp/build.log'.
 * The ebuild environment file is located at 
'/var/tmp/portage/www-misc/shiori-1.7.4/temp/environment'.
 * Working directory: 
'/var/tmp/portage/www-misc/shiori-1.7.4/work/shiori-1.7.4'
 * S: '/var/tmp/portage/www-misc/shiori-1.7.4/work/shiori-1.7.4'
Portage 3.0.67 (python 3.12.9-final-0, 
default/linux/amd64/23.0/hardened/systemd, gcc-14, glibc-2.40-r8, 
6.12.16-gentoo-dist-hardened x86_64)
=================================================================
System uname: 
Linux-6.12.16-gentoo-dist-hardened-x86_64-Intel-R-_Core-TM-_i7-8750H_CPU_@_2.20GHz-with-glibc2.40
KiB Mem:    32690196 total,   1047188 free
KiB Swap:    6291452 total,   5918972 free
Timestamp of repository gentoo: Sun, 09 Mar 2025 22:03:27 +0000
Head commit of repository gentoo: af3838a2bfa944997e8fa075fd732409bd10df07

Timestamp of repository fem-overlay: Sat, 08 Mar 2025 17:04:21 +0000
Head commit of repository fem-overlay: c4fe80cd56c8710c49616a92a7607c3f47d35771

Timestamp of repository ferki: Sat, 08 Mar 2025 09:19:00 +0000
Head commit of repository ferki: 90963153f4855e4d00395d19a3659e902cb91d9d

Timestamp of repository guru: Sat, 08 Mar 2025 17:38:04 +0000
Head commit of repository guru: 0a33a0a7da0d2ece9e224c38019a038f7b578086

Timestamp of repository holgersson-overlay: Sun, 02 Mar 2025 16:48:28 +0000
Head commit of repository holgersson-overlay: 
2d03fb065b12e86c7cda489d3c3951fa1c7cb3ed

Timestamp of repository jjakob: Sat, 08 Mar 2025 17:38:04 +0000
Head commit of repository jjakob: 8f5d7b46475e72826250beaa5b188054510aaff9

sh bash 5.2_p37
ld GNU ld (Gentoo 2.44 p1) 2.44.0
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.17-r1::gentoo
dev-build/cmake:           3.31.5::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.7.0::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.0-r1::gentoo
dev-lang/python:           3.11.11_p1::gentoo, 3.12.9::gentoo, 3.13.2::gentoo
dev-lang/rust:             1.84.1-r1::gentoo
llvm-core/clang:           17.0.6::gentoo, 18.1.8-r6::gentoo, 19.1.7::gentoo
llvm-core/lld:             19.1.7::gentoo
llvm-core/llvm:            17.0.6-r3::gentoo, 18.1.8-r6::gentoo, 19.1.7::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-apps/systemd:          256.10::gentoo
sys-devel/binutils:        2.44::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             14.2.1_p20241221::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.12::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False

fem-overlay
    location: /var/db/repos/fem-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/fem-overlay.git
    masters: gentoo
    volatile: False

ferki
    location: /var/db/repos/ferki
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/ferki.git
    masters: gentoo
    volatile: False

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

holgersson-overlay
    location: /var/db/repos/holgersson-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/holgersson-overlay.git
    masters: gentoo
    volatile: False

jjakob
    location: /var/db/repos/jjakob
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/jjakob.git
    masters: guru gentoo
    volatile: False

whiteman808
    location: /home/whiteman808/whiteman808_overlay
    masters: gentoo
    volatile: True

crossdev
    location: /var/db/repos/portage-crossdev
    masters: gentoo
    priority: 10
    volatile: False

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: 
https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64

Installed sets: @free-fonts
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc 
/usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.9/conf /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d 
/etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild 
/etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d 
/etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 
GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT 
XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR 
XDG_STATE_HOME"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 
binpkg-multi-instance buildpkg-live candy config-protect-if-modified distlocks 
ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict 
network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted 
preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict 
unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv 
usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org";
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS=" -j12"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times 
--omit-dir-times --compress --force --whole-file --delete --stats 
--human-readable --timeout=180 --exclude=/distfiles --exclude=/local 
--exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
RUSTFLAGS=" -C target-cpu=native"
SHELL="/bin/zsh"
USE="X a52 aac acl alsa amd64 apparmor audit bash-completion bluetooth bluray 
bzip2 cairo cet cjk crypt cups dbus dist-kernel dvd eme-free fbcon ffmpeg flac 
gdbm gif gnome-keyring gpm gstreamer gtk hardened iconv icu ipv6 jpeg keyring 
lcms libnotify libtirpc lm-sensors man mp3 mpeg mtp multilib ncurses 
networkmanager nftables nls ogg opengl openmp opus pam pcre pdf pic pie png 
policykit pulseaudio qt5 qt6 readline seccomp spell ssl ssp svg systemd 
test-rust threads truetype udev unicode usb v4l vaapi vcd verify-sig vim-syntax 
vorbis wavpack webp x264 xattr xinerama xml xtpax zfs zlib zsh-completion" 
ABI_X86="64" ADA_TARGET="gcc_14" APACHE2_MODULES="authn_core authz_core 
socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file 
authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi 
cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter 
headers include info log_config logio mime mime_magic negotiation rewrite 
setenvif speling status unique_id userdir usertrack vhost_alias" 
CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load 
memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext 
pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" 
GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock 
greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq 
superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="pc" 
GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="wacom libinput" 
KERNEL="linux" L10N="en en-US en-GB pl" LCD_DEVICES="bayrad cfontz glk hd44780 
lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" 
OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" 
POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" 
PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="intel" 
XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip 
fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, 
CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, 
F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, 
MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, 
PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, 
PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, 
YACC, YFLAGS

Reply via email to