mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 21:32:12 +02:00
e2fsprogs: use update-alt for chattr
Both busybox and e2fsprogs provide chattr, ensure that they are delivered to the same location and use update-alternatives to ensure the correct links are there. [YOCTO #6407] (From OE-Core rev: 23f1dddbf9cf783d90040b67978d1291b16a13de) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
03def887a4
commit
bcef58953a
@@ -54,6 +54,8 @@ do_install () {
|
||||
fi
|
||||
|
||||
oe_multilib_header ext2fs/ext2_types.h
|
||||
install -d ${D}${base_bindir}
|
||||
mv ${D}${bindir}/chattr ${D}${base_bindir}/chattr.e2fsprogs
|
||||
}
|
||||
|
||||
RDEPENDS_e2fsprogs = "e2fsprogs-badblocks"
|
||||
@@ -73,3 +75,10 @@ FILES_libext2fs = "${libdir}/e2initrd_helper ${base_libdir}/libext2fs.so.*"
|
||||
FILES_${PN}-dev += "${datadir}/*/*.awk ${datadir}/*/*.sed ${base_libdir}/*.so"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
|
||||
inherit update-alternatives
|
||||
|
||||
ALTERNATIVE_${PN} = "chattr"
|
||||
ALTERNATIVE_PRIORITY = "100"
|
||||
ALTERNATIVE_LINK_NAME[chattr] = "${base_bindir}/chattr"
|
||||
ALTERNATIVE_TARGET[chattr] = "${base_bindir}/chattr.e2fsprogs"
|
||||
|
||||
Reference in New Issue
Block a user