From: Mike Gilbert <floppym@gentoo.org>
To: gentoo-portage-dev@lists.gentoo.org
Subject: Re: [gentoo-portage-dev] [PATCH] Adjust mangling of "arch" value from scanelf output
Date: Thu, 24 Dec 2020 12:55:52 -0500 [thread overview]
Message-ID: <CAJ0EP40AOpYG4FLMtPTJ=s=Srg8Nx4xg6PiZrFAXcTDrDa=gUQ@mail.gmail.com> (raw)
In-Reply-To: <4af0d952-616f-1996-2772-25783f227b34@gentoo.org>
On Thu, Dec 24, 2020 at 1:31 AM Zac Medico <zmedico@gentoo.org> wrote:
>
> On 12/23/20 7:34 PM, Mike Gilbert wrote:
> > scanelf may generate output that looks like this:
> >
> > ```
> > UNKNOWN_TYPE;lib/firmware/ath10k/WCN3990/hw1.0/wlanmdsp.mbn;; - ;
> > EM_ARM;lib/firmware/mediatek/mt8183/scp.img;; - ;
> > ...
> > ```
> >
> > Previously, we removed the first 3 characters of the first field and
> > stored this as the "arch" in NEEDED.ELF.2. This unintentionally
> > changes "UNKNOWN_TYPE" to "NOWN_TYPE".
> >
> > Instead, let's just remove the string "EM_" from the front.
> >
> > Signed-off-by: Mike Gilbert <floppym@gentoo.org>
> > ---
> > bin/misc-functions.sh | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh
> > index c2a16cbe0..d7009d7eb 100755
> > --- a/bin/misc-functions.sh
> > +++ b/bin/misc-functions.sh
> > @@ -194,7 +194,7 @@ install_qa_check() {
> > fi
> >
> > echo "${obj} ${needed}" >> "${PORTAGE_BUILDDIR}"/build-info/NEEDED
> > - echo "${arch:3};${obj};${soname};${rpath};${needed}" >> "${PORTAGE_BUILDDIR}"/build-info/NEEDED.ELF.2
> > + echo "${arch#EM_};${obj};${soname};${rpath};${needed}" >> "${PORTAGE_BUILDDIR}"/build-info/NEEDED.ELF.2
> > done }
> >
> > [ -n "${QA_SONAME_NO_SYMLINK}" ] && \
> >
>
> Look good. This won't cause any problems for portage since these files
> are outside of the known multilib categories.
Thanks, pushed.
prev parent reply other threads:[~2020-12-24 17:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-24 3:34 [gentoo-portage-dev] [PATCH] Adjust mangling of "arch" value from scanelf output Mike Gilbert
2020-12-24 6:31 ` Zac Medico
2020-12-24 17:55 ` Mike Gilbert [this message]
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='CAJ0EP40AOpYG4FLMtPTJ=s=Srg8Nx4xg6PiZrFAXcTDrDa=gUQ@mail.gmail.com' \
--to=floppym@gentoo.org \
--cc=gentoo-portage-dev@lists.gentoo.org \
/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