Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denis@denix.org>
To: openembedded-devel@lists.openembedded.org
Cc: Ian Ray <ian.ray@ge.com>
Subject: Re: [meta-oe][krogoth][PATCH] syslog-ng: expand service file @variables@ earlier
Date: Thu, 27 Oct 2016 16:04:30 -0400	[thread overview]
Message-ID: <20161027200430.GJ2494@denix.org> (raw)
In-Reply-To: <64B593B9-ABC1-4FAA-975D-144F46C7B134@gmail.com>

On Thu, Oct 27, 2016 at 12:55:33PM -0700, Khem Raj wrote:
> 
> > On Oct 27, 2016, at 10:02 AM, Denys Dmytriyenko <denis@denix.org> wrote:
> > 
> > From: Ian Ray <ian.ray@ge.com>
> > 
> > Move variable expansion of @SBINDIR@, @LOCALSTATEDIR@, and @BASEBINDIR@
> > earlier during install, to before the systemd service file is installed
> > by an automake rule.
> > 
> > Signed-off-by: Ian Ray <ian.ray@ge.com>
> > Signed-off-by: Denys Dmytriyenko <denys@ti.com>
> > ---
> > meta-oe/recipes-support/syslog-ng/syslog-ng.inc | 9 ++++++---
> > 1 file changed, 6 insertions(+), 3 deletions(-)
> > 
> > diff --git a/meta-oe/recipes-support/syslog-ng/syslog-ng.inc b/meta-oe/recipes-support/syslog-ng/syslog-ng.inc
> > index 4e0f697..898e9c2 100644
> > --- a/meta-oe/recipes-support/syslog-ng/syslog-ng.inc
> > +++ b/meta-oe/recipes-support/syslog-ng/syslog-ng.inc
> > @@ -60,6 +60,12 @@ do_configure_prepend() {
> >     eval "${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '', 'sed -i -e "s/-D_LARGEFILE_SOURCE//" -e "s/-D_FILE_OFFSET_BITS=64//" ${S}/configure.in', d)}"
> > }
> > 
> > +do_install_prepend() {
> > +    sed -i -e 's,@SBINDIR@,${sbindir},g' ${S}/contrib/systemd/*.service
> > +    sed -i -e 's,@LOCALSTATEDIR@,${localstatedir},g' ${S}/contrib/systemd/*.service
> > +    sed -i -e 's,@BASEBINDIR@,${base_bindir},g' ${S}/contrib/systemd/*.service
> > +}
> 
> perhaps, its better to sed the installed artifacts in staging area under ${D}
> it can be done during post install and then ${S} is not edited as it is doing
> right now.

That would probably be a better solution... for master. This is just a mere 
backport of the commit already in master.


> > do_install_append() {
> >     install -d ${D}/${sysconfdir}/${BPN}
> >     install ${WORKDIR}/syslog-ng.conf ${D}${sysconfdir}/${BPN}/${BPN}.conf
> > @@ -70,9 +76,6 @@ do_install_append() {
> >     install -d ${D}/${localstatedir}/lib/${BPN}
> >     # Remove /var/run as it is created on startup
> >     rm -rf ${D}${localstatedir}/run
> > -    sed -i -e 's,@SBINDIR@,${sbindir},g' ${S}/contrib/systemd/*.service
> > -    sed -i -e 's,@LOCALSTATEDIR@,${localstatedir},g' ${S}/contrib/systemd/*.service
> > -    sed -i -e 's,@BASEBINDIR@,${base_bindir},g' ${S}/contrib/systemd/*.service
> > }
> > 
> > FILES_${PN} += "${datadir}/include/scl/ ${datadir}/xsd ${datadir}/tools"
> > --
> > 2.7.4
> > 
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> 



> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel



  reply	other threads:[~2016-10-27 20:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-27 17:02 [meta-oe][krogoth][PATCH] syslog-ng: expand service file @variables@ earlier Denys Dmytriyenko
2016-10-27 19:55 ` Khem Raj
2016-10-27 20:04   ` Denys Dmytriyenko [this message]
2016-10-28  1:27     ` Khem Raj
2016-11-03 15:20 ` akuster808
2016-11-14 19:09   ` Denys Dmytriyenko
2016-11-17  3:58     ` Denys Dmytriyenko
2016-11-18 15:25       ` akuster808
2016-12-07 17:40         ` Denys Dmytriyenko
2016-12-13  3:55           ` akuster808
2016-12-14  2:25             ` Denys Dmytriyenko

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=20161027200430.GJ2494@denix.org \
    --to=denis@denix.org \
    --cc=ian.ray@ge.com \
    --cc=openembedded-devel@lists.openembedded.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