summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2022-08-14 11:08:24 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2022-08-16 07:30:39 +0000
commit6664b01e0cbeacc1685892bf76ccbb9d7bfa9e60 (patch)
treea9a8f6204211e90e65218094001a3656b4cb04d0
parent6586ead30fc7750b6558dd91afcede13e18d3cd1 (diff)
giblib: fix build
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
-rw-r--r--recipes-graphics/scrot/files/0001-pkgconfig-don-t-include-ldflags.patch29
-rw-r--r--recipes-graphics/scrot/giblib_1.2.4.bb1
2 files changed, 30 insertions, 0 deletions
diff --git a/recipes-graphics/scrot/files/0001-pkgconfig-don-t-include-ldflags.patch b/recipes-graphics/scrot/files/0001-pkgconfig-don-t-include-ldflags.patch
new file mode 100644
index 0000000..5590085
--- /dev/null
+++ b/recipes-graphics/scrot/files/0001-pkgconfig-don-t-include-ldflags.patch
@@ -0,0 +1,29 @@
+From f064b60df5ebf11a0d3e0ed632a6b989690773f6 Mon Sep 17 00:00:00 2001
+From: Max Krummenacher <max.krummenacher@toradex.com>
+Date: Mon, 21 Feb 2022 22:32:54 +0100
+Subject: [PATCH] pkgconfig: don't include ldflags
+
+This leaks the cross build environment.
+Prevents:
+| ERROR: giblib-1.2.4-r0 do_populate_sysroot: QA Issue: giblib.pc failed sanity test (tmpdir) in path ../giblib/1.2.4-r0/sysroot-destdir/usr/lib/ pkgconfig [pkgconfig]
+
+Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
+---
+ giblib.pc.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/giblib.pc.in b/giblib.pc.in
+index df520ae..3049603 100644
+--- a/giblib.pc.in
++++ b/giblib.pc.in
+@@ -6,6 +6,6 @@ includedir=@includedir@
+ Name: giblib
+ Description: wrapper library for imlib2, and other stuff
+ Version: @VERSION@
+-Libs: -L${libdir} -lgiblib @LDFLAGS@ @IMLIB_LIBS@
++Libs: -L${libdir} -lgiblib @IMLIB_LIBS@
+ Cflags: -I${includedir} -I${includedir}/giblib @IMLIB_CFLAGS@
+
+--
+2.20.1
+
diff --git a/recipes-graphics/scrot/giblib_1.2.4.bb b/recipes-graphics/scrot/giblib_1.2.4.bb
index 79a9461..4dac98c 100644
--- a/recipes-graphics/scrot/giblib_1.2.4.bb
+++ b/recipes-graphics/scrot/giblib_1.2.4.bb
@@ -11,6 +11,7 @@ MIRRORS:prepend () {
SRC_URI = " \
https://pkgs.fedoraproject.org/repo/pkgs/giblib/giblib-${PV}.tar.gz/c810ef5389baf24882a1caca2954385e/giblib-${PV}.tar.gz \
file://fix-giblib-binconfig-paths.patch \
+ file://0001-pkgconfig-don-t-include-ldflags.patch \
"
LIC_FILES_CHKSUM = "file://COPYING;md5=dd3cb8d7a69f3d0b2a52a46c92389011"
SRC_URI[md5sum] = "c810ef5389baf24882a1caca2954385e"