All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] e2fsprogs: add alternatives handling of lsattr as well
@ 2022-06-08 13:12 Rasmus Villemoes
  2022-06-08 20:09 ` Paulo Neves
  2022-06-09  7:20 ` [OE-core] " Luca Ceresoli
  0 siblings, 2 replies; 4+ messages in thread
From: Rasmus Villemoes @ 2022-06-08 13:12 UTC (permalink / raw)
  To: openembedded-core; +Cc: Ross Burton, Richard Purdie, Rasmus Villemoes

Building busybox with CONFIG_LSATTR=y and installing that in the same
filesystem as e2fsprogs breaks:

  ERROR: ... do_rootfs: Postinstall scriptlets of ['busybox'] have failed. If the intention is to defer them to first boot,
  then please place them into pkg_postinst_ontarget:${PN} ().
  Deferring to first boot via 'exit 1' is no longer supported.

Fix that by also alternatifying lsattr just as chattr already is.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
---
 meta/recipes-devtools/e2fsprogs/e2fsprogs_1.46.5.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.46.5.bb b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.46.5.bb
index ec48f419c7a..5b2d1921f08 100644
--- a/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.46.5.bb
+++ b/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.46.5.bb
@@ -51,6 +51,7 @@ do_install () {
 	oe_multilib_header ext2fs/ext2_types.h
 	install -d ${D}${base_bindir}
 	mv ${D}${bindir}/chattr ${D}${base_bindir}/chattr.e2fsprogs
+	mv ${D}${bindir}/lsattr ${D}${base_bindir}/lsattr.e2fsprogs
 
 	install -v -m 755 ${S}/contrib/populate-extfs.sh ${D}${base_sbindir}/
 
@@ -99,10 +100,12 @@ FILES:libe2p = "${base_libdir}/libe2p.so.*"
 FILES:libext2fs = "${libdir}/e2initrd_helper ${base_libdir}/libext2fs.so.*"
 FILES:${PN}-dev += "${datadir}/*/*.awk ${datadir}/*/*.sed ${base_libdir}/*.so ${bindir}/compile_et ${bindir}/mk_cmds"
 
-ALTERNATIVE:${PN} = "chattr"
+ALTERNATIVE:${PN} = "chattr lsattr"
 ALTERNATIVE_PRIORITY = "100"
 ALTERNATIVE_LINK_NAME[chattr] = "${base_bindir}/chattr"
 ALTERNATIVE_TARGET[chattr] = "${base_bindir}/chattr.e2fsprogs"
+ALTERNATIVE_LINK_NAME[lsattr] = "${base_bindir}/lsattr"
+ALTERNATIVE_TARGET[lsattr] = "${base_bindir}/lsattr.e2fsprogs"
 
 ALTERNATIVE:${PN}-doc = "fsck.8"
 ALTERNATIVE_LINK_NAME[fsck.8] = "${mandir}/man8/fsck.8"
-- 
2.31.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] e2fsprogs: add alternatives handling of lsattr as well
  2022-06-08 13:12 [PATCH] e2fsprogs: add alternatives handling of lsattr as well Rasmus Villemoes
@ 2022-06-08 20:09 ` Paulo Neves
  2022-06-09  7:20 ` [OE-core] " Luca Ceresoli
  1 sibling, 0 replies; 4+ messages in thread
From: Paulo Neves @ 2022-06-08 20:09 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 19 bytes --]

Looks good to me.

[-- Attachment #2: Type: text/html, Size: 19 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [OE-core] [PATCH] e2fsprogs: add alternatives handling of lsattr as well
  2022-06-08 13:12 [PATCH] e2fsprogs: add alternatives handling of lsattr as well Rasmus Villemoes
  2022-06-08 20:09 ` Paulo Neves
@ 2022-06-09  7:20 ` Luca Ceresoli
  2022-06-09 10:06   ` Rasmus Villemoes
  1 sibling, 1 reply; 4+ messages in thread
From: Luca Ceresoli @ 2022-06-09  7:20 UTC (permalink / raw)
  To: Rasmus Villemoes via lists.openembedded.org
  Cc: rasmus.villemoes, openembedded-core, Ross Burton, Richard Purdie

Hi Rasmus,

On Wed,  8 Jun 2022 15:12:05 +0200
"Rasmus Villemoes via lists.openembedded.org"
<rasmus.villemoes=prevas.dk@lists.openembedded.org> wrote:
                 ^^^^^^^^^^^

As you can see above, your sender address is getting mangled. This is
not your fault, but it makes applying your patches annoying.

Can you please try to work around that by setting the sendemail.from
parameter in your git config?

You can read the details in this discussion:
https://lists.openembedded.org/g/openembedded-core/message/166515?p=%2C%2C%2C20%2C0%2C0%2C0%3A%3Acreated%2C0%2Crootfs.py%3A+find+.ko.zst+kernel+modules%2C20%2C2%2C0%2C91453338

Thanks you very much!

-- 
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [OE-core] [PATCH] e2fsprogs: add alternatives handling of lsattr as well
  2022-06-09  7:20 ` [OE-core] " Luca Ceresoli
@ 2022-06-09 10:06   ` Rasmus Villemoes
  0 siblings, 0 replies; 4+ messages in thread
From: Rasmus Villemoes @ 2022-06-09 10:06 UTC (permalink / raw)
  To: Luca Ceresoli; +Cc: openembedded-core, Ross Burton, Richard Purdie

On 09/06/2022 09.20, Luca Ceresoli wrote:
> Hi Rasmus,
> 
> On Wed,  8 Jun 2022 15:12:05 +0200
> "Rasmus Villemoes via lists.openembedded.org"
> <rasmus.villemoes=prevas.dk@lists.openembedded.org> wrote:
>                  ^^^^^^^^^^^
> 
> As you can see above, your sender address is getting mangled. This is
> not your fault, but it makes applying your patches annoying.
> 
> Can you please try to work around that by setting the sendemail.from
> parameter in your git config?

Sorry about that, didn't know it.

It's not completely clear if I should put just the email address or the
full "Name <email>" in that configuration item, i.e. whether it's

[sendemail]
        from = rasmus.villemoes@prevas.dk

or

[sendemail]
        from = Rasmus Villemoes <rasmus.villemoes@prevas.dk>

For now I've gone with the latter, please let me know if that's correct.
In any case we'll see if it works the next time I submit a patch.

Rasmus


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-06-09 10:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 13:12 [PATCH] e2fsprogs: add alternatives handling of lsattr as well Rasmus Villemoes
2022-06-08 20:09 ` Paulo Neves
2022-06-09  7:20 ` [OE-core] " Luca Ceresoli
2022-06-09 10:06   ` Rasmus Villemoes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.