I need a newer version of Pipewire (>= 1.0.2) on my RPi 4 than is shipped with the current stable RaspberryPi OS (Pipewire 0.3). I looked at Debian's Bookworm backports and voilà, there is Pipewire 1.0.3 there! So I added the backports repo to my sources.list:
$ cat /etc/apt/sources.list
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb http://deb.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware
deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
deb http://deb.debian.org/debian bookworm-backports main contrib non-free
However, trying to install Pipewire now isn't working:
$ sudo apt install pipewire
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libpipewire-0.3-modules : Depends: libpipewire-0.3-0 (= 0.3.65-3+rpt6+deb12u1) but 1.0.3-1~bpo12+1 is to be installed
pipewire : Depends: pipewire-bin (= 0.3.65-3+rpt6+deb12u1)
E: Unable to correct problems, you have held broken packages.
I'm no Debian expert, I can't tell if this method should work in RPi-OS or not: Can anyone suggest how to resolve the dependency problem?
EDIT: Explanation why I'm trying to do this: I wanted to install Pipewire for streaming audio to my RPi 4 (it runs the headless RPi OS Lite, which only comes with bare ALSA). To do this, I wanted to use Roc. The Debian repo version of Pipewire doesn't include the Roc modules - hence to get them, one needs to compile Pipewire from Git source, where it does have the Roc modules, which can then be copied into the system. However, attempting this compilation, I ran into a dependency problem where the Pipewire version >= 1.0.2 is requested, but 0.3 is installed (don't ask me why the compiler routine wants Pipewire installed in order to compile Pipewire, I don't know and I don't understand!). The two routes to go for obtaining a more recent version in this case are to a) add the Pipewire PPA for Debian to your sources or b) try the backports package, which I attempted here...
EDIT2: after tinkering more and unsuccessfully with compilation, I ended up using route a) to get a newer version of Pipewire (also several caveats here), but ditching Roc in favor of RTP. However, the compilation instructions presented here by Goldilocks may still work.