Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 815850 - sys-fs/zfs-kmod-9999 - INSTALL_MOD_PATH overrides DESTDIR
Summary: sys-fs/zfs-kmod-9999 - INSTALL_MOD_PATH overrides DESTDIR
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-02 15:29 UTC by HougeLangley
Modified: 2021-10-07 05:50 UTC (History)
5 users (show)

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


Attachments
zfs-kmod-9999/temp/build.log (build.log,880.92 KB, text/plain)
2021-10-02 15:34 UTC, Rubick
Details
environment (environment,142.21 KB, text/plain)
2021-10-02 15:35 UTC, Rubick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description HougeLangley 2021-10-02 15:29:05 UTC
Making install in module                                                                                                        
make[1]: Entering directory '/var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-kmod-9999/module'                                                                                                                                                                   
make -C /usr/src/linux M=`pwd` modules_install \                                                                                                                                                                                                                
        INSTALL_MOD_PATH=/ \                                                                                                    
        INSTALL_MOD_DIR=extra \                                                                                                 
        KERNELRELEASE=5.14.9-gentoo                                                                                             
make[2]: Entering directory '/usr/src/linux-5.14.9-gentoo'                                                                      
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (                \                                       
echo >&2;                                                       \                                                               
echo >&2 "  ERROR: Kernel configuration is invalid.";           \                                                               
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\                                     
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";      \                                       
echo >&2 ;                                                      \                                                               
/bin/false)                                                                                                                     
make -f ./scripts/Makefile.modinst                                                                                              
  mkdir -p //lib/modules/5.14.9-gentoo/extra/avl/; cp /var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-kmod-9999/module/avl/zavl.ko //lib/modules/5.14.9-gentoo/extra/avl/zavl.ko                                                                                 
  mkdir -p //lib/modules/5.14.9-gentoo/extra/icp/; cp /var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-kmod-9999/module/icp/icp.ko //lib/modules/5.14.9-gentoo/extra/icp/icp.ko                                                                                   
  mkdir -p //lib/modules/5.14.9-gentoo/extra/lua/; cp /var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-kmod-9999/module/lua/zlua.ko //lib/modules/5.14.9-gentoo/extra/lua/zlua.ko                                                                                 
  mkdir -p //lib/modules/5.14.9-gentoo/extra/nvpair/; cp /var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-kmod-9999/module/nvpair/znvpair.ko //lib/modules/5.14.9-gentoo/extra/nvpair/znvpair.ko                                                                  
 * ACCESS DENIED:  mkdir:        /lib/modules/5.14.9-gentoo/extra                                
mkdir: cannot create directory ‘//lib/modules/5.14.9-gentoo/extra’: Permission denied            
 * ACCESS DENIED:  mkdir:        /lib/modules/5.14.9-gentoo/extra                                                               
