Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
depmod location with "split-usr" flag.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
rufnut
Apprentice
Apprentice


Joined: 16 May 2005
Posts: 252

PostPosted: Mon May 06, 2024 3:36 pm    Post subject: depmod location with "split-usr" flag. Reply with quote

depmod location with "split-usr" flag effects genkernel


I was updating my kernel and genkernel reported:

Code:
*         >> 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)


:)
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21753

PostPosted: Mon May 06, 2024 3:41 pm    Post subject: Reply with quote

For the non-working version, what is the output of emerge --pretend --verbose sys-apps/kmod ; emerge --info?
Back to top
View user's profile Send private message
rufnut
Apprentice
Apprentice


Joined: 16 May 2005
Posts: 252

PostPosted: Mon May 06, 2024 4:03 pm    Post subject: Reply with quote

Code:
# 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
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21753

PostPosted: Mon May 06, 2024 4:41 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
rufnut
Apprentice
Apprentice


Joined: 16 May 2005
Posts: 252

PostPosted: Mon May 06, 2024 5:46 pm    Post subject: Reply with quote

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) *
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21753

PostPosted: Mon May 06, 2024 6:08 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1695

PostPosted: Mon May 06, 2024 6:21 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
rufnut
Apprentice
Apprentice


Joined: 16 May 2005
Posts: 252

PostPosted: Mon May 06, 2024 6:24 pm    Post subject: Reply with quote

Code:
>>> 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
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2727

PostPosted: Mon May 06, 2024 6:26 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
rufnut
Apprentice
Apprentice


Joined: 16 May 2005
Posts: 252

PostPosted: Mon May 06, 2024 6:38 pm    Post subject: Reply with quote

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."
Back to top
View user's profile Send private message
UlvHare
n00b
n00b


Joined: 09 Sep 2015
Posts: 21
Location: USSR

PostPosted: Fri May 17, 2024 5:11 pm    Post subject: Reply with quote

The same story with me. Downgrade to kmod-31 let genkernel work.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum