Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 781125 - sys-kernel/dracut-crypt-ssh-1.0.7 is broken with --as-needed ld flag
Summary: sys-kernel/dracut-crypt-ssh-1.0.7 is broken with --as-needed ld flag
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jakov Smolić
Keywords: PATCH, PullRequest
Depends on:
Blocks: as-needed
  Show dependency tree
Reported: 2021-04-08 13:55 UTC by Alexander Zubkov
Modified: 2021-04-14 06:26 UTC (History)
2 users (show)

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

proposed patch (dracut-crypt-ssh-as-needed.patch,501 bytes, patch)
2021-04-08 13:55 UTC, Alexander Zubkov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Zubkov 2021-04-08 13:55:34 UTC
Created attachment 698580 [details, diff]
proposed patch

sys-kernel/dracut-crypt-ssh-1.0.7 does not compile when --as-needed ld flag is used. It is because of bad parameters order: -lblkid should be after object files. I have attached the patch to fix it. There is already a patch that modifies the corresponding Makefile in files for the ebuild. The proposed patch modifies that patch - switches positions of "$^" and "-lblkid".
Comment 1 Alexander Zubkov 2021-04-08 14:05:40 UTC
Someone have already reported it to the upstream, but upstream is not maintained currently:
Comment 2 Larry the Git Cow gentoo-dev 2021-04-14 06:26:44 UTC
The bug has been closed via the following commit(s):

commit 69b9449877745ccd238def39c498b53f60f22c1c
Author:     Jakov Smolic <>
AuthorDate: 2021-04-12 20:02:39 +0000
Commit:     Joonas Niilola <>
CommitDate: 2021-04-14 06:25:43 +0000

    sys-kernel/dracut-crypt-ssh: Fix building with --as-needed
    Signed-off-by: Jakov Smolic <>
    Signed-off-by: Joonas Niilola <>

 sys-kernel/dracut-crypt-ssh/dracut-crypt-ssh-1.0.7.ebuild              | 2 +-
 ...t-ssh-1.0.7-ldflags.patch => dracut-crypt-ssh-1.0.7-makefile.patch} | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)