Skip to contentSkip to conversation

quota related improvements

PATCH New Michal Sieron 1 participant 5 messages Jul 17

lore
Share & tools
lore
#0 lore raw

cover quota related improvements

While investigating why non-systemd rootfs was pulling in dbus I noticed an unnecessary dependency on quota in rpcbind.

There are also some PACKAGECONFIG improvements in the quota recipe.

---
Michal Sieron (4):
rpcbind: Drop dependency on quota
quota: Drop gettext-native from DEPENDS
quota: Move e2fsprogs dependency to PACKAGECONFIG
quota: Move dbus, libnl dependencies to PACKAGECONFIG

 meta/recipes-extended/quota/quota_4.11.bb      | 8 ++++----
 meta/recipes-extended/rpcbind/rpcbind_1.2.9.bb | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

---
base-commit: 171af3b2915dd076c8d1b205ff75eac1ebd5a586
change-id: 20260717-rpcbind-quota-dep-e0c4820f58f3

Best regards,

Signature · 1 line
Michal Sieron <[email protected]>
#1 lore raw

PATCH 1/4 rpcbind: Drop dependency on quota

Originally added to provide rpcsvc/rquota.h header [1], it is no longer needed since at least v1.2.6 where [2] was merged.
Not sure why, but distros like Arch and Ubuntu (possibly others too) did not have this dependency at any point from what I could find. Anyway, this builds just fine without quota present.

[1]: https://git.openembedded.org/openembedded-core/commit/?h=4771f4af5926d724958ba7cf46b937c53babfc7c
[2]: git://linux-nfs.org/~steved/rpcbind
8bf0ce4a1858b5cd00440e416ecfe0fd74662a01
rpcbind: always use inline rpcsvc constants

---
 meta/recipes-extended/rpcbind/rpcbind_1.2.9.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/rpcbind/rpcbind_1.2.9.bb +1 -1
index 692c421cd9..000ffe3704 100644
@@ -4,7 +4,7 @@ DESCRIPTION = "The rpcbind utility is a server that converts RPC \
 SECTION = "console/network"
 HOMEPAGE = "http://sourceforge.net/projects/rpcbind/"
 BUGTRACKER = "http://sourceforge.net/tracker/?group_id=201237&atid=976751"
-DEPENDS = "libtirpc quota"
+DEPENDS = "libtirpc"
 
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b46486e4c4a416602693a711bb5bfa39 \
Signature · 1 line
2.43.0
#2 lore raw

PATCH 2/4 quota: Drop gettext-native from DEPENDS

In reply to Michal Sieron

Already handled by gettext.bbclass

---
 meta/recipes-extended/quota/quota_4.11.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/quota/quota_4.11.bb +1 -1
index 811056f1f7..e120833850 100644
@@ -15,7 +15,7 @@ CVE_PRODUCT = "linux_diskquota"
 UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/linuxquota/files/quota-tools/"
 UPSTREAM_CHECK_REGEX = "/quota-tools/(?P<pver>(\d+[\.\-_]*)+)/"
 
-DEPENDS = "gettext-native e2fsprogs libnl dbus"
+DEPENDS = "e2fsprogs libnl dbus"
 
 inherit autotools-brokensep gettext pkgconfig
 
Signature · 1 line
2.43.0
#3 lore raw

PATCH 3/4 quota: Move e2fsprogs dependency to PACKAGECONFIG

In reply to Michal Sieron
---
 meta/recipes-extended/quota/quota_4.11.bb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
meta/recipes-extended/quota/quota_4.11.bb +4 -3
index e120833850..8f9464f130 100644
@@ -15,7 +15,7 @@ CVE_PRODUCT = "linux_diskquota"
 UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/linuxquota/files/quota-tools/"
 UPSTREAM_CHECK_REGEX = "/quota-tools/(?P<pver>(\d+[\.\-_]*)+)/"
 
-DEPENDS = "e2fsprogs libnl dbus"
+DEPENDS = "libnl dbus"
 
 inherit autotools-brokensep gettext pkgconfig
 
@@ -23,8 +23,8 @@ CFLAGS += "${@bb.utils.contains('PACKAGECONFIG', 'rpc', '-I${STAGING_INCDIR}/tir
 LDFLAGS += "${@bb.utils.contains('PACKAGECONFIG', 'rpc', '-ltirpc', '', d)}"
 ASNEEDED = ""
 
-PACKAGECONFIG ??= "rpc bsd"
-PACKAGECONFIG:libc-musl = "rpc"
+PACKAGECONFIG ??= "rpc bsd ext2direct"
+PACKAGECONFIG:libc-musl = "rpc ext2direct"
 
 # rpcgen execs its preprocessor as a single program; OE's multi-word $CPP fails,
 # so point it at the cross cpp instead.
@@ -33,3 +33,4 @@ export RPCGEN_CPP = "${TARGET_PREFIX}cpp"
 PACKAGECONFIG[rpc] = "--enable-rpc,--disable-rpc,libtirpc rpcsvc-proto-native"
 PACKAGECONFIG[bsd] = "--enable-bsd_behaviour=yes,--enable-bsd_behaviour=no,"
 PACKAGECONFIG[ldapmail] = "--enable-ldapmail,--disable-ldapmail,openldap"
+PACKAGECONFIG[ext2direct] = "--enable-ext2direct,--disable-ext2direct,e2fsprogs"
Signature · 1 line
2.43.0
#4 lore raw

PATCH 4/4 quota: Move dbus, libnl dependencies to PACKAGECONFIG

In reply to Michal Sieron
---
 meta/recipes-extended/quota/quota_4.11.bb | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
meta/recipes-extended/quota/quota_4.11.bb +3 -4
index 8f9464f130..c02ab5ef14 100644
@@ -15,16 +15,14 @@ CVE_PRODUCT = "linux_diskquota"
 UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/linuxquota/files/quota-tools/"
 UPSTREAM_CHECK_REGEX = "/quota-tools/(?P<pver>(\d+[\.\-_]*)+)/"
 
-DEPENDS = "libnl dbus"
-
 inherit autotools-brokensep gettext pkgconfig
 
 CFLAGS += "${@bb.utils.contains('PACKAGECONFIG', 'rpc', '-I${STAGING_INCDIR}/tirpc', '', d)}"
 LDFLAGS += "${@bb.utils.contains('PACKAGECONFIG', 'rpc', '-ltirpc', '', d)}"
 ASNEEDED = ""
 
-PACKAGECONFIG ??= "rpc bsd ext2direct"
-PACKAGECONFIG:libc-musl = "rpc ext2direct"
+PACKAGECONFIG ??= "rpc bsd ext2direct netlink"
+PACKAGECONFIG:libc-musl = "rpc ext2direct netlink"
 
 # rpcgen execs its preprocessor as a single program; OE's multi-word $CPP fails,
 # so point it at the cross cpp instead.
@@ -34,3 +32,4 @@ PACKAGECONFIG[rpc] = "--enable-rpc,--disable-rpc,libtirpc rpcsvc-proto-native"
 PACKAGECONFIG[bsd] = "--enable-bsd_behaviour=yes,--enable-bsd_behaviour=no,"
 PACKAGECONFIG[ldapmail] = "--enable-ldapmail,--disable-ldapmail,openldap"
 PACKAGECONFIG[ext2direct] = "--enable-ext2direct,--disable-ext2direct,e2fsprogs"
+PACKAGECONFIG[netlink] = "--enable-netlink,--disable-netlink,dbus libnl"
Signature · 1 line
2.43.0