[Pkg-phototools-devel] Bug#962363: openjpeg2: Static library missing in openjpeg2 dev package

Tom Hughes tomtheengineer at gmail.com
Sat Jun 6 19:42:54 BST 2020


Package: openjpeg2
Version: 2.3.0-2
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu groovy ubuntu-patch

Dear Maintainer,

The openjpeg2 dev package is missing the static library.

In Ubuntu, the attached patch was applied to achieve the following:

  * Add static library to libopenjp2-7-dev (Closes: #1794194). 

Thanks for considering the patch.


-- System Information:
Debian Release: buster/sid
  APT prefers bionic-updates
  APT policy: (500, 'bionic-updates'), (500, 'bionic-security'), (500, 'bionic'), (100, 'bionic-backports')
Architecture: amd64 (x86_64)

Kernel: Linux 4.15.0-99-generic (SMP w/8 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-------------- next part --------------
diff -Nru openjpeg2-2.3.0/debian/rules openjpeg2-2.3.0/debian/rules
--- openjpeg2-2.3.0/debian/rules	2017-10-15 22:43:41.000000000 -0700
+++ openjpeg2-2.3.0/debian/rules	2020-06-06 11:06:16.000000000 -0700
@@ -20,6 +20,7 @@
   -DBUILD_MJ2:BOOL=OFF \
   -DBUILD_JP3D:BOOL=ON \
   -DBUILD_SHARED_LIBS:BOOL=ON \
+  -DBUILD_STATIC_LIBS:BOOL=ON \
   -DBUILD_TESTING:BOOL=OFF \
   -DBUILD_DOC:BOOL=ON \
   -DBUILD_THIRDPARTY:BOOL=OFF
@@ -47,6 +48,7 @@
 	# lib
 	dh_install -p$(pkg_lib) --autodest usr/lib/$(DEB_HOST_MULTIARCH)/libopenjp2.so.*
 	# dev:
+	dh_install -p$(pkg_dev) --autodest usr/lib/$(DEB_HOST_MULTIARCH)/libopenjp2.a
 	dh_install -p$(pkg_dev) --autodest usr/lib/$(DEB_HOST_MULTIARCH)/libopenjp2.so
 	dh_install -p$(pkg_dev) --autodest usr/lib/$(DEB_HOST_MULTIARCH)/openjpeg-2.3/*.cmake
 	dh_install -p$(pkg_dev) --autodest usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/*.pc


More information about the Pkg-phototools-devel mailing list