Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

depmod location with "split-usr" flag.

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
rufnut
Apprentice
Apprentice
Posts: 252
Joined: Mon May 16, 2005 7:26 am

depmod location with "split-usr" flag.

  • Quote

Post by rufnut » Mon May 06, 2024 3:36 pm

depmod location with "split-usr" flag effects genkernel


I was updating my kernel and genkernel reported:

Code: Select all

*         >> Kernel config was not modified!
/usr/share/genkernel/gen_configkernel.sh: line 445: /sbin/depmod: No such file or directory
* ERROR: depmod does not support ZLIB/GZIP, cannot build with CONFIG_MODULE_COMPRESS_GZIP
depmod was found in /usr/bin/ I think due to an upgrade of kmod with the "split-usr" flag

sys-apps/kmod-32-r1 (/usr/bin/depmod -> kmod)

rollback to "emerge -1 =sys-apps/kmod-31" seemed to fix the issue for the moment:

sys-apps/kmod-31 (/sbin/depmod -> ../bin/kmod)


:)
Top
Hu
Administrator
Administrator
Posts: 24392
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Mon May 06, 2024 3:41 pm

For the non-working version, what is the output of emerge --pretend --verbose sys-apps/kmod ; emerge --info?
Top
rufnut
Apprentice
Apprentice
Posts: 252
Joined: Mon May 16, 2005 7:26 am

  • Quote

Post by rufnut » Mon May 06, 2024 4:03 pm

Code: Select all

# emerge --pretend --verbose sys-apps/kmod

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

Calculating dependencies... done!
Dependency resolution took 2.50 s (backtrack: 0/20).

[ebuild   R    ] sys-apps/kmod-32-r1::gentoo  USE="lzma (split-usr) (tools) zlib zstd -debug -doc -pkcs7 -static-libs" 0 KiB

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

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.
I prefer to keep emerge --info quiet but I do notice USE="split-usr" in /etc/make.conf

hope this is OK ?


will have a read of:

https://wiki.gentoo.org/wiki/Merge-usr
Top
Hu
Administrator
Administrator
Posts: 24392
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Mon May 06, 2024 4:41 pm

I asked for emerge --info because I wanted to see if you are on a split-usr profile or a merged-usr profile. You shouldn't be setting USE=split-usr explicitly, though in this case the flag appears to be forced, so a local setting is irrelevant. You should pick a profile that sets split-usr the way you want it.

I would not expect a split-usr system to put kmod in /usr/bin, but I have not looked at this particular package.
Top
rufnut
Apprentice
Apprentice
Posts: 252
Joined: Mon May 16, 2005 7:26 am

  • Quote

Post by rufnut » Mon May 06, 2024 5:46 pm

I apologize,

I am a split-usr and that USE="split-usr" appears to be taken from the profile setting,
not from /etc/make.conf as I previously stated.

https://wiki.gentoo.org/wiki/Merge-usr << appears pointless for me.

[48] default/linux/amd64/23.0/split-usr/desktop/plasma (stable) *
Top
Hu
Administrator
Administrator
Posts: 24392
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Mon May 06, 2024 6:08 pm

That is strange, then. I can find no fault in your current configuration, so I would have expected kmod-32 to work for you. I think the next step would be to inspect its build log to try to understand why it installed files where it did.
Top
grknight
Retired Dev
Retired Dev
Posts: 2563
Joined: Fri Feb 20, 2015 9:36 pm

  • Quote

Post by grknight » Mon May 06, 2024 6:21 pm

Hu wrote:That is strange, then. I can find no fault in your current configuration, so I would have expected kmod-32 to work for you. I think the next step would be to inspect its build log to try to understand why it installed files where it did.
sys-apps/kmod-32 initially removed all symlink creation in /sbin with this commit. Shortly after, a follow-up commit restored modprobe for the kernel's /sbin/modprobe calls on split-usr.

Genkernel has a hardcoded /sbin/depmod check.

Time to file a bug on one or the other.
Top
rufnut
Apprentice
Apprentice
Posts: 252
Joined: Mon May 16, 2005 7:26 am

  • Quote

Post by rufnut » Mon May 06, 2024 6:24 pm

Code: Select all

>>> Install sys-apps/kmod-32-r1 into /var/tmp/portage/sys-apps/kmod-32-r1/image
make -j8 -l8 DESTDIR=/var/tmp/portage/sys-apps/kmod-32-r1/image install 
Making install in .
 /bin/mkdir -p '/var/tmp/portage/sys-apps/kmod-32-r1/image/usr/lib64'
 /bin/mkdir -p '/var/tmp/portage/sys-apps/kmod-32-r1/image/usr/share/bash-completion/completions'
 /bin/mkdir -p '/var/tmp/portage/sys-apps/kmod-32-r1/image/usr/include'
 /bin/mkdir -p '/var/tmp/portage/sys-apps/kmod-32-r1/image/usr/lib64/pkgconfig'
 /bin/sh ./libtool   --mode=install /usr/lib/portage/python3.11/ebuild-helpers/xattr/install -c   libkmod/libkmod.la '/var/tmp/portage/sys-apps/kmod-32-r1/image/usr/lib64'
 /usr/lib/portage/python3.11/ebuild-helpers/xattr/install -c -m 644 shell-completion/bash/kmod '/var/tmp/portage/sys-apps/kmod-32-r1/image/usr/share/bash-completion/completions'
 /usr/lib/portage/python3.11/ebuild-helpers/xattr/install -c -m 644 libkmod/libkmod.h '/var/tmp/portage/sys-apps/kmod-32-r1/image/usr/include'
 /usr/lib/portage/python3.11/ebuild-helpers/xattr/install -c -m 644 libkmod/libkmod.pc tools/kmod.pc '/var/tmp/portage/sys-apps/kmod-32-r1/image/usr/lib64/pkgconfig'
