You install systemd-dev (including systemd.pc), the build system picks up the paths from systemd.pc via pkgconf and installs the files into the correct paths. All you need to do in .install is reference the now correct paths.
That said, I naively assumed, that the build system in mumble works properly. Apparently it doesn't and the pkgconf integration in version 1.5.517 is broken. Seems you would need https://github.com/mumble-voip/mumble/pull/6100 , specifically commits like https://github.com/mumble-voip/mumble/pull/6100/commits/fb3f115692db84f5f427755d9cf02cc14e9262fa
Or you upgrade to a newer upstream version. Michael Am 21.11.24 um 23:49 schrieb Chris Knadle:
Hello Chris, Michael, Stefan.I don't understand how to do what has been requested. I've tried a number of variations of including systemd-dev as a dependency and using variables to reference the system sysusers directory, and this is not working out for me. I've spent more time on this than I'm comfortable with.So far here's the results from multiple builds:dh_install: error: Cannot resolve variable "${SYSUSERS_DIR}" in debian/ mumble-server.install (line 6) >make: *** [debian/rules:28: binary] Error 25 >dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2dh_install: error: Cannot resolve variable "${sysusers_dir}" in debian/ mumble-server.install (line 6)make: *** [debian/rules:28: binary] Error 25 Trying to source in /usr/share/pkgconfig/systemd.pc within debian/rules: Debian/rules:28: *** missing separator. Stop.dpkg-buildpackage: error: debian/rules clean subprocess returned exit status 2Note: the place the variable needs to be referenced is in debian/mumble- server.install which is for dh_install to use and I believe does not accept arbitrary shell code.-- Chris Chris Knadle chris.kna...@coredump.us On 11/20/24 02:54, Chris Hofstaedtler wrote:Hi Chris, On Tue, Nov 19, 2024 at 11:58:15PM -0500, Chris Knadle wrote:I think I finally figured out what referencing systemd.pc is about. There's no systemd-dev package, it looks like system.pc is in the "systemd" package.As Michael pointed out, systemd.pc is in the "systemd-dev" package. Please check the packages in testing, not in stable.https://github.com/systemd/systemd/blob/main/src/core/systemd.pc.inand it looks like this file would need to be sourced in and then variable$sysusers_dir or $sysusersdir would be what to reference.Yes. But this is already done in CMake.The $sysusers_dir variable would need to be referenced withindebian/mumble-server.install and I'm not sure what location is appropriate to source in /usr/share/pkgconfig/systemd.pc. I'm guessing it would be thedebian/rules file, perhaps under an override_dh_install section.If CMake does its thing correctly, hopefully you do not need to touch debian/rules at all. Chris
OpenPGP_signature.asc
Description: OpenPGP digital signature