All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: "Andreas Müller" <schnitzeltony@gmail.com>
Cc: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 04/11] bitbake.conf: add variables 'mimedir' and 'desktopdir'
Date: Thu, 09 Jan 2020 22:27:38 +0000	[thread overview]
Message-ID: <9fe9f49a204728b0ad9168a45d357fc941ad63e0.camel@linuxfoundation.org> (raw)
In-Reply-To: <CALbNGRRcKK-Y-xjqnV1ESxOnEa=vM+-1x4uH2JiMvxKOqnTVng@mail.gmail.com>

On Thu, 2020-01-09 at 23:21 +0100, Andreas Müller wrote:
> On Thu, Jan 9, 2020 at 11:15 PM Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
> > On Thu, 2020-01-09 at 21:26 +0100, Andreas Müller wrote:
> > > mimedir:
> > >    This is the path all mime information is stored at and
> > >    update-mime-database works with
> > > desktopdir:
> > >    All application .desktop files are stored here
> > > 
> > > Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
> > > ---
> > >  meta/conf/bitbake.conf | 4 +++-
> > >  1 file changed, 3 insertions(+), 1 deletion(-)
> > > 
> > > diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> > > index 263d8aea4f..6fb4072f1b 100644
> > > --- a/meta/conf/bitbake.conf
> > > ++++++ b/meta/conf/bionf/bitbake.conf
> > > @@ -34,6 +34,8 @@ export datadir = "${prefix}/share"
> > >  export infodir = "${datadir}/info"
> > >  export mandir = "${datadir}/man"
> > >  export docdir = "${datadir}/doc"
> > > +export mimedir = "${datadir}/mime"
> > > +export desktopdir = "${datadir}/applications"
> > 
> > Do these really need to be exported to the environment for
> > everything?
>
> It is not mandatory. It is just that I wanted to avoid redundancies
> in insane.bbclass / mime*.bbclass. If adding exports is a problem I
> can remove that. Let me know

There are two issues here. One is that:

export mimedir = "${datadir}/mime"

and:

mimedir = "${datadir}/mime"

are quite different. The first one will place it in the environment of
every shell task. For makefiles, this is necessary for some variables
but in general its not and I'd prefer to clean up the shell environment
where we can rather than make it worse. I suspect you don't need the
export.

If we could move the setting of mimedir to mine.bbclass, that would
also be better since variables have an effect on parsing time. I can
see how wanting to share it between the two classes makes this trickier
though and I'm torn on that, I can see the problem.

Cheers,

Richard




  reply	other threads:[~2020-01-09 22:27 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-09 20:26 [PATCH 00/11] Make MIME work on desktops Andreas Müller
2020-01-09 20:26 ` [PATCH 01/11] itstool: add from meta-oe Andreas Müller
2020-01-09 20:35   ` Alexander Kanavin
2020-01-09 20:44     ` Andreas Müller
2020-01-09 21:35       ` Alexander Kanavin
2020-01-09 20:26 ` [PATCH 02/11] itstool: extend to nativesdk Andreas Müller
2020-01-09 20:26 ` [PATCH 03/11] shared-mime-info: upgrade 1.10 -> 1.15 Andreas Müller
2020-01-09 20:34   ` Alexander Kanavin
2020-01-09 20:43     ` Andreas Müller
2020-01-09 20:26 ` [PATCH 04/11] bitbake.conf: add variables 'mimedir' and 'desktopdir' Andreas Müller
2020-01-09 22:15   ` Richard Purdie
2020-01-09 22:21     ` Andreas Müller
2020-01-09 22:27       ` Richard Purdie [this message]
2020-01-09 22:59         ` Andreas Müller
2020-01-09 20:26 ` [PATCH 05/11] mime.bbclass: rework Andreas Müller
2020-01-09 20:26 ` [PATCH 06/11] insane.bbclass: introduce a warning for mime missing in inherit Andreas Müller
2020-01-10 15:07   ` Peter Kjellerstedt
2020-01-09 20:26 ` [PATCH 07/11] shared-mime-info: add mime to inherit Andreas Müller
2020-01-09 20:26 ` [PATCH 08/11] gcr: " Andreas Müller
2020-01-09 20:26 ` [PATCH 09/11] mime-xdg.bbclass: initial add Andreas Müller
2020-01-09 20:26 ` [PATCH 10/11] insane.bbclass: Spawn warning for missing mime-xdg in inherit Andreas Müller
2020-01-09 20:26 ` [PATCH 11/11] gcr: add mime-xdg to inherit Andreas Müller
2020-01-09 20:32 ` ✗ patchtest: failure for Make MIME work on desktops Patchwork
2020-01-11 10:26 ` [PATCH 00/11] " Andreas Müller

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=9fe9f49a204728b0ad9168a45d357fc941ad63e0.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=schnitzeltony@gmail.com \
    /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 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.