diff options
author | Nitin A Kamble <nitin.a.kamble@intel.com> | 2011-12-27 12:47:59 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-03 12:14:32 +0000 |
commit | 07d83910c2f17f66fc5d28e0203d00d7c1cd150e (patch) | |
tree | 3d483e745a64c33b6afcc31905e83e2933f73167 /meta/recipes-devtools/rpm | |
parent | 35c2d562185f619bc918c4e5ee97113bdc7158ab (diff) | |
download | poky-07d83910c2f17f66fc5d28e0203d00d7c1cd150e.tar.gz |
rpm: fix build with automake-1.11.2
automake version 1.11.2 has made use of dir variables more strict.
the use of pkglibdir with SCRIPTS & DATA vars results in automake
errors.
This commits uses pkgdatadir & pkgbindir vars instead of pkglibdir
to avoid the strict check errors.
This change also works with automake-1.11.1
(From OE-Core rev: ca76443522a6bb38d239b9aa0c7932cd44446ff8)
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rpm')
-rw-r--r-- | meta/recipes-devtools/rpm/rpm/fix_for_automake_1.11.2.patch | 54 | ||||
-rw-r--r-- | meta/recipes-devtools/rpm/rpm_5.4.0.bb | 1 |
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 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | automake version 1.11.2 has made use of dir variables more strict. | ||
4 | the use of pkglibdir with SCRIPTS & DATA vars results in automake | ||
5 | errors. | ||
6 | This commits uses pkgdatadir & pkgbindir vars instead of pkglibdir | ||
7 | to avoid the strict check errors. | ||
8 | |||
9 | This change also works with automake-1.11.1 | ||
10 | |||
11 | Errors fixed: | ||
12 | Makefile.am:103: error: `pkglibdir' is not a legitimate directory for `DATA' | ||
13 | scripts/Makefile.am:47: error: `pkglibdir' is not a legitimate directory for `SCRIPTS' | ||
14 | |||
15 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> | ||
16 | 2011/12/27 | ||
17 | |||
18 | Index: 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 \ | ||
40 | Index: 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 | ||