From 522fa4e6f267ba688a264ceec8d6c79663b61219 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 8 Oct 2023 12:03:01 +0100 Subject: gentoo auto-resync : 08:10:2023 - 12:03:01 --- net-libs/libesmtp/Manifest | 3 +- .../libesmtp-1.1.0-fix-build-with-clang16.patch | 21 ++++++++++ net-libs/libesmtp/libesmtp-1.1.0-r2.ebuild | 46 ++++++++++++++++++++++ net-libs/libesmtp/libesmtp-9999.ebuild | 41 ------------------- 4 files changed, 69 insertions(+), 42 deletions(-) create mode 100644 net-libs/libesmtp/files/libesmtp-1.1.0-fix-build-with-clang16.patch create mode 100644 net-libs/libesmtp/libesmtp-1.1.0-r2.ebuild delete mode 100644 net-libs/libesmtp/libesmtp-9999.ebuild (limited to 'net-libs/libesmtp') diff --git a/net-libs/libesmtp/Manifest b/net-libs/libesmtp/Manifest index c22d18975576..2f3664465c8b 100644 --- a/net-libs/libesmtp/Manifest +++ b/net-libs/libesmtp/Manifest @@ -1,5 +1,6 @@ +AUX libesmtp-1.1.0-fix-build-with-clang16.patch 397 BLAKE2B 563134cf6e541c77e19a6eb63dc7d8a318226b6f5b6b98cf3d1d80347a1100abee2d75a2558bf5fb388e741f6e16bf804cd91ce73673bd3d0a697df46fe313a9 SHA512 02f483897f4b6a360dd61a6631e6c835ed1f4dc96bac990b8471148f5567b7af339cb98cdfe6629e61dfc4fcbdcf286ae5425ce5cfa66d9d1bac725fe67d7401 AUX libesmtp-1.1.0-fix-soname.patch 672 BLAKE2B 2bb9a535b94e444af19597f0ca0c06b07aca2c42e0b21510c27aec76c47fa70fa12e5b26656dc6a685b3ca95b40ba630dc93cd205f348224f4c7508ae6f4376d SHA512 881fe2a531f0f50baa449c3b9faa8c99ea4ce6d1bf3a82d5f5f7e8ca530233a5668f8a498390cd91769972420750dd73988db76c53acd4734ec45bb528b9b2af DIST libesmtp-1.1.0.tar.gz 169134 BLAKE2B 94ef87c65101557f6d60a6bcd7a8b0de638c24d46536ddf602da05c09858780b0a50f9fd8dae1e54a5e9a7826d45fa6da10bad751a9be50475a8f441c94ad455 SHA512 fc2a9d9922a1807cce8c8cee627ea8fd3a79c33f0987c5a487080b1a1659fd504bc45da2f919d30eced33ab3e950105383a46ecf3365493134adc1183eb99e53 EBUILD libesmtp-1.1.0-r1.ebuild 1291 BLAKE2B e8d6cbf5ddc451864ace4eda7224f25a4969e2c01647e0660d2e6daac3819732a8ac72077ff7961657ab14c24108c1bb0121a4374387d28b2925be112141db4a SHA512 75cd91629c8f8d8e4d679c6497f75f2118334d29280de2bdd2c6616da85571518bac9deb0065ad461e2184eee768e685e4ebe48d3ed0d2cded85d55c195890d5 -EBUILD libesmtp-9999.ebuild 1241 BLAKE2B 7408afacb3eb3c73cc02f7ea5b3c4fae74e46eb4cce59fa5d3441c08a59989bbaa91acd32bebba99162668f3bd3a9d8c4a38970ebe0ffb89a7b26cd5e8194ed0 SHA512 94799222e77ba684fd347b80561c9381b304cec8d83fae4e4e27c27d2f7c7a0e1d4054e072ee5a9d876571a65825c1b8ab56934ae277153dd85747741b18668b +EBUILD libesmtp-1.1.0-r2.ebuild 1349 BLAKE2B 9bf4c72d1859397e7b491832ca28481371887598feecb2381b68cee52e6d2269f3c9d6157bbe44e50335a0c7ec009eddf94d8c52cb28af686d4d6d9bcd397ec9 SHA512 c0ef8a918990b68ebf315e21d050c04d1c86d7749a7b6dff8a2b10b6ee6731e060c01ca52fe4a6c047a2aac4703267239c430d328f8044074cfd203a74128174 MISC metadata.xml 250 BLAKE2B c156a03877b8e9096c64e5d031d532fe7b880c5cfd439312750f1206db620c660cbc6f85638af6b8210bac2beba0b70234b52ccfcc9a4a2783b5f3a875de7b4b SHA512 90930cf59b7f9e9ae7217acbd53f052c77f782db5f0164bac4b7fd7075cd067d3b3d1b33068292d09367d2b071f2e8ad5f4c0782be44e2538ce21b7715dc4606 diff --git a/net-libs/libesmtp/files/libesmtp-1.1.0-fix-build-with-clang16.patch b/net-libs/libesmtp/files/libesmtp-1.1.0-fix-build-with-clang16.patch new file mode 100644 index 000000000000..3211737e7be9 --- /dev/null +++ b/net-libs/libesmtp/files/libesmtp-1.1.0-fix-build-with-clang16.patch @@ -0,0 +1,21 @@ +Bug: https://bugs.gentoo.org/896056 +--- a/smtp-api.c ++++ b/smtp-api.c +@@ -22,6 +22,7 @@ + + #include + ++#define _GNU_SOURCE + #include + #include + #include +--- a/smtp-tls.c ++++ b/smtp-tls.c +@@ -47,6 +47,7 @@ + + /* This stuff doesn't belong here */ + /* vvvvvvvvvvv */ ++#define _GNU_SOURCE + #include + #include + #include diff --git a/net-libs/libesmtp/libesmtp-1.1.0-r2.ebuild b/net-libs/libesmtp/libesmtp-1.1.0-r2.ebuild new file mode 100644 index 000000000000..35783f626e67 --- /dev/null +++ b/net-libs/libesmtp/libesmtp-1.1.0-r2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson + +DESCRIPTION="Lib that implements the client side of the SMTP protocol" +HOMEPAGE="https://libesmtp.github.io/" +if [[ "${PV}" == *9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/libesmtp/libESMTP.git" +else + SRC_URI="https://github.com/libesmtp/libESMTP/archive/v${PV/_}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/libESMTP-${PV}" + + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +fi + +LICENSE="LGPL-2.1+ GPL-2+" +# 0/7 was a snapshot before 1.1.0 +# The SONAME was fixed just before the 1.1.0 release was made +# ... but a patch was needed to get it exactly right too +# so, we're on 0/8 now, even though ABI compatibility actually remained +# in terms of symbols with the original <1.1.0. +SLOT="0/8" +IUSE="ssl static-libs threads" + +RDEPEND="ssl? ( >=dev-libs/openssl-1.1.0:0= )" +DEPEND="${RDEPEND}" + +DOCS=( docs/{authors,bugreport,ChangeLog,faq,NEWS}.md README.md ) + +PATCHES=( + "${FILESDIR}"/${P}-fix-soname.patch + "${FILESDIR}"/${P}-fix-build-with-clang16.patch +) + +src_configure() { + local emesonargs=( + -Ddefault_library="$(usex static-libs both shared)" + $(meson_feature ssl tls) + $(meson_feature threads pthreads) + ) + meson_src_configure +} diff --git a/net-libs/libesmtp/libesmtp-9999.ebuild b/net-libs/libesmtp/libesmtp-9999.ebuild deleted file mode 100644 index 2701484ef986..000000000000 --- a/net-libs/libesmtp/libesmtp-9999.ebuild +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit meson - -DESCRIPTION="Lib that implements the client side of the SMTP protocol" -HOMEPAGE="https://libesmtp.github.io/" -if [[ "${PV}" == *9999 ]] ; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/libesmtp/libESMTP.git" -else - SRC_URI="https://github.com/libesmtp/libESMTP/archive/v${PV/_}.tar.gz -> ${P}.tar.gz" - S="${WORKDIR}/libESMTP-${PV}" - - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" -fi - -LICENSE="LGPL-2.1 GPL-2" -# 0/7 was a snapshot before 1.1.0 -# The SONAME was fixed just before the 1.1.0 release was made -# ... but a patch was needed to get it exactly right too -# so, we're on 0/8 now, even though ABI compatibility actually remained -# in terms of symbols with the original <1.1.0. -SLOT="0/8" -IUSE="ssl static-libs threads" - -RDEPEND="ssl? ( >=dev-libs/openssl-1.1.0:0= )" -DEPEND="${RDEPEND}" - -DOCS=( docs/{authors,bugreport,ChangeLog,faq,NEWS}.md README.md ) - -src_configure() { - local emesonargs=( - -Ddefault_library="$(usex static-libs both shared)" - $(meson_feature ssl tls) - $(meson_feature threads pthreads) - ) - meson_src_configure -} -- cgit v1.2.3