summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-07-06 00:34:03 +0100
committerSam James <sam@gentoo.org>2021-07-06 00:35:38 +0100
commit998792c5836911dfcc891ec12bb250cf2a9c5550 (patch)
treedd25a784fe59eaf57a903611b9653ecda19e5ce2 /app-admin
parentprofiles: enable default/linux/ppc64/17.0/systemd as exp (diff)
downloadgentoo-998792c5836911dfcc891ec12bb250cf2a9c5550.tar.gz
gentoo-998792c5836911dfcc891ec12bb250cf2a9c5550.tar.bz2
gentoo-998792c5836911dfcc891ec12bb250cf2a9c5550.zip
app-admin/syslog-ng: fix libesmtp pkg-config patch
Closes: https://bugs.gentoo.org/782643 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/syslog-ng/files/syslog-ng-3.30.1-esmtp-pkgconfig.patch44
-rw-r--r--app-admin/syslog-ng/syslog-ng-3.30.1-r2.ebuild (renamed from app-admin/syslog-ng/syslog-ng-3.30.1-r1.ebuild)2
-rw-r--r--app-admin/syslog-ng/syslog-ng-3.30.1.ebuild2
-rw-r--r--app-admin/syslog-ng/syslog-ng-3.31.2-r1.ebuild (renamed from app-admin/syslog-ng/syslog-ng-3.31.2.ebuild)2
-rw-r--r--app-admin/syslog-ng/syslog-ng-3.32.1-r1.ebuild (renamed from app-admin/syslog-ng/syslog-ng-3.32.1.ebuild)2
5 files changed, 38 insertions, 14 deletions
diff --git a/app-admin/syslog-ng/files/syslog-ng-3.30.1-esmtp-pkgconfig.patch b/app-admin/syslog-ng/files/syslog-ng-3.30.1-esmtp-pkgconfig.patch
index ef4f72faa319..a9c761af98c2 100644
--- a/app-admin/syslog-ng/files/syslog-ng-3.30.1-esmtp-pkgconfig.patch
+++ b/app-admin/syslog-ng/files/syslog-ng-3.30.1-esmtp-pkgconfig.patch
@@ -1,7 +1,25 @@
https://bugs.gentoo.org/782643
+https://github.com/syslog-ng/syslog-ng/pull/3669/commits/b8284f8ecac588f6a321c779cce06cbe182611a5
+
+From b8284f8ecac588f6a321c779cce06cbe182611a5 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?L=C3=A1szl=C3=B3=20V=C3=A1rady?=
+ <laszlo.varady@protonmail.com>
+Date: Sun, 9 May 2021 03:43:46 +0200
+Subject: [PATCH] configure: add pkg-config detection for libesmtp
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: László Várady <laszlo.varady@protonmail.com>
+---
+ configure.ac | 22 +++++++++++++---------
+ 1 file changed, 13 insertions(+), 9 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 86b67ba9a2..bd6efa8711 100644
--- a/configure.ac
+++ b/configure.ac
-@@ -1270,20 +1270,9 @@ if test "x$enable_smtp" != "xno" && test "x$with_libesmtp" != "xno"; then
+@@ -1278,15 +1278,19 @@ if test "x$enable_smtp" != "xno" && test "x$with_libesmtp" != "xno"; then
CPPFLAGS="$CPPFLAGS_SAVE"
LDFLAGS="$LDFLAGS_SAVE"
else
@@ -14,13 +32,19 @@ https://bugs.gentoo.org/782643
- AC_MSG_RESULT(no)
- libesmtp=no
- fi
-- fi
-- if test "x$enable_smtp" = "xyes" && test "x$libesmtp" = "xno"; then
-- AC_MSG_ERROR(libESMTP not found)
-+ PKG_CHECK_MODULES(libesmtp, libesmtp-1.0)
++ PKG_CHECK_MODULES(LIBESMTP, libesmtp-1.0, libesmtp="yes", libesmtp="no")
++ if test "x$libesmtp" = "xno"; then
++ AC_MSG_CHECKING(for libESMTP with libesmtp-config)
++ if libesmtp-config --version >/dev/null 2>&1; then
++ AC_MSG_RESULT(yes)
++ LIBESMTP_CFLAGS="`libesmtp-config --cflags`"
++ LIBESMTP_LIBS="`libesmtp-config --libs`"
++ libesmtp="yes"
++ else
++ AC_MSG_RESULT(no)
++ libesmtp=no
++ fi
++ fi
fi
-- enable_smtp=$libesmtp
-+ enable_smtp="yes"
- fi
-
- dnl ***************************************************************************
+ if test "x$enable_smtp" = "xyes" && test "x$libesmtp" = "xno"; then
+ AC_MSG_ERROR(libESMTP not found)
diff --git a/app-admin/syslog-ng/syslog-ng-3.30.1-r1.ebuild b/app-admin/syslog-ng/syslog-ng-3.30.1-r2.ebuild
index cd6baea156db..ee66ff528305 100644
--- a/app-admin/syslog-ng/syslog-ng-3.30.1-r1.ebuild
+++ b/app-admin/syslog-ng/syslog-ng-3.30.1-r2.ebuild
@@ -33,7 +33,7 @@ RDEPEND="
mongodb? ( >=dev-libs/mongo-c-driver-1.2.0 )
python? ( ${PYTHON_DEPS} )
redis? ( >=dev-libs/hiredis-0.11.0:= )
- smtp? ( >=net-libs/libesmtp-1.0.6_p20200824:= )
+ smtp? ( net-libs/libesmtp:= )
snmp? ( net-analyzer/net-snmp:0= )
spoof-source? ( net-libs/libnet:1.1= )
systemd? ( sys-apps/systemd:= )
diff --git a/app-admin/syslog-ng/syslog-ng-3.30.1.ebuild b/app-admin/syslog-ng/syslog-ng-3.30.1.ebuild
index 32c3408b5c8e..e4c316ec0230 100644
--- a/app-admin/syslog-ng/syslog-ng-3.30.1.ebuild
+++ b/app-admin/syslog-ng/syslog-ng-3.30.1.ebuild
@@ -33,7 +33,7 @@ RDEPEND="
mongodb? ( >=dev-libs/mongo-c-driver-1.2.0 )
python? ( ${PYTHON_DEPS} )
redis? ( >=dev-libs/hiredis-0.11.0:= )
- smtp? ( net-libs/libesmtp )
+ smtp? ( net-libs/libesmtp:= )
snmp? ( net-analyzer/net-snmp:0= )
spoof-source? ( net-libs/libnet:1.1= )
systemd? ( sys-apps/systemd:= )
diff --git a/app-admin/syslog-ng/syslog-ng-3.31.2.ebuild b/app-admin/syslog-ng/syslog-ng-3.31.2-r1.ebuild
index 3083efc98107..edfcf0964fba 100644
--- a/app-admin/syslog-ng/syslog-ng-3.31.2.ebuild
+++ b/app-admin/syslog-ng/syslog-ng-3.31.2-r1.ebuild
@@ -34,7 +34,7 @@ RDEPEND="
mongodb? ( >=dev-libs/mongo-c-driver-1.2.0 )
python? ( ${PYTHON_DEPS} )
redis? ( >=dev-libs/hiredis-0.11.0:= )
- smtp? ( >=net-libs/libesmtp-1.0.6_p20200824:= )
+ smtp? ( net-libs/libesmtp:= )
snmp? ( net-analyzer/net-snmp:0= )
spoof-source? ( net-libs/libnet:1.1= )
systemd? ( sys-apps/systemd:= )
diff --git a/app-admin/syslog-ng/syslog-ng-3.32.1.ebuild b/app-admin/syslog-ng/syslog-ng-3.32.1-r1.ebuild
index a9238b77f778..d5c1a35ee059 100644
--- a/app-admin/syslog-ng/syslog-ng-3.32.1.ebuild
+++ b/app-admin/syslog-ng/syslog-ng-3.32.1-r1.ebuild
@@ -34,7 +34,7 @@ RDEPEND="
mongodb? ( >=dev-libs/mongo-c-driver-1.2.0 )
python? ( ${PYTHON_DEPS} )
redis? ( >=dev-libs/hiredis-0.11.0:= )
- smtp? ( >=net-libs/libesmtp-1.0.6_p20200824:= )
+ smtp? ( net-libs/libesmtp:= )
snmp? ( net-analyzer/net-snmp:0= )
spoof-source? ( net-libs/libnet:1.1= )
systemd? ( sys-apps/systemd:= )