pajackconnect on Debian 12

Optimize your system for ultimate performance.

Moderators: MattKingUSA, khz

Post Reply
juki
Established Member
Posts: 88
Joined: Sun Mar 29, 2009 10:45 pm
Has thanked: 13 times
Been thanked: 5 times

pajackconnect on Debian 12

Post by juki »

I built a DEB package following these instructions :

https://github.com/brummer10/pajackconnect wrote:

Build package with:

dpkg-buildpackage -rfakeroot -uc -us -b

On other distributions you need to first edit the file resume-fix-pulseaudio.service and replace USERNAME with your User name (logname) and USERID with your users ID (id -u $(logname))

after install you need to run (as root)

systemctl enable resume-fix-pulseaudio.service
systemctl daemon-reload

to enable the service.

Unfortunately there is an error when i try to install the package with dpkg -i because of dh-systemd, the reason being this package is a dependancy but is not available in Debian anymore.

Does someone knows how to fix this ?

User avatar
GMaq
Established Member
Posts: 2605
Joined: Fri Sep 25, 2009 1:42 pm
Has thanked: 452 times
Been thanked: 464 times

Re: pajackconnect on Debian 12

Post by GMaq »

@tramp ^^^

Great question, I've encountered the same thing...

novalix
Established Member
Posts: 68
Joined: Wed Aug 11, 2021 1:12 pm
Has thanked: 2 times
Been thanked: 24 times

Re: pajackconnect on Debian 12

Post by novalix »

Try this:

Open the file "control" in the debian directory in an editor.

Replace the line:

Code: Select all

Depends: ${shlibs:Depends}, ${misc:Depends}, dh-systemd (>= 1.5)

with:

Code: Select all

Depends: ${shlibs:Depends}, ${misc:Depends}, debhelper (>= 9.20160709) | dh-systemd (>= 1.5)

If it works, tell @tramp about it.

juki
Established Member
Posts: 88
Joined: Sun Mar 29, 2009 10:45 pm
Has thanked: 13 times
Been thanked: 5 times

Re: pajackconnect on Debian 12

Post by juki »

It works indeed, thanks a lot ! :)

novalix
Established Member
Posts: 68
Joined: Wed Aug 11, 2021 1:12 pm
Has thanked: 2 times
Been thanked: 24 times

Re: pajackconnect on Debian 12

Post by novalix »

Good to know.

Short explanation:

The toolset dh-systemd was planned as part of debhelper from the beginning (hence the name). For obvious reasons (systemd's architecture and API was prone to change somewhat) the toolset was initially developed on its own. As of the revision 9.20160709 the code was merged into debhelper. Debian made a transitional package (dh-systemd) for buster, which isn't available anymore in newer releases.

The line i have changed makes sure the build routine only uses the package "dh-systemd" when the package "debhelper" isn't available as revision 9.20160709 or greater.

tramp
Established Member
Posts: 2159
Joined: Mon Jul 01, 2013 8:13 am
Has thanked: 7 times
Been thanked: 311 times

Re: pajackconnect on Debian 12

Post by tramp »

Hi

I've pushed the fix to the repository now.
Thanks @novalix

On the road again.
Post Reply