Skip to contentSkip to conversation

attr: Package attr, getfattr, and setfattr into attr-tools

PATCH In review Stefan Berger 2 participants 3 messages May 23, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 attr: Package attr, getfattr, and setfattr into attr-tools

---
 meta/recipes-support/attr/attr.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/recipes-support/attr/attr.inc +2 -1
index 8ba865a74a..2d2ff0912e 100644
@@ -20,9 +20,10 @@ SRC_URI = "${SAVANNAH_GNU_MIRROR}/attr/${BP}.tar.gz \
 
 inherit ptest update-alternatives autotools gettext
 
-PACKAGES =+ "lib${BPN}"
+PACKAGES =+ "lib${BPN} ${BPN}-tools"
 
 FILES:lib${BPN} = "${libdir}/lib*${SOLIBS}"
+FILES:${BPN}-tools = "${bindir}/*attr*"
 
 ALTERNATIVE_PRIORITY = "100"
 ALTERNATIVE:${PN} = "setfattr"
Signature · 1 line
2.34.1
#1 lore raw

What’s the rationale for this?

attr:
/etc/xattr.conf
/usr/bin/attr
/usr/bin/getfattr
/usr/bin/setfattr.attr

libattr:

	/usr/lib/libattr.so.1
	/usr/lib/libattr.so.1.1.2501

The library is already split out so what does this gain?

Also, the idiom for library packages which have binaries is to inherit lib_package.

Ross

#2 lore raw
Quoted 8 lines · Ross Burton

What’s the rationale for this?

attr:
/etc/xattr.conf
/usr/bin/attr
/usr/bin/getfattr
/usr/bin/setfattr.attr

Quoted 5 lines

libattr:

	/usr/lib/libattr.so.1
	/usr/lib/libattr.so.1.1.2501

The library is already split out so what does this gain?

I must have missed that attr package already exists.So, I am dropping this patch.

Stefan

Quoted 4 lines

Also, the idiom for library packages which have binaries is to inherit lib_package.

Ross