Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 663850 - dev-go/go-{net,text,tools}-9999 are all broken due to (internal) circular dependencies
Summary: dev-go/go-{net,text,tools}-9999 are all broken due to (internal) circular dep...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal blocker
Assignee: Zac Medico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-17 06:40 UTC by Steve Arnold
Modified: 2018-08-20 00:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Arnold archtester gentoo-dev 2018-08-17 06:40:02 UTC
Actually nothing in their core stuff builds after the _pre2016 ebuilds.  This is really at least 5 upstream repos, the above 3 plus go-sys and go-crypto.  Note the first 3 are so incestuously coupled they probably violate the laws of at least 37 states.

So I made some new _pre2018 ebuilds using the commits from the upstream release branches and dates of the latest commits on their release-branch.go1.11 from each repo...  Giant fail again, the original 2016 package deps are reversed now (and even more incestuous).

On a side note, I thought using the VENDOR variables from the eclass might be a workaround, but I couldn't make go-text do anything sane, even though gox VENDOR stuff seems to work fine.

I'm not sure where to go from here, except run far far away from Go...
Comment 1 Steve Arnold archtester gentoo-dev 2018-08-17 06:44:06 UTC
# emerge go-tools -v

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ~] dev-go/go-tools-0_pre20180612:0/0_pre20180612::orchard  0 KiB

Total: 1 package (1 new), Size of downloads: 0 KiB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-go/go-tools-0_pre20180612::orchard
 * go-tools-0_pre20180612.tar.gz BLAKE2B SHA512 size ;-) ...             [ ok ]
 * go-favicon.ico BLAKE2B SHA512 size ;-) ...                            [ ok ]
/usr/lib/python3.5/site-packages/portage/_selinux.py:81: UserWarning: Invalid SELinux context: kernel
  warnings.warn("Invalid SELinux context: %s" % getcontext())
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/dev-go/go-tools-0_pre20180612/work
/usr/lib/python3.5/site-packages/portage/_selinux.py:81: UserWarning: Invalid SELinux context: kernel
  warnings.warn("Invalid SELinux context: %s" % getcontext())
>>> Preparing source in /var/tmp/portage/dev-go/go-tools-0_pre20180612/work/go-tools-0_pre20180612 ...
sed: warning: failed to get security context of src/golang.org/x/tools/cmd/godoc/godoc_test.go: No data availablesed: warning: failed to get security context of src/golang.org/x/tools/go/loader/stdlib_test.go: No data availablesed: warning: failed to get security context of src/golang.org/x/tools/go/ssa/stdlib_test.go: No data availablesed: warning: failed to get security context of src/golang.org/x/tools/go/ssa/interp/interp_test.go: No data availablesed: warning: failed to get security context of src/golang.org/x/tools/go/ssa/interp/testdata/a_test.go: No data availablesed: warning: failed to get security context of src/golang.org/x/tools/go/vcs/vcs_test.go: No data availablesed: warning: failed to get security context of src/golang.org/x/tools/godoc/static/makestatic.go: No data availablesed: warning: failed to get security context of src/golang.org/x/tools/godoc/static/godoc.html: No data available>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-go/go-tools-0_pre20180612/work/go-tools-0_pre20180612 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-go/go-tools-0_pre20180612/work/go-tools-0_pre20180612 ...
env GOPATH=/var/tmp/portage/dev-go/go-tools-0_pre20180612/work/go-tools-0_pre20180612:/usr/lib/go-gentoo go build -v -work -x golang.org/x/tools/...
WORK=/var/tmp/portage/dev-go/go-tools-0_pre20180612/temp/go-build269689923
src/golang.org/x/tools/cmd/html2article/conv.go:21:2: cannot find package "golang.org/x/net/html" in any of:
        /usr/lib/go/src/golang.org/x/net/html (from $GOROOT)
        /var/tmp/portage/dev-go/go-tools-0_pre20180612/work/go-tools-0_pre20180612/src/golang.org/x/net/html (from $GOPATH)
        /usr/lib/go-gentoo/src/golang.org/x/net/html
src/golang.org/x/tools/cmd/html2article/conv.go:22:2: cannot find package "golang.org/x/net/html/atom" in any of:
        /usr/lib/go/src/golang.org/x/net/html/atom (from $GOROOT)
        /var/tmp/portage/dev-go/go-tools-0_pre20180612/work/go-tools-0_pre20180612/src/golang.org/x/net/html/atom (from $GOPATH)
        /usr/lib/go-gentoo/src/golang.org/x/net/html/atom
