dosfstools: add mkfs.vfat to ALTERNATIVE
PATCH 1/1 dosfstools: add mkfs.vfat to ALTERNATIVE
The mkfs.vfat tool can also be provided by busybox via the CONFIG_MKFS_VFAT configuration (not enabled by default in OE but can be enabled on systems avoiding components based on GPLv3).
--- meta/recipes-devtools/dosfstools/dosfstools_4.1.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
meta/recipes-devtools/dosfstools/dosfstools_4.1.bb +5 -1
@@ -16,7 +16,7 @@ SRC_URI[sha256sum] = "e6b2aca70ccc3fe3687365009dd94a2e18e82b688ed4e260e04b741247 UPSTREAM_CHECK_URI = "https://github.com/dosfstools/dosfstools/releases" -inherit autotools pkgconfig +inherit autotools pkgconfig update-alternatives EXTRA_OECONF = "--without-udev --enable-compat-symlinks"
@@ -26,3 +26,7 @@ BBCLASSEXTEND = "native nativesdk" # Add codepage437 to avoid error from `dosfsck -l` RRECOMMENDS_${PN}_append_libc-glibc = " glibc-gconv-ibm437" + +ALTERNATIVE_PRIORITY = "100" +ALTERNATIVE_${PN} = "mkfs.vfat" +ALTERNATIVE_LINK_NAME[mkfs.vfat] = "${base_sbindir}/mkfs.vfat"
Signature · 1 line
2.28.0
Quoted 9 lines · Ricardo Salveti
The mkfs.vfat tool can also be provided by busybox via the
CONFIG_MKFS_VFAT
configuration (not enabled by default in OE but can be enabled on systems avoiding components based on GPLv3).Signed-off-by Ricardo Salveti <[email protected]>--- meta/recipes-devtools/dosfstools/dosfstools_4.1.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
This seems to throw a lot of warnings:
WARNING: dosfstools-4.1-r0 do_package: dosfstools: alternative target (/sbin/mkfs.vfat or /sbin/mkfs.vfat.dosfstools) does not exist, skipping...
WARNING: dosfstools-4.1-r0 do_package: dosfstools: NOT adding alternative provide /sbin/mkfs.vfat: /sbin/mkfs.vfat.dosfstools does not exist
WARNING: dosfstools-4.1-r0 do_package: dosfstools: alt_link == alt_target: /sbin/mkfs.vfat == /sbin/mkfs.vfat
(see the builds in https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/1531)
Cheers,
Richard
Quoted 12 lines · Richard Purdie
Quoted 9 lines · Ricardo Salveti
The mkfs.vfat tool can also be provided by busybox via the
CONFIG_MKFS_VFAT
configuration (not enabled by default in OE but can be enabled on systems avoiding components based on GPLv3).Signed-off-by Ricardo Salveti <[email protected]>--- meta/recipes-devtools/dosfstools/dosfstools_4.1.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
Quoted 7 lines
This seems to throw a lot of warnings:
WARNING: dosfstools-4.1-r0
do_package: dosfstools: alternative target (/sbin/mkfs.vfator/sbin/mkfs.vfat.dosfstools) does not exist, skipping...
WARNING: dosfstools-4.1-r0do_package: dosfstools: NOT adding alternative provide/sbin/mkfs.vfat:/sbin/mkfs.vfat.dosfstoolsdoes not exist
WARNING: dosfstools-4.1-r0do_package: dosfstools:alt_link==alt_target:/sbin/mkfs.vfat==/sbin/mkfs.vfat(see the builds in https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/1531)
Interesting, a subtle base_sbindir/sbindir difference. Tested with usrmerge, where both point to the same path.
Will send a v2.
Thanks,
Signature · 1 line
Ricardo Salveti