summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2022-05-21 09:25:18 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-21 22:20:54 +0100
commitb4969db127cac70c68fc437b903d01d2ec1f4aba (patch)
tree921ac02ab1c678992f98cb9fc994affb22ba572b /meta
parentb0d39aa3d2e0a3a0a53a22f7136a80c31ab50bc4 (diff)
downloadpoky-b4969db127cac70c68fc437b903d01d2ec1f4aba.tar.gz
eudev: Convert dependencies to PACKAGECONFIG
GObject support was dropped in 252150e181c5 ("src/gudev: remove Gobject libudev support."), drop all g-i-r support which appears to be dead upstream. Fill out PACKAGECONFIG options. (From OE-Core rev: c6e1483009fc67a5b0e192786b58f256a38f62f7) Signed-off-by: Alex Kiernan <alexk@zuma.ai> Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/udev/eudev/0001-build-Remove-dead-g-i-r-configuration.patch155
-rw-r--r--meta/recipes-core/udev/eudev_3.2.11.bb8
2 files changed, 161 insertions, 2 deletions
diff --git a/meta/recipes-core/udev/eudev/0001-build-Remove-dead-g-i-r-configuration.patch b/meta/recipes-core/udev/eudev/0001-build-Remove-dead-g-i-r-configuration.patch
new file mode 100644
index 0000000000..2836f30c3a
--- /dev/null
+++ b/meta/recipes-core/udev/eudev/0001-build-Remove-dead-g-i-r-configuration.patch
@@ -0,0 +1,155 @@
1From 520c4d451efc488573746f169d8e47d5a131afc2 Mon Sep 17 00:00:00 2001
2From: Alex Kiernan <alex.kiernan@gmail.com>
3Date: Fri, 20 May 2022 09:35:08 +0100
4Subject: [PATCH] build: Remove dead g-i-r configuration
5
6g-i-r support was removed in 2015 as part of removal of Gobject libudev
7support, but the autoconf support wasn't removed but is dead.
8
9Fixes: 252150e181c5 ("src/gudev: remove Gobject libudev support.")
10Upstream-Status: Submitted [https://github.com/eudev-project/eudev/pull/231]
11Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
12Signed-off-by: Alex Kiernan <alex.kiernan@zuma.ai>
13---
14 configure.ac | 12 ------
15 m4/introspection.m4 | 96 ---------------------------------------------
16 2 files changed, 108 deletions(-)
17 delete mode 100644 m4/introspection.m4
18
19diff --git a/configure.ac b/configure.ac
20index 85a524a618ae..987d5037ae77 100644
21--- a/configure.ac
22+++ b/configure.ac
23@@ -183,17 +183,8 @@ AC_SUBST([udevrulesdir],[${udevlibexecdir}/rules.d])
24 AC_SUBST([pkgconfiglibdir], [${libdir}/pkgconfig])
25 AC_SUBST([sharepkgconfigdir],[${datadir}/pkgconfig])
26
27-# introspection paths
28-AC_SUBST([girdir], [${datadir}/gir-1.0])
29-AC_SUBST([typelibsdir], [${libdir}/girepository-1.0])
30-
31 AC_SUBST([rootrundir],[${with_rootrundir}])
32
33-# ------------------------------------------------------------------------------
34-
35-GOBJECT_INTROSPECTION_CHECK([1.31.1])
36-AM_CONDITIONAL([HAVE_INTROSPECTION], [test "$enable_introspection" = "yes"])
37-
38 # ------------------------------------------------------------------------------
39 AC_ARG_ENABLE([programs],
40 AS_HELP_STRING([--disable-programs], [disable programs (udevd, udevadm and helpers)]),
41@@ -349,9 +340,6 @@ AC_MSG_RESULT([
42
43 pkgconfiglibdir: ${libdir}/pkgconfig
44 sharepkgconfigdir ${datadir}/pkgconfig
45-
46- girdir ${datadir}/gir-1.0
47- typelibsdir ${libdir}/girepository-1.0
48 ])
49
50 # ------------------------------------------------------------------------------
51diff --git a/m4/introspection.m4 b/m4/introspection.m4
52deleted file mode 100644
53index d89c3d907d9c..000000000000
54--- a/m4/introspection.m4
55+++ /dev/null
56@@ -1,96 +0,0 @@
57-dnl -*- mode: autoconf -*-
58-dnl Copyright 2009 Johan Dahlin
59-dnl
60-dnl This file is free software; the author(s) gives unlimited
61-dnl permission to copy and/or distribute it, with or without
62-dnl modifications, as long as this notice is preserved.
63-dnl
64-
65-# serial 1
66-
67-m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
68-[
69- AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
70- AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
71- AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
72-
73- dnl enable/disable introspection
74- m4_if([$2], [require],
75- [dnl
76- enable_introspection=yes
77- ],[dnl
78- AC_ARG_ENABLE(introspection,
79- AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]],
80- [Enable introspection for this build]),,
81- [enable_introspection=auto])
82- ])dnl
83-
84- AC_MSG_CHECKING([for gobject-introspection])
85-
86- dnl presence/version checking
87- AS_CASE([$enable_introspection],
88- [no], [dnl
89- found_introspection="no (disabled, use --enable-introspection to enable)"
90- ],dnl
91- [yes],[dnl
92- PKG_CHECK_EXISTS([gobject-introspection-1.0],,
93- AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
94- PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1],
95- found_introspection=yes,
96- AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
97- ],dnl
98- [auto],[dnl
99- PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
100- dnl Canonicalize enable_introspection
101- enable_introspection=$found_introspection
102- ],dnl
103- [dnl
104- AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
105- ])dnl
106-
107- AC_MSG_RESULT([$found_introspection])
108-
109- INTROSPECTION_SCANNER=
110- INTROSPECTION_COMPILER=
111- INTROSPECTION_GENERATE=
112- INTROSPECTION_GIRDIR=
113- INTROSPECTION_TYPELIBDIR=
114- if test "x$found_introspection" = "xyes"; then
115- INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
116- INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
117- INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
118- INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
119- INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
120- INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
121- INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
122- INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
123- fi
124- AC_SUBST(INTROSPECTION_SCANNER)
125- AC_SUBST(INTROSPECTION_COMPILER)
126- AC_SUBST(INTROSPECTION_GENERATE)
127- AC_SUBST(INTROSPECTION_GIRDIR)
128- AC_SUBST(INTROSPECTION_TYPELIBDIR)
129- AC_SUBST(INTROSPECTION_CFLAGS)
130- AC_SUBST(INTROSPECTION_LIBS)
131- AC_SUBST(INTROSPECTION_MAKEFILE)
132-
133- AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
134-])
135-
136-
137-dnl Usage:
138-dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version])
139-
140-AC_DEFUN([GOBJECT_INTROSPECTION_CHECK],
141-[
142- _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1])
143-])
144-
145-dnl Usage:
146-dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version])
147-
148-
149-AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE],
150-[
151- _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
152-])
153--
1542.35.1
155
diff --git a/meta/recipes-core/udev/eudev_3.2.11.bb b/meta/recipes-core/udev/eudev_3.2.11.bb
index a0a19e501d..7e34d5b475 100644
--- a/meta/recipes-core/udev/eudev_3.2.11.bb
+++ b/meta/recipes-core/udev/eudev_3.2.11.bb
@@ -5,13 +5,14 @@ LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later"
5LICENSE:libudev = "LGPL-2.1-or-later" 5LICENSE:libudev = "LGPL-2.1-or-later"
6LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" 6LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
7 7
8DEPENDS = "glib-2.0 glib-2.0-native gperf-native kmod util-linux" 8DEPENDS = "gperf-native"
9 9
10PROVIDES = "udev" 10PROVIDES = "udev"
11 11
12SRC_URI = "https://github.com/eudev-project/${BPN}/releases/download/v${PV}/${BP}.tar.gz \ 12SRC_URI = "https://github.com/eudev-project/${BPN}/releases/download/v${PV}/${BP}.tar.gz \
13 file://init \ 13 file://init \
14 file://local.rules \ 14 file://local.rules \
15 file://0001-build-Remove-dead-g-i-r-configuration.patch \
15" 16"
16 17
17SRC_URI[sha256sum] = "19847cafec67897da855fde56f9dc7d92e21c50e450aa79068a7e704ed44558b" 18SRC_URI[sha256sum] = "19847cafec67897da855fde56f9dc7d92e21c50e450aa79068a7e704ed44558b"
@@ -30,11 +31,14 @@ EXTRA_OECONF = " \
30 --with-rootprefix= \ 31 --with-rootprefix= \
31" 32"
32 33
33PACKAGECONFIG ?= "hwdb \ 34PACKAGECONFIG ?= "blkid hwdb kmod \
34 ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \ 35 ${@bb.utils.filter('DISTRO_FEATURES', 'selinux', d)} \
35" 36"
37PACKAGECONFIG[blkid] = "--enable-blkid,--disable-blkid,util-linux"
36PACKAGECONFIG[hwdb] = "--enable-hwdb,--disable-hwdb" 38PACKAGECONFIG[hwdb] = "--enable-hwdb,--disable-hwdb"
39PACKAGECONFIG[kmod] = "--enable-kmod,--disable-kmod,kmod"
37PACKAGECONFIG[manpages] = "--enable-manpages,--disable-manpages" 40PACKAGECONFIG[manpages] = "--enable-manpages,--disable-manpages"
41PACKAGECONFIG[rule-generator] = "--enable-rule-generator,--disable-rule-generator"
38PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux" 42PACKAGECONFIG[selinux] = "--enable-selinux,--disable-selinux,libselinux"
39 43
40do_install:append() { 44do_install:append() {