Skip to contentSkip to conversation

rdisk: don't inherit autotools

PATCH In review Ross Burton 2 participants 13 messages Mar 19, 2025

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/12 rdisk: don't inherit autotools

This upstream does not in fact use autotools, so remove the inherit and implement the required do_install directly.

---
 meta-networking/recipes-connectivity/rdist/rdist_6.1.5.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta-networking/recipes-connectivity/rdist/rdist_6.1.5.bb +4 -2
index e6d99431be..abe23cb46e 100644
@@ -36,9 +36,11 @@ UPSTREAM_CHECK_REGEX = "/rdist/(?P<pver>\d+(\.\d+)+)"
 
 DEPENDS = "bison-native"
 
-inherit autotools-brokensep
-
 EXTRA_OEMAKE = "CPPFLAGS='${CFLAGS}' BIN_GROUP=root MAN_GROUP=root RDIST_MODE=755 RDISTD_MODE=755 MAN_MODE=644"
 
+do_install() {
+    oe_runmake 'DESTDIR=${D}' install
+}
+
 # http://errors.yoctoproject.org/Errors/Details/186972/
 COMPATIBLE_HOST:libc-musl = 'null'
Signature · 1 line
2.43.0
#1 lore raw

PATCH v2 2/12 vblade: don't inherit autotools

This upstream does not in fact use autotools, so remove the inherit.

---
 meta-networking/recipes-daemons/vblade/vblade_25.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-daemons/vblade/vblade_25.bb +1 -1
index 7f20e927c6..54bb798344 100644
@@ -20,7 +20,7 @@ S = "${WORKDIR}/git"
 
 UPSTREAM_CHECK_URI = "https://github.com/OpenAoE/vblade/archive/"
 
