public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/sysdig/files/, dev-util/sysdig/
Date: Mon, 11 Sep 2017 20:16:10 +0000 (UTC)	[thread overview]
Message-ID: <1505160963.b22e8f9a974f682f9b35d5a54ed21fc30f8e94e6.mgorny@gentoo> (raw)

commit:     b22e8f9a974f682f9b35d5a54ed21fc30f8e94e6
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 11 20:13:37 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Sep 11 20:16:03 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b22e8f9a

dev-util/sysdig: Backport net-misc/curl-7.55.0+ build fix

Closes: https://bugs.gentoo.org/627572

 .../sysdig/files/sysdig-0.17.0-curlbuild.h.patch   | 53 ++++++++++++++++++++++
 ...ysdig-0.17.0.ebuild => sysdig-0.17.0-r1.ebuild} |  8 +++-
 2 files changed, 60 insertions(+), 1 deletion(-)

diff --git a/dev-util/sysdig/files/sysdig-0.17.0-curlbuild.h.patch b/dev-util/sysdig/files/sysdig-0.17.0-curlbuild.h.patch
new file mode 100644
index 00000000000..465be572b1f
--- /dev/null
+++ b/dev-util/sysdig/files/sysdig-0.17.0-curlbuild.h.patch
@@ -0,0 +1,53 @@
+From d15be88ccb1b7df9a0b6db2967131521b526918b Mon Sep 17 00:00:00 2001
+From: Mark Stemm <mark.stemm@gmail.com>
+Date: Tue, 15 Aug 2017 17:49:53 -0700
+Subject: [PATCH] Don't include curlbuild.h
+
+It's not required to build and it's not present with some newer versions
+of libcurl, so removing it.
+
+Thanks to https://github.com/hhoffstaette for the tip.
+
+This fixes https://github.com/draios/sysdig/issues/895.
+---
+ userspace/libsinsp/marathon_http.cpp | 1 -
+ userspace/libsinsp/mesos_http.cpp    | 1 -
+ userspace/sysdig.project             | 1 -
+ 3 files changed, 3 deletions(-)
+
+diff --git a/userspace/libsinsp/marathon_http.cpp b/userspace/libsinsp/marathon_http.cpp
+index f7937b681..2e4449ad9 100644
+--- a/userspace/libsinsp/marathon_http.cpp
++++ b/userspace/libsinsp/marathon_http.cpp
+@@ -7,7 +7,6 @@
+ #include "marathon_http.h"
+ #include "curl/curl.h"
+ #include "curl/easy.h"
+-#include "curl/curlbuild.h"
+ #define BUFFERSIZE 512 // b64 needs this macro
+ #include "b64/encode.h"
+ #include "sinsp.h"
+diff --git a/userspace/libsinsp/mesos_http.cpp b/userspace/libsinsp/mesos_http.cpp
+index 18ac9f5b5..c6bfb5810 100644
+--- a/userspace/libsinsp/mesos_http.cpp
++++ b/userspace/libsinsp/mesos_http.cpp
+@@ -7,7 +7,6 @@
+ #include "mesos_http.h"
+ #include "curl/curl.h"
+ #include "curl/easy.h"
+-#include "curl/curlbuild.h"
+ #include "sinsp.h"
+ #include "sinsp_int.h"
+ #include "sinsp_curl.h"
+diff --git a/userspace/sysdig.project b/userspace/sysdig.project
+index 5d00f18f2..76a18f0a8 100644
+--- a/userspace/sysdig.project
++++ b/userspace/sysdig.project
+@@ -752,7 +752,6 @@
+             </VirtualDirectory>
+             <VirtualDirectory Name="include">
+               <VirtualDirectory Name="curl">
+-                <File Name="../build/release/curl-prefix/src/curl/include/curl/curlbuild.h"/>
+                 <File Name="../build/release/curl-prefix/src/curl/include/curl/easy.h"/>
+                 <File Name="../build/release/curl-prefix/src/curl/include/curl/stdcheaders.h"/>
+                 <File Name="../build/release/curl-prefix/src/curl/include/curl/curlrules.h"/>

diff --git a/dev-util/sysdig/sysdig-0.17.0.ebuild b/dev-util/sysdig/sysdig-0.17.0-r1.ebuild
similarity index 91%
rename from dev-util/sysdig/sysdig-0.17.0.ebuild
rename to dev-util/sysdig/sysdig-0.17.0-r1.ebuild
index c636a7eb86d..d886e9c22e5 100644
--- a/dev-util/sysdig/sysdig-0.17.0.ebuild
+++ b/dev-util/sysdig/sysdig-0.17.0-r1.ebuild
@@ -24,7 +24,7 @@ RDEPEND="
 	sys-libs/ncurses:0=
 	sys-libs/zlib:0=
 	dev-libs/openssl:0=
-	<net-misc/curl-7.55:0="
+	net-misc/curl:0="
 DEPEND="${RDEPEND}
 	app-arch/xz-utils
 	virtual/os-headers"
@@ -41,6 +41,12 @@ pkg_setup() {
 }
 
 src_prepare() {
+	local PATCHES=(
+		# fix building against curl-7.55.0+
+		# https://bugs.gentoo.org/627572
+		"${FILESDIR}"/sysdig-0.17.0-curlbuild.h.patch
+	)
+
 	sed -i -e 's:-ggdb::' CMakeLists.txt || die
 
 	cmake-utils_src_prepare


             reply	other threads:[~2017-09-11 20:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-11 20:16 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-03-11 21:44 [gentoo-commits] repo/gentoo:master commit in: dev-util/sysdig/files/, dev-util/sysdig/ Michał Górny
2019-05-23  7:13 Michał Górny
2019-08-22  6:49 Michał Górny
2021-12-19 21:30 Sam James
2023-04-29  6:44 Sam James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1505160963.b22e8f9a974f682f9b35d5a54ed21fc30f8e94e6.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox