guix-install.sh broken on Gentoo

OpenSubmitted by Tobias Geerinckx-Rice.
Details
3 participants
  • ZC via web
  • Tobias Geerinckx-Rice
  • Vincent Legoll
Owner
unassigned
Severity
normal
T
T
Tobias Geerinckx-Rice wrote on 20 May 01:27 +0200
(address . bug-guix@gnu.org)
87pnazqzdy.fsf@nckx
Take it away, ZombieChicken:
-----BEGIN PGP SIGNATURE-----
iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXsRrWQAKCRANsP+IT1VteSivAP9TQ5EdILE0w9IsOn7Tx5Hg6rR8ugHGyjKFsLAOk/YyNwEA8X/ceaqz/7FgfDNTDCcfqooOalytdUYnW5xuQJbadgg==Q+T9-----END PGP SIGNATURE-----
Z
Z
ZC via web wrote on 20 May 01:45 +0200
(address . 41413@debbugs.gnu.org)
7f41efe13c60.f39fa6cd492ec54@guile.gnu.org
guix-install.sh calls "update-rc.d", which doesn't exist on a Gentoo system. Instead of trying to support all possible init systems, or make assumptions regarding how the init system works, I'd suggest simply dropping support for anything other than upstart and/or systemd. Users of smaller distros using unusual/traditional init systems can add support for guix theirself. The safest and most portable option would likely be to simply point to the init script at the end of the install, and tell the user to copy that file to the proper directory and enable it, copy and modify it to fit their system, or use it as a template for whatever their init system happens to be. It's less user-friendly in the "run it and forget it" sense, but it won't break a user's already working system, or error out in new and fun ways.
T
T
Tobias Geerinckx-Rice wrote on 20 May 02:09 +0200
(address . 41413@debbugs.gnu.org)
87mu63qxg0.fsf@nckx
Hullo,
ZC via web 写道:
Toggle quote (6 lines)> guix-install.sh calls "update-rc.d", which doesn't exist on a > Gentoo system. Instead of trying to support all possible init > systems, or make assumptions regarding how the init system > works, I'd suggest simply dropping support for anything other > than upstart and/or systemd.
I think we can safely assume that if ‘update-rc.d’ exists it will work a certain way (i.e. there aren't multiple incompatible ‘update-rc.d’s around), and that the real bug is that the script checks for a random directory in /etc instead.
It should test for the script(s) it uses, not related symptoms.
Kind regards,
T G-R
-----BEGIN PGP SIGNATURE-----
iHUEARYKAB0WIQT12iAyS4c9C3o4dnINsP+IT1VteQUCXsR1MAAKCRANsP+IT1VteUyxAPsF478dJI7dU2yM2JN5nyqkB4VKk/ItUJeh2RMx3sOJUAD/fcS5xNsj/fb6m/SoIXhpAg7LfqelQ2kJisaG/HCOVQo==I4FZ-----END PGP SIGNATURE-----
V
V
Vincent Legoll wrote on 21 May 00:14 +0200
bug#41413: guix-install.sh broken on Gentoo
(address . 41413@debbugs.gnu.org)
b2cf8aa4-6745-6966-b433-98a81be49072@gmail.com
Hello,
I'm working on adding a gentoo VM to my test farm, so I'll have a lookat the problem, and hopefully fix it properly.
-- Vincent Legoll
V
V
Vincent Legoll wrote on 30 May 10:24 +0200
c5247b7e-91f9-fd4f-eec8-1caa995f6f7a@gmail.com
Hello Tobias, ZC,
I created a gentoo VM (i686 / following gentoo handbook) and triedthe official upstream guix installer.
It worked properly, not detecting the OS init system, I think this isbecause the gentoo handbook made me install cronie instead of plaincron, so there's no "/etc/init.d/cron" file. And so it did not try toinstall the guix-daemon service init.d file through update-rc.d.And told me to run the daemon manually, which worked OK.
Running it with a local guix-install.sh + binary tarball with mypending changes (which includes openrc support). It also workedproperly, detecting the OS as being openrc managed and doing whatis needed.
So, I'll still cook up a patch to fix sysvinit detection, becauseassuming sysvinit on the mere presence of /etc/init.d/cron is notreally the right thing to do. (and the fix will need to be testedon a sysvinit-based distro, which I'll do)
But on the other hand, I don't know what to do with this bug report,I cannot reproduce the exact problem, and I'm not trying all the otheravailable cron variants from gentoo (bcron, dcron, fcron).
So either ZC tells us more about his setup and shows us more outputto be able to understand what did go wrong, or we cannot help further.
Couldn't keep ZC CC'ed as the issue was created without his emailaddress, let's hope he follows it via another way...
-- Vincent Legoll
?