All of lore.kernel.org
 help / color / mirror / Atom feed
* should "${D}${systemd_unitdir}/system" => "${D}${systemd_system_unitdir}"?
@ 2021-08-18  7:48 Robert P. J. Day
  2021-08-18 10:07 ` [OE-core] " Ross Burton
  0 siblings, 1 reply; 5+ messages in thread
From: Robert P. J. Day @ 2021-08-18  7:48 UTC (permalink / raw)
  To: OE Core mailing list


  i've (so far) run across a small number of OE recipes that use the
identifier "${D}${systemd_unitdir}/system", which appears(?) to be
equivalent to "${D}${systemd_system_unitdir}". is there any potential
functional difference, or should this be standardized?

rday

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

* Re: [OE-core] should "${D}${systemd_unitdir}/system" => "${D}${systemd_system_unitdir}"?
  2021-08-18  7:48 should "${D}${systemd_unitdir}/system" => "${D}${systemd_system_unitdir}"? Robert P. J. Day
@ 2021-08-18 10:07 ` Ross Burton
  2021-08-18 11:54   ` Robert P. J. Day
  2021-08-25 12:42   ` Robert P. J. Day
  0 siblings, 2 replies; 5+ messages in thread
From: Ross Burton @ 2021-08-18 10:07 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: OE Core mailing list

No, yes.  systemd_system_unitdir is newer so it's used less.

Ross

On Wed, 18 Aug 2021 at 08:48, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
>
>
>   i've (so far) run across a small number of OE recipes that use the
> identifier "${D}${systemd_unitdir}/system", which appears(?) to be
> equivalent to "${D}${systemd_system_unitdir}". is there any potential
> functional difference, or should this be standardized?
>
> rday
>
> 
>

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

* Re: [OE-core] should "${D}${systemd_unitdir}/system" => "${D}${systemd_system_unitdir}"?
  2021-08-18 10:07 ` [OE-core] " Ross Burton
@ 2021-08-18 11:54   ` Robert P. J. Day
  2021-08-25 12:42   ` Robert P. J. Day
  1 sibling, 0 replies; 5+ messages in thread
From: Robert P. J. Day @ 2021-08-18 11:54 UTC (permalink / raw)
  To: Ross Burton; +Cc: OE Core mailing list

On Wed, 18 Aug 2021, Ross Burton wrote:

> No, yes.  systemd_system_unitdir is newer so it's used less.

  i'll put together a patch and see if it's just more churn than it's
worth.

rday

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

* Re: [OE-core] should "${D}${systemd_unitdir}/system" => "${D}${systemd_system_unitdir}"?
  2021-08-18 10:07 ` [OE-core] " Ross Burton
  2021-08-18 11:54   ` Robert P. J. Day
@ 2021-08-25 12:42   ` Robert P. J. Day
  2021-08-25 12:54     ` Peter Kjellerstedt
  1 sibling, 1 reply; 5+ messages in thread
From: Robert P. J. Day @ 2021-08-25 12:42 UTC (permalink / raw)
  To: Ross Burton; +Cc: OE Core mailing list

On Wed, 18 Aug 2021, Ross Burton wrote:

> No, yes.  systemd_system_unitdir is newer so it's used less.
>
> Ross
>
> On Wed, 18 Aug 2021 at 08:48, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
> >
> >
> >   i've (so far) run across a small number of OE recipes that use the
> > identifier "${D}${systemd_unitdir}/system", which appears(?) to be
> > equivalent to "${D}${systemd_system_unitdir}". is there any potential
> > functional difference, or should this be standardized?

  please help me with basic REs ... i want to run a single perl
command of the form

  $ perl -pi -e 's|...|...|' $(all the relevant files)

to change "${D}${systemd_unitdir}/system" -> "${D}${systemd_system_unitdir}"

and then eyeball it afterwards to make sure it's sane, but i can't get
the proper combination of quotes versus backslashes. i can generate
the list of appropriate files with:

  $ grep -rl '${systemd_unitdir}/system' *

but it's the perl expression that is defeating me. help.

rday


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

* Re: [OE-core] should "${D}${systemd_unitdir}/system" => "${D}${systemd_system_unitdir}"?
  2021-08-25 12:42   ` Robert P. J. Day
@ 2021-08-25 12:54     ` Peter Kjellerstedt
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Kjellerstedt @ 2021-08-25 12:54 UTC (permalink / raw)
  To: Robert P. J. Day, Ross Burton; +Cc: OE Core mailing list

> -----Original Message-----
> From: openembedded-core@lists.openembedded.org <openembedded-
> core@lists.openembedded.org> On Behalf Of Robert P. J. Day
> Sent: den 25 augusti 2021 14:42
> To: Ross Burton <ross@burtonini.com>
> Cc: OE Core mailing list <openembedded-core@lists.openembedded.org>
> Subject: Re: [OE-core] should "${D}${systemd_unitdir}/system" =>
> "${D}${systemd_system_unitdir}"?
> 
> On Wed, 18 Aug 2021, Ross Burton wrote:
> 
> > No, yes.  systemd_system_unitdir is newer so it's used less.
> >
> > Ross
> >
> > On Wed, 18 Aug 2021 at 08:48, Robert P. J. Day <rpjday@crashcourse.ca>
> wrote:
> > >
> > >
> > >   i've (so far) run across a small number of OE recipes that use the
> > > identifier "${D}${systemd_unitdir}/system", which appears(?) to be
> > > equivalent to "${D}${systemd_system_unitdir}". is there any potential
> > > functional difference, or should this be standardized?
> 
>   please help me with basic REs ... i want to run a single perl
> command of the form
> 
>   $ perl -pi -e 's|...|...|' $(all the relevant files)
> 
> to change "${D}${systemd_unitdir}/system" ->
> "${D}${systemd_system_unitdir}"
> 
> and then eyeball it afterwards to make sure it's sane, but i can't get
> the proper combination of quotes versus backslashes. i can generate
> the list of appropriate files with:
> 
>   $ grep -rl '${systemd_unitdir}/system' *
> 
> but it's the perl expression that is defeating me. help.
> 
> rday

Just use sed, it's what it's there for:

sed -ri -e 's|\$\{systemd_unitdir\}/system|${systemd_system_unitdir}|g' **/*(.)

(the **/*(.) part only works if you use zsh, for bash you will have 
to use find and xargs instead).

//Peter


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

end of thread, other threads:[~2021-08-25 12:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-18  7:48 should "${D}${systemd_unitdir}/system" => "${D}${systemd_system_unitdir}"? Robert P. J. Day
2021-08-18 10:07 ` [OE-core] " Ross Burton
2021-08-18 11:54   ` Robert P. J. Day
2021-08-25 12:42   ` Robert P. J. Day
2021-08-25 12:54     ` Peter Kjellerstedt

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.