Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 455116 - x11-misc/slim installs slim.service in /usr/usr/lib/systemd/system
Summary: x11-misc/slim installs slim.service in /usr/usr/lib/systemd/system
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ian Stakenvicius (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-02-02 11:56 UTC by Alexey Shmalko
Modified: 2013-02-06 14:39 UTC (History)
1 user (show)

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


Attachments
slim-1.3.5.ebuild (slim-1.3.5.ebuild,3.24 KB, text/plain)
2013-02-02 11:56 UTC, Alexey Shmalko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Shmalko 2013-02-02 11:56:03 UTC
Created attachment 337664 [details]
slim-1.3.5.ebuild

x11-misc/slim-1.3.5 installs slim.service file in /usr/usr/lib/systemd/system/

I've patched slim ebuild. Just replaced usr/lib/systemd/system with $(get_libdir)/systemd/system by sed in CMakeLists.txt
Works fine.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-02-02 16:38:28 UTC
Comment on attachment 337664 [details]
slim-1.3.5.ebuild

--- slim-1.3.5.ebuild   2012-12-31 19:09:51.000000000 +0100
+++ -   2013-02-02 17:38:17.900911900 +0100
@@ -36,6 +36,8 @@
        # Our Gentoo-specific config changes
        epatch "${FILESDIR}"/${PN}-1.3.4-config.diff
        epatch "${FILESDIR}"/${P}-arm.patch
+       sed -i -s "s:usr/lib/systemd/system:$(get_libdir)/systemd/system:" \
+               CMakeLists.txt || die
 
        if use elibc_FreeBSD; then
                sed -i -e 's/"-DHAVE_SHADOW"/"-DNEEDS_BASENAME"/' CMakeLists.txt \
Comment 2 Ian Stakenvicius (RETIRED) gentoo-dev 2013-02-04 19:36:31 UTC
Generally good, except that the path should always be /usr/lib/systemd/system (ie, it shouldn't ever be /usr/lib32 or /usr/lib64).

Will adjust and commit a revbump.  Thanks for reporting!
Comment 3 Ian Stakenvicius (RETIRED) gentoo-dev 2013-02-06 14:39:12 UTC
   06 Feb 2013; Ian Stakenvicius <axs@gentoo.org> -slim-1.3.5.ebuild,
   +slim-1.3.5-r1.ebuild, +files/slim-1.3.5-systemd-service.patch:
   fix install path of slim.service file, bug 455116