diff options
| author | Robert Yang <liezhi.yang@windriver.com> | 2015-11-26 02:35:30 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-01 21:32:14 +0000 |
| commit | 39ecdcefbd2e4e5a97b50656d490cfc7fb73cb41 (patch) | |
| tree | 7adc5e8f9c2169aacb5d28ee5030ca337b55a72b | |
| parent | 09b4da6763652b003ae052fbb15c97115cc096f1 (diff) | |
| download | poky-39ecdcefbd2e4e5a97b50656d490cfc7fb73cb41.tar.gz | |
rpm: fix for N32 MIPS64
It is 'N32 MIPS64', not 'N32 MIPS32' as command file shows:
$ file image/usr/bin/getent
getent: ELF 32-bit MSB executable, MIPS, N32 MIPS64 [snip]
And "rpm -qp --filecolor" was wrong (it was 1, but should be 4), which
caused multilib installation error.
(From OE-Core rev: a598f6ee369c2a55b080ac7cfc058c1d30c7be2e)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-devtools/rpm/rpm/rpm-rpmfc.c-fix-for-N32-MIPS64.patch | 34 | ||||
| -rw-r--r-- | meta/recipes-devtools/rpm/rpm_5.4+cvs.bb | 1 | ||||
| -rw-r--r-- | meta/recipes-devtools/rpm/rpm_5.4.14.bb | 1 |
3 files changed, 36 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rpm/rpm/rpm-rpmfc.c-fix-for-N32-MIPS64.patch b/meta/recipes-devtools/rpm/rpm/rpm-rpmfc.c-fix-for-N32-MIPS64.patch new file mode 100644 index 0000000000..a5165742ff --- /dev/null +++ b/meta/recipes-devtools/rpm/rpm/rpm-rpmfc.c-fix-for-N32-MIPS64.patch | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | From 16dc683aa50be9789d1674734b06a8a955ff22ad Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Robert Yang <liezhi.yang@windriver.com> | ||
| 3 | Date: Thu, 26 Nov 2015 01:36:40 -0800 | ||
| 4 | Subject: [PATCH] lib/rpmfc.c: fix for N32 MIPS64 | ||
| 5 | |||
| 6 | It is 'N32 MIPS64', not 'N32 MIPS32' as command file shows: | ||
| 7 | $ file image/usr/bin/getent | ||
| 8 | getent: ELF 32-bit MSB executable, MIPS, N32 MIPS64 [snip] | ||
| 9 | |||
| 10 | And "rpm -qp --filecolor" was wrong (it was 1, but should be 4). | ||
| 11 | |||
| 12 | Upstream-Status: Pending | ||
| 13 | |||
| 14 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
| 15 | --- | ||
| 16 | lib/rpmfc.c | 2 +- | ||
| 17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 18 | |||
| 19 | diff --git a/lib/rpmfc.c b/lib/rpmfc.c | ||
| 20 | index fde00c7..49779f8 100644 | ||
| 21 | --- a/lib/rpmfc.c | ||
| 22 | +++ b/lib/rpmfc.c | ||
| 23 | @@ -575,7 +575,7 @@ static struct rpmfcTokens_s rpmfcTokens[] = { | ||
| 24 | { " not stripped", RPMFC_NOTSTRIPPED }, | ||
| 25 | { " archive", RPMFC_ARCHIVE }, | ||
| 26 | |||
| 27 | - { "MIPS, N32 MIPS32", RPMFC_ELFMIPSN32|RPMFC_INCLUDE }, | ||
| 28 | + { "MIPS, N32 MIPS64", RPMFC_ELFMIPSN32|RPMFC_INCLUDE }, | ||
| 29 | { "ELF 32-bit", RPMFC_ELF32|RPMFC_INCLUDE }, | ||
| 30 | { "ELF 64-bit", RPMFC_ELF64|RPMFC_INCLUDE }, | ||
| 31 | |||
| 32 | -- | ||
| 33 | 1.7.9.5 | ||
| 34 | |||
diff --git a/meta/recipes-devtools/rpm/rpm_5.4+cvs.bb b/meta/recipes-devtools/rpm/rpm_5.4+cvs.bb index 951b2517f0..0d14728908 100644 --- a/meta/recipes-devtools/rpm/rpm_5.4+cvs.bb +++ b/meta/recipes-devtools/rpm/rpm_5.4+cvs.bb | |||
| @@ -111,6 +111,7 @@ SRC_URI = "cvs://anonymous@rpm5.org/cvs;tag=rpm-5_4;module=rpm \ | |||
| 111 | file://rpm-rpmpgp-fix.patch \ | 111 | file://rpm-rpmpgp-fix.patch \ |
| 112 | file://rpm-disable-Wno-override-init.patch \ | 112 | file://rpm-disable-Wno-override-init.patch \ |
| 113 | file://rpm-realpath.patch \ | 113 | file://rpm-realpath.patch \ |
| 114 | file://rpm-rpmfc.c-fix-for-N32-MIPS64.patch \ | ||
| 114 | " | 115 | " |
| 115 | 116 | ||
| 116 | # Uncomment the following line to enable platform score debugging | 117 | # Uncomment the following line to enable platform score debugging |
diff --git a/meta/recipes-devtools/rpm/rpm_5.4.14.bb b/meta/recipes-devtools/rpm/rpm_5.4.14.bb index 39304103ea..8e1d3cbfc6 100644 --- a/meta/recipes-devtools/rpm/rpm_5.4.14.bb +++ b/meta/recipes-devtools/rpm/rpm_5.4.14.bb | |||
| @@ -101,6 +101,7 @@ SRC_URI = "http://www.rpm5.org/files/rpm/rpm-5.4/rpm-5.4.14-0.20131024.src.rpm;e | |||
| 101 | file://rpm-opendb-before-verifyscript-to-avoid-null-point.patch \ | 101 | file://rpm-opendb-before-verifyscript-to-avoid-null-point.patch \ |
| 102 | file://configure.ac-check-for-both-gpg2-and-gpg.patch \ | 102 | file://configure.ac-check-for-both-gpg2-and-gpg.patch \ |
| 103 | file://0001-define-EM_AARCH64.patch \ | 103 | file://0001-define-EM_AARCH64.patch \ |
| 104 | file://rpm-rpmfc.c-fix-for-N32-MIPS64.patch \ | ||
| 104 | " | 105 | " |
| 105 | 106 | ||
| 106 | # Uncomment the following line to enable platform score debugging | 107 | # Uncomment the following line to enable platform score debugging |
