Xpra: Ticket #1513: "--without-service" does not stop Xpra from writing files to /usr/lib


we updated lately to Xpra 1.0.5 using the install option "--without-service" on our system (without root permissions). Currently we need to patch Xpra as it tries to write to the system directory /usr/lib or /lib in setup.py and fails:

1514	        #not supported by all distros, but doesn't hurt to install it anyway:
1515	        prefix = "/usr/lib"
1516	        from xpra.os_util import is_Fedora, is_CentOS
1517	        if is_Fedora() or is_CentOS():
1518	            prefix = "/lib"
1519	        add_data_files("%s/tmpfiles.d" % prefix, ["tmpfiles.d/xpra.conf"])
1520	        add_data_files("%s/sysusers.d" % prefix, ["sysusers.d/xpra.conf"])

Can you change setup.py that way, that it avoids this if installed with --without-service.

This is related to the ticket: #1383

Best, Jens Henrik

Wed, 10 May 2017 13:15:16 GMT - Antoine Martin: owner, description, milestone changed

You are claiming to be building 1.0.5, but the sysusers.d files are only present in trunk..

In any case, the correct fix for this is in r15797 (minus the nvfbc part at the end I committed by mistake), but this change is a little bit too big to backport to the 1.0 branch.

Not shipping tmpfiles.d when building with --without-service is not a good solution either as those two features are unrelated.

So I am tempted to just schedule it for 1.1 and close this ticket.

@Jens H. Goebbert: does that work for you?

Wed, 24 May 2017 05:13:26 GMT - Antoine Martin: status changed; resolution set

Not heard back, closing.

Wed, 24 May 2017 07:22:47 GMT - Jens H. Goebbert:

Hi Antoine,

I could not test your patch yet, sorry, but your patch reads good. Thanks.

Best, Jens Henrik

Sat, 23 Jan 2021 05:26:21 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1513