Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 651518 - sys-kernel/genkernel-next-68 tries to pull systemd into initramfs
Summary: sys-kernel/genkernel-next-68 tries to pull systemd into initramfs
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel-next (show other bugs)
Hardware: AMD64 Linux
: Normal minor with 1 vote (vote)
Assignee: Ettore Di Giacinto (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-25 23:33 UTC by Sora Lee
Modified: 2020-08-20 12:51 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sora Lee 2018-03-25 23:33:37 UTC
>> Appending udev cpio data...
Package systemd was not found in the pkg-config search path.
Perhaps you should add the directory containing `systemd.pc'
to the PKG_CONFIG_PATH environment variable
No package 'systemd' found
cp: cannot stat '/network/99-default.link': No such file or directory

This only occurs with version 68, not 66 or earlier. I am using eudev, hence systemd is not a dependency and should not be being pulled in. Moreover I don't believe there is a '/network/99-default.link' file with systemd anyway - this should be under '/usr/lib/systemd/network/99-default.link' which have.
Comment 1 Sora Lee 2018-05-21 00:09:58 UTC
The issue is with this commit between versions 66 and 68: https://github.com/Sabayon/genkernel-next/commit/55c2dee474f6bef15a7d332e404c34380fbfe924

/usr/lib/systemd/network/99-default.link
was replaced with;
${systemd_dir}/network/99-default.link

which is set by;
local systemd_dir=$(_get_systemdutildir)

corresponding to the function;
_get_systemdutildir() {
    local systemdutil_dir=$(pkg-config systemd --variable=systemdutildir)
    [[ -n "${systemdutil_dir}" ]] && echo $(realpath "${systemdutil_dir}")
}

I'd suggest we use a patch to change the function to;
_get_systemdutildir() {
    local systemdutil_dir=$(pkg-config systemd --variable=systemdutildir)
    [[ -n "${systemdutil_dir}" ]] \
    && echo $(realpath "${systemdutil_dir}") \
    || echo "/usr/lib/systemd"
}
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-08-20 12:51:00 UTC
Package removed.