Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 922591

Summary: app-shells/bash-completion-9999 with eselect USE flag fails to fetch
Product: Gentoo Linux Reporter: David Zaslavsky <diazona>
Component: Current packagesAssignee: Michał Górny <mgorny>
Status: RESOLVED FIXED    
Severity: normal CC: diazona
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description David Zaslavsky 2024-01-21 05:10:51 UTC
When I unmask and try to emerge app-shells/bash-completion-9999, it tries to fetch from the Git repo https://github.com/projg2/bashcomp2, but that repo is not publicly accessible. The fetch operation tries to prompt for credentials, but obviously it cannot (and should not) prompt the user while running inside of emerge, so it fails.



Reproducible: Always

Steps to Reproduce:
1. Enable the live ebuild for bash-completion in the standard way (I followed the instructions on https://wiki.gentoo.org/wiki/Live_ebuilds)
2. USE=eselect emerge =app-shells/bash-completion-9999

Actual Results:  
Portage fails while fetching the package

>>> Emerging (1 of 1) app-shells/bash-completion-9999::gentoo
>>> Failed to emerge app-shells/bash-completion-9999, Log file:
>>>  '/var/tmp/portage/portage/app-shells/bash-completion-9999/temp/build.log'
...
git fetch https://github.com/projg2/bash-completion --prune +refs/heads/*:refs/heads/* +refs/tags/*:refs/tags/* +refs/notes/*:refs/notes/* +refs/pull/*/head:refs/pull/* +HEAD:refs/git-r3/HEAD 70ce9f86c905e20bab38a4cf1ea4fdbf42282b6e
fatal: could not read Username for 'https://github.com': terminal prompts disabled
 * ERROR: app-shells/bash-completion-9999::gentoo failed (unpack phase):
 *   Unable to fetch from any of EGIT_REPO_URI
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_unpack
 *   environment, line 3238:  Called git-r3_fetch 'https://github.com/projg2/bashcomp2'
 *   environment, line 2329:  Called git-r3_fetch 'https://github.com/projg2/bash-completion' '70ce9f86c905e20bab38a4cf1ea4fdbf42282b6e' 'app-shells/bash-completion/0/upstream-bash-completion' ''
 *   environment, line 2313:  Called die
...

Expected Results:  
It should fetch and install bash-completion without any errors.

The repository https://github.com/projg2/bash-completion appears to be private. I can download the release tarball which is needed for the non-live ebuild (bash-completion-2.11), but I can't view or clone the repo itself.

Incidentally, the reason I'm using a live ebuild is that bash-completion hasn't had a new release in two years and I wanted to get access to more recent fixes and improvements.
Comment 1 David Zaslavsky 2024-01-21 05:12:09 UTC
Created attachment 882716 [details]
build.log
Comment 2 David Zaslavsky 2024-01-21 05:12:55 UTC
Oh whoops, I forgot emerge --info output:

$ emerge --info =app-shells/bash-completion-9999
Portage 3.0.61 (python 3.12.1-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-12.2.0, glibc-2.38-r9, 6.7.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.7.0-gentoo-x86_64-AMD_Ryzen_7_2700X_Eight-Core_Processor-with-glibc2.38
KiB Mem:    65816472 total,   3984000 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 19 Jan 2024 23:48:21 +0000
Head commit of repository gentoo: afd6322961f75329d0586f47e60e7432e4a8207c

Head commit of repository ellipsix: 2dff5273d55bcbc86440dd1ec1d3f7e948e48bd5

Timestamp of repository guru: Fri, 19 Jan 2024 12:49:58 +0000
Head commit of repository guru: b68e055b5e3cb9e194ce4c7654093e5803adc98f

Timestamp of repository holgersson-overlay: Thu, 18 Jan 2024 19:48:14 +0000
Head commit of repository holgersson-overlay: 350f4b319adbf58bc235c3d4936138ccc6bffe0d

Timestamp of repository steam-overlay: Wed, 17 Jan 2024 23:18:13 +0000
Head commit of repository steam-overlay: 1b2ecf815a1503215214a4a8fd21c09610c46991

sh bash 5.2_p21-r2
ld GNU ld (Gentoo 2.41 p4) 2.41.0
ccache version 4.9 [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p21-r2::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r1::gentoo
dev-build/cmake:           3.28.1-r1::gentoo
dev-build/libtool:         2.4.7-r2::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.1::gentoo
dev-java/java-config:      2.3.3-r1::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           3.10.13::gentoo, 3.11.7::gentoo, 3.12.1_p1::gentoo
dev-lang/rust:             1.74.1::gentoo
dev-util/ccache:           4.9::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/openrc:           0.53::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.41-r4::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo, 17.0.6::gentoo
sys-devel/gcc:             12.2.0::gentoo, 13.2.1_p20231216::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo
sys-devel/llvm:            16.0.6::gentoo, 17.0.6::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r9::gentoo
Repositories:

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

acetylene09_local
    location: /usr/local/portage
    masters: gentoo
    volatile: True

ellipsix
    location: /var/db/repos/ellipsix
    sync-type: git
    sync-uri: https://github.com/ellipsix/gentoo-overlay.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

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

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

Installed sets: @local-active
ACCEPT_KEYWORDS="amd64 ~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/config /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/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet --ask-enter-invalid --keep-going --verbose-conflicts --jobs 2 --load-average 15"
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="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.gossamerhost.com http://gentoo-mirror.flux.utah.edu/ http://gentoo.osuosl.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j20 -l15"
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/portage"
SHELL="/bin/bash"
USE="X a52 aac aacs acl acpi activities alsa amd64 bash-completion bdplus bluray branding bzip2 cairo caps cdda cdr cjk cli crypt cups dbus declarative dri dts dvd dvdr editorconfig elogind encode exif flac fortran gdbm gif git gpm gui iconv icu ipv6 jpeg kde kerberos kwallet lcms libnotify libtirpc lm_sensors mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls ogg opengl openmp opus pam pango pcre pdf pipewire plasma png policykit ppds pulseaudio qalculate qml qt5 readline screencast sdl seccomp semantic-desktop smp sound spell split-usr ssl startup-notification svg test-rust threads tiff truetype udev udisks unicode upower usb vlc vorbis vulkan wayland widgets wxwidgets x264 xattr xcb xft xml xv xvid yubikey zlib" ABI_X86="64" ADA_TARGET="gnat_2021" 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 sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="evdev roccat_konextd" KERNEL="linux" L10N="en-US" 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-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_11 python3_10 python3_12" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeonsi" 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, 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, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-01-21 13:13:59 UTC
Thanks for the report.  When I've moved the projects over to projg2, I've missed that bashcomp2 has a bash-completion module that uses a relative path.  Since the bash-completion fork has original non-upstreamable content, I've moved it to projg2 for preservation as well.
Comment 4 David Zaslavsky 2024-01-23 08:01:17 UTC
Thanks! Confirming I can clone the repo now. I do get a different error when building but I'll investigate and report that separately.