summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-graphics/gphoto2/gphoto2/0001-Match-prototypes-of-callbacks-with-libgphoto.patch2
-rw-r--r--meta-oe/recipes-graphics/gphoto2/gphoto2/0001-configure-Filter-out-buildpaths-from-CC.patch26
-rw-r--r--meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb7
3 files changed, 29 insertions, 6 deletions
diff --git a/meta-oe/recipes-graphics/gphoto2/gphoto2/0001-Match-prototypes-of-callbacks-with-libgphoto.patch b/meta-oe/recipes-graphics/gphoto2/gphoto2/0001-Match-prototypes-of-callbacks-with-libgphoto.patch
index abe38e12ce..e0c3de469a 100644
--- a/meta-oe/recipes-graphics/gphoto2/gphoto2/0001-Match-prototypes-of-callbacks-with-libgphoto.patch
+++ b/meta-oe/recipes-graphics/gphoto2/gphoto2/0001-Match-prototypes-of-callbacks-with-libgphoto.patch
@@ -8,7 +8,7 @@ we tried to fix by using pthread_t but it also needs to make changes in
8libgphoto and these changes can be invasive, therefore lets revert to 8libgphoto and these changes can be invasive, therefore lets revert to
9older types and to fix musl problem fix it via type casts 9older types and to fix musl problem fix it via type casts
10 10
11Upstream-Status: Submitted [https://github.com/gphoto/gphoto2/pull/569] 11Upstream-Status: Backport [https://github.com/gphoto/gphoto2/pull/569]
12Signed-off-by: Khem Raj <raj.khem@gmail.com> 12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13--- 13---
14 gphoto2/main.c | 8 ++++---- 14 gphoto2/main.c | 8 ++++----
diff --git a/meta-oe/recipes-graphics/gphoto2/gphoto2/0001-configure-Filter-out-buildpaths-from-CC.patch b/meta-oe/recipes-graphics/gphoto2/gphoto2/0001-configure-Filter-out-buildpaths-from-CC.patch
new file mode 100644
index 0000000000..3d54d58e18
--- /dev/null
+++ b/meta-oe/recipes-graphics/gphoto2/gphoto2/0001-configure-Filter-out-buildpaths-from-CC.patch
@@ -0,0 +1,26 @@
1From 06be633b8f4e2241bd37d4faf62b49606ad778e7 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 25 May 2023 19:01:36 -0700
4Subject: [PATCH] configure: Filter out buildpaths from CC
5
6Upstream-Status: Inappropriate [Cross-compile specific]
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 configure.ac | 4 +++-
11 libgphoto2_port/configure.ac | 6 ++++--
12 2 files changed, 7 insertions(+), 3 deletions(-)
13
14--- a/configure.ac
15+++ b/configure.ac
16@@ -26,7 +26,9 @@ AC_PROG_INSTALL
17 AC_SYS_LARGEFILE
18
19 GP_CONFIG_MSG([Compiler],[${CC}])
20-AC_DEFINE_UNQUOTED([HAVE_CC],"$CC",[The C compiler we're using])
21+CC_NO_SYSROOT=`echo $CC | sed -e \
22+ 's|--sysroot=.*\b||g'`
23+AC_DEFINE_UNQUOTED([HAVE_CC], ["$CC_NO_SYSROOT"], [The C compiler we're using])
24
25 dnl AC_STRUCT_TIMEZONE
26
diff --git a/meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb b/meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb
index 63993bfbeb..40409ed388 100644
--- a/meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb
+++ b/meta-oe/recipes-graphics/gphoto2/gphoto2_2.5.28.bb
@@ -6,10 +6,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
6DEPENDS = "libgphoto2 popt readline" 6DEPENDS = "libgphoto2 popt readline"
7RDEPENDS:gphoto2 = "libgphoto2" 7RDEPENDS:gphoto2 = "libgphoto2"
8 8
9SRC_URI = "${SOURCEFORGE_MIRROR}/gphoto/gphoto2-${PV}.tar.bz2;name=gphoto2 \ 9SRC_URI = "${SOURCEFORGE_MIRROR}/gphoto/${BP}.tar.bz2;name=gphoto2 \
10 file://0001-configure.ac-remove-AM_PO_SUBDIRS.patch \ 10 file://0001-configure.ac-remove-AM_PO_SUBDIRS.patch \
11 file://0001-gphoto2-Use-pthread_t-abstract-type-for-thead-IDs.patch \ 11 file://0001-gphoto2-Use-pthread_t-abstract-type-for-thead-IDs.patch \
12 file://0001-Match-prototypes-of-callbacks-with-libgphoto.patch \ 12 file://0001-Match-prototypes-of-callbacks-with-libgphoto.patch \
13 file://0001-configure-Filter-out-buildpaths-from-CC.patch \
13" 14"
14SRC_URI[gphoto2.sha256sum] = "2a648dcdf12da19e208255df4ebed3e7d2a02f905be4165f2443c984cf887375" 15SRC_URI[gphoto2.sha256sum] = "2a648dcdf12da19e208255df4ebed3e7d2a02f905be4165f2443c984cf887375"
15 16
@@ -18,7 +19,3 @@ inherit autotools pkgconfig gettext
18EXTRA_OECONF += "--with-jpeg-prefix=${STAGING_INCDIR} \ 19EXTRA_OECONF += "--with-jpeg-prefix=${STAGING_INCDIR} \
19 --without-cdk \ 20 --without-cdk \
20" 21"
21
22do_compile:prepend() {
23 sed -i -e 's/--sysroot=[^ "]*//g' ${B}/config.h
24}