app-admin/rsyslog: Fix building without net-misc/curl
authorThomas Deutschmann <whissi@gentoo.org>
Fri, 9 Feb 2018 23:16:41 +0000 (00:16 +0100)
committerThomas Deutschmann <whissi@gentoo.org>
Fri, 9 Feb 2018 23:21:26 +0000 (00:21 +0100)
Previous patch was incomplete and missed a header include.

Closes: https://bugs.gentoo.org/646262
Package-Manager: Portage-2.3.24, Repoman-2.3.6
RepoMan-Options: --force

app-admin/rsyslog/files/8-stable/rsyslog-8.32.0-fix-building-without-curl-r3.patch [moved from app-admin/rsyslog/files/8-stable/rsyslog-8.32.0-fix-building-without-curl-r2.patch with 93% similarity]
app-admin/rsyslog/rsyslog-8.32.0-r3.ebuild [moved from app-admin/rsyslog/rsyslog-8.32.0-r2.ebuild with 99% similarity]

similarity index 93%
rename from app-admin/rsyslog/files/8-stable/rsyslog-8.32.0-fix-building-without-curl-r2.patch
rename to app-admin/rsyslog/files/8-stable/rsyslog-8.32.0-fix-building-without-curl-r3.patch
index 23a189d03093585a02c01d21a3f55b9321c32967..534183a8ca2927135558eea6b805cbd5383bb547 100644 (file)
@@ -121,3 +121,17 @@ https://github.com/rsyslog/rsyslog/commit/50205ced0fc22e74f26f2a07b557b69c5d30e1
  omelasticsearch_la_LDFLAGS = -module -avoid-version
  omelasticsearch_la_LIBADD =  $(CURL_LIBS) $(LIBM)
  
+--- a/grammar/rainerscript.c
++++ b/grammar/rainerscript.c
+@@ -36,7 +36,11 @@
+ #include <sys/types.h>
+ #include <libestr.h>
+ #include <time.h>
++
++#ifdef HAVE_LIBCURL
+ #include <curl/curl.h>
++#endif
++
+ #include "rsyslog.h"
+ #include "rainerscript.h"
+ #include "conf.h"
similarity index 99%
rename from app-admin/rsyslog/rsyslog-8.32.0-r2.ebuild
rename to app-admin/rsyslog/rsyslog-8.32.0-r3.ebuild
index 71638d76e2177c1a44c47f109f0fa8d36ea48415..33668a1674d2b5e960348def7193f0ca508808aa 100644 (file)
@@ -48,7 +48,7 @@ else
                doc? ( http://www.rsyslog.com/files/download/${PN}/${MY_URL_PREFIX}${PN}-doc-${MY_PV}.tar.gz -> ${MY_FILENAME_DOCS} )
        "
 
-       PATCHES=( "${FILESDIR}"/8-stable/${PN}-8.32.0-fix-building-without-curl-r2.patch )
+       PATCHES=( "${FILESDIR}"/8-stable/${PN}-8.32.0-fix-building-without-curl-r3.patch )
 fi
 
 LICENSE="GPL-3 LGPL-3 Apache-2.0"