From: Saul Wold <sgw@linux.intel.com>
To: jani.uusi-rantala@nokia.com
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] Magic file path should be given for rpmbuild
Date: Thu, 11 Aug 2011 14:35:19 -0700 [thread overview]
Message-ID: <4E444B17.7030000@linux.intel.com> (raw)
In-Reply-To: <B497E783C723AE4386DDEA96AF1D2B989EB6DB@008-AM1MPN1-011.mgdnok.nokia.com>
On 08/11/2011 08:50 AM, jani.uusi-rantala@nokia.com wrote:
> From d54b975506c392cfb59dbb3caf313ac061b6fa01 Mon Sep 17 00:00:00 2001
> From: Jani Uusi-Rantala <jani.uusi-rantala@nokia.com>
> Date: Thu, 11 Aug 2011 18:37:56 +0300
> Subject: [PATCH] Magic file path should be given for rpmbuild in
> _rpmfc_magic_path define so that build system default file
> is not used by accident. Not doing this caused many
> packages to fail building in several systems.
>
> Fixes [YOCTO #1358]
>
> Signed-off-by: Jani Uusi-Rantala <jani.uusi-rantala@nokia.com>
> ---
> meta/classes/package_rpm.bbclass | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
> index f123229..59e8d48 100644
> --- a/meta/classes/package_rpm.bbclass
> +++ b/meta/classes/package_rpm.bbclass
> @@ -822,6 +822,7 @@ python do_package_rpm () {
> targetvendor = bb.data.getVar('TARGET_VENDOR', d, True)
> pkgwritedir = bb.data.expand('${PKGWRITEDIRRPM}/${PACKAGE_ARCH}', d)
> pkgarch = bb.data.expand('${PACKAGE_ARCH}', d)
> + magicfile = bb.data.expand('${STAGING_DIR_NATIVE}/usr/share/misc/magic.mgc', d)
> bb.mkdirhier(pkgwritedir)
> os.chmod(pkgwritedir, 0755)
>
> @@ -834,6 +835,7 @@ python do_package_rpm () {
> cmd = cmd + " --define '__find_provides " + outprovides + "'"
> cmd = cmd + " --define '_unpackaged_files_terminate_build 0'"
> cmd = cmd + " --define 'debug_package %{nil}'"
> + cmd = cmd + " --define '_rpmfc_magic_path " + magicfile + "'"
> cmd = cmd + " -bb " + outspecfile
>
> # Build the rpm package!
> --
Merged into OE-Core
Thanks
Sau!
parent reply other threads:[~2011-08-11 21:39 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <B497E783C723AE4386DDEA96AF1D2B989EB6DB@008-AM1MPN1-011.mgdnok.nokia.com>]
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=4E444B17.7030000@linux.intel.com \
--to=sgw@linux.intel.com \
--cc=jani.uusi-rantala@nokia.com \
--cc=openembedded-core@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