summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSalah Coronya <salah.coronya@gmail.com>2020-10-07 22:42:55 -0500
committerJoonas Niilola <juippis@gentoo.org>2020-10-12 12:05:57 +0300
commita2e397fa34ee64ad43c6cb3867c0fd7dbbb6496c (patch)
tree425738f3b8becfc01fcad73ae8408dfd82b17909 /app-crypt/swtpm
parentapp-crypt/swtpm: Bump to 0.5.0 (diff)
downloadgentoo-a2e397fa34ee64ad43c6cb3867c0fd7dbbb6496c.tar.gz
gentoo-a2e397fa34ee64ad43c6cb3867c0fd7dbbb6496c.tar.bz2
gentoo-a2e397fa34ee64ad43c6cb3867c0fd7dbbb6496c.zip
app-crypt/swtpm: Remove old
Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Salah Coronya <salah.coronya@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/17106 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-crypt/swtpm')
-rw-r--r--app-crypt/swtpm/Manifest1
-rw-r--r--app-crypt/swtpm/files/swtpm-build-sys-Explicitly-link-libswtpm_libtpms-with-lcry.patch49
-rw-r--r--app-crypt/swtpm/files/swtpm-build-sys-Use-AC_COMPILE_IFELSE-to-check-for-unused-.patch56
-rw-r--r--app-crypt/swtpm/files/swtpm-disable-test-dependencies.patch36
-rw-r--r--app-crypt/swtpm/files/swtpm-fix-localca-path.patch29
-rw-r--r--app-crypt/swtpm/swtpm-0.3.2.ebuild82
6 files changed, 0 insertions, 253 deletions
diff --git a/app-crypt/swtpm/Manifest b/app-crypt/swtpm/Manifest
index d8b82e32ecb3..3a8b2fa15a37 100644
--- a/app-crypt/swtpm/Manifest
+++ b/app-crypt/swtpm/Manifest
@@ -1,2 +1 @@
-DIST swtpm-0.3.2.tar.gz 308843 BLAKE2B 501c600e36a437fc99f662f1c217169cab15b0d4ec4a4551a29dd83541c9718e182c7eb13a43e541da453fc28c48232354b617525e32d9721e697744eaa5a17a SHA512 5da668cd8091f0db70bec52cd8d26bacf7b18e4c27c83c1cba25e59c69bb2ba7a1d011d9bf4bafa44e1a49065538445eb56683806be6f1875cba383f8edb6a4f
DIST swtpm-0.5.0.tar.gz 309011 BLAKE2B 3977acef1e68adca82ed5b51adb5f8787f6eb874ee16768b5b4bbbb13b043f8a39f534b2aa99ef92fb1608f0c4c805b51bb8fbc83297b71afcec2d99faff03d9 SHA512 ba7dafc9a9ddd28252615028a45fe3e68efd12df948c1e8ec938caabb840406a7a1935e1e4a6e1b6b8848bee08450673138dc5a0d63f0447f5e0e07350e4aed7
diff --git a/app-crypt/swtpm/files/swtpm-build-sys-Explicitly-link-libswtpm_libtpms-with-lcry.patch b/app-crypt/swtpm/files/swtpm-build-sys-Explicitly-link-libswtpm_libtpms-with-lcry.patch
deleted file mode 100644
index d4ad9cda0c2d..000000000000
--- a/app-crypt/swtpm/files/swtpm-build-sys-Explicitly-link-libswtpm_libtpms-with-lcry.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-From d9bc718871810d18c70ba9d4e9ee23071bd6db36 Mon Sep 17 00:00:00 2001
-From: Stefan Berger <stefanb@linux.vnet.ibm.com>
-Date: Tue, 21 Jul 2020 18:39:07 -0400
-Subject: [PATCH 2/2] build-sys: Explicitly link libswtpm_libtpms with -lcrypto
- (Gentoo)
-
-This patch fixes the following linker issue reported for Gentoo in
-issue #280.
-
-ld.lld: error: /var/tmp/portage/app-crypt/swtpm-0.3.1-r1/work/swtpm-0.3.1/src/swtpm/.libs/libswtpm_libtpms.so: undefined reference to EVP_sha512
-ld.lld: error: /var/tmp/portage/app-crypt/swtpm-0.3.1-r1/work/swtpm-0.3.1/src/swtpm/.libs/libswtpm_libtpms.so: undefined reference to PKCS5_PBKDF2_HMAC
-ld.lld: error: /var/tmp/portage/app-crypt/swtpm-0.3.1-r1/work/swtpm-0.3.1/src/swtpm/.libs/libswtpm_libtpms.so: undefined reference to SHA512
-
-Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
----
- configure.ac | 2 ++
- src/swtpm/Makefile.am | 3 ++-
- 2 files changed, 4 insertions(+), 1 deletion(-)
-
-diff --git a/configure.ac b/configure.ac
-index 56d3f09..7aaa201 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -150,6 +150,8 @@ openssl)
- AC_CHECK_HEADERS([openssl/aes.h],[],
- AC_MSG_ERROR(Is openssl-devel/libssl-dev installed?))
- AC_MSG_RESULT([Building with openssl crypto library])
-+ LIBCRYPTO_LIBS=$(pkg-config --libs libcrypto)
-+ AC_SUBST([LIBCRYPTO_LIBS])
- ;;
- esac
-
-diff --git a/src/swtpm/Makefile.am b/src/swtpm/Makefile.am
-index dd2a63a..b5f15e3 100644
---- a/src/swtpm/Makefile.am
-+++ b/src/swtpm/Makefile.am
-@@ -69,7 +69,8 @@ libswtpm_libtpms_la_LIBADD = \
- $(LIBTPMS_LIBS) \
- $(GLIB_LIBS) \
- $(LIBRT_LIBS) \
-- $(LIBSECCOMP_LIBS)
-+ $(LIBSECCOMP_LIBS) \
-+ $(LIBCRYPTO_LIBS)
-
- bin_PROGRAMS = swtpm
- if WITH_CUSE
---
-2.26.2
-
diff --git a/app-crypt/swtpm/files/swtpm-build-sys-Use-AC_COMPILE_IFELSE-to-check-for-unused-.patch b/app-crypt/swtpm/files/swtpm-build-sys-Use-AC_COMPILE_IFELSE-to-check-for-unused-.patch
deleted file mode 100644
index 582199708057..000000000000
--- a/app-crypt/swtpm/files/swtpm-build-sys-Use-AC_COMPILE_IFELSE-to-check-for-unused-.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From b6d16129a525f572ef37d20ba1cd70d59ca4f079 Mon Sep 17 00:00:00 2001
-From: Stefan Berger <stefanb@linux.vnet.ibm.com>
-Date: Tue, 21 Jul 2020 17:38:10 -0400
-Subject: [PATCH 1/2] build-sys: Use AC_COMPILE_IFELSE to check for unused
- linker flags (clang)
-
-This patch fixes a clang issue report in issue #280.
-
-clang does not use ld, so we cannot grep for support of certain linker
-flags but have to test-compile.
-
-Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
----
- configure.ac | 26 +++++++++++++++++++-------
- 1 file changed, 19 insertions(+), 7 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index b4d4258..56d3f09 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -357,13 +357,25 @@ if test "x$enable_hardening" != "xno"; then
- if test -z "$TMP1" && test -n "$TPM2"; then
- HARDENING_CFLAGS="$HARDENING_CFLAGS -D_FORTIFY_SOURCE=2 "
- fi
-- dnl Check ld for 'relro' and 'now'
-- if $LD --help 2>&1 | $GREP '\-z relro ' > /dev/null; then
-- HARDENING_CFLAGS="$HARDENING_CFLAGS -Wl,-z,relro "
-- fi
-- if $LD --help 2>&1 | $GREP '\-z now ' > /dev/null; then
-- HARDENING_CFLAGS="$HARDENING_CFLAGS -Wl,-z,now "
-- fi
-+ dnl Check linker for 'relro' and 'now'
-+ save_CFLAGS="$CFLAGS"
-+ CFLAGS="-Wl,-z,relro -Werror"
-+ AC_MSG_CHECKING([whether linker supports -Wl,-z,relro])
-+ AC_COMPILE_IFELSE(
-+ [AC_LANG_SOURCE([[int main() { return 0; }]])],
-+ [HARDENING_CFLAGS="$HARDENING_CFLAGS -Wl,-z,relro"
-+ AC_MSG_RESULT(yes)],
-+ [AC_MSG_RESULT(no)]
-+ )
-+ CFLAGS="-Wl,-z,now -Werror"
-+ AC_MSG_CHECKING([whether linker supports -Wl,-z,now])
-+ AC_COMPILE_IFELSE(
-+ [AC_LANG_SOURCE([[int main() { return 0; }]])],
-+ [HARDENING_CFLAGS="$HARDENING_CFLAGS -Wl,-z,now"
-+ AC_MSG_RESULT(yes)],
-+ [AC_MSG_RESULT(no)]
-+ )
-+ CFLAGS="$save_CFLAGS"
- AC_SUBST([HARDENING_CFLAGS])
- fi
-
---
-2.26.2
-
diff --git a/app-crypt/swtpm/files/swtpm-disable-test-dependencies.patch b/app-crypt/swtpm/files/swtpm-disable-test-dependencies.patch
deleted file mode 100644
index ff2536676637..000000000000
--- a/app-crypt/swtpm/files/swtpm-disable-test-dependencies.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-diff --git a/Makefile.am b/Makefile.am
-index 47b091a..61192bf 100644
---- a/Makefile.am
-+++ b/Makefile.am
-@@ -9,9 +9,7 @@ SUBDIRS = \
- include \
- man \
- samples \
-- src \
-- tests
--
-+ src
- ACLOCAL_AMFLAGS = -I m4
-
- EXTRA_DIST = \
-diff --git a/configure.ac b/configure.ac
-index c7b4e98..8e6445b 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -330,16 +330,6 @@ if test "x$GAWK" = "x"; then
- AC_MSG_ERROR([gawk is required: gawk package])
- fi
-
--AC_PATH_PROG([SOCAT], socat)
--if test "x$SOCAT" = "x"; then
-- AC_MSG_ERROR([socat is required: socat package])
--fi
--
--AC_PATH_PROG([PYTHON], python3)
--if test "x$PYTHON" = "x"; then
-- AC_MSG_ERROR([python3 is required])
--fi
--
- AC_ARG_ENABLE([hardening],
- AS_HELP_STRING([--disable-hardening], [Disable hardening flags]))
-
diff --git a/app-crypt/swtpm/files/swtpm-fix-localca-path.patch b/app-crypt/swtpm/files/swtpm-fix-localca-path.patch
deleted file mode 100644
index c83758da5636..000000000000
--- a/app-crypt/swtpm/files/swtpm-fix-localca-path.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-diff --git a/samples/Makefile.am b/samples/Makefile.am
-index 4558d66..6fc6d77 100644
---- a/samples/Makefile.am
-+++ b/samples/Makefile.am
-@@ -16,9 +16,9 @@ samplessysconf_DATA = \
- swtpm-localca.options
-
- install-data-local:
-- $(MKDIR_P) $(DESTDIR)$(localstatedir)/lib/swtpm-localca
-+ $(MKDIR_P) $(DESTDIR)$(localstatedir)/swtpm-localca
- if test -z $(DESTDIR); then \
-- chown @TSS_USER@:@TSS_GROUP@ $(DESTDIR)$(localstatedir)/lib/swtpm-localca || true; \
-+ chown @TSS_USER@:@TSS_GROUP@ $(DESTDIR)$(localstatedir)/swtpm-localca || true; \
- fi
-
- EXTRA_DIST= \
-diff --git a/samples/swtpm-localca.conf.in b/samples/swtpm-localca.conf.in
-index 1f0b48d..63f1fed 100644
---- a/samples/swtpm-localca.conf.in
-+++ b/samples/swtpm-localca.conf.in
-@@ -1,4 +1,4 @@
--statedir = @LOCALSTATEDIR@/lib/swtpm-localca
--signingkey = @LOCALSTATEDIR@/lib/swtpm-localca/signkey.pem
--issuercert = @LOCALSTATEDIR@/lib/swtpm-localca/issuercert.pem
--certserial = @LOCALSTATEDIR@/lib/swtpm-localca/certserial
-+statedir = @LOCALSTATEDIR@/swtpm-localca
-+signingkey = @LOCALSTATEDIR@/swtpm-localca/signkey.pem
-+issuercert = @LOCALSTATEDIR@/swtpm-localca/issuercert.pem
-+certserial = @LOCALSTATEDIR@/swtpm-localca/certserial
diff --git a/app-crypt/swtpm/swtpm-0.3.2.ebuild b/app-crypt/swtpm/swtpm-0.3.2.ebuild
deleted file mode 100644
index 00ff234d61a6..000000000000
--- a/app-crypt/swtpm/swtpm-0.3.2.ebuild
+++ /dev/null
@@ -1,82 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( python3_{6,7,8} )
-
-inherit autotools python-any-r1
-
-DESCRIPTION="Libtpms-based TPM emulator"
-HOMEPAGE="https://github.com/stefanberger/swtpm"
-SRC_URI="https://github.com/stefanberger/swtpm/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64"
-IUSE="fuse gnutls libressl seccomp test"
-
-RESTRICT="!test? ( test )"
-
-COMMON_DEPEND="
- fuse? (
- dev-libs/glib:2
- sys-fs/fuse:0
- )
- gnutls? (
- dev-libs/libtasn1:=
- >=net-libs/gnutls-3.1.0[tools]
- )
- !libressl? (
- dev-libs/openssl:0=
- dev-libs/libtpms[-libressl]
- )
- libressl? (
- dev-libs/libressl:0=
- dev-libs/libtpms[libressl]
- )
- seccomp? ( sys-libs/libseccomp )
-"
-
-DEPEND="${COMMON_DEPEND}
- test? (
- net-misc/socat
- ${PYTHON_DEPS}
- )
-"
-
-RDEPEND="${COMMON_DEPEND}
- acct-group/tss
- acct-user/tss
- app-crypt/tpm-tools
- app-crypt/trousers
- dev-tcltk/expect"
-
-PATCHES=(
- "${FILESDIR}/${PN}-fix-localca-path.patch"
- "${FILESDIR}/${PN}-build-sys-Explicitly-link-libswtpm_libtpms-with-lcry.patch"
- "${FILESDIR}/${PN}-build-sys-Use-AC_COMPILE_IFELSE-to-check-for-unused-.patch"
- )
-
-src_prepare() {
- use test || eapply "${FILESDIR}/${PN}-disable-test-dependencies.patch"
- default
- eautoreconf
-}
-
-src_configure() {
- econf \
- --disable-static \
- --with-openssl \
- --without-selinux \
- $(use_with fuse cuse) \
- $(use_with gnutls) \
- $(use_with seccomp)
-}
-
-src_install() {
- default
- fowners tss:tss /var/lib/swtpm-localca
- keepdir /var/lib/swtpm-localca
- find "${D}" -name '*.la' -delete || die
-}