Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Alexander Kanavin <alexander.kanavin@linux.intel.com>
To: Ovidiu Panait <ovidiu.panait@windriver.com>,
	openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] nativesdk-rpm: Add wrappers for nativesdk support
Date: Tue, 27 Feb 2018 16:09:53 +0200	[thread overview]
Message-ID: <af855f84-4b86-d8d6-94ee-7ef56915ef05@linux.intel.com> (raw)
In-Reply-To: <20180227134541.147175-1-ovidiu.panait@windriver.com>

On 02/27/2018 03:45 PM, Ovidiu Panait wrote:
> +do_install_append_class-nativesdk() {
> +        tools="\
> +                ${bindir}/rpm \
> +                ${bindir}/rpm2archive \
> +                ${bindir}/rpm2cpio \
> +                ${bindir}/rpmbuild \
> +                ${bindir}/rpmdb \
> +                ${bindir}/rpmgraph \
> +                ${bindir}/rpmkeys \
> +                ${bindir}/rpmsign \
> +                ${bindir}/rpmspec \
> +                ${libdir}/rpm/rpmdeps \
> +        "
> +
> +        for tool in $tools; do
> +                create_wrapper ${D}$tool \
> +                        RPM_CONFIGDIR='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir', True), d.getVar('bindir', True))}/rpm \
> +                        RPM_ETCCONFIGDIR='$'{RPM_ETCCONFIGDIR-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir', True), d.getVar('bindir', True))}/..} \
> +                        MAGIC='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir', True), d.getVar('bindir', True))}/misc/magic.mgc \
> +                        RPM_NO_CHROOT_FOR_SCRIPTS=1
> +        done
> +
> +        rm -rf ${D}/var
> +}

Can this be done without copy-pasting an existing function please?

Alex


  reply	other threads:[~2018-02-27 14:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-27 13:45 [PATCH] nativesdk-rpm: Add wrappers for nativesdk support Ovidiu Panait
2018-02-27 14:09 ` Alexander Kanavin [this message]
2018-02-27 14:46   ` Mark Hatle

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=af855f84-4b86-d8d6-94ee-7ef56915ef05@linux.intel.com \
    --to=alexander.kanavin@linux.intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=ovidiu.panait@windriver.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox