emerge fails for LuaBitOp-1.0.2-r102 with QA concerns error. In the install phase $(lua_get_cmod_dir) returns a path including the prefix such that the resulting path contains a double prefix. Related bug: 501164 Reproducible: Always Steps to Reproduce: 1. emerge on prefix Actual Results: emerge fails in install phase Expected Results: successful emerge Portage 3.0.12 (python 3.8.7-final-0, default/linux/arm64/17.0/prefix/kernel-3.2+, gcc-10.2.0, glibc-2.32-r6, 4.9.227-perf+ aarch64) ================================================================= System uname: Linux-4.9.227-perf+-aarch64-with-glibc2.17 KiB Mem: 3629188 total, 57308 free KiB Swap: 2097148 total, 1769596 free Timestamp of repository gentoo: Mon, 28 Dec 2020 13:00:01 +0000 Head commit of repository gentoo: dc754d3f052175838a563d72fbd249a969c20a18 sh bash 5.1_p4 ld GNU ld (Gentoo 2.35.1 p2) 2.35.1 distcc 3.3.3 aarch64-unknown-linux-gnu [disabled] app-shells/bash: 5.1_p4::gentoo dev-lang/perl: 5.30.3-r1::gentoo dev-lang/python: 3.7.9::gentoo, 3.8.7::gentoo, 3.9.1::gentoo dev-util/cmake: 3.19.2::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.7-r1::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.20::gentoo sys-devel/autoconf: 2.69-r5::gentoo sys-devel/automake: 1.16.3-r1::gentoo sys-devel/binutils: 2.35.1-r1::gentoo sys-devel/gcc: 10.2.0-r4::gentoo sys-devel/gcc-config: 2.3.2-r1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.32-r6::gentoo Repositories: gentoo location: /data/gentoo64/var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-metamanifest: no sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 haskell location: /data/gentoo64/var/lib/layman/haskell masters: gentoo priority: 50 pentoo location: /data/gentoo64/var/lib/layman/pentoo masters: gentoo priority: 50 local location: /data/gentoo64/var/db/repos/local masters: gentoo priority: 1000 ACCEPT_KEYWORDS="arm64 ~arm64" ACCEPT_LICENSE="@FREE" CBUILD="aarch64-unknown-linux-gnu" CFLAGS="-O2 -O2 -pipe" CHOST="aarch64-unknown-linux-gnu" CONFIG_PROTECT="/data/gentoo64/etc /etc /lib/udev/rules.d /usr/share/genkernel/arch/x86_64 /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/data/gentoo64/etc/env.d /data/gentoo64/etc/gentoo-release /etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -O2 -pipe" DISTDIR="/data/gentoo64/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--jobs=6 --load-average=6" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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" FCFLAGS="-O2" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sfperms split-elog strict unknown-features-warn unmerge-logs unmerge-orphans" FFLAGS="-O2" GENTOO_MIRRORS="rsync://mirror.eu.oneandone.net/gentoo/ http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://mirror.netcologne.de/gentoo/ rsync://mirror.netcologne.de/gentoo/ http://mirror.netcologne.de/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.halifax.rwth-aachen.de/gentoo/ ftp://ftp.halifax.rwth-aachen.de/gentoo/ rsync://ftp.halifax.rwth-aachen.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo rsync://ftp-stud.hs-esslingen.de/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j6 -l6" PKGDIR="/data/gentoo64/var/cache/binpkgs" PORTAGE_CONFIGROOT="/data/gentoo64/" 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="/data/gentoo64/var/tmp" USE="acl arm64 berkdb bzip2 cli crypt dri fortran gdbm iconv ipv6 libglvnd libtirpc ncurses nls nptl openmp pcre prefix readline seccomp split-usr ssl tcpd unicode zlib" ADA_TARGET="gnat_2018" 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 sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb thumb2 v4 v5 v6 v7 v8 vfp vfp-d32 vfpv3 vfpv4" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python2_7 python3_8" RUBY_TARGETS="ruby25 ruby26" USERLAND="GNU" VIDEO_CARDS="fbdev 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, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 680413 [details, diff] Ebuild Patch
Created attachment 680416 [details] build.log
Thank you for your report. While your patch is fine, we are investigating to patch the lua-utils eclass, since in first place, those lua functions should not return a prefix. Please stand by ;-)
Created attachment 681838 [details, diff] 0001-eclass-lua-utils.eclass-remove-EPREFIX-from-exported.patch I have submitted this patch for review. If you would like to test and you are comfortable with patching, undo your patch then apply this one to the lua-utils eclass. Once you do this, attempt to emerge this package again and report back.
The patch works for me. emerge of dev-lua/LuaBitOp succeeds. Even dev-lua/mpack (which also failed before) installs now. Thank you
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6587137fd764be29f9f79bc08433e4bad6036e8c commit 6587137fd764be29f9f79bc08433e4bad6036e8c Author: Conrad Kostecki <conikost@gentoo.org> AuthorDate: 2021-01-27 18:45:29 +0000 Commit: Conrad Kostecki <conikost@gentoo.org> CommitDate: 2021-01-27 18:45:57 +0000 dev-lua/LuaBitOp: fix prefix install Closes: https://bugs.gentoo.org/762769 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Conrad Kostecki <conikost@gentoo.org> dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Should we do a new bug for the eclass?
I'm running into similar "double prefix" issues with lots of other Lua packages, e.g. lua-bit32, lua-term, luaposix, luafilesystem. So instead of patching them all, I was wondering what the status of the proposed patch/change is? I couldn't find if there's a new bug for this, but I just tried the patch from comment #4 and that does partially solve the issues. However, it also introduces a new one, as it also cuts off the prefix from the include dir, so many packages will now not be able to find lua.h anymore. Maybe it would be better to keep that one as it was?
(In reply to Sam James from comment #7) > Should we do a new bug for the eclass? Yes please. WillamH needs to have a feedback here. We had a proposal on gentoo-dev, but there was a NAK, so I guess, there is more todo. WillamH should know best, whats todo. I just fixed that ebuild here, so at least it can be merged on prefix, but it needs to be fixed globally, as other packages are affected, as stated by Bob.