summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/liboop
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/liboop')
-rw-r--r--meta-oe/recipes-support/liboop/liboop/0001-Use-pkg-config-to-find-tcl.patch48
-rw-r--r--meta-oe/recipes-support/liboop/liboop/tcl_dev.patch13
-rw-r--r--meta-oe/recipes-support/liboop/liboop_1.0.1.bb7
3 files changed, 51 insertions, 17 deletions
diff --git a/meta-oe/recipes-support/liboop/liboop/0001-Use-pkg-config-to-find-tcl.patch b/meta-oe/recipes-support/liboop/liboop/0001-Use-pkg-config-to-find-tcl.patch
new file mode 100644
index 0000000000..24249b9360
--- /dev/null
+++ b/meta-oe/recipes-support/liboop/liboop/0001-Use-pkg-config-to-find-tcl.patch
@@ -0,0 +1,48 @@
1From 5dad843ca0860d6d7be443ddc850566584b8004a Mon Sep 17 00:00:00 2001
2From: Gyorgy Sarvari <skandigraun@gmail.com>
3Date: Sun, 16 Feb 2025 21:09:02 +0100
4Subject: [PATCH] Use pkg-config to find tcl
5
6Instead of using hardcoded path for the tcl include folder
7use pkg-config to find the proper values.
8
9That way it won't use the system folders for cross-compilation.
10
11Also, extend the number of tcl versions to check (at the time of
12this commit oe-core provides version 8.6)
13
14Upstream-Status: Pending
15---
16 configure.ac | 15 +++++++--------
17 1 file changed, 7 insertions(+), 8 deletions(-)
18
19diff --git a/configure.ac b/configure.ac
20index e95956e..3d0dc82 100644
21--- a/configure.ac
22+++ b/configure.ac
23@@ -71,18 +71,17 @@ if test xno != x$with_glib; then
24 fi
25
26 if test xno != x$with_tcl; then
27- for version in 8.4 8.3 8.2 8.1 8.0 ; do
28- CPPFLAGS="$save_cppflags -I/usr/include/tcl$version"
29- AC_CHECK_LIB(tcl$version,Tcl_Main,[
30- AC_CHECK_HEADER(tcl.h,[
31+ save_cppflags="$CPPFLAGS"
32+ for version in "" 8.4 8.3 8.2 8.1 8.0 ; do
33+ PKG_CHECK_EXISTS(tcl$version,,continue)
34+ PKG_CHECK_MODULES(TCL, tcl$version, [
35 LIBOOP_LIBS="liboop-tcl.la $LIBOOP_LIBS"
36 AC_DEFINE(HAVE_TCL)
37- TCL_INCLUDES="-I/usr/include/tcl$version"
38- TCL_LIBS="-ltcl$version"
39+ TCL_INCLUDES="$TCL_CFLAGS"
40+ CPPFLAGS="$save_cppflags $TCL_CFLAGS"
41 break
42- ])])
43+ ])
44 done
45- CPPFLAGS="$save_cppflags"
46 fi
47
48 if test xyes = x$with_libwww; then
diff --git a/meta-oe/recipes-support/liboop/liboop/tcl_dev.patch b/meta-oe/recipes-support/liboop/liboop/tcl_dev.patch
deleted file mode 100644
index 0521aaeaff..0000000000
--- a/meta-oe/recipes-support/liboop/liboop/tcl_dev.patch
+++ /dev/null
@@ -1,13 +0,0 @@
1Upstream-Status: Pending
2
3--- a/configure.ac
4+++ b/configure.ac
5@@ -71,7 +71,7 @@
6 fi
7
8 if test xno != x$with_tcl; then
9- for version in 8.4 8.3 8.2 8.1 8.0 ; do
10+ for version in "" 8.4 8.3 8.2 8.1 8.0 ; do
11 CPPFLAGS="$save_cppflags -I/usr/include/tcl$version"
12 AC_CHECK_LIB(tcl$version,Tcl_Main,[
13 AC_CHECK_HEADER(tcl.h,[
diff --git a/meta-oe/recipes-support/liboop/liboop_1.0.1.bb b/meta-oe/recipes-support/liboop/liboop_1.0.1.bb
index 7ad88b7402..19da1d1aa9 100644
--- a/meta-oe/recipes-support/liboop/liboop_1.0.1.bb
+++ b/meta-oe/recipes-support/liboop/liboop_1.0.1.bb
@@ -1,19 +1,18 @@
1DESCRIPTION = "Liboop is a low-level event loop management library for POSIX-based operating systems" 1DESCRIPTION = "Liboop is a low-level event loop management library for POSIX-based operating systems"
2HOMEPAGE = "http://www.lysator.liu.se/liboop/" 2HOMEPAGE = "http://www.lysator.liu.se/liboop/"
3LICENSE = "GPL-2.0-only" 3LICENSE = "LGPL-2.1-only"
4LIC_FILES_CHKSUM = "file://COPYING;md5=8b54f38ccbd44feb80ab90e01af8b700" 4LIC_FILES_CHKSUM = "file://COPYING;md5=8b54f38ccbd44feb80ab90e01af8b700"
5 5
6SRC_URI = "http://ftp.lysator.liu.se/pub/liboop/liboop-${PV}.tar.gz \ 6SRC_URI = "http://ftp.lysator.liu.se/pub/liboop/liboop-${PV}.tar.gz \
7 file://tcl_dev.patch \ 7 file://0001-Use-pkg-config-to-find-tcl.patch \
8" 8"
9 9
10SRC_URI[md5sum] = "f2b3dff17355fd9a6e2229caca8993f0"
11SRC_URI[sha256sum] = "56af16ad65e7397dadc8268e37ff6f67431db390c60c75e21a33e12b0e0d17e0" 10SRC_URI[sha256sum] = "56af16ad65e7397dadc8268e37ff6f67431db390c60c75e21a33e12b0e0d17e0"
12 11
13PACKAGECONFIG ?= "" 12PACKAGECONFIG ?= ""
14PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline" 13PACKAGECONFIG[readline] = "--with-readline,--without-readline,readline"
15PACKAGECONFIG[glib] = "--with-glib,--without-glib,glib-2.0 libpcre" 14PACKAGECONFIG[glib] = "--with-glib,--without-glib,glib-2.0 libpcre"
16PACKAGECONFIG[tcl] = "--with-tcl,--without-tcl,tcl" 15PACKAGECONFIG[tcl] = "--with-tcl,--without-tcl,tcl8"
17 16
18EXTRA_OECONF += "--without-adns -without-libwww" 17EXTRA_OECONF += "--without-adns -without-libwww"
19 18