From: Saul Wold <sgw@linux.intel.com>
To: Joe Slater <jslater@windriver.com>,
openembedded-core@lists.openembedded.org
Subject: Re: (resending) [PATCH 1/1] rpm: compile rpmqv.c instead of rpmqv.cc
Date: Wed, 16 Jul 2014 13:50:37 -0700 [thread overview]
Message-ID: <53C6E59D.4080104@linux.intel.com> (raw)
In-Reply-To: <1405536014-16921-1-git-send-email-jslater@windriver.com>
On 07/16/2014 11:40 AM, Joe Slater wrote:
> Some versions of gcc will put a reference to __gxx_personality_v0
> into rpm.o and rpmbuild.o. This means we must link using g++,
> and Makefile does not.
>
> Go back to using rpmqv.c (which is currently identical to rpmqv.cc).
>
> Signed-off-by: Joe Slater <jslater@windriver.com>
> ---
> .../recipes-devtools/rpm/rpm/rpmqv_cc_b_gone.patch | 25 ++++++++++++++++++++
> meta/recipes-devtools/rpm/rpm_5.4.14.bb | 1 +
> 2 files changed, 26 insertions(+), 0 deletions(-)
> create mode 100644 meta/recipes-devtools/rpm/rpm/rpmqv_cc_b_gone.patch
>
> diff --git a/meta/recipes-devtools/rpm/rpm/rpmqv_cc_b_gone.patch b/meta/recipes-devtools/rpm/rpm/rpmqv_cc_b_gone.patch
> new file mode 100644
> index 0000000..0996448
> --- /dev/null
> +++ b/meta/recipes-devtools/rpm/rpm/rpmqv_cc_b_gone.patch
> @@ -0,0 +1,25 @@
> +
Patch needs Signed-off-by: and Upstream-Status tags please
Thanks
Sau!
> +Some versions of gcc, 4.4.5 for example, will put a reference to __gxx_personality_v0
> +into rpm.o and rpmbuild.o. This means we must link with g++, and the Makefile we
> +generate does not.
> +
> +So, go back to using rpmqv.c (which is currently identical to rpmqv.cc).
> +
> +--- a/Makefile.am
> ++++ b/Makefile.am
> +@@ -127,13 +127,13 @@ rpm_SOURCES = build.c
> + rpm_LDFLAGS = @LDFLAGS_STATIC@ $(LDFLAGS)
> + rpm_LDADD = rpm.o $(myLDADD)
> + rpm.o: $(top_srcdir)/rpmqv.c
> +- $(COMPILE) -DIAM_RPMBT -DIAM_RPMDB -DIAM_RPMEIU -DIAM_RPMK -DIAM_RPMQV -o $@ -c $(top_srcdir)/rpmqv.cc
> ++ $(COMPILE) -DIAM_RPMBT -DIAM_RPMDB -DIAM_RPMEIU -DIAM_RPMK -DIAM_RPMQV -o $@ -c $(top_srcdir)/rpmqv.c
> +
> + rpmbuild_SOURCES = build.c
> + rpmbuild_LDFLAGS = @LDFLAGS_STATIC@ $(LDFLAGS)
> + rpmbuild_LDADD = rpmbuild.o $(myLDADD)
> + rpmbuild.o: $(top_srcdir)/rpmqv.c
> +- $(COMPILE) -DIAM_RPMBT -o $@ -c $(top_srcdir)/rpmqv.cc
> ++ $(COMPILE) -DIAM_RPMBT -o $@ -c $(top_srcdir)/rpmqv.c
> +
> + .PHONY: splint
> + splint:
> diff --git a/meta/recipes-devtools/rpm/rpm_5.4.14.bb b/meta/recipes-devtools/rpm/rpm_5.4.14.bb
> index 15c1738..8fec656 100644
> --- a/meta/recipes-devtools/rpm/rpm_5.4.14.bb
> +++ b/meta/recipes-devtools/rpm/rpm_5.4.14.bb
> @@ -92,6 +92,7 @@ SRC_URI = "http://www.rpm5.org/files/rpm/rpm-5.4/rpm-5.4.14-0.20131024.src.rpm;e
> file://rpm-fix-logio-cp.patch \
> file://rpm-db5-or-db6.patch \
> file://rpm-disable-Wno-override-init.patch \
> + file://rpmqv_cc_b_gone.patch \
> "
>
> # Uncomment the following line to enable platform score debugging
>
prev parent reply other threads:[~2014-07-16 20:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-16 18:40 (resending) [PATCH 1/1] rpm: compile rpmqv.c instead of rpmqv.cc Joe Slater
2014-07-16 20:50 ` Saul Wold [this message]
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=53C6E59D.4080104@linux.intel.com \
--to=sgw@linux.intel.com \
--cc=jslater@windriver.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