summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/rpm/rpm/fix_for_automake_1.11.2.patch54
-rw-r--r--meta/recipes-devtools/rpm/rpm_5.4.0.bb1
2 files changed, 55 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rpm/rpm/fix_for_automake_1.11.2.patch b/meta/recipes-devtools/rpm/rpm/fix_for_automake_1.11.2.patch
new file mode 100644
index 0000000000..bb0f7eb835
--- /dev/null
+++ b/meta/recipes-devtools/rpm/rpm/fix_for_automake_1.11.2.patch
@@ -0,0 +1,54 @@
1Upstream-Status: Pending
2
3automake version 1.11.2 has made use of dir variables more strict.
4the use of pkglibdir with SCRIPTS & DATA vars results in automake
5errors.
6 This commits uses pkgdatadir & pkgbindir vars instead of pkglibdir
7to avoid the strict check errors.
8
9 This change also works with automake-1.11.1
10
11Errors fixed:
12Makefile.am:103: error: `pkglibdir' is not a legitimate directory for `DATA'
13scripts/Makefile.am:47: error: `pkglibdir' is not a legitimate directory for `SCRIPTS'
14
15Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
162011/12/27
17
18Index: rpm-5.4.0/Makefile.am
19===================================================================
20--- rpm-5.4.0.orig/Makefile.am
21+++ rpm-5.4.0/Makefile.am
22@@ -103,13 +103,13 @@ if WITH_PATH_VERSIONED
23 done
24 endif
25
26-pkglibdir = @USRLIBRPM@
27-pkglib_DATA = rpmpopt macros/macros macros/macros.rpmbuild cpuinfo.yaml
28+pkgdatadir = @USRLIBRPM@
29+pkgdata_DATA = rpmpopt macros/macros macros/macros.rpmbuild cpuinfo.yaml
30
31-pkgbindir = $(pkglibdir)/bin
32+pkgbindir = $(pkgdatadir)/bin
33 pkgbin_SCRIPTS = install-sh mkinstalldirs
34
35-pkgcfgdir = $(pkglibdir)/macros.d
36+pkgcfgdir = $(pkgdatadir)/macros.d
37 pkgcfg_DATA = \
38 macros/cmake macros/java macros/libtool macros/mandriva macros/mono \
39 macros/perl macros/pkgconfig macros/php macros/python macros/ruby \
40Index: rpm-5.4.0/scripts/Makefile.am
41===================================================================
42--- rpm-5.4.0.orig/scripts/Makefile.am
43+++ rpm-5.4.0/scripts/Makefile.am
44@@ -45,8 +45,8 @@ all:
45
46 bin_SCRIPTS = gendiff
47
48-pkglibdir = @USRLIBRPM@
49-pkglib_SCRIPTS = \
50+pkgbindir = @USRLIBRPM@
51+pkgbin_SCRIPTS = \
52 brp-compress brp-python-bytecompile brp-java-gcjcompile \
53 brp-strip brp-strip-comment-note brp-nobuildrootpath \
54 brp-strip-shared brp-strip-static-archive brp-sparc64-linux \
diff --git a/meta/recipes-devtools/rpm/rpm_5.4.0.bb b/meta/recipes-devtools/rpm/rpm_5.4.0.bb
index aae59eca5c..bbc404fb7f 100644
--- a/meta/recipes-devtools/rpm/rpm_5.4.0.bb
+++ b/meta/recipes-devtools/rpm/rpm_5.4.0.bb
@@ -66,6 +66,7 @@ SRC_URI = "http://www.rpm5.org/files/rpm/rpm-5.4/rpm-5.4.0-0.20101229.src.rpm;ex
66 file://rpm-canonarch.patch \ 66 file://rpm-canonarch.patch \
67 file://rpm-no-loopmsg.patch \ 67 file://rpm-no-loopmsg.patch \
68 file://rpm-scriptletexechelper.patch \ 68 file://rpm-scriptletexechelper.patch \
69 file://fix_for_automake_1.11.2.patch \
69 file://pythondeps.sh \ 70 file://pythondeps.sh \
70 " 71 "
71 72