Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914968 - app-admin/syslog-ng-4.2.0 - does not byte compile python modules
Summary: app-admin/syslog-ng-4.2.0 - does not byte compile python modules
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tomáš Mózes
Depends on:
Reported: 2023-09-30 10:12 UTC by Daniel Pielmeier
Modified: 2023-09-30 10:12 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Pielmeier gentoo-dev 2023-09-30 10:12:41 UTC
syslog-ng python modules are byte compiled at runtime and thus outside of the control of the package manager and will remain as cruft after removing syslog-ng.

E.g. python modules in this directories will be byte compiled when fist running syslog-ng:

There are more python modules around but maybe they are not used.

The ebuild calls python_optimize [1] to byte compile modules. This however only works if the modules are installed to standard locations. If this is not the case the paths to the modules have to be specified. 

python_optimize "${ED}"/usr/lib64/syslog-ng/python