[oe-commits] Stanislav Brabec : rpm: Fixed build if libdir != prefix/lib.

GIT User account git at amethyst.openembedded.net
Fri Mar 20 14:14:12 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: a2f5dab7c85c1711e3c88d34c4a8254f47aae96e
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=a2f5dab7c85c1711e3c88d34c4a8254f47aae96e

Author: Stanislav Brabec <sbrabec at suse.cz>
Date:   Fri Mar 20 14:09:16 2009 +0000

rpm: Fixed build if libdir != prefix/lib.

---

 recipes/rpm/files/rpmconfigdir.patch |   27 +++++++++++++++++++++++++++
 recipes/rpm/rpm_4.4.2.3.bb           |    1 +
 2 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/recipes/rpm/files/rpmconfigdir.patch b/recipes/rpm/files/rpmconfigdir.patch
new file mode 100644
index 0000000..24f884c
--- /dev/null
+++ b/recipes/rpm/files/rpmconfigdir.patch
@@ -0,0 +1,27 @@
+Index: rpm-4.4.2.3/Makefile.am
+===================================================================
+--- rpm-4.4.2.3.orig/Makefile.am	2009-03-18 17:12:48.000000000 +0000
++++ rpm-4.4.2.3/Makefile.am	2009-03-18 17:32:34.000000000 +0000
+@@ -122,14 +122,14 @@
+ 
+ install-data-local:
+ 	@$(mkinstalldirs) $(DESTDIR)$(varprefix)/lib/rpm
+-	@rm -f $(DESTDIR)$(libdir)/rpm/rpmt
+-	@@LN_S@ rpmb $(DESTDIR)$(libdir)/rpm/rpmt
+-	@rm -f $(DESTDIR)$(libdir)/rpm/rpme
+-	@@LN_S@ rpmi $(DESTDIR)$(libdir)/rpm/rpme
+-	@rm -f $(DESTDIR)$(libdir)/rpm/rpmu
+-	@@LN_S@ rpmi $(DESTDIR)$(libdir)/rpm/rpmu
+-	@rm -f $(DESTDIR)$(libdir)/rpm/rpmv
+-	@@LN_S@ rpmq $(DESTDIR)$(libdir)/rpm/rpmv
++	@rm -f $(DESTDIR)@RPMCONFIGDIR@/rpmt
++	@@LN_S@ rpmb $(DESTDIR)@RPMCONFIGDIR@/rpmt
++	@rm -f $(DESTDIR)@RPMCONFIGDIR@/rpme
++	@@LN_S@ rpmi $(DESTDIR)@RPMCONFIGDIR@/rpme
++	@rm -f $(DESTDIR)@RPMCONFIGDIR@/rpmu
++	@@LN_S@ rpmi $(DESTDIR)@RPMCONFIGDIR@/rpmu
++	@rm -f $(DESTDIR)@RPMCONFIGDIR@/rpmv
++	@@LN_S@ rpmq $(DESTDIR)@RPMCONFIGDIR@/rpmv
+ 	rm -f $(DESTDIR)$(bindir)/rpmbuild
+ 	@LN_S@ ../lib/rpm/rpmb $(DESTDIR)$(bindir)/rpmbuild
+ 	rm -f $(DESTDIR)$(bindir)/rpmquery
diff --git a/recipes/rpm/rpm_4.4.2.3.bb b/recipes/rpm/rpm_4.4.2.3.bb
index cb8bdd6..db88282 100644
--- a/recipes/rpm/rpm_4.4.2.3.bb
+++ b/recipes/rpm/rpm_4.4.2.3.bb
@@ -7,6 +7,7 @@ PR = "r13"
 SRC_URI = "http://www.rpm.org/releases/rpm-4.4.x/rpm-4.4.2.3.tar.gz \
            file://external-tools.patch;patch=1 \
 	   file://cross_libpaths.patch;patch=1 \
+	   file://rpmconfigdir.patch;patch=1 \
 	   file://weakdeps.patch;patch=1;pnum=0 \
 	   file://tagsbackport.patch;patch=1;pnum=0 \
 	   file://missingok.patch;patch=1;pnum=0 \





More information about the Openembedded-commits mailing list