package/weston: do not select JPEG, no longer needed
PATCH 1/2 package/weston: do not select JPEG, no longer needed
Since upstream commit 66e1614122c22d455cc3a28db08b3afac2b7be29, which first appeared in version 1.11.0, back in 2016, jpeg is no longer a mandatory dependency. And in fact, Buildroot no longer has it unconditionally in WESTON_DEPENDENCIES since commit f67a6e9b7a7be9adbc405b3126000056120a01af, but BR2_PACKAGE_WESTON is still selecting in.
A build without libjpeg works just fine, so let's drop this select.
--- package/weston/Config.in | 1 - 1 file changed, 1 deletion(-)
package/weston/Config.in +0 -1
@@ -15,7 +15,6 @@ config BR2_PACKAGE_WESTON select BR2_PACKAGE_CAIRO select BR2_PACKAGE_CAIRO_PNG select BR2_PACKAGE_LIBPNG - select BR2_PACKAGE_JPEG select BR2_PACKAGE_LIBINPUT select BR2_PACKAGE_LIBDISPLAY_INFO select BR2_PACKAGE_LIBDRM
Signature · 6 lines
2.50.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 package/weston: jpeg support needs jpeg-turbo
Since upstream commit 312efb2acba7dba80b6652ccf98339dcbbd47695, the JPEG loading code is using jpeg_read_icc_profile(), which is only available when the jpeg-turbo implementation is used, not the classic libjpeg. When classic jpeg is used, the build fails with:
../shared/image-loader.c:163:14: error: implicit declaration of function 'jpeg_read_icc_profile' [-Wimplicit-function-declaration]
163 | if (!jpeg_read_icc_profile(cinfo, &profdata, &proflen)) {
This commit first appeared in development version 13.0.91 and stable version 14.0.0, which means the problem exists in Buildroot since commit 430b80cfc11c59949da8e0a4f11a7088d0b4bd79, when weston was bumped from 13.0.3 to 14.0.0.
So let's enable the JPEG logic only when jpeg-turbo is used.
Fixes:
https://autobuild.buildroot.org/results/353e39902616bdbce40ac667e98cbaf51079f69e/
--- package/weston/weston.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
package/weston/weston.mk +2 -1
@@ -36,7 +36,8 @@ WESTON_SIMPLE_CLIENTS += dmabuf-v4l endif endif # BR2_PACKAGE_WESTON_SIMPLE_CLIENTS -ifeq ($(BR2_PACKAGE_JPEG),y) +# weston uses jpeg_read_icc_profile(), only provided by jpeg-turbo +ifeq ($(BR2_PACKAGE_JPEG_TURBO),y) WESTON_CONF_OPTS += -Dimage-jpeg=true WESTON_DEPENDENCIES += jpeg else
Signature · 6 lines
2.50.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 10 lines · Thomas Petazzoni via buildroot
Since upstream commit
66e1614122c22d455cc3a28db08b3afac2b7be29, which first appeared in version 1.11.0, back in 2016, jpeg is no longer a mandatory dependency. And in fact, Buildroot no longer has it unconditionally inWESTON_DEPENDENCIESsince commitf67a6e9b7a7be9adbc405b3126000056120a01af, butBR2_PACKAGE_WESTONis still selecting in.A build without libjpeg works just fine, so let's drop this select.
Signed-off-by Thomas Petazzoni <[email protected]>
Series applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot