Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 623734 - sys-apps/razercfg-0.39 - sandbox access violation on attempt to enable systemd service
Summary: sys-apps/razercfg-0.39 - sandbox access violation on attempt to enable system...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2017-07-03 19:17 UTC by Sławomir Nizio
Modified: 2017-09-09 15:00 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 Sławomir Nizio 2017-07-03 19:17:24 UTC
sys-apps/razercfg-0.39

- Installing: /var/tmp/portage/sys-apps/razercfg-0.39/image/usr/bin/razerd
-- Set runtime path of "/var/tmp/portage/sys-apps/razercfg-0.39/image//usr/bin/razerd" to ""
Running in chroot, ignoring request.
-- systemctl --system daemon-reload: 0
 * ACCESS DENIED:  symlink:      /etc/systemd/system/multi-user.target.wants/razerd.service
Failed to enable unit, file /etc/systemd/system/multi-user.target.wants/razerd.service: Permission denied.
CMake Warning at razerd/cmake_install.cmake:72 (message):
  WARNING: systemctl --system --force enable razerd.service failed: 1

  If you use systemd, enable razerd.service manually

Call Stack (most recent call first):
  cmake_install.cmake:122 (include)


CMake Warning at razerd/cmake_install.cmake:85 (message):
  WARNING: udevadm control --reload-rules failed: 2

  Please reload udev manually or reboot the system

Call Stack (most recent call first):
  cmake_install.cmake:122 (include)



and below that:



-- Installing: /var/tmp/portage/sys-apps/razercfg-0.39/image/usr/bin/razer-gamewrapper
>>> Completed installing razercfg-0.39 into /var/tmp/portage/sys-apps/razercfg-0.39/image/

 * Final size of build directory: 1888 KiB
 * Final size of installed tree: 452 KiB

 * --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
 * LOG FILE: "/var/log/sandbox/sandbox-28383.log"
 *
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: symlink
S: deny
P: /etc/systemd/system/multi-user.target.wants/razerd.service
A: /etc/systemd/system/multi-user.target.wants/razerd.service
R: /etc/systemd/system/multi-user.target.wants/razerd.service
C: systemctl --system --force enable razerd.service
 * --------------------------------------------------------------------------------
Comment 1 Sławomir Nizio 2017-07-03 19:33:17 UTC
There is also a warning related to udev. There is some attempt to fix that using sed but at last partly code that does this is in different CMake files now.

I was able to install this package cleanly after making the following change:

--- a/sys-apps/razercfg/razercfg-0.39.ebuild
+++ b/sys-apps/razercfg/razercfg-0.39.ebuild
@@ -50,11 +50,11 @@ src_prepare() {
 
 src_configure() {
 	mycmakeargs=( -DPYTHON="${PYTHON}" )
-	cmake-utils_src_configure
+	RAZERCFG_PKG_BUILD=1 cmake-utils_src_configure
 }
 
 src_install() {
-	cmake-utils_src_install
+	RAZERCFG_PKG_BUILD=1 cmake-utils_src_install
 	newinitd "${FILESDIR}"/razerd.init.d-r2 razerd
 	dodoc README.* HACKING.* razer.conf
Comment 2 Larry the Git Cow gentoo-dev 2017-09-09 15:00:53 UTC
Bug has been closed via the following commit:
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28d377022df4bf5de7697adfeb0d743e0dd63c34

commit 28d377022df4bf5de7697adfeb0d743e0dd63c34
Author:     Michael Palimaka <kensington@gentoo.org>
AuthorDate: 2017-09-09 15:00:14 +0000
Commit:     Michael Palimaka <kensington@gentoo.org>
CommitDate: 2017-09-09 15:00:40 +0000

    sys-apps/razercfg: revision bump with assorted fixes
    
    * Use standard PYTHON_COMPAT format
    * Remove bogus inherits and sort
    * Use HTTPS for HOMEPAGE/SRC_URI
    * Remove bogus systemd USE flag that didn't control anything
    * Fix LICENSE
    * Sort dependencies
    * mycmakeargs must be declared local
    * Force using the correct udev and systmed unit locations
    * Avoid sandbox violations with systemd
    * Avoid systemd unit automagic installation
    * Misc tidying
    
    Closes: https://bugs.gentoo.org/623734
    Package-Manager: Portage-2.3.6, Repoman-2.3.3

 .../files/razercfg-0.39-unit-variables.patch       | 21 +++++
 sys-apps/razercfg/razercfg-0.39-r1.ebuild          | 91 ++++++++++++++++++++++
 2 files changed, 112 insertions(+)