libtool: install: /usr/lib/portage/python3.11/ebuild-helpers/xattr/install -c libkmod/.libs/libkmod.so.2.4.2 /var/tmp/portage/sys-apps/kmod-32-r1/image/usr/lib64/libkmod.so.2.4.2
libtool: install: (cd /var/tmp/portage/sys-apps/kmod-32-r1/image/usr/lib64 && { ln -s -f libkmod.so.2.4.2 libkmod.so.2 || { rm -f libkmod.so.2 && ln -s libkmod.so.2.4.2 libkmod.so.2; }; })
libtool: install: (cd /var/tmp/portage/sys-apps/kmod-32-r1/image/usr/lib64 && { ln -s -f libkmod.so.2.4.2 libkmod.so || { rm -f libkmod.so && ln -s libkmod.so.2.4.2 libkmod.so; }; })
libtool: install: /usr/lib/portage/python3.11/ebuild-helpers/xattr/install -c libkmod/.libs/libkmod.lai /var/tmp/portage/sys-apps/kmod-32-r1/image/usr/lib64/libkmod.la
libtool: warning: remember to run 'libtool --finish /usr/lib64'
 /bin/mkdir -p '/var/tmp/portage/sys-apps/kmod-32-r1/image/usr/bin'
  /bin/sh ./libtool   --mode=install /usr/lib/portage/python3.11/ebuild-helpers/xattr/install -c tools/kmod '/var/tmp/portage/sys-apps/kmod-32-r1/image/usr/bin'
libtool: install: /usr/lib/portage/python3.11/ebuild-helpers/xattr/install -c tools/kmod /var/tmp/portage/sys-apps/kmod-32-r1/image/usr/bin/kmod
make --no-print-directory install-exec-hook
if test "/usr/lib64" != "/usr/lib64"; then \
        /bin/mkdir -p /var/tmp/portage/sys-apps/kmod-32-r1/image/usr/lib64 && \
        so_img_name=$(readlink /var/tmp/portage/sys-apps/kmod-32-r1/image/usr/lib64/libkmod.so) && \
        so_img_rel_target_prefix=$(echo /usr/lib64 | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
        ln -sf $so_img_rel_target_prefix/usr/lib64/$so_img_name /var/tmp/portage/sys-apps/kmod-32-r1/image/usr/lib64/libkmod.so && \
        mv /var/tmp/portage/sys-apps/kmod-32-r1/image/usr/lib64/libkmod.so.* /var/tmp/portage/sys-apps/kmod-32-r1/image/usr/lib64; \
fi
for tool in insmod lsmod rmmod depmod modprobe modinfo; do \
        ln -s kmod /var/tmp/portage/sys-apps/kmod-32-r1/image/usr/bin/$tool; \
done
Making install in libkmod/docs
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
Making install in man
make[2]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/var/tmp/portage/sys-apps/kmod-32-r1/image/usr/share/man/man5'
 /bin/mkdir -p '/var/tmp/portage/sys-apps/kmod-32-r1/image/usr/share/man/man8'
 /usr/lib/portage/python3.11/ebuild-helpers/xattr/install -c -m 644 depmod.d.5 modprobe.d.5 modules.dep.5 modules.dep.bin.5 '/var/tmp/portage/sys-apps/kmod-32-r1/image/usr/share/man/man5'
 /usr/lib/portage/python3.11/ebuild-helpers/xattr/install -c -m 644 kmod.8 depmod.8 insmod.8 lsmod.8 rmmod.8 modprobe.8 modinfo.8 '/var/tmp/portage/sys-apps/kmod-32-r1/image/usr/share/man/man8'
>>> Completed installing sys-apps/kmod-32-r1 into /var/tmp/portage/sys-apps/kmod-32-r1/image

 * Final size of build directory: 7004 KiB (6.8 MiB)
 * Final size of installed tree:   456 KiB

/var/tmp/portage/sys-apps/kmod-32-r1/image/usr/lib64/pkgconfig/kmod.pc:5: warning: trailing whitespace encountered while parsing value section
 * QA Notice: pkg-config files not respecting libdir found
 * (contains reference to either lib or lib64 in wrong directory)
 *   /usr/lib64/pkgconfig/kmod.pc
strip: x86_64-pc-linux-gnu-strip --strip-unneeded -N __gentoo_check_ldflags__ -R .comment -R .GCC.command.line -R .note.gnu.gold-version
   /usr/lib64/libkmod.so.2.4.2
   /usr/bin/kmod
Top
Ionen
Developer
Developer
User avatar
Posts: 3013
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Mon May 06, 2024 6:26 pm

grknight wrote:Genkernel has a hardcoded /sbin/depmod check.

Time to file a bug on one or the other.
I'd say genkernel, haven't looked but I doubt it has a reason to hardcode the full path rather than rely on PATH.
Top
rufnut
Apprentice
Apprentice
Posts: 252
Joined: Mon May 16, 2005 7:26 am

  • Quote

Post by rufnut » Mon May 06, 2024 6:38 pm

grknight wrote: Time to file a bug on one or the other.
Ionen, too

thank you all.

I will look further, then maybe log a bug on "genkernel."
Top
UlvHare
n00b
n00b
Posts: 24
Joined: Wed Sep 09, 2015 9:40 pm
Location: USSR

  • Quote

Post by UlvHare » Fri May 17, 2024 5:11 pm

The same story with me. Downgrade to kmod-31 let genkernel work.
Top
Post Reply

11 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic