summaryrefslogtreecommitdiffhomepage
path: root/patches
diff options
context:
space:
mode:
authorØrjan Malde <red@foxi.me>2021-09-27 12:48:09 +0200
committerØrjan Malde <red@foxi.me>2021-09-27 12:48:09 +0200
commit21495cc7f655add9deb3bdea527df325f9651870 (patch)
treee2d9cdeb70913dff03be247a0dbdd8cb28b70eee /patches
parent24b4328cbfbed6f1ddbcceb998420e1394801965 (diff)
downloadmidipix_build-21495cc7f655add9deb3bdea527df325f9651870.tar.bz2
midipix_build-21495cc7f655add9deb3bdea527df325f9651870.tar.xz
groups/251.native_packages_lib.group: adds libexif v0.6.23
Signed-off-by: Ørjan Malde <red@foxi.me>
Diffstat (limited to 'patches')
-rw-r--r--patches/libexif-0.6.23.local.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/patches/libexif-0.6.23.local.patch b/patches/libexif-0.6.23.local.patch
new file mode 100644
index 00000000..d5949e03
--- /dev/null
+++ b/patches/libexif-0.6.23.local.patch
@@ -0,0 +1,36 @@
+From 0c925491dea995ca96770159158bb8d57a48d84b Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Wed, 15 Sep 2021 07:56:32 +0200
+Subject: [PATCH] libexif/exif-gps-ifd.c: fix build with gcc 4.8
+
+Fix the following build failure with gcc 4.8 raised since version 0.6.23 and
+https://github.com/libexif/libexif/commit/e12c3529813cd16d50bf0a1c759093e1039dffec:
+
+exif-gps-ifd.c: In function 'exif_get_gps_tag_info':
+exif-gps-ifd.c:62:3: error: 'for' loop initial declarations are only allowed in C99 mode
+ for (int i = 0; i < sizeof(exif_gps_ifd_tags) / sizeof(ExifGPSIfdTagInfo); ++i) {
+ ^
+exif-gps-ifd.c:62:3: note: use option -std=c99 or -std=gnu99 to compile your code
+
+Fixes:
+ - http://autobuild.buildroot.org/results/7dd222e06d1e6611449fb8fe7516817c9ad43d65
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ libexif/exif-gps-ifd.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/libexif/exif-gps-ifd.c b/libexif/exif-gps-ifd.c
+index 9c9ba70..de5f950 100644
+--- a/libexif/exif-gps-ifd.c
++++ b/libexif/exif-gps-ifd.c
+@@ -59,7 +59,8 @@ const static struct ExifGPSIfdTagInfo exif_gps_ifd_tags[] = {
+ };
+
+ const ExifGPSIfdTagInfo *exif_get_gps_tag_info(ExifTag tag) {
+- for (int i = 0; i < sizeof(exif_gps_ifd_tags) / sizeof(ExifGPSIfdTagInfo); ++i) {
++ int i;
++ for (i = 0; i < sizeof(exif_gps_ifd_tags) / sizeof(ExifGPSIfdTagInfo); ++i) {
+ if (tag==exif_gps_ifd_tags[i].tag)
+ return &exif_gps_ifd_tags[i];
+ }