Use system openjpeg2 library
Upstream added the ability to use the system openjpeg2 library instead of an embedded version, but it is disabled by default.
This commit includes a patch to edit the pdfium.gni file to enable the desired option. I must admit that I am not very familiar with the .gni architecture, so someone might know of a way to use a build flag to achieve the same results without the need for a patch.
Merge request reports
Activity
- Resolved by Soren Stoutner
so someone might know of a way to use a build flag to achieve the same results without the need for a patch
I see that src/core/config/linux.pri has lines like these:
qtConfig(webengine-system-libevent): gn_args += use_system_libevent=true qtConfig(webengine-system-libwebp): gn_args += use_system_libwebp=true qtConfig(webengine-system-libxml2): gn_args += use_system_libxml=true use_system_libxslt=true qtConfig(webengine-system-libvpx): gn_args += use_system_libvpx=true
But it doesn't have such a line for openjpeg, unfortunately. So a patch is currently unavoidable. Although, if you decide to patch
linux.pri
, that patch will be forwardable upstream.- Resolved by Soren Stoutner
Let me try a build rebasing the patch on
linux.pri
.
added 1 commit
- fca3ee40 - Rebase openjpeg2 patch to support upstreaming.
added 1 commit
- c39647c8 - Force a build failure if openjpeg2 development libraries are missing.
added 1 commit
- 23283dbc - Force a build failure if openjpeg2 development libraries are missing.
- Resolved by Soren Stoutner
Thank you very much! I fixed indentation in the last commit and merged.
If you have some spare cycles, can you check how hard it is to implement your proposal from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1020387#300?
If it's not difficult, I think it makes sense to do it.
Adding the arg to debian/rules to prevent building if there is a problem is a good idea. I am doing a test build now to make sure I haven't introduced any typos (which I did with the first version of my last commit) and will commit it once it finishes without errors.
I would like to submit it upstream myself. I don't have a problem signing a CLA, and I would like to establish a relationship with upstream.
mentioned in merge request qt-kde-team/qt6/qt6-webengine!5 (merged)