Bug#1051931: obs-studio: Please use whitelist for libluajit-5.1-dev build dependency
Source: obs-studio
Version: 29.1.3+dfsg-2
Severity: normal
User: debian-powerpc@lists.debian.org
Usertags: powerpc ppc64
X-Debbugs-Cc: debian-powerpc@lists.debian.org
Hello!
src:obs-studio currently only blacklists ppc64el in debian/control in its
build dependencies [1] while luajit is missing on many architectures [2].
Thus, it would make sense to use a whitelist for the libluajit-5.1-dev
build dependency in debian/control and also adjust debian/rules accordingly:
diff -Nru old/obs-studio-29.1.3+dfsg/debian/control new/obs-studio-29.1.3+dfsg/debian/control
--- old/obs-studio-29.1.3+dfsg/debian/control 2023-08-02 13:39:19.000000000 +0200
+++ new/obs-studio-29.1.3+dfsg/debian/control 2023-09-14 14:02:58.869380395 +0200
@@ -27,7 +27,7 @@
libfreetype-dev,
libjack-jackd2-dev,
libjansson-dev,
- libluajit-5.1-dev [!ppc64el],
+ libluajit-5.1-dev [amd64 arm64 armel armhf hurd-i386 i386 mips64el s390x],
libmbedtls-dev,
libopengl-dev,
libpci-dev,
diff -Nru old/obs-studio-29.1.3+dfsg/debian/rules new/obs-studio-29.1.3+dfsg/debian/rules
--- old/obs-studio-29.1.3+dfsg/debian/rules 2023-08-02 13:39:19.000000000 +0200
+++ new/obs-studio-29.1.3+dfsg/debian/rules 2023-09-14 14:02:41.005436844 +0200
@@ -18,7 +18,7 @@
confflags += -DOBS_VERSION_OVERRIDE=$(subst +dfsg,.1,$(DEB_VERSION))
confflags += -DAPPDATA_RELEASE_DATE=$(shell date --utc --date=@$${SOURCE_DATE_EPOCH} +'%Y-%m-%d')
-ifeq (ppc64el,$(DEB_HOST_ARCH))
+ifeq (,$(filter amd64 arm64 armel armhf hurd-i386 i386 mips64el s390x, $(DEB_HOST_ARCH)))
confflags += -DENABLE_SCRIPTING_LUA=OFF
endif
I have attached the patch as a file as well.
Thanks,
Adrian
> [1] https://salsa.debian.org/multimedia-team/obs-studio/-/blob/master/debian/control#L30
> [2] https://buildd.debian.org/status/package.php?p=luajit&suite=sid
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
diff -Nru old/obs-studio-29.1.3+dfsg/debian/control new/obs-studio-29.1.3+dfsg/debian/control
--- old/obs-studio-29.1.3+dfsg/debian/control 2023-08-02 13:39:19.000000000 +0200
+++ new/obs-studio-29.1.3+dfsg/debian/control 2023-09-14 14:02:58.869380395 +0200
@@ -27,7 +27,7 @@
libfreetype-dev,
libjack-jackd2-dev,
libjansson-dev,
- libluajit-5.1-dev [!ppc64el],
+ libluajit-5.1-dev [amd64 arm64 armel armhf hurd-i386 i386 mips64el s390x],
libmbedtls-dev,
libopengl-dev,
libpci-dev,
diff -Nru old/obs-studio-29.1.3+dfsg/debian/rules new/obs-studio-29.1.3+dfsg/debian/rules
--- old/obs-studio-29.1.3+dfsg/debian/rules 2023-08-02 13:39:19.000000000 +0200
+++ new/obs-studio-29.1.3+dfsg/debian/rules 2023-09-14 14:02:41.005436844 +0200
@@ -18,7 +18,7 @@
confflags += -DOBS_VERSION_OVERRIDE=$(subst +dfsg,.1,$(DEB_VERSION))
confflags += -DAPPDATA_RELEASE_DATE=$(shell date --utc --date=@$${SOURCE_DATE_EPOCH} +'%Y-%m-%d')
-ifeq (ppc64el,$(DEB_HOST_ARCH))
+ifeq (,$(filter amd64 arm64 armel armhf hurd-i386 i386 mips64el s390x, $(DEB_HOST_ARCH)))
confflags += -DENABLE_SCRIPTING_LUA=OFF
endif
Reply to: