From 50c3589497d4f7bac312ee79fa31759d2e3819d0 Mon Sep 17 00:00:00 2001 From: Dongsu Park Date: Fri, 6 Nov 2020 13:50:48 +0100 Subject: [PATCH] dev-libs/libtasn1: import libtasn1 from Gentoo To build `net-libs/gnutls` 3.6, we need to import `dev-libs/libtasn1`. --- .../portage-stable/dev-libs/libtasn1/Manifest | 3 + .../libtasn1-4.15.0-noinst_fuzzer_tool.patch | 35 ++++++++++++ .../dev-libs/libtasn1/libtasn1-4.13.ebuild | 52 +++++++++++++++++ .../libtasn1/libtasn1-4.15.0-r1.ebuild | 57 +++++++++++++++++++ .../dev-libs/libtasn1/libtasn1-4.16.0.ebuild | 54 ++++++++++++++++++ .../dev-libs/libtasn1/metadata.xml | 16 ++++++ 6 files changed, 217 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/dev-libs/libtasn1/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/dev-libs/libtasn1/files/libtasn1-4.15.0-noinst_fuzzer_tool.patch create mode 100644 sdk_container/src/third_party/portage-stable/dev-libs/libtasn1/libtasn1-4.13.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/dev-libs/libtasn1/libtasn1-4.15.0-r1.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/dev-libs/libtasn1/libtasn1-4.16.0.ebuild create mode 100644 sdk_container/src/third_party/portage-stable/dev-libs/libtasn1/metadata.xml diff --git a/sdk_container/src/third_party/portage-stable/dev-libs/libtasn1/Manifest b/sdk_container/src/third_party/portage-stable/dev-libs/libtasn1/Manifest new file mode 100644 index 0000000000..5712c8ec93 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-libs/libtasn1/Manifest @@ -0,0 +1,3 @@ +DIST libtasn1-4.13.tar.gz 1891703 BLAKE2B 5a8bfefe1a3701505c8a1a4920412a6dd15fe771fb848fbd00f0a332388795dc6108a0fa5a282b4212abe0b0642f205bda53c2c39a4a2d65fa71e082fc76a6d2 SHA512 bf5b60a296795e0a8a4a658c0106492393aa7ce698e785256b3427c17215c2a5b6178a61a2043c93ea4334f754eabece20221ac8fef0fd5644086a3891d98a9f +DIST libtasn1-4.15.0.tar.gz 1800713 BLAKE2B 005a36bfdd89a167d469ef834c00d8b89e0fba42c0c973709be93c1d703b8042d5170df855085bac9945b6512dc3abef9405461988d634cb32ec0fe99f49367d SHA512 a8095aebf57a0b482027d06e0ee6978946f267b57bf2db3c891c4656ca35250cc1f72e2e90f4cc0ddbdf6cd2b1783881a62d495a57ad4a98684f8d037307552d +DIST libtasn1-4.16.0.tar.gz 1812442 BLAKE2B 1a79494da959808d1b05099409cab70a08bf8be039f32c2e487ec8cee240d92aca9a3ec137721bac3bfe1ecd59334f4f31e0e0c25c6f06ee850af69842c0fefc SHA512 b356249535d5d592f9b59de39d21e26dd0f3f00ea47c9cef292cdd878042ea41ecbb7c8d2f02ac5839f5210092fe92a25acd343260ddf644887b031b167c2e71 diff --git a/sdk_container/src/third_party/portage-stable/dev-libs/libtasn1/files/libtasn1-4.15.0-noinst_fuzzer_tool.patch b/sdk_container/src/third_party/portage-stable/dev-libs/libtasn1/files/libtasn1-4.15.0-noinst_fuzzer_tool.patch new file mode 100644 index 0000000000..45360ec8f8 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-libs/libtasn1/files/libtasn1-4.15.0-noinst_fuzzer_tool.patch @@ -0,0 +1,35 @@ +From 49d6e3f0a4b5fd4da31228d23ae9efabef20c1ca Mon Sep 17 00:00:00 2001 +From: Nikos Mavrogiannopoulos +Date: Thu, 21 Nov 2019 16:09:20 +0100 +Subject: [PATCH] fuzz: do not install generated fuzzers and tools + +Signed-off-by: Nikos Mavrogiannopoulos +--- + fuzz/Makefile.am | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/fuzz/Makefile.am b/fuzz/Makefile.am +index ae6616b..aa621ce 100644 +--- a/fuzz/Makefile.am ++++ b/fuzz/Makefile.am +@@ -38,7 +38,7 @@ FUZZERS = \ + + if FUZZING + # fuzzing mode, enabled with ./configure --enable-fuzzing +- bin_PROGRAMS = $(FUZZERS) ++ noinst_PROGRAMS = $(FUZZERS) + AM_LDFLAGS += -fsanitize=fuzzer + MAIN = fuzzer.h + else +@@ -47,7 +47,7 @@ else + TESTS = $(FUZZERS) + check_PROGRAMS = $(FUZZERS) + +- bin_PROGRAMS = corpus2array ++ noinst_PROGRAMS = corpus2array + corpus2array_SOURCES = corpus2array.c + endif + +-- +2.22.2 + diff --git a/sdk_container/src/third_party/portage-stable/dev-libs/libtasn1/libtasn1-4.13.ebuild b/sdk_container/src/third_party/portage-stable/dev-libs/libtasn1/libtasn1-4.13.ebuild new file mode 100644 index 0000000000..5c7aec4f7b --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-libs/libtasn1/libtasn1-4.13.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-minimal libtool + +DESCRIPTION="ASN.1 library" +HOMEPAGE="https://www.gnu.org/software/libtasn1/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-3 LGPL-2.1" +SLOT="0/6" # subslot = libtasn1 soname version +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="doc static-libs test valgrind" + +RESTRICT="!test? ( test )" + +BDEPEND="sys-apps/help2man + virtual/yacc + test? ( valgrind? ( dev-util/valgrind ) )" + +DOCS=( + AUTHORS + ChangeLog + NEWS + README + THANKS +) + +pkg_setup() { + if use doc; then + DOCS+=( doc/libtasn1.pdf ) + HTML_DOCS=( doc/reference/html/. ) + fi +} + +src_prepare() { + default + elibtoolize # for Solaris shared library +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf \ + $(use_enable static-libs static) \ + $(multilib_native_use_enable valgrind valgrind-tests) +} + +multilib_src_install_all() { + einstalldocs + find "${D}" -name '*.la' -delete || die +} diff --git a/sdk_container/src/third_party/portage-stable/dev-libs/libtasn1/libtasn1-4.15.0-r1.ebuild b/sdk_container/src/third_party/portage-stable/dev-libs/libtasn1/libtasn1-4.15.0-r1.ebuild new file mode 100644 index 0000000000..ea29654ea9 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-libs/libtasn1/libtasn1-4.15.0-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools multilib-minimal libtool + +DESCRIPTION="ASN.1 library" +HOMEPAGE="https://www.gnu.org/software/libtasn1/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-3 LGPL-2.1" +SLOT="0/6" # subslot = libtasn1 soname version +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="doc static-libs test valgrind" + +RESTRICT="!test? ( test )" + +BDEPEND="sys-apps/help2man + virtual/yacc + test? ( valgrind? ( dev-util/valgrind ) )" + +DOCS=( + AUTHORS + ChangeLog + NEWS + README.md + THANKS +) + +PATCHES=( + "${FILESDIR}"/${P}-noinst_fuzzer_tool.patch #701928 +) + +pkg_setup() { + if use doc; then + DOCS+=( doc/libtasn1.pdf ) + HTML_DOCS=( doc/reference/html/. ) + fi +} + +src_prepare() { + default + #elibtoolize # for Solaris shared library + eautoreconf #701928 +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf \ + $(use_enable static-libs static) \ + $(multilib_native_use_enable valgrind valgrind-tests) +} + +multilib_src_install_all() { + einstalldocs + find "${ED}" -type f -name '*.la' -delete || die +} diff --git a/sdk_container/src/third_party/portage-stable/dev-libs/libtasn1/libtasn1-4.16.0.ebuild b/sdk_container/src/third_party/portage-stable/dev-libs/libtasn1/libtasn1-4.16.0.ebuild new file mode 100644 index 0000000000..b77d19fe1f --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-libs/libtasn1/libtasn1-4.16.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib-minimal libtool + +DESCRIPTION="ASN.1 library" +HOMEPAGE="https://www.gnu.org/software/libtasn1/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" + +LICENSE="GPL-3 LGPL-2.1" +SLOT="0/6" # subslot = libtasn1 soname version +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="doc static-libs test valgrind" + +RESTRICT="!test? ( test )" + +BDEPEND="sys-apps/help2man + virtual/yacc + test? ( valgrind? ( dev-util/valgrind ) )" + +DOCS=( + AUTHORS + ChangeLog + NEWS + README.md + THANKS +) + +pkg_setup() { + if use doc; then + DOCS+=( doc/libtasn1.pdf ) + HTML_DOCS=( doc/reference/html/. ) + fi +} + +src_prepare() { + default + elibtoolize # for Solaris shared library +} + +multilib_src_configure() { + local myeconfargs=( + $(use_enable static-libs static) + $(multilib_native_use_enable valgrind valgrind-tests) + ) + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" +} + +multilib_src_install_all() { + einstalldocs + find "${ED}" -type f -name '*.la' -delete || die +} diff --git a/sdk_container/src/third_party/portage-stable/dev-libs/libtasn1/metadata.xml b/sdk_container/src/third_party/portage-stable/dev-libs/libtasn1/metadata.xml new file mode 100644 index 0000000000..727bab4231 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/dev-libs/libtasn1/metadata.xml @@ -0,0 +1,16 @@ + + + + + Gentoo Base System + base-system@gentoo.org + + + + Enable usage of dev-util/valgrind in debug + + + + cpe:/a:gnu:libtasn1 + +