Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 485218 - sys-kernel/dracut-033 trips FEATURES=multilib-strict by installing /usr/lib/dracut
Summary: sys-kernel/dracut-033 trips FEATURES=multilib-strict by installing /usr/lib/d...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amadeusz Żołnowski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-17 17:37 UTC by Mira Ressel
Modified: 2013-10-02 21:12 UTC (History)
2 users (show)

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


Attachments
patch against dracut-033-r1.ebuild (multilib-strict-r2.patch,1.14 KB, patch)
2013-09-30 10:46 UTC, Steven Newbury
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mira Ressel 2013-09-17 17:37:10 UTC
sys-kernel/dracut-033 fails the multilib-strict test, as it wants to install the new dracut-install to /usr/lib/dracut.
Comment 1 Amadeusz Żołnowski (RETIRED) gentoo-dev 2013-09-25 21:32:17 UTC
Thank you for the report!

+*dracut-033-r1 (25 Sep 2013)
+
+  25 Sep 2013; Amadeusz Żołnowski <aidecoe@gentoo.org> dracut-033.ebuild,
+  +dracut-033-r1.ebuild:
+  Dropped optimization flag, because it is no longer an option. dracut-install
+  binary is installed into libdir, therefore it was required to set target lib
+  directory according to multilib rules.
+
+  It fixes bug #485218 and bug #485202.
+
Comment 2 Steven Newbury 2013-09-30 07:33:25 UTC
This breaks SYMLINK_LIB="no" installs.  The /usr/bin/dracut script still looks in /usr/lib for the dracutbasedir even though it's now installed in /usr/lib64.  On SYMLINK_LIB="no" /usr/lib is for x86 AND non-ABI-specific components.

TBH, I'm not even convinced this is a candidate for multilib-strict, the only binary is dracut-install which arguably should be in /usr/libexec anyway, everything else is non-ABI-specific.
Comment 3 Steven Newbury 2013-09-30 07:41:06 UTC
Alternatively dracut-install could be installed into /usr/{s}bin, then no changes even need to be made to dracut-functions{.sh} since it searches the PATH first before trying $dracutbasedir/dracut-install.
Comment 4 Steven Newbury 2013-09-30 10:46:27 UTC
Created attachment 359780 [details, diff]
patch against dracut-033-r1.ebuild

Restore "MY_LIBDIR", put native binary executable "dracut-install" into /usr/sbin and remove it from installed $dracutbasedir.
Comment 5 Amadeusz Żołnowski (RETIRED) gentoo-dev 2013-10-02 21:12:47 UTC
Fixed once again.  Thank you, Steven!

+*dracut-033-r2 (02 Oct 2013)
+
+  02 Oct 2013; Amadeusz Żołnowski <aidecoe@gentoo.org> +dracut-033-r2.ebuild,
+  +files/033-0003-Use-the-same-paths-in-dracut.sh-as-tho.patch,
+  +files/033-0004-Install-dracut-install-into-libexec-di.patch:
+  Fixes bug #485204 and bug #485218.
+
+  Thanks to Alexander Tsoy <alexander@tsoy.me> for suggestions on bug #485204.
+
+  Thanks to  Steven Newbury <s_j_newbury@yahoo.co.uk> for good suggestions on
+  bug #485218.  Patch installing dracut-install to /usr/libexec has been
+  submitted upstream.
+