The upgrade to systemd-234 moved systemctl from /usr/bin to /bin. systemd-crontab-generator and cron-update.service call systemctl as /usr/bin/systemctl. emerge --info systemd-cron Portage 2.3.6 (python 3.6.1-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-6.3.0, glibc-2.24-r3, 4.11.7-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.11.7-gentoo-x86_64-Intel-R-_Core-TM-_i7-4770K_CPU_@_3.50GHz-with-gentoo-2.4.1 KiB Mem: 16125864 total, 1723644 free KiB Swap: 16777212 total, 16774140 free Timestamp of repository gentoo: Mon, 17 Jul 2017 06:30:01 +0000 sh bash 4.4_p12 ld GNU ld (Gentoo 2.28 p1.2) 2.28 app-shells/bash: 4.4_p12::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.24.2::gentoo dev-lang/python: 2.7.13::gentoo, 3.4.6::gentoo, 3.5.3::gentoo, 3.6.1-r1::gentoo dev-util/cmake: 3.8.2::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.4.1::gentoo sys-apps/openrc: 0.28::gentoo sys-apps/sandbox: 2.10-r4::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r3::gentoo sys-devel/automake: 1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.15.1::gentoo sys-devel/binutils: 2.28-r2::gentoo sys-devel/gcc: 6.3.0::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r4::gentoo sys-devel/make: 4.2.1-r1::gentoo sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.24-r3::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 scrill location: /var/lib/layman/scrill masters: gentoo priority: 50 x11 location: /var/lib/layman/x11 masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -gdwarf-4 -fvar-tracking-assignments" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/spool/munin-async/.ssh" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=native -gdwarf-4 -fvar-tracking-assignments" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildpkg cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles installsources ipc-sandbox merge-sync network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_GB.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j6" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi alsa amd64 apache2 avx avx2 berkdb branding bzip2 cairo caps cdda cdr cli colord cracklib crypt cups cxx dbus dri dts dvd dvdr eds emacs emboss encode evo exif fam ffmpeg firefox flac fontconfig fortran gdbm gif git glamor gmp gnome gnome-keyring gnome-online-accounts gnutls gpm gstreamer gtk iconv icu introspection ipv6 java jit jpeg kde kerberos lcms ldap libnotify libsecret lm_sensors lua mad mmx mng modules mp3 mp4 mpeg multilib nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf perl png policykit postgres ppds pulseaudio python qt3support qt4 readline sdl seccomp semantic-desktop session spell sqlite sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff tracker truetype udev udisks unicode upower usb vala vim-syntax vorbis wayland webkit wxwidgets x264 xattr xcb xml xmp xv xvid zeroconf zlib" ABI_X86="64 32" ALSA_CARDS="hd-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc efi-64 efi-32" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-GB en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="wiki-publisher presenter-minimizer" LINGUAS="en_GB en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6" RUBY_TARGETS="ruby22 ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="intel i915 i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" USE_PYTHON="2.7" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= sys-process/systemd-cron-1.5.10::gentoo was built with the following: USE="etc-crontab-systemd -cron-boot -minutely -setgid -test -yearly" ABI_X86="(64)" PYTHON_SINGLE_TARGET="python3_4 -pypy3 -python3_5 -python3_6" PYTHON_TARGETS="python3_4 python3_5 python3_6 -pypy3"
it also installs 'systemd-crontab-generator' in '/usr/lib/systemd/system-generator/' instead of '/lib/systemd/system-generator/'
This is reasonably easy to fix, it just requires inserting "--bindir ${EPREFIX}/bin \" into the src_configure phase. The hard part is figuring out whether the user is using >=systemd-234 or <systemd-234 as to whether to pass that flag...
I think a couple changes need to happen upstream: 1. Remove the absolute path references to systemctl and let the shell (/bin/sh) find it in PATH. 2. Add independent configure options for the system unit dir and the system generator directories, instead of coupling them to libdir.
Upstream bug: https://github.com/systemd-cron/systemd-cron/issues/54
As upstream bug looks to be stalled maybe we could, for now, simply make a new revision hard depending on >=234 and remember to stabilize that version when newer systemd is stabilized
(In reply to Pacho Ramos from comment #5) > As upstream bug looks to be stalled maybe we could, for now, simply make a > new revision hard depending on >=234 and remember to stabilize that version > when newer systemd is stabilized IMO Mike's suggestion to just rely on PATH is the simpler one here. No harder to patch in than changing the location in the first place.
It's ok if it is easy to do, I was wondering because this is the only one left with this breakage :/, but I don't care about what solution is chosen finally :)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2919bd92a88850f39364f67a905bc02610361c00 commit 2919bd92a88850f39364f67a905bc02610361c00 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2017-12-09 18:21:41 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2017-12-09 18:22:20 +0000 sys-process/systemd-cron: bump to 1.5.12 Fixes rootprefix issues. Closes: https://bugs.gentoo.org/625400 Package-Manager: Portage-2.3.15, Repoman-2.3.6_p7 sys-process/systemd-cron/Manifest | 1 + .../systemd-cron/systemd-cron-1.5.12.ebuild | 75 ++++++++++++++++++++++ 2 files changed, 76 insertions(+)