Bugzilla – Bug 1130404
Considering removal of libjasper in openSUSE
Last modified: 2022-01-12 14:45:17 UTC
Since JasPer upstream [1] is quite unreliable I think about removing libjasper from openSUSE repos. Debian removed libjasper with the release of Debian Stretch [2] in 2017. I try to motivate upstream to clean up its bugtracker and help fixing current issues and CVEs while I work on the fixes, I would like to minimize JasPer usage in openSUSE and use OpenJPEG [3] as a replacement when possible. OpenJPEG upstream seems more active and other distributions rely on it too. 1: https://github.com/mdadams/jasper 2: https://lists.debian.org/debian-release/2016/02/msg00734.html 3: http://www.openjpeg.org/
Probably biggest blocker for this will be OpenCVs dependency on JasPer, but still it will be good to check all the packages and see if they actually still require JasPer.
Currently the following packages need jasper: grep -r 'libjasper-devel' */*.spec | grep -v '^jasper' dcraw/dcraw.spec:BuildRequires: libjasper-devel digikam/digikam.spec:BuildRequires: libjasper-devel gdal/gdal.spec:# BuildRequires: libjasper-devel gimp/gimp.spec:BuildRequires: libjasper-devel GraphicsMagick/GraphicsMagick.spec:BuildRequires: libjasper-devel gstreamer-plugins-bad/gstreamer-plugins-bad.spec:BuildRequires: libjasper-devel gtk2/gtk2.spec:BuildRequires: libjasper-devel ImageMagick/ImageMagick.spec:BuildRequires: libjasper-devel kdelibs4/kdelibs4.spec:BuildRequires: libjasper-devel libdevil/libdevil.spec:BuildRequires: libjasper-devel libicns/libicns.spec:BuildRequires: libjasper-devel libqt5-qtimageformats/libqt5-qtimageformats.spec:BuildRequires: libjasper-devel libqt5-qtimageformats/libqt5-qtimageformats.spec:Requires: libjasper-devel libraw/libraw.spec:BuildRequires: libjasper-devel mtpaint/mtpaint.spec:BuildRequires: libjasper-devel netpbm/netpbm.spec:BuildRequires: libjasper-devel opencv/opencv.spec:BuildRequires: libjasper-devel
Summarizing state of jasper at https://github.com/mdadams/jasper/issues/208 in case it motivates upstream to do something differently or the community to take over. I'll continue to try to switch projects from jasper to openjpeg or just drop jpeg2000 support from openSUSE packages.
Can you also list packages with pkgconfig(jasper)?
Right! Good thinking! gegl/gegl.spec:BuildRequires: pkgconfig(jasper) >= 1.900.1 gegl-unstable/gegl-unstable.spec:BuildRequires: pkgconfig(jasper) >= 1.900.1 OpenSceneGraph34/OpenSceneGraph34.spec:BuildRequires: pkgconfig(jasper) OpenSceneGraph/OpenSceneGraph.spec:BuildRequires: pkgconfig(jasper) Also: telegram-desktop/telegram-desktop.spec:Requires: jasper I'll create SRs or bugs for them.
As a result of my upstream post: NetBSD started to force OpenJPEG over jasper if possible. Gentoo dropped jasper. Alpine Linux dropped jasper.
More result: KaOS [1] removed jasper too [2]. Building OpenCV without. NixOS changed all packages to use openjpeg when possible (like we did) and is starting to remove jasper too [3]. 1: https://kaosx.us 2: https://github.com/KaOSx/main/commit/1826f65ba2ff1d18e47f331c83bff843bf8055c6 3: https://github.com/NixOS/nixpkgs/pull/73586
In the meantime bsc#1144260 still blocks removal of jasper for us. Submit request https://build.opensuse.org/request/show/726173 which is open since 3 months is still ignored by OpenCV maintainer and got closed today by dstoecker. I reopened it and explained the situation again.
SR#767987 that removes Jasper in OpenCV got accepted. SR#769072 to remove Jasper from Factory.
SR#777346 for opencv3 was accepted. And today SR#769072 (removal of jasper from Factory) was accepted too. No more Jasper in Factory!