Upstream does supply a set of systemd unit files in the distribution tarball and an ability to control installation of those files through the --with/--without-systemdsystemunitdir option. The ebuild is currently unaware of these options, making installation of systemd units pkgconfig file dependant and thus automagic. The ebuild shall use systemd.eclass to handle installation of the systemd unit files in a clean and unified way. The preferred way to handle that is to use autotools-utils eclass, and call `systemd_to_myeconfargs' before `autotools-utils_src_configure', as in: inherit autotools-utils systemd src_configure() { local myeconfargs=( $(use_enable foo) --with-bar ) systemd_to_myeconfargs autotools-utils_src_configure } If you're not interested in migrating to autotools-utils, there is also a legacy `systemd_with_unitdir' function, which could be used like that: inherit systemd src_configure() { econf \ $(use_enable foo) \ --with-bar \ "$(systemd_with_unitdir)" } Currently introduction of the eclass will cause the package to install systemd unit files unconditionally. If you don't like that concept, feel free to take a vote on the appropriate gentoo-dev ml topic. The eclass behaviour might change in future.
Hi Michal, I've reworked the latest ebuild to use autotools-utils and systemd eclasses. Would you please give it a try from my overlay (ultrabug) and confirm it's right on your point of view before I move the other ebuilds to this ? Thanks
Created attachment 272887 [details, diff] Fix autotools-utils & EAPI=4 usage (In reply to comment #1) > I've reworked the latest ebuild to use autotools-utils and systemd eclasses. > Would you please give it a try from my overlay (ultrabug) and confirm it's > right on your point of view before I move the other ebuilds to this ? I'm attaching a patch applying few fixes I mentioned in PM. You should put a real bugnumber/upstream bugzie URI for the in-source build failure bug.
The new unstable line of rsyslog ebuilds now support this mate, thanks again for your explanations and help. +*rsyslog-5.8.0-r1 (16 May 2011) + + 16 May 2011; Ultrabug <ultrabug@gentoo.org> -rsyslog-5.8.0.ebuild, + +rsyslog-5.8.0-r1.ebuild: + EAPI4 and use of systemd eclass, fix #366179. Are you okay to close the bug ?
(In reply to comment #3) > The new unstable line of rsyslog ebuilds now support this mate, thanks again > for your explanations and help. > > +*rsyslog-5.8.0-r1 (16 May 2011) > + > + 16 May 2011; Ultrabug <ultrabug@gentoo.org> -rsyslog-5.8.0.ebuild, > + +rsyslog-5.8.0-r1.ebuild: > + EAPI4 and use of systemd eclass, fix #366179. > > Are you okay to close the bug ? Yes, closing now.