mkdir: cannot create directory ‘//lib/modules/5.14.9-gentoo/extra’: Permission denied                                           
make[3]: *** [scripts/Makefile.modinst:81: //lib/modules/5.14.9-gentoo/extra/avl/zavl.ko] Error 1
make[3]: *** Waiting for unfinished jobs....                                                                                    
make[3]: *** [scripts/Makefile.modinst:81: //lib/modules/5.14.9-gentoo/extra/icp/icp.ko] Error 1                                
 * ACCESS DENIED:  mkdir:        /lib/modules/5.14.9-gentoo/extra                             
 * ACCESS DENIED:  mkdir:        /lib/modules/5.14.9-gentoo/extra                             
mkdir: cannot create directory ‘//lib/modules/5.14.9-gentoo/extra’: Permission denied                                           
mkdir: cannot create directory ‘//lib/modules/5.14.9-gentoo/extra’: Permission denied  
make[3]: *** [scripts/Makefile.modinst:81: //lib/modules/5.14.9-gentoo/extra/nvpair/znvpair.ko] Error 1                                                                                                                                                         
make[3]: *** [scripts/Makefile.modinst:81: //lib/modules/5.14.9-gentoo/extra/lua/zlua.ko] Error 1
make[2]: *** [Makefile:1784: modules_install] Error 2                                                                           
make[2]: Leaving directory '/usr/src/linux-5.14.9-gentoo'                                                                       
make[1]: *** [Makefile:84: modules_install-Linux] Error 2                                                                       
make[1]: Leaving directory '/var/tmp/portage/sys-fs/zfs-kmod-9999/work/zfs-kmod-9999/module'
make: *** [Makefile:915: install-recursive] Error 1                                                                             
 * ERROR: sys-fs/zfs-kmod-9999::gentoo failed (install phase):                                                                  
 *   emake failed

Reproducible: Always
Comment 1 Rubick 2021-10-02 15:34:54 UTC
Created attachment 742539 [details]
zfs-kmod-9999/temp/build.log

emerge --info '=sys-fs/zfs-kmod-9999::gentoo'

sys-libs/glibc:           2.33-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.mirrors.ustc.edu.cn/gentoo-portage/
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24

4nykey
    location: /var/db/repos/4nykey
    sync-type: git
    sync-uri: https://github.com/4nykey/4nykey.git
    masters: gentoo

customkernel
    location: /var/db/repos/customkernel
    sync-type: git
    sync-uri: https://github.com/HougeLangley/customkernel.git
    masters: gentoo

gentoo-zh
    location: /var/db/repos/gentoo-zh
    sync-type: git
    sync-uri: https://github.com/microcai/gentoo-zh.git
    masters: gentoo

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --with-bdeps=y --autounmask-write=y -j"
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 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirrors.ustc.edu.cn/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US zh_CN en zh"
MAKEOPTS="-j4"
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"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups dbus dri dts dvd dvdr eds emboss encode evo exif flac font_types_otf fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gui iconv icu introspection ipv6 jpeg lcms libglvnd libnotify libsecret libtirpc lz4 mad mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio readline sdl seccomp spell split-usr ssl startup-notification svg sysprof systemd tcpd tiff tracker truetype udev udisks unicode upower usb vorbis wayland wxwidgets x264 xattr xcb xml xv xvid zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2019" 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 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 mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput evdev joystick" KERNEL="linux" L10N="en-US zh-CN en zh" 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-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="alpha aarch64 arm i386 mips mips64 mips64el mipsel ppc ppc64 s390x sh4 sh4eb sparc sparc64 x86_64" QEMU_USER_TARGETS="alpha aarch64 arm armeb i386 mips mipsel ppc ppc64 ppc64abi32 s390x sh4 sh4eb sparc sparc32plus sparc64 x86_64" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="vmware" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

=================================================================
                        Package Settings
=================================================================

sys-fs/zfs-kmod-9999::gentoo was built with the following:
USE="rootfs -custom-cflags -debug -dist-kernel" ABI_X86="(64)"
LDFLAGS=""
Comment 2 Rubick 2021-10-02 15:35:10 UTC
Created attachment 742542 [details]
environment
Comment 3 Mike Gilbert gentoo-dev 2021-10-02 17:36:26 UTC
It looks like DESTDIR and INSTALL_MOD_PATH were reworked.

https://github.com/openzfs/zfs/commit/ed3a3bdb0d59772ae4b8719cb6ffa690627bf112
Comment 4 Georgy Yakovlev archtester gentoo-dev 2021-10-07 05:50:44 UTC
thanks Mike for finding exact commit.
Comment 5 Larry the Git Cow gentoo-dev 2021-10-07 05:50:57 UTC
The bug has been closed via the following commit(s):

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

commit 33349198d292025d85fb93f176a38c017c16fe01
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2021-10-07 05:45:51 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2021-10-07 05:50:49 +0000

    sys-fs/zfs-kmod: update live ebuild, don't pass INSTALL_MOD_PATH
    
    it will be set to value of  $DESTDIR
    
    changed in https://github.com/openzfs/zfs/commit/ed3a3bdb0d59772ae4b8719cb6ffa690627bf112
    Closes: https://bugs.gentoo.org/815850
    
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 sys-fs/zfs-kmod/zfs-kmod-9999.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)