desktop/polybar: Fix building against newer libcurl.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Andrew Clemons 2017-09-25 20:07:37 +13:00 committed by Willy Sudiarto Raharjo
parent 352b79bee6
commit d4f9795d61
2 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,27 @@
From d35abc7620c8f06618b4708d9a969dfa2f309e96 Mon Sep 17 00:00:00 2001
From: patrick96 <p.ziegler96@gmail.com>
Date: Wed, 12 Jul 2017 11:22:45 +0200
Subject: [PATCH] Remove curlbuild include
Curl removed that header in 73a2fcea0b4adea6ba342cd7ed1149782c214ae3
([1])
http.cpp doesn't use anything from that header and compilation works for
fine with curl 7.54.1
Fixes #647
Ref:
[1]: https://github.com/curl/curl/commit/73a2fcea0b4adea6ba342cd7ed1149782c214ae3
---
src/utils/http.cpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/utils/http.cpp b/src/utils/http.cpp
index 365dd3be..f6fe6779 100644
--- a/src/utils/http.cpp
+++ b/src/utils/http.cpp
@@ -1,5 +1,4 @@
#include <curl/curl.h>
-#include <curl/curlbuild.h>
#include <curl/easy.h>
#include <sstream>

View file

@ -73,6 +73,7 @@ for i in $(seq 0 ${#MODULENAMS[@]}); do
tar xvf $CWD/${MODULENAMS[$i]}-${MODULEVERSIONS[$i]}.tar.gz
mv ${MODULENAMS[$i]}-${MODULEVERSIONS[$i]} lib/${MODULENAMS[$i]}
done
patch -p1 < $CWD/d35abc7620c8f06618b4708d9a969dfa2f309e96.patch
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \