Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Saul Wold <sgw@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [CONSOLIDATED PULL 04/30] rpm_5.4.9.bb: fix builds on systems with older libc
Date: Mon, 16 Jul 2012 08:47:10 -0700	[thread overview]
Message-ID: <add2c772cd404e8bea4828959fcb5ee33c35c048.1342453118.git.sgw@linux.intel.com> (raw)
In-Reply-To: <cover.1342453118.git.sgw@linux.intel.com>
In-Reply-To: <cover.1342453118.git.sgw@linux.intel.com>

From: Matthew McClintock <msm@freescale.com>

| dbconvert.o: In function `rpmdb_convert':
| /local/jenkins/jobs/yocto-upstream/workspace/label/master/machine/p4080ds/poky/master/tmp/work/x86_64-linux/rpm-native-5.4.9-r45/rpm-5.4.9/tools/dbconvert.c:126: warning: the use of `tempnam' is dangerous, better use `mkstemp'
| dbconvert.o: In function `main':
| dbconvert.c:(.text+0x923): undefined reference to `htobe32'
| dbconvert.c:(.text+0xaa4): undefined reference to `htole32'
| dbconvert.c:(.text+0xac9): undefined reference to `htole32'

Signed-off-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta/recipes-devtools/rpm/rpm/dbconvert.patch |   27 +++++++++++++++++++++++++
 meta/recipes-devtools/rpm/rpm_5.4.9.bb        |    3 +-
 2 files changed, 29 insertions(+), 1 deletions(-)
 create mode 100644 meta/recipes-devtools/rpm/rpm/dbconvert.patch

diff --git a/meta/recipes-devtools/rpm/rpm/dbconvert.patch b/meta/recipes-devtools/rpm/rpm/dbconvert.patch
new file mode 100644
index 0000000..27dba8c
--- /dev/null
+++ b/meta/recipes-devtools/rpm/rpm/dbconvert.patch
@@ -0,0 +1,27 @@
+Upstream-Status: Not applicable
+
+Hack to prevent unneeded demo app from building on older libc
+where it will break the build
+
+Index: rpm-5.4.9/tools/Makefile.am
+===================================================================
+--- rpm-5.4.9.orig/tools/Makefile.am
++++ rpm-5.4.9/tools/Makefile.am
+@@ -24,7 +24,7 @@ AM_CFLAGS = $(OPENMP_CFLAGS)
+ 
+ EXTRA_DIST =	hashtab.h bsdiff.1 bspatch.1 dotgraph.hh
+ 
+-EXTRA_PROGRAMS = augtool cudftool dbconvert debugedit \
++EXTRA_PROGRAMS = augtool cudftool debugedit \
+ 	nix-build nix-channel nix-collect-garbage nix-copy-closure \
+ 	nix-env nix-hash nix-install-package nix-instantiate \
+ 	nix-log2xml nix-prefetch-url nix-pull nix-push nix-store nix-worker \
+@@ -60,7 +60,7 @@ pkgbin_PROGRAMS =	\
+ 	rpmcache rpmdigest rpmrepo rpmspecdump \
+ 	rpmcmp rpmdeps rpmdeps-oecore sqlite3 @WITH_KEYUTILS_RPMKEY@ @WITH_LIBELF_DEBUGEDIT@
+ if WITH_DB
+-pkgbin_PROGRAMS +=	dbconvert
++pkgbin_PROGRAMS +=	
+ endif
+ dist_man_MANS =		rpmgrep.1
+ 
diff --git a/meta/recipes-devtools/rpm/rpm_5.4.9.bb b/meta/recipes-devtools/rpm/rpm_5.4.9.bb
index 6ef1aae..e276cc3 100644
--- a/meta/recipes-devtools/rpm/rpm_5.4.9.bb
+++ b/meta/recipes-devtools/rpm/rpm_5.4.9.bb
@@ -43,7 +43,7 @@ LICENSE = "LGPLv2.1"
 LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1"
 
 DEPENDS = "libpcre attr acl popt ossp-uuid file"
-PR = "r45"
+PR = "r46"
 
 # 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...
@@ -75,6 +75,7 @@ SRC_URI = "http://www.rpm5.org/files/rpm/rpm-5.4/rpm-5.4.9-0.20120508.src.rpm;ex
 	   file://uclibc-support.patch \
 	   file://rpmatch.patch \
 	   file://fstack-protector-configure-check.patch \
+	   file://dbconvert.patch \
 	  "
 
 SRC_URI[md5sum] = "60d56ace884340c1b3fcac6a1d58e768"
-- 
1.7.7.6




  parent reply	other threads:[~2012-07-16 15:58 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-16 15:47 [CONSOLIDATED PULL 00/30] Fixes and Updates Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 01/30] conf/machine: replace TUNE_CONFLICTS with TUNECONFLICTS Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 02/30] package install failure on systems without /sbin/ldconfig Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 03/30] mkelfimage: Upstream fixed packaging issue so upgrade to e1e6a91 Saul Wold
2012-07-16 15:47 ` Saul Wold [this message]
2012-07-16 15:47 ` [CONSOLIDATED PULL 05/30] gconf: Disable gtk support Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 06/30] slang: change char type to signed char in macros Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 07/30] runqemu/mips: adjust runqemu script to support mipsel machine Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 08/30] package.bbclass: Allow overriding of debugedit starting path Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 09/30] linux-libc-headers: updated to 3.4.3 Saul Wold
2012-07-16 15:58   ` Bruce Ashfield
2012-07-16 16:04     ` Martin Jansa
2012-07-16 16:08       ` Bruce Ashfield
2012-07-16 16:29         ` Martin Jansa
2012-07-16 16:36           ` Bruce Ashfield
2012-07-16 16:38             ` Martin Jansa
2012-07-16 16:45               ` Bruce Ashfield
2012-07-16 15:47 ` [CONSOLIDATED PULL 10/30] classes/rootfs_deb: use more reliable check for package existence Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 11/30] python-dbus: upgrade to 1.1.0 Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 12/30] task-core-sdk.bb: add libgomp and libgomp-dev by RECOMMENDS Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 13/30] xz: update to 5.1.2alpha Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 14/30] Update proto -> protocol for recipes Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 15/30] puzzles: convert to use SVN Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 16/30] cpan.bbclass: Fix CCFLAGS Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 17/30] image_types.bbclass: Fix COMPRESS_CMD for xz to redirect compressed data to file Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 18/30] image_types.bbclass: Add XZ variable to set number of threads to be used while compressing Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 19/30] image_types.bbclass: Default XZ_COMPRESSION_LEVEL to -e -6 Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 20/30] runqemu: Fix running qemu when build without gl Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 21/30] sysvinit-inittab_2.88dsf.bb: Allow multiple serial port consoles to be defined Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 22/30] gmp: upgrade to 5.0.5 Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 23/30] sstate.bbclass: Move crosssdk before cross to ensure correct variables are set Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 24/30] python: Fix python-nativesdk variable contamination issue Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 25/30] crosssdk/nativesdk: Ensure EXTRA_OECONF_FPU is unset Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 26/30] base.bbclass: add GNUmakefile to the list of possible makefile names Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 27/30] lsof: define linux C library type when using eglibc Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 28/30] mirrors: Add debian archive snapshot mirrors to search list Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 29/30] gdb: Replace struct siginfo with proper siginfo_t Saul Wold
2012-07-16 15:47 ` [CONSOLIDATED PULL 30/30] busybox: Include sys/resource.h for rusage definition Saul Wold
2012-07-17  9:28 ` [CONSOLIDATED PULL 00/30] Fixes and Updates Richard Purdie

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=add2c772cd404e8bea4828959fcb5ee33c35c048.1342453118.git.sgw@linux.intel.com \
    --to=sgw@linux.intel.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