libzypp: support signed repositories
v5 cover libzypp: support signed repositories
The current libzypp implementation does not work with signed repositories. This patch series adds recipes for the required packages as well as the necessary runtime dependencies to libzypp.
Tested on Gumstix Overo (OMAP3) with meta-openembedded layer enabled and a systemd based console image.
Version 5 incorporates all feedback from Koen Kooi, Saul Wold, Khem Raj, and Anders Darander
- adds runtime dependencies to existing RDEPENDS_${PN} of libzypp
- removes duplicate recipe for libassuan
- moves recipes for gnupg and libksba to recipes-support
- adds dependency on libgpg-error for libksba
- cleans up LICENSE field
Steve Sakoman (3):
libksba: add recipe for 1.2.0
gnupg: add recipe for 2.0.18
libzypp: add missing runtime dependences on gzip and gnupg
meta/recipes-extended/libzypp/libzypp_git.bb | 4 ++-- meta/recipes-support/gnupg/gnupg_2.0.18.bb | 25 +++++++++++++++++++++++++ meta/recipes-support/libksba/libksba_1.2.0.bb | 12 ++++++++++++ 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-support/gnupg/gnupg_2.0.18.bb create mode 100644 meta/recipes-support/libksba/libksba_1.2.0.bb
PATCH v5 1/3 libksba: add recipe for 1.2.0
Libksba provides an easy API to create and parse X.509 and CMS related objects and is required for gnupg
--- meta/recipes-support/libksba/libksba_1.2.0.bb | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) create mode 100644 meta/recipes-support/libksba/libksba_1.2.0.bb
meta/recipes-support/libksba/libksba_1.2.0.bb new file +12 -0
@@ -0,0 +1,12 @@ +DESCRIPTION = "Libksba provides an easy API to create and parse X.509 and CMS related objects" +LICENSE = "GPLv3" +LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949" + +DEPENDS = "libgpg-error" + +inherit autotools binconfig + +SRC_URI = "ftp://ftp.gnupg.org/gcrypt/${PN}/${PN}-${PV}.tar.bz2" + +SRC_URI[md5sum] = "e797f370b69b4dc776499d6a071ae137" +SRC_URI[sha256sum] = "09afce65b03d027cbec10d21464f4f651cdfd269e38b404f83e48d3e2a3c934b"
Signature · 1 line
1.7.1
Re: [PATCH v5 1/3] libksba: add recipe for 1.2.0
Am Dienstag, den 31.01.2012, 09:45 -0800 schrieb Steve Sakoman:
Quoted 15 lines
Libksba provides an easy API to create and parse X.509 and CMS related objects and is required for gnupg
Signed-off-by Steve Sakoman <[email protected]>--- meta/recipes-support/libksba/libksba_1.2.0.bb | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) create mode 100644 meta/recipes-support/libksba/libksba_1.2.0.bbmeta/recipes-support/libksba/libksba_1.2.0.bb new file +0
-0
meta/recipes-support/libksba/libksba_1.2.0.bb line 1
Quoted 1 line
meta/recipes-support/libksba/libksba_1.2.0.bb new file +1
-0@@ -0,0 +1,12 @@ +DESCRIPTION = "Libksba provides an easy API to create and parse X.509 and CMS related objects"
I am not sure if the description should be considered a sentence and therefore a full stop should be added at the end.
Could you also please add the field HOMEPAGE set to [1]?
meta/recipes-support/libksba/libksba_1.2.0.bb line 12
Quoted 11 lines
meta/recipes-support/libksba/libksba_1.2.0.bb new file +11
-0+LICENSE = "GPLv3" +LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949" + +DEPENDS = "libgpg-error" + +inherit autotools binconfig + +SRC_URI = "ftp://ftp.gnupg.org/gcrypt/${PN}/${PN}-${PV}.tar.bz2" + +SRC_URI[md5sum] = "e797f370b69b4dc776499d6a071ae137" +SRC_URI[sha256sum] = "09afce65b03d027cbec10d21464f4f651cdfd269e38b404f83e48d3e2a3c934b"
With these changes this patch is
Thanks,
Paul
PATCH v5 2/3 gnupg: add recipe for 2.0.18
In reply to Steve SakomanGnuPG 2.0 is the new modularized version of GnuPG supporting OpenPGP and S/MIME
--- meta/recipes-support/gnupg/gnupg_2.0.18.bb | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) create mode 100644 meta/recipes-support/gnupg/gnupg_2.0.18.bb
meta/recipes-support/gnupg/gnupg_2.0.18.bb new file +25 -0
@@ -0,0 +1,25 @@ +DESCRIPTION = "gnupg - GNU privacy guard" +LICENSE = "GPLv3 & LGPLv3" +LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949 \ + file://COPYING.LIB;md5=6a6a8e020838b23406c81b19c1d46df6" + +DEPENDS = "pth libassuan libksba zlib bzip2 readline" + +inherit autotools gettext + +SRC_URI = "ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-${PV}.tar.bz2" + +SRC_URI[md5sum] = "2f37e0722666a0fedbe4d9f9227ac4d7" +SRC_URI[sha256sum] = "48aedd762ca443fb952a9e859efe3c66706d7c2c9c77c32dbdbac4fe962dae5b" + +S = "${WORKDIR}/gnupg-${PV}" + +EXTRA_OECONF = "--disable-ldap \ + --with-zlib=${STAGING_LIBDIR}/.. \ + --with-bzip2=${STAGING_LIBDIR}/.. \ + --with-readline=${STAGING_LIBDIR}/.. \ + " + +do_install_append() { + ln -sf gpg2 ${D}${bindir}/gpg +}
Signature · 1 line
1.7.1
Re: [PATCH v5 2/3] gnupg: add recipe for 2.0.18
Am Dienstag, den 31.01.2012, 09:45 -0800 schrieb Steve Sakoman:
gnupg: add 2.0.18 (initial recipe)
Quoted 14 lines
GnuPG 2.0 is the new modularized version of GnuPG supporting OpenPGP and S/MIME
Signed-off-by Steve Sakoman <[email protected]>--- meta/recipes-support/gnupg/gnupg_2.0.18.bb | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) create mode 100644 meta/recipes-support/gnupg/gnupg_2.0.18.bbmeta/recipes-support/gnupg/gnupg_2.0.18.bb new file +0
-0
meta/recipes-support/gnupg/gnupg_2.0.18.bb line 1
Quoted 1 line
meta/recipes-support/gnupg/gnupg_2.0.18.bb new file +1
-0@@ -0,0 +1,25 @@ +DESCRIPTION = "gnupg - GNU privacy guard"
Could we get a better description? Debian has the following as the summary.
GNU privacy guard - a free PGP replacement (new v2.x)
Could you also please add the field HOMEPAGE set to [1].
meta/recipes-support/gnupg/gnupg_2.0.18.bb line 10
Quoted 9 lines
meta/recipes-support/gnupg/gnupg_2.0.18.bb new file +9
-0+LICENSE = "GPLv3 & LGPLv3" +LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949 \ + file://COPYING.LIB;md5=6a6a8e020838b23406c81b19c1d46df6" + +DEPENDS = "pth libassuan libksba zlib bzip2 readline" + +inherit autotools gettext + +SRC_URI = "ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-${PV}.tar.bz2"
Change that to the following?
ftp://ftp.gnupg.org/gcrypt/${PN}/${P}.tar.bz2meta/recipes-support/gnupg/gnupg_2.0.18.bb line 15
Quoted 5 lines
meta/recipes-support/gnupg/gnupg_2.0.18.bb new file +5
-0+ +SRC_URI[md5sum] = "2f37e0722666a0fedbe4d9f9227ac4d7" +SRC_URI[sha256sum] = "48aedd762ca443fb952a9e859efe3c66706d7c2c9c77c32dbdbac4fe962dae5b" + +S = "${WORKDIR}/gnupg-${PV}"
Is not that the default?
meta/recipes-support/gnupg/gnupg_2.0.18.bb line 25
Quoted 10 lines
meta/recipes-support/gnupg/gnupg_2.0.18.bb new file +10
-0+ +EXTRA_OECONF = "--disable-ldap \ + --with-zlib=${STAGING_LIBDIR}/.. \ + --with-bzip2=${STAGING_LIBDIR}/.. \ + --with-readline=${STAGING_LIBDIR}/.. \ + " + +do_install_append() { + ln -sf gpg2 ${D}${bindir}/gpg +}
With these changes this patch is
Thanks,
Paul
PATCH v5 3/3 libzypp: add missing runtime dependences on gzip and gnupg
In reply to Steve Sakomangzip is required to uncompress repository files gnupg is required for the support of signed repositories.
--- meta/recipes-extended/libzypp/libzypp_git.bb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-extended/libzypp/libzypp_git.bb +2 -2
@@ -11,7 +11,7 @@ DEPENDS = "rpm boost curl libxml2 zlib sat-solver expat openssl udev" S = "${WORKDIR}/git" SRCREV = "15b6c52260bbc52b3d8e585e271b67e10cc7c433" PV = "0.0-git${SRCPV}" -PR = "r17" +PR = "r18" SRC_URI = "git://github.com/openSUSE/libzypp.git;protocol=git \ file://no-doc.patch \
@@ -30,7 +30,7 @@ SRC_URI_append_mips = " file://mips-workaround-gcc-tribool-error.patch" SRC_URI_append_arm = " file://arm-workaround-global-constructor.patch" # rpmdb2solv from sat-solver is run from libzypp -RDEPENDS_${PN} = "sat-solver rpm-libs" +RDEPENDS_${PN} = "sat-solver rpm-libs gzip gnupg" PACKAGES =+ "${PN}-pkgmgt"
Signature · 1 line
1.7.1