Update CPACK settings for Debian package (Fixes #1299)#1376
Update CPACK settings for Debian package (Fixes #1299)#1376eeickmeyer wants to merge 11 commits intoDistroAV:masterfrom
Conversation
Disable shared library dependencies and set package dependencies for Debian. This will allow the package to be installed on Debian Trixie as well as versions of Ubuntu later than 24.04, such as the currently supported 25.04 and 25.10, as well as the upcoming 26.10, while still being compatible with 24.04.
|
It looks like there is a , where a . should be on the libcurl4 >=7.16,2 |
Gotta love typos
|
Heh, gotta love typos. Fixed! |
|
Fixed / updated formatting (only). This piece of code came from the upstream OBS plugin-template, we can modify but need to notice to keep maintaining it. Couple things to look at:
Linked Issue : #1299 (comment) Edit : found the correcponding issue. |
|
In progress : Investigating why the formatting is not behaving correctly. |
|
Formatting issue solved. THis has been updated in the wiki too. |
|
@eeickmeyer If you want to test, the artifact in the last action build should be good to test. @RayneYoruka Can you cross-check please? This will make it to the next upcoming release. |
|
I'm seeing a .zip artifact but not a .deb artifact? Am I missing something? |
|
Correct, we are checking how this could be generated via the exact same process as the (automated) release process. Will update here when figured out. |
|
Waiting for some of the feedba on the the ongoing testing by @RayneYoruka @eeickmeyer. Launchpad PPA (Work in progress) - thanks @eeickmeyer for the support on this! Testing results waiting to be confirmed, installation via .deb works great on :
TBC :
|
|
I would consider the Launchpad PPA ready-to-go at this point. I couldn't use github as the source since it didn't include the submodules when cloned to Launchpad, and, afaik, there's no way to do that. Therefore, it uses the packaging branch. Also, the URL is https://launchpad.net/~distroav/+archive/ubuntu/distroav, and adding it to an Ubuntu system is as easy as Honestly, the PPA makes this PR moot from the perspective of Ubuntu installation, but that's up to you, @Trouffman . |
Previous versions of Debian will most likely have the same behaviour due to the old version of obs in their repos. |
@RayneYoruka Try this one: https://launchpad.net/~distroav/+archive/ubuntu/distroav/+build/31487611/+files/distroav_6.1.1-0~202511132238~ubuntu25.10.1_amd64.deb Ubuntu 25.10 is loosely based on Trixie (since everything in unstable was forked from it), so it should work. |
Do we have obs 32 packages as well? |
@RayneYoruka Yes. https://launchpad.net/~distroav/+archive/ubuntu/obs/+packages Mostly as a dependency build, but for testing reasons you can add it. |
Those packages did the trick but with the testing deb of "DistroAV 6.1.2-beta1 Linux Deb only" The previous deb would report libqtcore version not met. ( https://launchpad.net/~distroav/+archive/ubuntu/distroav/+build/31487611/+files/distroav_6.1.1-0~202511132238~ubuntu25.10.1_amd64.deb) |
Oh perfect! @Trouffman Looks like we might be good to go! Bear in mind, the PPA is really only for Ubuntu so users can keep the DistroAV package updated that way. This PR apparently provides for Debian. @RayneYoruka I guess the 25.04 version might do the trick for Debian 13? |
I should test that now |
|
Obs 25.04 packages do work on Debian 13 yet the same error occurs with https://launchpad.net/~distroav/+archive/ubuntu/distroav/+build/31487611/+files/distroav_6.1.1-0~202511132238~ubuntu25.10.1_amd64.deb . libqtcore64 dependency unmet; 6.9, system comes with 6.8. |
Ok, then it looks like Debian users can use the package produced from the build process here in github, and Ubuntu users can use the PPA. |
|
There has been some bump of the OBS-Deps being used via #1406 @eeickmeyer can you check if that would solve the challenge you were experiencing (and solve with this PR). |
|
Yep, it should work. The beauty about the PPA builds, for instance, is that they will always keep up-to-date based on which OBS version they're building against. While that's not the case here, building in a PPA is super easy with the recipe. |
|
Okay thanks for the context! Then do we still need this PR or the bump of the obs-dep in the buildspec.json solve this already? |
|
Unfortunately, this would make it all static as opposed to simply depending on shlibs, so it's probably not the best idea. Instead, it should probably do something like: That should do it better. |
Trouffman
left a comment
There was a problem hiding this comment.
Let's keep the default one and add additional requirement with proposed code
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "${shlibs:Depends}, libqt6core6t64 (>= 6.4.0) | libqt6core6 (>= 6.4.0), libqt6gui6t64 (>= 6.4.0) | libqt6gui6 (>= 6.4.0), libqt6widgets6t64 (>= 6.4.0) | libqt6widgets6 (>= 6.4.0), obs-studio"
)
Minimum QT6 version should be 6.4.0 to align with OBS strategy : obsproject/obs-studio#11170
|
I can see as well that building on the Packages deps might be a problem with the obs-studio package, has it seems to not be the minimum required version we need either. Debian : https://packages.debian.org/search?keywords=obs-studio The more I look at it the more the "obs-deps" (static) seems to address that kidn of mis-match versionining. Am I going in a wrong direction here ? |
Yes. I'm not interested in Debian at the moment. DistroAV is only in Ubuntu. Here's where things look right now: https://launchpad.net/ubuntu/+source/obs-studio Waiting for autopkgtests and other transitions to finish before starting No-Change Rebuilds of dependent packages. |
|
with distroav-6.1.2-beta1-x86_64-linux-gnu.deb it installs fine on debian trixie, no dependency problems. but failing to launch: "obs: symbol lookup error: /usr/lib/x86_64-linux-gnu/obs-plugins/distroav.so: undefined symbol: obs_frontend_get_user_config" |
Please confirm which version of oba you have. That might be the challenge . |
|
its debian trixie default obs-studio 30.2.3+dfsg-3 |
Indeed, this is the reason for it... I guess this happens when it's build with the CPACK instead of the obs-deps. |

Disable shared library dependencies and set package dependencies for Debian.
This will allow the package to be installed on Debian Trixie as well as versions of Ubuntu later than 24.04, such as the currently supported 25.04 and 25.10, as well as the upcoming 26.04, while still being compatible with 24.04.
This list of dependencies was derived from the already-existing .deb file.