Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCHv3 6/6] rpm: Fix linking error encountered in rpm-native
Date: Thu, 03 Mar 2011 12:07:01 +0000	[thread overview]
Message-ID: <1299154021.26736.12912.camel@rex> (raw)
In-Reply-To: <1299135167-18330-7-git-send-email-raj.khem@gmail.com>

Hi Khem,

On Wed, 2011-03-02 at 22:52 -0800, Khem Raj wrote:
> * This patch passes the correct LDFLAGS to account for
>   additional dependencies of librpmio on libbeecrypt and libsyck
>   and hence fixes the build error.

This change is fine in itself but I'm going to be a little critical here
since we're just getting going and I want to start as we mean to go on.

Could you add a description of the problem and why the fix is needed to
the patch header please, also adding your name and a date.

The reason why is so in six months time, someone looking at this can
work out a) why the patch is needed, b) Who wrote it so they have some
idea where it came from and who to talk to if they have a question and
c) How long the issue has been around for.

I appreciate some of this info can be got through the SCM but I've yet
to see a good reason for not including it directly in the patch header.

Cheers,

Richard

> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  .../rpm/rpm/rpm-tools-mtree-LDFLAGS.patch          |   13 +++++++++++++
>  meta/recipes-devtools/rpm/rpm_5.4.0.bb             |    3 ++-
>  2 files changed, 15 insertions(+), 1 deletions(-)
>  create mode 100644 meta/recipes-devtools/rpm/rpm/rpm-tools-mtree-LDFLAGS.patch
> 
> diff --git a/meta/recipes-devtools/rpm/rpm/rpm-tools-mtree-LDFLAGS.patch b/meta/recipes-devtools/rpm/rpm/rpm-tools-mtree-LDFLAGS.patch
> new file mode 100644
> index 0000000..347d976
> --- /dev/null
> +++ b/meta/recipes-devtools/rpm/rpm/rpm-tools-mtree-LDFLAGS.patch
> @@ -0,0 +1,13 @@
> +Index: rpm-5.4.0/tools/Makefile.am
> +===================================================================
> +--- rpm-5.4.0.orig/tools/Makefile.am
> ++++ rpm-5.4.0/tools/Makefile.am
> +@@ -169,7 +169,7 @@ grep_LDADD =		$(RPMIO_LDADD_COMMON)
> + 
> + mtree_SOURCES =		rpmmtree.c
> + mtree_LDFLAGS =		@LDFLAGS_STATIC@ $(LDFLAGS)
> +-mtree_LDADD =		$(RPM_LDADD_COMMON)
> ++mtree_LDADD =		$(RPMIO_LDADD_COMMON)
> + 
> + rpmrepo_SOURCES =	rpmrepo.c
> + rpmrepo_CPPFLAGS =	$(AM_CPPFLAGS) -I$(top_srcdir)/scripts -I$(top_builddir)/scripts $(CPPFLAGS)
> diff --git a/meta/recipes-devtools/rpm/rpm_5.4.0.bb b/meta/recipes-devtools/rpm/rpm_5.4.0.bb
> index 0003f48..3704816 100644
> --- a/meta/recipes-devtools/rpm/rpm_5.4.0.bb
> +++ b/meta/recipes-devtools/rpm/rpm_5.4.0.bb
> @@ -43,7 +43,7 @@ LICENSE = "LGPL 2.1"
>  LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1"
>  
>  DEPENDS = "bzip2 zlib python perl db openssl elfutils expat libpcre attr acl popt"
> -PR = "r13"
> +PR = "r14"
>  
>  # rpm2cpio is a shell script, which is part of the rpm src.rpm.  It is needed
>  # in order to extract the distribution SRPM into a format we can extract...
> @@ -56,6 +56,7 @@ SRC_URI = "http://www.rpm5.org/files/rpm/rpm-5.4/rpm-5.4.0-0.20101229.src.rpm;ex
>  	   file://rpm-showrc.patch \
>  	   file://rpm-nofsync.patch \
>  	   file://rpm-solvedb.patch \
> +	   file://rpm-tools-mtree-LDFLAGS.patch \
>  	  "
>  
>  #           file://hdraddorappend.patch \





  reply	other threads:[~2011-03-03 12:08 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-03  6:52 [PATCH V2 0/6] Fixes to get oe-core building Khem Raj
2011-03-03  6:52 ` [PATCHv3 1/6] sqlite3: Update version 3.7.3 -> 3.7.5 Khem Raj
2011-03-03  6:52 ` [PATCHv3 2/6] distro_tracking_fields.inc: Use 2.6.37.2 instead of 2.6.36 for linux-libc-headers Khem Raj
2011-03-08  6:39   ` Khem Raj
2011-03-08 18:51     ` Richard Purdie
2011-03-03  6:52 ` [PATCHv3 3/6] gcc: Statically link in support libraries e.g. libmpfr libgmp etc Khem Raj
2011-03-08  6:38   ` Khem Raj
2011-03-08 18:53     ` Richard Purdie
2011-03-08 19:04       ` Khem Raj
2011-03-12 12:50         ` Richard Purdie
2011-03-14 16:50           ` Tom Rini
2011-03-14 19:54             ` Richard Purdie
2011-03-15 17:33               ` Tom Rini
2011-03-16 13:27                 ` Richard Purdie
2011-03-16 17:17                   ` Tom Rini
2011-03-14 17:52           ` Khem Raj
2011-03-14 18:01             ` Richard Purdie
2011-03-14 18:42               ` Khem Raj
2011-03-03  6:52 ` [PATCHv3 4/6] sanity.bbclass: Check for /proc/sys/vm/mmap_min_addr to be >= 65536 Khem Raj
2011-03-03  7:15   ` Martin Jansa
2011-03-03 12:13     ` Richard Purdie
2011-03-03 15:48       ` Khem Raj
2011-03-03  6:52 ` [PATCHv3 5/6] poky-default.inc: Change LINUXLIBCVERSION "2.6.36" -> "2.6.37.2" Khem Raj
2011-03-08  6:39   ` Khem Raj
2011-03-08 18:48   ` Richard Purdie
2011-03-03  6:52 ` [PATCHv3 6/6] rpm: Fix linking error encountered in rpm-native Khem Raj
2011-03-03 12:07   ` Richard Purdie [this message]
2011-03-03 12:43     ` Koen Kooi

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=1299154021.26736.12912.camel@rex \
    --to=richard.purdie@linuxfoundation.org \
    --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