-inherit autotools-brokensep update-rc.d systemd
+inherit update-rc.d systemd
 
 do_install() {
     install -D -m 0755 ${S}/vblade ${D}/${sbindir}/vblade
Signature · 1 line
2.43.0
#2 lore raw

PATCH v2 3/12 gradm: don't inherit autotools

In reply to Ross Burton

This upstream does not in fact use autotools.

---
 meta-oe/recipes-support/gradm/gradm_3.1-202111052217.bb | 2 --
 1 file changed, 2 deletions(-)
meta-oe/recipes-support/gradm/gradm_3.1-202111052217.bb +0 -2
index 6238a04d96..89119389fd 100644
@@ -22,8 +22,6 @@ UPSTREAM_CHECK_URI = "https://grsecurity.net/download"
 
 S = "${WORKDIR}/gradm"
 
-inherit autotools-brokensep
-
 do_compile() {
     oe_runmake 'CC=${CC}'                               \
                'LIBS='                                  \
Signature · 1 line
2.43.0
#3 lore raw

PATCH v2 4/12 mce-inject: don't inherit autotools

In reply to Ross Burton

This upstream does not in fact use autotools, so remove the inherit and implement the required do_install.

---
 meta-oe/recipes-support/mcelog/mce-inject_git.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta-oe/recipes-support/mcelog/mce-inject_git.bb +4 -2
index 8fc8e2b5e5..6c1255772d 100644
@@ -19,6 +19,8 @@ S = "${WORKDIR}/git"
 
 COMPATIBLE_HOST = '(x86_64.*|i.86.*)-linux'
 
-inherit autotools-brokensep
+EXTRA_OEMAKE = "CFLAGS='${CFLAGS}'"
 
-EXTRA_OEMAKE = "destdir=${D} CFLAGS='${CFLAGS}'"
+do_install() {
+    oe_runmake 'destdir=${D}' install
+}
Signature · 1 line
2.43.0
#4 lore raw

PATCH v2 5/12 valkey: don't inherit autotools

In reply to Ross Burton

This upstream does not in fact use autotools, so remove the inherit and clean up do_compile().

---
 meta-oe/recipes-extended/valkey/valkey_8.0.2.bb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
meta-oe/recipes-extended/valkey/valkey_8.0.2.bb +4 -3
index af56e54590..04ed342556 100644
@@ -23,7 +23,7 @@ S = "${WORKDIR}/git"
 
 RPROVIDES:${PN} = "virtual-redis"
 
-inherit autotools-brokensep pkgconfig update-rc.d systemd useradd
+inherit pkgconfig update-rc.d systemd useradd
 
 FINAL_LIBS:x86:toolchain-clang = "-latomic"
 FINAL_LIBS:riscv32:toolchain-clang = "-latomic"
@@ -42,8 +42,9 @@ PACKAGECONFIG[systemd] = "USE_SYSTEMD=yes,USE_SYSTEMD=no,systemd"
 
 EXTRA_OEMAKE += "${PACKAGECONFIG_CONFARGS}"
 
-do_compile:prepend() {
-    (cd deps && oe_runmake hiredis lua linenoise)
+do_compile() {
+    oe_runmake -C deps hiredis lua linenoise
+    oe_runmake
 }
 
 do_install() {
Signature · 1 line
2.43.0
#5 lore raw

PATCH v2 6/12 pmdk: don't inherit autotools

In reply to Ross Burton

This upstream does not in fact use autotools, so remove the inherit.

Also remove the redundant cmake-native DEPENDS, as this upstream doesn't use cmake either.

---
 meta-oe/recipes-extended/pmdk/pmdk_2.1.1.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta-oe/recipes-extended/pmdk/pmdk_2.1.1.bb +3 -3
index 1bafad96b9..e32dbcf63d 100644
@@ -4,7 +4,7 @@ HOMEPAGE = "http://pmem.io"
 SECTION = "libs"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=3e2f50552a27ca99772f3d884f98560b"
-DEPENDS = "ndctl cmake-native"
+DEPENDS = "ndctl"
 
 # Required to have the fts.h header for musl
 DEPENDS:append:libc-musl = " fts"
@@ -14,7 +14,7 @@ S = "${WORKDIR}/git"
 SRC_URI = "git://github.com/pmem/pmdk.git;branch=master;protocol=https"
 SRCREV = "0f0ab391d8e3db52f745f33c92b9d9a462bb3695"
 
-inherit autotools-brokensep pkgconfig
+inherit pkgconfig
 
 # Fix jemalloc error:
 # | configure: error: cannot run C compiled programs.
@@ -26,7 +26,7 @@ EXTRA_OEMAKE = "BUILD_EXAMPLES='n' DOC='n' HOST_SYS='${HOST_SYS}' EXTRA_CFLAGS='
 # Fix the missing fts libs when using musl
 EXTRA_OEMAKE:append:libc-musl = " EXTRA_LIBS='-lfts'"
 
-do_configure:prepend() {
+do_configure() {
 	touch .skip-doc
 }
 
Signature · 1 line
2.43.0
#6 lore raw

PATCH v2 7/12 triggerhappy: don't inherit autotools

In reply to Ross Burton

This upstream does not in fact use autotools, so remove the inherit and implement the required do_install.

---
 meta-oe/recipes-extended/triggerhappy/triggerhappy_git.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta-oe/recipes-extended/triggerhappy/triggerhappy_git.bb +4 -2
index 0b14f9557a..5eb8e4d9aa 100644
@@ -11,7 +11,7 @@ SRC_URI = "git://github.com/wertarbyte/${BPN}.git;branch=debian;protocol=https"
 
 S = "${WORKDIR}/git"
 
-inherit autotools-brokensep pkgconfig perlnative update-rc.d systemd
+inherit pkgconfig perlnative update-rc.d systemd
 
 PACKAGECONFIG = "${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','',d)}"
 PACKAGECONFIG[systemd] = ",,systemd"
@@ -30,7 +30,9 @@ FILES:${PN} = "\
 "
 CONFFILES:${PN} = "${sysconfdir}/udev/rules.d/80-triggerhappy.rules"
 
-do_install:append() {
+do_install() {
+    oe_runmake 'DESTDIR=${D}' 'BINDIR=${D}${sbindir}' install
+
     install -d ${D}${sysconfdir}/triggerhappy/triggers.d
 
     install -d ${D}${nonarch_base_libdir}/udev/rules.d
Signature · 1 line
2.43.0
#7 lore raw

PATCH v2 8/12 libx86-1: don't inherit autotools

In reply to Ross Burton

This upstream does not in fact use autotools, so remove the inherit and implement the required do_install directly.

---
 meta-oe/recipes-extended/libx86-1/libx86-1_1.1.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-oe/recipes-extended/libx86-1/libx86-1_1.1.bb +3 -1
index ae2714d7e7..817322a484 100644
@@ -24,4 +24,6 @@ COMPATIBLE_HOST = '(x86_64|i.86).*-linux'
 export LIBDIR = "${libdir}"
 export BACKEND = "x86emu"
 
-inherit autotools-brokensep
+do_install() {
+    oe_runmake 'DESTDIR=${D}' install
+}
Signature · 1 line
2.43.0
#8 lore raw

PATCH v2 9/12 miniupnpd: partial recipe rewrite

In reply to Ross Burton

This upstream does not in fact use autotools, so remove the inherit.

Split the configure step (make config.h) into do_configure and ensure that it always runs in case the configuration has changed.

Use PACKAGECONFIG for options, as there are more available upstream.

Add UPSTREAM_CHECK variables to check for new releases. This depends on a bitbake change[1] but with that detects that 2.3.7 has been released.

Add a DEPENDS on openssl as the Makefiles try to link against it and silently fail without it.

[1] https://lore.kernel.org/bitbake-devel/[email protected]/T/#u

---
 .../miniupnpd/miniupnpd_2.1.20191006.bb       | 22 +++++++++++--------
 1 file changed, 13 insertions(+), 9 deletions(-)
meta-networking/recipes-connectivity/miniupnpd/miniupnpd_2.1.20191006.bb +13 -9
index 1c2f030f83..b7ba37f290 100644
@@ -7,27 +7,31 @@ SECTION = "networking"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=a1ed15843ce66639bcf9f109cf247870"
 
-inherit autotools gettext pkgconfig systemd
+inherit gettext pkgconfig systemd
 
-DEPENDS += "iptables net-tools util-linux libmnl libnetfilter-conntrack"
+DEPENDS += "iptables net-tools util-linux libmnl libnetfilter-conntrack openssl"
 
 SRC_URI = "http://miniupnp.tuxfamily.org/files/download.php?file=${BP}.tar.gz;downloadfilename=${BP}.tar.gz \
            file://miniupnpd.service \
            file://0001-Add-OpenEmbedded-cross-compile-case.patch \
            "
-SRC_URI[md5sum] = "340789edd49c113afe37834cc901a1e8"
 SRC_URI[sha256sum] = "218fad7af31f3c22fb4c9db28a55a2a8b5067d41f5b38f52008a057a00d2206d"
 
-IPV6 = "${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', '--ipv6', '', d)}"
+UPSTREAM_CHECK_URI = "https://miniupnp.tuxfamily.org/files/"
+UPSTREAM_CHECK_REGEX = "${BPN}-(?P<pver>\d+(\.\d+)+)\.tar"
 
-do_configure:prepend() {
-   echo "${@d.getVar('DISTRO_VERSION')}" > ${S}/os.openembedded
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}"
+PACKAGECONFIG[ipv6] = "--ipv6"
+
+EXTRA_OEMAKE = "-f Makefile.linux"
+
+do_configure() {
+    echo "${@d.getVar('DISTRO_VERSION')}" > ${S}/os.openembedded
+    CONFIG_OPTIONS="--leasefile --vendorcfg ${PACKAGECONFIG_CONFARGS}" oe_runmake --always-make config.h
 }
 
 do_compile() {
-    cd ${S}
-    CONFIG_OPTIONS="${IPV6} --leasefile --vendorcfg" oe_runmake -f Makefile.linux config.h
-    CONFIG_OPTIONS="${IPV6} --leasefile --vendorcfg" oe_runmake -f Makefile.linux
+    oe_runmake
 }
 
 do_install() {
Signature · 1 line
2.43.0
#9 lore raw

PATCH v2 10/12 openl2tp: don't inherit autotools

In reply to Ross Burton

This upstream does not in fact use autotools, so remove the inherit and implement the required do_install.

---
 meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb +4 -2
index f3b74d1e61..d66b7d2390 100644
@@ -41,7 +41,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${PV}/${BP}.tar.gz \
 SRC_URI[md5sum] = "e3d08dedfb9e6a9a1e24f6766f6dadd0"
 SRC_URI[sha256sum] = "1c97704d4b963a87fbc0e741668d4530933991515ae9ab0dffd11b5444f4860f"
 
-inherit autotools-brokensep pkgconfig systemd ptest
+inherit pkgconfig systemd ptest
 
 SYSTEMD_SERVICE:${PN} = "openl2tpd.service"
 SYSTEMD_AUTO_ENABLE = "disable"
@@ -67,7 +67,9 @@ do_compile:prepend() {
         ${S}/Makefile
 }
 
-do_install:append () {
+do_install () {
+    oe_runmake 'DESTDIR=${D}' install
+
     install -d ${D}${sysconfdir}/init.d
     install -d ${D}${sysconfdir}/default
     install -m 0755 ${S}/etc/rc.d/init.d/openl2tpd ${D}${sysconfdir}/init.d/openl2tpd
Signature · 1 line
2.43.0
#10 lore raw

PATCH v2 11/12 redis: don't inherit autotools

In reply to Ross Burton

This upstream does not in fact use autotools, so remove the inherit.

Also, clean up a oe_runmake to not require a subshell.

---
 meta-oe/recipes-extended/redis/redis_6.2.16.bb | 4 ++--
 meta-oe/recipes-extended/redis/redis_7.2.7.bb  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
meta-oe/recipes-extended/redis/redis_6.2.16.bb +2 -2
index 40473461a2..fbf2f04e3d 100644
@@ -20,7 +20,7 @@ SRC_URI = "http://download.redis.io/releases/${BP}.tar.gz \
 
 SRC_URI[sha256sum] = "846bff83c26d827d49f8cc8114ea9d1e72eea1169f7de36b8135ea2cec104e7d"
 
-inherit autotools-brokensep update-rc.d systemd useradd
+inherit update-rc.d systemd useradd
 
 FINAL_LIBS:x86:toolchain-clang = "-latomic"
 FINAL_LIBS:riscv32 = "-latomic"
@@ -37,7 +37,7 @@ GROUPADD_PARAM:${PN} = "--system redis"
 REDIS_ON_SYSTEMD = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}"
 
 do_compile:prepend() {
-    (cd deps && oe_runmake hiredis lua linenoise)
+    oe_runmake -C deps hiredis lua linenoise
 }
 
 do_install() {
meta-oe/recipes-extended/redis/redis_7.2.7.bb +2 -2
index 7efdebd905..c688e92cca 100644
@@ -22,7 +22,7 @@ SRC_URI[sha256sum] = "72c081e3b8cfae7144273d26d76736f08319000af46c01515cad5d2976
 
 RPROVIDES:${PN} = "virtual-redis"
 
-inherit autotools-brokensep pkgconfig update-rc.d systemd useradd
+inherit pkgconfig update-rc.d systemd useradd
 
 FINAL_LIBS:x86:toolchain-clang = "-latomic"
 FINAL_LIBS:riscv32 = "-latomic"
@@ -42,7 +42,7 @@ PACKAGECONFIG[systemd] = "USE_SYSTEMD=yes,USE_SYSTEMD=no,systemd"
 EXTRA_OEMAKE += "${PACKAGECONFIG_CONFARGS}"
 
 do_compile:prepend() {
-    (cd deps && oe_runmake hiredis lua linenoise)
+    oe_runmake -C deps hiredis lua linenoise
 }
 
 do_install() {
Signature · 1 line
2.43.0
#11 lore raw

PATCH v2 12/12 fbgrab: don't inherit autotools

In reply to Ross Burton

This upstream does not in fact use autotools, so remove the inherit and implement the required do_install.

Also fix the hardcoded /usr/bin to use ${bindir}.

---
 meta-oe/recipes-graphics/fbgrab/fbgrab_1.5.bb | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
meta-oe/recipes-graphics/fbgrab/fbgrab_1.5.bb +8 -3
index 7b52ead909..efcf5a9ea6 100644
@@ -9,8 +9,13 @@ SRC_URI = "git://github.com/GunnarMonell/fbgrab.git;protocol=https;branch=master
 SRCREV = "f43ce6d5ce48fb01360eaa7c4a92c2573a1d02f8"
 S = "${WORKDIR}/git"
 
-inherit autotools-brokensep
-
 do_configure:prepend() {
-    sed -i 's|$(DESTDIR)/usr/man/|$(DESTDIR)${mandir}/|g' ${S}/Makefile
+    sed \
+        -e 's|$(DESTDIR)/usr/bin/|$(DESTDIR)${bindir}/|g' \
+        -e 's|$(DESTDIR)/usr/man/|$(DESTDIR)${mandir}/|g' \
+        -i ${S}/Makefile
+}
+
+do_install() {
+    oe_runmake 'DESTDIR=${D}' install
 }
Signature · 1 line
2.43.0
#12 lore raw

Re: [oe] [PATCH v2 12/12] fbgrab: don't inherit autotools

Quoted 16 lines · Ross Burton via lists.openembedded.org

This upstream does not in fact use autotools, so remove the inherit and implement the required do_install.

Also fix the hardcoded /usr/bin to use ${bindir}.

---
 meta-oe/recipes-graphics/fbgrab/fbgrab_1.5.bb | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
meta-oe/recipes-graphics/fbgrab/fbgrab_1.5.bb +0 -0
index 7b52ead909..efcf5a9ea6 100644

meta-oe/recipes-graphics/fbgrab/fbgrab_1.5.bb SRC_URI = "git://github.com/GunnarMonell/fbgrab.git;protocol=https;branch=master · line 12

Quoted 6 lines
meta-oe/recipes-graphics/fbgrab/fbgrab_1.5.bb +0 -2
@@ -9,8 +9,13 @@ SRC_URI = "git://github.com/GunnarMonell/fbgrab.git;protocol=https;branch=master
 SRCREV = "f43ce6d5ce48fb01360eaa7c4a92c2573a1d02f8"
 S = "${WORKDIR}/git"
 
-inherit autotools-brokensep
-
 do_configure:prepend() {

should this prepend to do_configure still ?

Quoted 22 lines
meta-oe/recipes-graphics/fbgrab/fbgrab_1.5.bb +8 -2
-    sed -i 's|$(DESTDIR)/usr/man/|$(DESTDIR)${mandir}/|g' ${S}/Makefile
+    sed \
+        -e 's|$(DESTDIR)/usr/bin/|$(DESTDIR)${bindir}/|g' \
+        -e 's|$(DESTDIR)/usr/man/|$(DESTDIR)${mandir}/|g' \
+        -i ${S}/Makefile
+}
+
+do_install() {
+    oe_runmake 'DESTDIR=${D}' install
 }
--

2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#116097): https://lists.openembedded.org/g/openembedded-devel/message/116097
Mute This Topic: https://lists.openembedded.org/mt/111794448/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-