summaryrefslogtreecommitdiff
path: root/net-libs/libesmtp
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-10-08 12:03:01 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-10-08 12:03:01 +0100
commit522fa4e6f267ba688a264ceec8d6c79663b61219 (patch)
tree67895f3a8243148309fbd841dabba28c37f4ed4a /net-libs/libesmtp
parent32c16465e56b0122cf6e5a4625e9c7b56b107b07 (diff)
gentoo auto-resync : 08:10:2023 - 12:03:01
Diffstat (limited to 'net-libs/libesmtp')
-rw-r--r--net-libs/libesmtp/Manifest3
-rw-r--r--net-libs/libesmtp/files/libesmtp-1.1.0-fix-build-with-clang16.patch21
-rw-r--r--net-libs/libesmtp/libesmtp-1.1.0-r2.ebuild (renamed from net-libs/libesmtp/libesmtp-9999.ebuild)13
3 files changed, 32 insertions, 5 deletions
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 <config.h>
+
++#define _GNU_SOURCE
+ #include <stdarg.h>
+ #include <string.h>
+ #include <stdlib.h>
+--- a/smtp-tls.c
++++ b/smtp-tls.c
+@@ -47,6 +47,7 @@
+
+ /* This stuff doesn't belong here */
+ /* vvvvvvvvvvv */
++#define _GNU_SOURCE
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <unistd.h>
diff --git a/net-libs/libesmtp/libesmtp-9999.ebuild b/net-libs/libesmtp/libesmtp-1.1.0-r2.ebuild
index 2701484ef986..35783f626e67 100644
--- a/net-libs/libesmtp/libesmtp-9999.ebuild
+++ b/net-libs/libesmtp/libesmtp-1.1.0-r2.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
inherit meson
@@ -14,10 +14,10 @@ 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"
+ 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"
+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
@@ -31,6 +31,11 @@ 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)"