package/libgphoto2: fix build with gcc >= 14
PATCH 1/3 package/libgphoto2: fix build with gcc >= 14
The commit adds a backported upstream patch to fix the following build failure:
ptp2/ptp-pack.c:3168:31: note: earlier argument should specify number of elements, later size of each element ptp2/chdk.c: In function 'yuv_live_to_jpeg':ptp2/chdk.c:1203:41: error: passing argument 3 of 'jpeg_mem_dest' from incompatible pointer type [-Wincompatible-pointer-types]
1203 | jpeg_mem_dest (&cinfo, &outbuf, &outlen);
| ^~~~~~~
| |
| uint64_t * {aka long long unsigned int *}In file included from ptp2/chdk.c:31:/home/autobuild/autobuild/instance-0/output-1/per-package/libgphoto2/host/armeb-buildroot-linux-gnueabi/sysroot/usr/include/jpeglib.h:989:43: note: expected 'long unsigned int *' but argument is of type 'uint64_t *' {aka 'long long unsigned int *'}
989 | unsigned long *outsize);
Fixes:
- https://autobuild.buildroot.org/results/db742e301a401c9f4bdf3c7e8cfde9f0ba1c4558
--- ...gth-with-jpeg-jeaders.-fixes-https-g.patch | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 package/libgphoto2/0001-align-outlen-length-with-jpeg-jeaders.-fixes-https-g.patch
package/libgphoto2/0001-align-outlen-length-with-jpeg-jeaders.-fixes-https-g.patch new file +39 -0
@@ -0,0 +1,39 @@ +From 721f7f8c3ec8058d504607873e4c317aac0c99c5 Mon Sep 17 00:00:00 2001 +From: Marcus Meissner <[email protected]> +Date: Mon, 4 Dec 2023 13:26:08 +0100 +Subject: [PATCH] align outlen length with jpeg jeaders. fixes + https://github.com/gphoto/libgphoto2/issues/941 + +Signed-off-by: Dario Binacchi <[email protected]> +Upstream: https://github.com/gphoto/libgphoto2/commit/721f7f8c3ec8058d504607873e4c317aac0c99c5 +--- + camlibs/ptp2/chdk.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/camlibs/ptp2/chdk.c b/camlibs/ptp2/chdk.c +index e1d898f37811..e775ea1d4bbb 100644 +--- a/camlibs/ptp2/chdk.c ++++ b/camlibs/ptp2/chdk.c +@@ -1150,7 +1150,7 @@ static void yuv_live_to_jpeg(unsigned char *p_yuv, + struct jpeg_error_mgr jerr; + JSAMPROW row_ptr[1]; + uint8_t *outbuf = NULL, *tmprowbuf = NULL; +- uint64_t outlen = 0; ++ unsigned long outlen = 0; + unsigned int row_inc; + int sshift, dshift, xshift, skip; + +@@ -1161,8 +1161,8 @@ static void yuv_live_to_jpeg(unsigned char *p_yuv, + sshift = 6; + dshift = (width/height > 2) ? 6 : 12; + xshift = 4; +- /* Digic 6 cameras: 8 bit per element UYVY, +- * 4 bytes used to encode 2 pixels, need 6 bytes raw YUV data for jpeg encoding */ ++ /* Digic 6 cameras: 8 bit per element UYVY, ++ * 4 bytes used to encode 2 pixels, need 6 bytes raw YUV data for jpeg encoding */ + } else { + row_inc = buf_width*2; + sshift = 4; +-- +2.43.0 +
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/3 package/libgphoto2: bump to version 2.5.33
The removed patch has been merged in version 2.5.32.
Update file hash due to conversion the ISO-8859 text to UTF-8:
https://github.com/gphoto/libgphoto2/commit/6fdc5f8f370b2716e7342f994c19b9c7ae37a0f6
Release notes:
https://github.com/gphoto/libgphoto2/releases
--- ...gth-with-jpeg-jeaders.-fixes-https-g.patch | 39 ------------------- package/libgphoto2/libgphoto2.hash | 4 +- package/libgphoto2/libgphoto2.mk | 2 +- 3 files changed, 3 insertions(+), 42 deletions(-) delete mode 100644 package/libgphoto2/0001-align-outlen-length-with-jpeg-jeaders.-fixes-https-g.patch
package/libgphoto2/0001-align-outlen-length-with-jpeg-jeaders.-fixes-https-g.patch deleted +0 -39
@@ -1,39 +0,0 @@ -From 721f7f8c3ec8058d504607873e4c317aac0c99c5 Mon Sep 17 00:00:00 2001 -From: Marcus Meissner <[email protected]> -Date: Mon, 4 Dec 2023 13:26:08 +0100 -Subject: [PATCH] align outlen length with jpeg jeaders. fixes - https://github.com/gphoto/libgphoto2/issues/941 - -Signed-off-by: Dario Binacchi <[email protected]> -Upstream: https://github.com/gphoto/libgphoto2/commit/721f7f8c3ec8058d504607873e4c317aac0c99c5 ---- - camlibs/ptp2/chdk.c | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/camlibs/ptp2/chdk.c b/camlibs/ptp2/chdk.c -index e1d898f37811..e775ea1d4bbb 100644 ---- a/camlibs/ptp2/chdk.c -+++ b/camlibs/ptp2/chdk.c -@@ -1150,7 +1150,7 @@ static void yuv_live_to_jpeg(unsigned char *p_yuv, - struct jpeg_error_mgr jerr; - JSAMPROW row_ptr[1]; - uint8_t *outbuf = NULL, *tmprowbuf = NULL; -- uint64_t outlen = 0; -+ unsigned long outlen = 0; - unsigned int row_inc; - int sshift, dshift, xshift, skip; - -@@ -1161,8 +1161,8 @@ static void yuv_live_to_jpeg(unsigned char *p_yuv, - sshift = 6; - dshift = (width/height > 2) ? 6 : 12; - xshift = 4; -- /* Digic 6 cameras: 8 bit per element UYVY, -- * 4 bytes used to encode 2 pixels, need 6 bytes raw YUV data for jpeg encoding */ -+ /* Digic 6 cameras: 8 bit per element UYVY, -+ * 4 bytes used to encode 2 pixels, need 6 bytes raw YUV data for jpeg encoding */ - } else { - row_inc = buf_width*2; - sshift = 4; --- -2.43.0 -
package/libgphoto2/libgphoto2.hash +2 -2
@@ -1,3 +1,3 @@ # Locally calculated hash -sha256 a7253bd18c6ef65352150ac36a668f883a5ad2634eb6455b3ca9aa6ac98d0073 libgphoto2-2.5.27.tar.xz -sha256 ebc385a0b1d477be5177ed6d9129557aa59a3ad0f26ebe7dd97ee942a0fb68ee COPYING +sha256 28825f767a85544cb58f6e15028f8e53a5bb37a62148b3f1708b524781c3bef2 libgphoto2-2.5.33.tar.xz +sha256 530128f45fc02d92d4dae04d9c1e1f28a078a9b0d32c0ab254c406ba8fba43ec COPYING
package/libgphoto2/libgphoto2.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -LIBGPHOTO2_VERSION = 2.5.27 +LIBGPHOTO2_VERSION = 2.5.33 LIBGPHOTO2_SOURCE = libgphoto2-$(LIBGPHOTO2_VERSION).tar.xz LIBGPHOTO2_SITE = https://github.com/gphoto/libgphoto2/releases/download/v$(LIBGPHOTO2_VERSION) LIBGPHOTO2_LICENSE = LGPL-2.1+, GPL-2.0 (adc65), GPL-2.0+ (some camlibs), \
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 3/3 DEVELOPERS: add Dario Binacchi for libgphoto2
In reply to Dario Binacchi--- DEVELOPERS | 1 + 1 file changed, 1 insertion(+)
DEVELOPERS +1 -0
@@ -812,6 +812,7 @@ F: package/empty/ F: package/iana-assignments/ F: package/inih/ F: package/less/ +F: package/libgphoto2/ F: package/pocketpy/ F: package/sscep/ F: package/tinyinit/
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Perale via buildroot
AppliedRe: [Buildroot] [PATCH 3/3] DEVELOPERS: add Dario Binacchi for libgphoto2
In reply of:
Quoted 1 line
Signed-off-by Dario Binacchi <[email protected]>
Applied to 2025.02.x & 2025.08.x. Thanks
Quoted 23 lines
--- DEVELOPERS | 1 + 1 file changed, 1 insertion(+)DEVELOPERS +1
-0@@ -812,6 +812,7 @@ F: package/empty/ F: package/iana-assignments/ F: package/inih/ F: package/less/ +F: package/libgphoto2/ F: package/pocketpy/ F: package/sscep/ F: package/tinyinit/Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 15 lines · Dario Binacchi
The commit adds a backported upstream patch to fix the following build failure:
ptp2/ptp-pack.c:3168:31: note: earlier argument should specify number of elements, later size of each elementptp2/chdk.c: In function 'yuv_live_to_jpeg':ptp2/chdk.c:1203:41: error: passing argument 3 of 'jpeg_mem_dest' from incompatible pointer type [-Wincompatible-pointer-types]1203 | jpeg_mem_dest (&cinfo, &outbuf, &outlen); | ^~~~~~~ | | | uint64_t * {aka longlong unsigned int *}
In file included fromptp2/chdk.c:31:/home/autobuild/autobuild/instance-0/output-1/per-package/libgphoto2/host/armeb-buildroot-linux-gnueabi/sysroot/usr/include/jpeglib.h:989:43: note: expected 'long unsigned int *' but argument is of type 'uint64_t*' {aka 'long long unsigned int *'}
989 | unsigned long *outsize);
Quoted 5 lines
Fixes:
-
https://autobuild.buildroot.org/results/db742e301a401c9f4bdf3c7e8cfde9f0ba1c4558Signed-off-by Dario Binacchi <[email protected]>
Series applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Perale via buildroot
AppliedIn reply of:
Quoted 10 lines
The commit adds a backported upstream patch to fix the following build failure:
ptp2/ptp-pack.c:3168:31: note: earlier argument should specify number of elements, later size of each elementptp2/chdk.c: In function 'yuv_live_to_jpeg':ptp2/chdk.c:1203:41: error: passing argument 3 of 'jpeg_mem_dest' from incompatible pointer type [-Wincompatible-pointer-types]1203 | jpeg_mem_dest (&cinfo, &outbuf, &outlen); | ^~~~~~~ | | | uint64_t * {aka long long unsigned int *}
Quoted 8 lines
In file included from
ptp2/chdk.c:31:/home/autobuild/autobuild/instance-0/output-1/per-package/libgphoto2/host/armeb-buildroot-linux-gnueabi/sysroot/usr/include/jpeglib.h:989:43: note: expected 'long unsigned int *' but argument is of type 'uint64_t*' {aka 'long long unsigned int *'}
989 | unsigned long *outsize);Fixes:
- https://autobuild.buildroot.org/results/db742e301a401c9f4bdf3c7e8cfde9f0ba1c4558Signed-off-by Dario Binacchi <[email protected]>
Applied to 2025.02.x & 2025.08.x. Thanks
Quoted 57 lines
--- ...gth-with-jpeg-jeaders.-fixes-https-g.patch | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 package/libgphoto2/0001-align-outlen-length-with-jpeg-jeaders.-fixes-https-g.patchpackage/libgphoto2/0001-align-outlen-length-with-jpeg-jeaders.-fixes-https-g.patch new file +39
-0@@ -0,0 +1,39 @@ +From 721f7f8c3ec8058d504607873e4c317aac0c99c5 Mon Sep 17 00:00:00 2001 +From: Marcus Meissner <[email protected]> +Date: Mon, 4 Dec 2023 13:26:08 +0100 +Subject: [PATCH] align outlen length with jpeg jeaders. fixes + https://github.com/gphoto/libgphoto2/issues/941 + +Signed-off-by: Dario Binacchi <[email protected]> +Upstream: https://github.com/gphoto/libgphoto2/commit/721f7f8c3ec8058d504607873e4c317aac0c99c5 +--- + camlibs/ptp2/chdk.c | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/camlibs/ptp2/chdk.c b/camlibs/ptp2/chdk.c +index e1d898f37811..e775ea1d4bbb 100644 +--- a/camlibs/ptp2/chdk.c ++++ b/camlibs/ptp2/chdk.c +@@ -1150,7 +1150,7 @@ static void yuv_live_to_jpeg(unsigned char *p_yuv, + struct jpeg_error_mgr jerr; + JSAMPROW row_ptr[1]; + uint8_t *outbuf = NULL, *tmprowbuf = NULL; +- uint64_t outlen = 0; ++ unsigned long outlen = 0; + unsigned int row_inc; + int sshift, dshift, xshift, skip; + +@@ -1161,8 +1161,8 @@ static void yuv_live_to_jpeg(unsigned char *p_yuv, + sshift = 6; + dshift = (width/height > 2) ? 6 : 12; + xshift = 4; +- /* Digic 6 cameras: 8 bit per element UYVY, +- * 4 bytes used to encode 2 pixels, need 6 bytes raw YUV data for jpeg encoding */ ++ /* Digic 6 cameras: 8 bit per element UYVY, ++ * 4 bytes used to encode 2 pixels, need 6 bytes raw YUV data for jpeg encoding */ + } else { + row_inc = buf_width*2; + sshift = 4; +-- +2.43.0 +Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot