File: 0006-empty-curlopt.patch

package info (click to toggle)
lua-curl 0.3.0-13
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 312 kB
  • sloc: ansic: 1,106; makefile: 159
file content (17 lines) | stat: -rw-r--r-- 643 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Fix curl.h parsing to fix empty curlopt.h
Author: Adrian Bunk <bunk@debian.org>
Bug-Debian: https://bugs.debian.org/1026097

--- lua-curl-0.3.0.orig/Makefile
+++ lua-curl-0.3.0/Makefile
@@ -128,8 +128,8 @@ dist: clean
 # Constants genereated starting from the cURL headers:
 
 curlopt.h: $(HEADER)
-	$(H)cat $(HEADER) | grep "^ *CINIT(" | sed "s/CINIT(/{\"OPT_/" | \
-		tr -s "  " " " | sed "s/, /\",CURLOPTTYPE_/" | \
+	$(H)cat $(HEADER) | grep "^ *CURLOPT(" | sed "s/CURLOPT(/{\"OPT_/" | \
+		sed "s/CURLOPT_//" | sed "s/, /\",/" | tr -s "  " " " | \
 		sed "s/, / + /" | sed "s/),/},/" > curlopt.h
 
 curl_netrcopt.h:$(HEADER)