Skip to content

Commit

Permalink
app-admin/rsyslog: Fix building without net-misc/curl
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Whissi committed Feb 9, 2018
1 parent b157b00 commit cd2e1aa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit cd2e1aa

Please sign in to comment.