Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 643398 - sys-process/systemd-cron: crontab-systemd: wrong hardcoded path to /usr/lib/systemd/system-generators/systemd-crontab-generator
Summary: sys-process/systemd-cron: crontab-systemd: wrong hardcoded path to /usr/lib/s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Richard Freeman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 640408
  Show dependency tree
 
Reported: 2018-01-04 11:48 UTC by Luigi 'Comio' Mantellini
Modified: 2018-01-13 16:53 UTC (History)
1 user (show)

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 Luigi 'Comio' Mantellini 2018-01-04 11:48:21 UTC
Hi,

recently gentoo's dev changed prefix path for systemd, installing all stuffs into /lib/systemd/...

Instead, the systemd-cron is still using /usr as prefix. The result is that crotab-systemd search in wrong place the systemd-crontab-generator file (taht now is into /lib/systemd/system-generators).

A fix is to change the build adding '--libdir="${EPREFIX}/lib" \' to configure call.

A will provide a 1.5.12-r1 updated ebuild

(Another fix is to patch the crontab-systemd directly)


Reproducible: Always

Steps to Reproduce:
/usr/bin/crontab-systemd
Actual Results:  
crontab-systemd 
Traceback (most recent call last):
  File "/usr/bin/crontab-systemd", line 337, in <module>
    parser = loader.load_module()
  File "<frozen importlib._bootstrap_external>", line 418, in _check_name_wrapper
  File "<frozen importlib._bootstrap_external>", line 841, in load_module
  File "<frozen importlib._bootstrap_external>", line 700, in load_module
  File "<frozen importlib._bootstrap>", line 268, in _load_module_shim
  File "<frozen importlib._bootstrap>", line 693, in _load
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 693, in exec_module
  File "<frozen importlib._bootstrap_external>", line 798, in get_code
  File "<frozen importlib._bootstrap_external>", line 850, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/systemd/system-generators/systemd-crontab-generator'
Comment 1 Luigi 'Comio' Mantellini 2018-01-04 12:17:50 UTC
See https://github.com/gentoo/gentoo/pull/6745
Comment 2 Larry the Git Cow gentoo-dev 2018-01-13 16:53:46 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c84f9b9c7bfbc1e86d78750a1f112df955fa8371

commit c84f9b9c7bfbc1e86d78750a1f112df955fa8371
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2018-01-13 16:53:22 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2018-01-13 16:53:22 +0000

    sys-process/systemd-cron: fix references to @generatordir@
    
    Closes: https://bugs.gentoo.org/643398
    Package-Manager: Portage-2.3.19_p11, Repoman-2.3.6_p45

 .../systemd-cron/files/1.5.12-generatordir.patch   | 67 ++++++++++++++++++++++
 ...1.5.12.ebuild => systemd-cron-1.5.12-r1.ebuild} |  4 +-
 2 files changed, 70 insertions(+), 1 deletion(-)