src/golang.org/x/tools/playground/socket/socket.go:37:2: cannot find package "golang.org/x/net/websocket" in any of:
        /usr/lib/go/src/golang.org/x/net/websocket (from $GOROOT)
        /var/tmp/portage/dev-go/go-tools-0_pre20180612/work/go-tools-0_pre20180612/src/golang.org/x/net/websocket (from $GOPATH)
        /usr/lib/go-gentoo/src/golang.org/x/net/websocket
 * ERROR: dev-go/go-tools-0_pre20180612::orchard failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 124:  Called src_compile
 *   environment, line 282:  Called golang-build_src_compile
 *   environment, line 225:  Called die
 * The specific snippet of code:
 *       "$@" || die
 * 
 * If you need support, post the output of `emerge --info '=dev-go/go-tools-0_pre20180612::orchard'`,
 * the complete build log and the output of `emerge -pqv '=dev-go/go-tools-0_pre20180612::orchard'`.
 * The complete build log is located at '/var/tmp/portage/dev-go/go-tools-0_pre20180612/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-go/go-tools-0_pre20180612/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-go/go-tools-0_pre20180612/work/go-tools-0_pre20180612'
 * S: '/var/tmp/portage/dev-go/go-tools-0_pre20180612/work/go-tools-0_pre20180612'


Oh, and this is on a musl hardened profile:

# emerge --info
Portage 2.3.40 (python 3.5.5-final-0, default/linux/amd64/17.0/musl/hardened/selinux, gcc-7.3.0, musl-1.1.19, 4.17.11-gentoo x86_64)
=================================================================
System uname: Linux-4.17.11-gentoo-x86_64-AMD_Opteron_63xx_class_CPU-with-gentoo-2.4.1
KiB Mem:     4042032 total,   2636520 free
KiB Swap:     998396 total,    998396 free
Head commit of repository gentoo: c5a6f6fac0565ec3879c890bdbf021e5dc8b6659

sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p2) 2.30.0
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.5::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.35.5::gentoo
sys-apps/sandbox:         2.13::musl
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r2::gentoo
sys-devel/gcc:            7.3.0-r3::musl
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r3::gentoo
sys-kernel/linux-headers: 4.13::musl (virtual/os-headers)
sys-libs/musl:            1.1.19::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://git.gentoo.org/repo/gentoo.git
    priority: -1000

grs_support
    location: /var/lib/layman/grs_support
    masters: gentoo
    priority: 50

musl
    location: /var/lib/layman/musl
    masters: gentoo
    priority: 50

orchard
    location: /var/lib/layman/orchard-overlay
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-gentoo-linux-musl"
CFLAGS="-O2 -pipe -fno-diagnostics-color"
CHOST="x86_64-gentoo-linux-musl"
CONFIG_PROTECT="/etc /etc/grs/systems.conf /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -fno-diagnostics-color"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="charset.alias /usr/share/man"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_BINHOST="sftp://amd64-packages@pod.orchardos.com:22"
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"
USE="X acl amd64 bzip2 crypt cxx hardened iconv ipv6 libtirpc mmx ncurses nls nptl openmp pam pcre pie readline seccomp selinux sse sse2 ssl ssp unicode xattr xtpax zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="musl" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_6 python3_5 python2_7" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Zac Medico gentoo-dev 2018-08-19 00:22:20 UTC
I'll make that versioned go-tools ebuild use EGO_VENDOR to solve the circular dep, and I guess the 9999 ebuild will have to do this manually since it looks like there's no way for a 9999 ebuild to re-use the relevant logic from golang-vcs-snapshot_src_unpack.
Comment 3 Larry the Git Cow gentoo-dev 2018-08-20 00:20:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efa31289506929bc71bb03dc9610d43086895fc6

commit efa31289506929bc71bb03dc9610d43086895fc6
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2018-08-19 22:25:25 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2018-08-20 00:20:37 +0000

    dev-go/go-tools: update 9999 ebuild
    
    Vendor golang.org/x/net in order to solve a circular dependency.
    
    Closes: https://bugs.gentoo.org/663850
    Package-Manager: Portage-2.3.47, Repoman-2.3.10

 dev-go/go-tools/go-tools-9999.ebuild | 105 ++++++++++++++++-------------------
 1 file changed, 48 insertions(+), 57 deletions(-)