summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/createrepo
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2015-08-27 09:32:47 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-03 12:43:18 +0100
commit103f0e5828d352b44681abe7fe47b606e6ad134b (patch)
tree8bbb7bc44190d520466b186da29322e102c48160 /meta/recipes-support/createrepo
parent16bda74e85f5fead22a22fdba5e2741f5e1380a9 (diff)
downloadpoky-103f0e5828d352b44681abe7fe47b606e6ad134b.tar.gz
createrepo: disable RPM signature validation
Disable RPM signature validation so that it is possible to create package feeds of signed RPM packages without importing the public part of the signing key into the RPM database. In any case, the signatures are validated when the packages in the feed are used (e.g. in image generation of manually installing packages from the feed). The original idea idea of this patch is from Mark Hatle <mark.hatle@windriver.com>. [YOCTO #8134] (From OE-Core rev: c419c64c30736ecc7b496161b4f9d9f3cc88102f) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/createrepo')
-rw-r--r--meta/recipes-support/createrepo/createrepo/dumpMetadata-disable-signature-validation.patch31
-rw-r--r--meta/recipes-support/createrepo/createrepo_0.4.11.bb17
2 files changed, 40 insertions, 8 deletions
diff --git a/meta/recipes-support/createrepo/createrepo/dumpMetadata-disable-signature-validation.patch b/meta/recipes-support/createrepo/createrepo/dumpMetadata-disable-signature-validation.patch
new file mode 100644
index 0000000000..905531f848
--- /dev/null
+++ b/meta/recipes-support/createrepo/createrepo/dumpMetadata-disable-signature-validation.patch
@@ -0,0 +1,31 @@
1dumpMetadata: disable signature validation
2
3Makes it possible to work on RPM repositories that contain signed packages
4without the need of importing the public part of the signing key into the RPM
5database.
6
7Upstream-Status: Pending
8
9Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10---
11 dumpMetadata.py | 4 +++-
12 1 file changed, 3 insertions(+), 1 deletion(-)
13
14diff --git a/dumpMetadata.py b/dumpMetadata.py
15index e40e8ac..ca6a82d 100644
16--- a/dumpMetadata.py
17+++ b/dumpMetadata.py
18@@ -92,7 +92,9 @@ def returnHdr(ts, package):
19 fdno = package # let's assume this is an fdno and go with it :)
20 except OSError:
21 raise MDError, "Error opening file"
22- ts.setVSFlags((rpm.RPMVSF_NOMD5|rpm.RPMVSF_NEEDPAYLOAD))
23+ ts.setVSFlags((rpm.RPMVSF_NOMD5|rpm.RPMVSF_NEEDPAYLOAD|
24+ rpm.RPMVSF_NODSA|rpm.RPMVSF_NORSA|
25+ rpm.RPMVSF_NODSAHEADER|rpm.RPMVSF_NORSAHEADER))
26 try:
27 hdr = ts.hdrFromFdno(fdno)
28 except rpm.error:
29--
302.1.4
31
diff --git a/meta/recipes-support/createrepo/createrepo_0.4.11.bb b/meta/recipes-support/createrepo/createrepo_0.4.11.bb
index d6fe436f80..5f9ecf65f3 100644
--- a/meta/recipes-support/createrepo/createrepo_0.4.11.bb
+++ b/meta/recipes-support/createrepo/createrepo_0.4.11.bb
@@ -11,14 +11,15 @@ RDEPENDS_${PN}_class-target = "libxml2-python"
11 11
12PR = "r9" 12PR = "r9"
13 13
14SRC_URI= "http://createrepo.baseurl.org/download/${BP}.tar.gz \ 14SRC_URI = "http://createrepo.baseurl.org/download/${BP}.tar.gz \
15 file://fix-native-install.patch \ 15 file://fix-native-install.patch \
16 file://python-scripts-should-use-interpreter-from-env.patch \ 16 file://python-scripts-should-use-interpreter-from-env.patch \
17 file://createrepo-rpm549.patch \ 17 file://createrepo-rpm549.patch \
18 file://recommends.patch \ 18 file://recommends.patch \
19 file://createrepo-dbpath.patch \ 19 file://createrepo-dbpath.patch \
20 file://rpm-createsolvedb.py \ 20 file://dumpMetadata-disable-signature-validation.patch \
21 " 21 file://rpm-createsolvedb.py \
22 "
22 23
23SRC_URI[md5sum] = "3e9ccf4abcffe3f49af078c83611eda2" 24SRC_URI[md5sum] = "3e9ccf4abcffe3f49af078c83611eda2"
24SRC_URI[sha256sum] = "a73ae11a0dcde8bde36d900bc3f7f8f1083ba752c70a5c61b72d1e1e7608f21b" 25SRC_URI[sha256sum] = "a73ae11a0dcde8bde36d900bc3f7f8f1083ba752c70a5c61b72d1e1e7608f21b"