Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v4, 2/3] package/gobject-introspection: export cc in g-ir-scanner
Date: Sun, 15 Mar 2020 08:48:25 +0100	[thread overview]
Message-ID: <20200315074825.GR705@scaer> (raw)
In-Reply-To: <CAFSsvmrpj=Dzpz6GLO6FEha7WJ1H7bgD-bP4jtRNOm0em9c1Ug@mail.gmail.com>

Adam, ll,

On 2020-03-14 17:40 -0700, Adam Duskett spake thusly:
> On Sat, Mar 14, 2020 at 10:22 AM Yann E. MORIN <yann.morin.1998@free.fr> wrote:
> > On 2020-03-12 12:46 -0700, aduskett at gmail.com spake thusly:
> > > From: Adam Duskett <Aduskett@gmail.com>
> > > Without this export, the host variant of g-ir-scanner will call the host
> > > gcc for linking.
[--SNIP--]
> > > +export CC="$(dirname "${0}")/../../../../bin/@BASENAME_TARGET_CC@"
> > HHhmmm. I remember that I said I wanted the wrapper to still be
> > relocatable. But it is in staging (sysroot) while the compiler is in
> > host dir, so you added that many .././/.. needed to got from there to
> > there.
> >
> > But look at the line below: we already have HOST_DIR:
> >
> > >  ${HOST_DIR}/bin/g-ir-scanner \
> >    ^^^^^^^^^^^
> >
> > So, just:
> >
> >     export CC="${HOST_DIR}/bin/@BASENAME_TARGET_CC@"
> >
> > Or did we miss something?
> 
> That's what I had originally and you said to change it to this!

That's not exactly what you did, which was:

    export CC=@TARGET_CC@

and:

    $(SED) "s%@TARGET_CC@%$(TARGET_CC)%g" $(STAGING_DIR)/usr/bin/g-ir-scanner

So, even if it would use the same path, it is not semantically
equivalent.

> Make up your mind! These patches take 2 - 3 weeks each to be reviewed
> and it is fairly annoying when a request for a change comes through, I make that
> change quickly, the changes sit for several weeks, and then a new
> request to revert
> the change that was originally requested comes in.

Sorry, but as you know well, this is a volunteer effort, and there is
always so much time available, and so many patches pending.

I agree that it can be frustrating, yes. I've been there too. We've all
been there...

But please, be sure that your work is very welcome. It's just that the
goi is so baly borked by design that it makes the topic so complex.

And when applying something, I like to at least have the impression that
I do understand the problkem and that the fix, how ugly it is, is indeed
the only solution.

> I will remake the patch with
> HOST_DIR again.

Thank you for staying on board! :-)

Regards,
Yann E. MORIN.

> Adam
> >
> > Regards,
> > Yann E. MORIN.
> >
> > >  --lib-dirs-envvar=GIR_EXTRA_LIBS_PATH \
> > >  --use-binary-wrapper=$(dirname $0)/g-ir-scanner-qemuwrapper \
> > > diff --git a/package/gobject-introspection/gobject-introspection.mk b/package/gobject-introspection/gobject-introspection.mk
> > > index 9043390857..a508957904 100644
> > > --- a/package/gobject-introspection/gobject-introspection.mk
> > > +++ b/package/gobject-introspection/gobject-introspection.mk
> > > @@ -104,6 +104,8 @@ define GOBJECT_INTROSPECTION_INSTALL_WRAPPERS
> > >               $(INSTALL) -D -m 755 \
> > >                       $(GOBJECT_INTROSPECTION_PKGDIR)/$(w).in $(STAGING_DIR)/usr/bin/$(w)
> > >       )
> > > +     $(SED) "s%@BASENAME_TARGET_CC@%$(notdir $(TARGET_CC))%g" $(STAGING_DIR)/usr/bin/g-ir-scanner
> > > +
> > >       # Gobject-introspection installs Makefile.introspection in
> > >       # $(STAGING_DIR)/usr/share which is needed for autotools-based programs to
> > >       # build .gir and .typelib files. Unfortuantly, gobject-introspection-1.0.pc
> > > --
> > > 2.24.1
> > >
> > > _______________________________________________
> > > buildroot mailing list
> > > buildroot at busybox.net
> > > http://lists.busybox.net/mailman/listinfo/buildroot
> >
> > --
> > .-----------------.--------------------.------------------.--------------------.
> > |  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
> > | +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
> > | +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
> > | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
> > '------------------------------^-------^------------------^--------------------'

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

  reply	other threads:[~2020-03-15  7:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-12 19:46 [Buildroot] [PATCH v4, 1/3] package/gobject-introspection: fix host-linking aduskett at gmail.com
2020-03-12 19:46 ` [Buildroot] [PATCH v4, 2/3] package/gobject-introspection: export cc in g-ir-scanner aduskett at gmail.com
2020-03-14 17:22   ` Yann E. MORIN
2020-03-15  0:40     ` Adam Duskett
2020-03-15  7:48       ` Yann E. MORIN [this message]
2020-03-12 19:46 ` [Buildroot] [PATCH v4, 3/3] package/meson: determine g-ir-scanner and g-ir-compiler paths from pkgconfig aduskett at gmail.com
2020-03-14 17:19   ` Yann E. MORIN
2020-03-15  0:41     ` Adam Duskett
2020-03-14 17:36 ` [Buildroot] [PATCH v4, 1/3] package/gobject-introspection: fix host-linking Yann E. MORIN
2020-03-15  0:37   ` Adam Duskett

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=20200315074825.GR705@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