Bug 1130404 - Considering removal of libjasper in openSUSE
Considering removal of libjasper in openSUSE
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other
Other Other
: P5 - None : Normal (vote)
: ---
Assigned To: Michael Vetter
E-mail List
Depends on: 1130407 1133110 1142308 1144232 1144240 1144244 1144245 1144246 1144249 1144252 1144253 1144255 1144260 1144344 1146555 1158895 1158897
  Show dependency treegraph
Reported: 2019-03-25 14:49 UTC by Michael Vetter
Modified: 2022-01-12 14:45 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Michael Vetter 2019-03-25 14:49:12 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/
Comment 1 Michael Vetter 2019-03-25 15:06:10 UTC
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.
Comment 2 Michael Vetter 2019-03-29 09:22:18 UTC
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
Comment 3 Michael Vetter 2019-07-03 10:35:48 UTC
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.
Comment 4 Stefan Brüns 2019-08-05 15:31:22 UTC
Can you also list packages with pkgconfig(jasper)?
Comment 5 Michael Vetter 2019-08-07 09:14:04 UTC
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)

telegram-desktop/telegram-desktop.spec:Requires:       jasper

I'll create SRs or bugs for them.
Comment 6 Michael Vetter 2019-08-23 07:28:24 UTC
As a result of my upstream post:

NetBSD started to force OpenJPEG over jasper if possible.
Gentoo dropped jasper.
Alpine Linux dropped jasper.
Comment 7 Michael Vetter 2019-11-29 11:12:05 UTC
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
Comment 8 Michael Vetter 2019-11-29 11:14:16 UTC
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.
Comment 9 Michael Vetter 2020-01-31 14:42:27 UTC
SR#767987 that removes Jasper in OpenCV got accepted.
SR#769072 to remove Jasper from Factory.
Comment 10 Michael Vetter 2020-03-04 11:42:14 UTC
SR#777346 for opencv3 was accepted.
And today SR#769072 (removal of jasper from Factory) was accepted too.

No more Jasper in Factory!