Add a patch 0001-Fix-the-Bug-of-SRPM-String-error.patch to fix SRPM bug When use bitbake to build a SRPM package, some sections of SRPM can't be displayed normally. For example: $ rpm -qpi bash-4.3.30-r0.src.rpm warning: bash-4.3.30-r0.src.rpm: Header V4 DSA/SHA1 Signature, key ID 0a868e8e: NOKEY Name : bash Version : 4.3.30 Release : r0 Architecture: i586 Install Date: (not installed) Group : ?? Size : 8413797 License : GPLv3+ Signature : DSA/SHA1, Wed 21 Jun 2017 07:37:52 PM PDT, Key ID 609104e40a868e8e Source RPM : (none) Build Date : Wed 21 Jun 2017 07:37:52 PM PDT Build Host : ubuntu Relocations : (not relocatable) Packager : Poky <p...@yoctoproject.org> URL : http://tiswww.case.edu/php/chet/bash/bashtop.html Summary : 8 Description : 8
Signed-off-by: zhengrq <zhengrq.f...@cn.fujitsu.com> --- .../0001-Fix-the-Bug-of-SRPM-String-error.patch | 48 ++++++++++++++++++++++ meta/recipes-devtools/rpm/rpm_5.4.16.bb | 1 + 2 files changed, 49 insertions(+) create mode 100644 meta/recipes-devtools/rpm/rpm/0001-Fix-the-Bug-of-SRPM-String-error.patch diff --git a/meta/recipes-devtools/rpm/rpm/0001-Fix-the-Bug-of-SRPM-String-error.patch b/meta/recipes-devtools/rpm/rpm/0001-Fix-the-Bug-of-SRPM-String-error.patch new file mode 100644 index 0000000..b962617 --- /dev/null +++ b/meta/recipes-devtools/rpm/rpm/0001-Fix-the-Bug-of-SRPM-String-error.patch @@ -0,0 +1,48 @@ +Subject: [PATCH] Fix the Bug of SRPM String error + +Upstream-Status: Pending +$ rpm -qpi bash-4.3.30-r0.src.rpm +warning: bash-4.3.30-r0.src.rpm: Header V4 DSA/SHA1 Signature, key ID 0a868e8e: NOKEY +Name : bash +Version : 4.3.30 +Release : r0 +Architecture: i586 +Install Date: (not installed) +Group : ?? +Size : 8413797 +License : GPLv3+ +Signature : DSA/SHA1, Wed 21 Jun 2017 07:37:52 PM PDT, Key ID 609104e40a868e8e +Source RPM : (none) +Build Date : Wed 21 Jun 2017 07:37:52 PM PDT +Build Host : ubuntu +Relocations : (not relocatable) +Packager : Poky <p...@yoctoproject.org> +URL : http://tiswww.case.edu/php/chet/bash/bashtop.html +Summary : 8 +Description : +8 + +Signed-off-by: zhengrq <zhengrq.f...@cn.fujitsu.com> +--- + rpmdb/tagname.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/rpmdb/tagname.c b/rpmdb/tagname.c +index cfd1459..dbcafd1 100644 +--- a/rpmdb/tagname.c ++++ b/rpmdb/tagname.c +@@ -518,9 +518,9 @@ tagStore_t tagStoreFree(tagStore_t dbiTags, size_t dbiNTags) + void tagTypeValidate(HE_t he); + void tagTypeValidate(HE_t he) + { +- /* XXX Re-map RPM_I18NSTRING_TYPE -> RPM_STRING_TYPE */ ++ /* XXX RPM_I18NSTRING_TYPE is treated as strings. */ + if (he->t == RPM_I18NSTRING_TYPE) +- he->t = RPM_STRING_TYPE; ++ return; + + /* XXX Arbitrary tags are always strings. */ + if ((he->tag & 0x40000000) +-- +2.7.4 + diff --git a/meta/recipes-devtools/rpm/rpm_5.4.16.bb b/meta/recipes-devtools/rpm/rpm_5.4.16.bb index eb2d4f9..1c4699e 100644 --- a/meta/recipes-devtools/rpm/rpm_5.4.16.bb +++ b/meta/recipes-devtools/rpm/rpm_5.4.16.bb @@ -119,6 +119,7 @@ SRC_URI += " \ file://gcc6-stdlib.patch \ file://0001-system.h-query.c-support-nosignature.patch \ file://rpm-ensure-rpm2cpio-call-rpm-relocation-code.patch \ + file://0001-Fix-the-Bug-of-SRPM-String-error.patch \ " # OE specific changes -- 2.7.4
-- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core