diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-24 21:41:53 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-28 22:28:27 +0100 |
commit | bbd6098ef48c96141267c8e22d0694220a528067 (patch) | |
tree | 3222ce4ca0c5fc46e8068a77f91ed25739c2e017 /meta/recipes-core | |
parent | 8d9dbbdd4a16ddac894a7d963d6450ac5ba07717 (diff) | |
download | poky-bbd6098ef48c96141267c8e22d0694220a528067.tar.gz |
util-linux-libuuid: Simplify recipe and rename from util-linux-uuid
Rename the recipe from util-linux-uuid to util-linux-libuuid which means
we can drop the custom PACKAGES and FILES defintions which simplifies
things. Also move the LICENSE setting to the libuuid recipe so that
it is correctly applied to the right packages.
This means the standard definitions from bitbake.conf are used, avoiding
errors from situations where users have customised settings causing
failures.
(From OE-Core rev: 65efd76198ad805060fe28714765cd423fa748dc)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/util-linux/util-linux-libuuid_2.36.2.bb (renamed from meta/recipes-core/util-linux/util-linux-uuid_2.36.2.bb) | 6 | ||||
-rw-r--r-- | meta/recipes-core/util-linux/util-linux.inc | 1 | ||||
-rw-r--r-- | meta/recipes-core/util-linux/util-linux_2.36.2.bb | 6 |
3 files changed, 4 insertions, 9 deletions
diff --git a/meta/recipes-core/util-linux/util-linux-uuid_2.36.2.bb b/meta/recipes-core/util-linux/util-linux-libuuid_2.36.2.bb index 65e4d23b7e..9612c491cd 100644 --- a/meta/recipes-core/util-linux/util-linux-uuid_2.36.2.bb +++ b/meta/recipes-core/util-linux/util-linux-libuuid_2.36.2.bb | |||
@@ -7,11 +7,7 @@ inherit autotools gettext pkgconfig | |||
7 | 7 | ||
8 | S = "${WORKDIR}/util-linux-${PV}" | 8 | S = "${WORKDIR}/util-linux-${PV}" |
9 | EXTRA_OECONF += "--disable-all-programs --enable-libuuid" | 9 | EXTRA_OECONF += "--disable-all-programs --enable-libuuid" |
10 | PACKAGES = "util-linux-libuuid util-linux-libuuid-dev util-linux-libuuid-staticdev util-linux-libuuid-dbg" | 10 | LICENSE = "BSD-3-Clause" |
11 | FILES_util-linux-libuuid = "${libdir}/libuuid.so.*" | ||
12 | FILES_util-linux-libuuid-dev = "${libdir}/libuuid.so ${includedir} ${libdir}/pkgconfig" | ||
13 | FILES_util-linux-libuuid-staticdev = "${libdir}/libuuid.a" | ||
14 | FILES_util-linux-libuuid-dbg = "/usr/src ${libdir}/.debug" | ||
15 | 11 | ||
16 | do_install_append() { | 12 | do_install_append() { |
17 | rm -rf ${D}${datadir} ${D}${bindir} ${D}${base_bindir} ${D}${sbindir} ${D}${base_sbindir} ${D}${exec_prefix}/sbin | 13 | rm -rf ${D}${datadir} ${D}${bindir} ${D}${base_bindir} ${D}${sbindir} ${D}${base_sbindir} ${D}${exec_prefix}/sbin |
diff --git a/meta/recipes-core/util-linux/util-linux.inc b/meta/recipes-core/util-linux/util-linux.inc index 4031c586c9..cbf6102ee0 100644 --- a/meta/recipes-core/util-linux/util-linux.inc +++ b/meta/recipes-core/util-linux/util-linux.inc | |||
@@ -11,7 +11,6 @@ LICENSE_${PN}-libblkid = "LGPLv2.1+" | |||
11 | LICENSE_${PN}-libfdisk = "LGPLv2.1+" | 11 | LICENSE_${PN}-libfdisk = "LGPLv2.1+" |
12 | LICENSE_${PN}-libmount = "LGPLv2.1+" | 12 | LICENSE_${PN}-libmount = "LGPLv2.1+" |
13 | LICENSE_${PN}-libsmartcols = "LGPLv2.1+" | 13 | LICENSE_${PN}-libsmartcols = "LGPLv2.1+" |
14 | LICENSE_${PN}-libuuid = "BSD-3-Clause" | ||
15 | 14 | ||
16 | LIC_FILES_CHKSUM = "file://README.licensing;md5=0fd5c050c6187d2bf0a4492b7f4e33da \ | 15 | LIC_FILES_CHKSUM = "file://README.licensing;md5=0fd5c050c6187d2bf0a4492b7f4e33da \ |
17 | file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | 16 | file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ |
diff --git a/meta/recipes-core/util-linux/util-linux_2.36.2.bb b/meta/recipes-core/util-linux/util-linux_2.36.2.bb index 50a70cd452..c79cf782d1 100644 --- a/meta/recipes-core/util-linux/util-linux_2.36.2.bb +++ b/meta/recipes-core/util-linux/util-linux_2.36.2.bb | |||
@@ -2,7 +2,7 @@ require util-linux.inc | |||
2 | 2 | ||
3 | #gtk-doc is not enabled as it requires xmlto which requires util-linux | 3 | #gtk-doc is not enabled as it requires xmlto which requires util-linux |
4 | inherit autotools gettext manpages pkgconfig systemd update-alternatives python3-dir bash-completion ptest | 4 | inherit autotools gettext manpages pkgconfig systemd update-alternatives python3-dir bash-completion ptest |
5 | DEPENDS = "libcap-ng ncurses virtual/crypt zlib util-linux-uuid" | 5 | DEPENDS = "libcap-ng ncurses virtual/crypt zlib util-linux-libuuid" |
6 | 6 | ||
7 | PACKAGES =+ "${PN}-swaponoff" | 7 | PACKAGES =+ "${PN}-swaponoff" |
8 | PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'pylibmount', '${PN}-pylibmount', '', d)}" | 8 | PACKAGES += "${@bb.utils.contains('PACKAGECONFIG', 'pylibmount', '${PN}-pylibmount', '', d)}" |
@@ -49,7 +49,7 @@ python util_linux_binpackages () { | |||
49 | # we must execute before update-alternatives PACKAGE_PREPROCESS_FUNCS | 49 | # we must execute before update-alternatives PACKAGE_PREPROCESS_FUNCS |
50 | PACKAGE_PREPROCESS_FUNCS =+ "util_linux_binpackages " | 50 | PACKAGE_PREPROCESS_FUNCS =+ "util_linux_binpackages " |
51 | 51 | ||
52 | # skip libuuid as it will be packaged by the util-linux-uuid recipe | 52 | # skip libuuid as it will be packaged by the util-linux-libuuid recipe |
53 | python util_linux_libpackages() { | 53 | python util_linux_libpackages() { |
54 | do_split_packages(d, root=d.getVar('UTIL_LINUX_LIBDIR'), file_regex=r'^lib(?!uuid)(.*)\.so\..*$', | 54 | do_split_packages(d, root=d.getVar('UTIL_LINUX_LIBDIR'), file_regex=r'^lib(?!uuid)(.*)\.so\..*$', |
55 | output_pattern='${PN}-lib%s', | 55 | output_pattern='${PN}-lib%s', |
@@ -201,7 +201,7 @@ do_install_append_class-native () { | |||
201 | rm -f ${D}${base_bindir}/kill | 201 | rm -f ${D}${base_bindir}/kill |
202 | } | 202 | } |
203 | 203 | ||
204 | # dm-verity support introduces a circular build dependency, so util-linux-uuid is split out for target builds | 204 | # dm-verity support introduces a circular build dependency, so util-linux-libuuid is split out for target builds |
205 | # Need to build libuuid for uuidgen, but then delete it and let the other recipe ship it | 205 | # Need to build libuuid for uuidgen, but then delete it and let the other recipe ship it |
206 | do_install_append () { | 206 | do_install_append () { |
207 | rm -rf ${D}${includedir}/uuid ${D}${libdir}/pkgconfig/uuid.pc ${D}${libdir}/libuuid* ${D}${base_libdir}/libuuid* | 207 | rm -rf ${D}${includedir}/uuid ${D}${libdir}/pkgconfig/uuid.pc ${D}${libdir}/libuuid* ${D}${base_libdir}/libuuid* |