Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 487232

Summary: sys-apps/systemd-204-r1 fails to build unless rebooted
Product: Gentoo Linux Reporter: Łukasz Stelmach <stlman>
Component: [OLD] Core systemAssignee: Gentoo systemd Team <systemd>
Status: RESOLVED FIXED    
Severity: normal CC: alexander
Priority: Normal Keywords: PATCH
Version: 10.1   
Hardware: All   
OS: Linux   
URL: http://wiki.gentoo.org/wiki/Systemd/upgrade#systemd_203
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Allow users to override the check
Allow users to override the check (fixed operator)

Description Łukasz Stelmach 2013-10-07 19:54:06 UTC
systemd-204-r1 fails to build saying

 * You are using a compatibility symlink to run systemd. The symlink
 * has been removed. Please update your bootloader to use:
 * 
 *      init=/usr/lib/systemd/systemd
 * 
 * and reboot your system. We are sorry for the inconvenience.
 * ERROR: sys-apps/systemd-204-r1::gentoo failed (pretend phase):
 *   Compatibility symlink used to boot systemd.

There is currently no way to override the check that leads to this error. The the attached patch introduces a way for users to confirm their intentions to build the package. The build process is not going to die if user removes the symlink manually.

Reproducible: Always
Comment 1 Łukasz Stelmach 2013-10-07 20:01:40 UTC
Created attachment 360342 [details, diff]
Allow users to override the check
Comment 2 Łukasz Stelmach 2013-10-07 20:02:34 UTC
Created attachment 360344 [details, diff]
Allow users to override the check (fixed operator)
Comment 3 Mike Gilbert gentoo-dev 2013-10-07 21:40:05 UTC
Seems sane to me. Or possibly we could abuse the old I_KNOW_WHAT_I_AM_DOING flag.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-10-18 18:34:37 UTC
I'd prefer the '-e' hack since people may be thoughtlessly setting I_KNOW... globally and with the compatibility symlink removed people wouldn't be able to reboot anyway :).
Comment 5 Mike Gilbert gentoo-dev 2013-10-18 19:07:40 UTC
+  18 Oct 2013; Mike Gilbert <floppym@gentoo.org> systemd-204-r1.ebuild,
+  systemd-204-r2.ebuild:
+  Don't die in pkg_pretend if the user has manually removed the systemd
+  compatibility symlink. Patch by Łukasz Stelmach. Bug 487232.