Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 883759 - sys-fs/multipath-tools-0.9.3: librarys are not installed where the service looks for them
Summary: sys-fs/multipath-tools-0.9.3: librarys are not installed where the service lo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: https://forums.gentoo.org/viewtopic.p...
Whiteboard:
Keywords:
Depends on: 883807
Blocks: 398051 CVE-2022-41973, CVE-2022-41974
  Show dependency tree
 
Reported: 2022-11-30 14:43 UTC by Stefan Schmid
Modified: 2024-01-05 04:14 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge_info.txt,7.83 KB, text/plain)
2022-11-30 14:44 UTC, Stefan Schmid
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Schmid 2022-11-30 14:43:49 UTC
The libraries (/lib64/multipath) installed by the ebuild are not where the service is looking for them (/usr/lib64/multipath) which leads to the service not being able to start.

Nov 29 07:59:58 hq10pc150 multipathd[295]: multipathd v0.9.3: start up
Nov 29 07:59:58 hq10pc150 multipathd[295]: Checker 'tur' not found in /usr/lib64/multipath
Nov 29 07:59:58 hq10pc150 multipathd[295]: failed to initialize checkers
Nov 29 07:59:58 hq10pc150 multipathd[295]: multipathd: shut down
Nov 29 07:59:58 hq10pc150 systemd[1]: multipathd.service: Main process exited, code=exited, status=1/FAILURE
Nov 29 07:59:58 hq10pc150 systemd[1]: multipathd.service: Failed with result 'exit-code'.
Nov 29 07:59:58 hq10pc150 systemd[1]: Failed to start Device-Mapper Multipath Device Controller.

Reproducible: Always
Comment 1 Stefan Schmid 2022-11-30 14:44:14 UTC
Created attachment 838567 [details]
emerge --info
Comment 2 Michael Hofmann 2022-11-30 15:40:56 UTC
The build log shows that gcc is called with parameter 

  -DMULTIPATH_DIR=\"/usr/lib64/multipath\", 

which is probably wrong. It should be "/lib64/multipath".
Comment 3 Larry the Git Cow gentoo-dev 2022-12-01 00:38:02 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=540b5786ee8bbc26fffab9523866ac6e36719aec

commit 540b5786ee8bbc26fffab9523866ac6e36719aec
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-12-01 00:37:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-01 00:37:56 +0000

    sys-fs/multipath-tools: fix plugin path
    
    Bug: https://bugs.gentoo.org/883759
    Signed-off-by: Sam James <sam@gentoo.org>

 .../multipath-tools-0.9.3-r1.ebuild                | 96 ++++++++++++++++++++++
 1 file changed, 96 insertions(+)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-01 00:38:22 UTC
Please let me know if 0.9.3-r1 works or not.
Comment 5 Larry the Git Cow gentoo-dev 2022-12-01 00:45:48 UTC
The bug has been referenced in the following commit(s):

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

commit a240ce593ed71a0a9588b22025ea6885cbaa5d76
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-12-01 00:45:35 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-01 00:45:35 +0000

    sys-fs/multipath-tools: further plugindir fixes
    
    Bug: https://bugs.gentoo.org/883759
    Signed-off-by: Sam James <sam@gentoo.org>

 ...multipath-tools-0.9.3-r1.ebuild => multipath-tools-0.9.3-r2.ebuild} | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 6 Stefan Schmid 2022-12-01 07:21:16 UTC
It works, the service can be started again.

Nevertheless, at some point someone should check if /lib64 is really the right place for these libraries and/or if this package also needs a split-usr USE flag.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-01 07:35:15 UTC
Thanks. And yes, agreed.