From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package/busybox: disable setfattr when attr package is enabled
Date: Sat, 5 May 2018 17:58:53 +0200 [thread overview]
Message-ID: <20180505155853.GD14524@scaer> (raw)
In-Reply-To: <87tvrmuxvw.fsf@dell.be.48ers.dk>
Peter, All,
On 2018-05-05 13:48 +0200, Peter Korsgaard spake thusly:
> >>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:
>
> > The install procedure of attr is kinda borked: it does not unlink any
> > existing destination file during installation, but directly wites into
> > it. So, when busybox is instaleld before attr and installs its applets
> > as hardlinks, attr will overwrite the setfattr file, thus borking the
> > busybox binary and all its applets.
>
> > So, when the attr package is enabled, we disable the setfattr applet.
>
> > Fixes: #10986.
>
> > Reported-by: mzweerspenko+bugzilla at gmail.com
> > Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> > Cc: mzweerspenko+bugzilla at gmail.com
>
> It would be nicer to instead fix the attr build system. I took a quick
> look, and the problem seems to be that installation is done with their
> own install-sh script which uses cp (and no --remove-destination).
>
> I *THINK* a fix would just be to change the 'INSTALL =' line in
> include/buildmacros to use normal install instead of this install-sh
> script.
>
> Could you give that a try?
I'm first going to bump to the latest version, 2.4.48 (from 2.4.47),
because 2.4.48 has had a complete overhaul of its buildsystem.
If that gets too comples, then I'll try to fix the current attr code.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2018-05-05 15:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-04 20:37 [Buildroot] [PATCH] package/busybox: disable setfattr when attr package is enabled Yann E. MORIN
2018-05-05 11:48 ` Peter Korsgaard
2018-05-05 15:58 ` Yann E. MORIN [this message]
2018-05-05 22:26 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180505155853.GD14524@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox