libzypp: support signed repositories
v6 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.
Changes from version 5 include feedback from Paul Menzel:
- add (initial recipe) to patch subject for libksba and gnupg
- add HOMEPAGE to libksba and gnupg
- use ${PV}/${P} in gnupg SRC_URI
- fix description/punctuation for libksba and gnupg
Steve Sakoman (3):
libksba: add 1.2.0 (initial recipe)
gnupg: add 2.0.18 (initial recipe)
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 | 24 ++++++++++++++++++++++++ meta/recipes-support/libksba/libksba_1.2.0.bb | 13 +++++++++++++ 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 v6 1/3 libksba: add 1.2.0 (initial recipe)
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 | 13 +++++++++++++ 1 files changed, 13 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 +13 -0
@@ -0,0 +1,13 @@ +DESCRIPTION = "Libksba provides an easy API to create and parse X.509 and CMS related objects." +HOMEPAGE = "http://www.gnupg.org/related_software/libksba/" +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
PATCH v6 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
PATCH v6 2/3 gnupg: add 2.0.18 (initial recipe)
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 | 24 ++++++++++++++++++++++++ 1 files changed, 24 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 +24 -0
@@ -0,0 +1,24 @@ +DESCRIPTION = "GNU privacy guard - a free PGP replacement (new v2.x)" +HOMEPAGE = "http://www.gnupg.org/" +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/${PN}/${P}.tar.bz2" + +SRC_URI[md5sum] = "2f37e0722666a0fedbe4d9f9227ac4d7" +SRC_URI[sha256sum] = "48aedd762ca443fb952a9e859efe3c66706d7c2c9c77c32dbdbac4fe962dae5b" + +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
Richard Purdie
AppliedQuoted 13 lines · Steve Sakoman
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.
Changes from version 5 include feedback from Paul Menzel:
- add (initial recipe) to patch subject for libksba and gnupg
- add HOMEPAGE to libksba and gnupg
- use ${PV}/${P} in gnupgSRC_URI
- fix description/punctuation for libksba and gnupg
Quoted 4 lines
Steve Sakoman (3):
libksba: add 1.2.0 (initial recipe)
gnupg: add 2.0.18 (initial recipe)
libzypp: add missing runtime dependences on gzip and gnupg
Merged to master, thanks.
Richard