]> git.pld-linux.org Git - packages/gnupg2.git/commitdiff
- common fix for 1.4.x/2.0.x series that solves curl/gcc build error. auto/th/gnupg-1_4_9-2 auto/th/gnupg-1_4_9-3 auto/th/gnupg-1_4_9-5 auto/ti/gnupg-1_4_9-2 auto/ti/gnupg-1_4_9-3
authorPaweł Sikora <pluto@pld-linux.org>
Mon, 1 Sep 2008 13:21:09 +0000 (13:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gnupg-gcc.patch -> 1.1

gnupg-gcc.patch [new file with mode: 0644]

diff --git a/gnupg-gcc.patch b/gnupg-gcc.patch
new file mode 100644 (file)
index 0000000..e406756
--- /dev/null
@@ -0,0 +1,53 @@
+http://lists.gnupg.org/pipermail/gnupg-devel/2008-April/024344.html
+
+Index: keyserver/gpgkeys_curl.c
+===================================================================
+--- keyserver/gpgkeys_curl.c   (revision 4741)
++++ keyserver/gpgkeys_curl.c   (working copy)
+@@ -286,7 +286,7 @@
+   if(follow_redirects)
+     {
+-      curl_easy_setopt(curl,CURLOPT_FOLLOWLOCATION,1);
++      curl_easy_setopt(curl,CURLOPT_FOLLOWLOCATION,1L);
+       if(follow_redirects>0)
+       curl_easy_setopt(curl,CURLOPT_MAXREDIRS,follow_redirects);
+     }
+@@ -298,10 +298,10 @@
+     {
+       fprintf(console,"gpgkeys: curl version = %s\n",curl_version());
+       curl_easy_setopt(curl,CURLOPT_STDERR,console);
+-      curl_easy_setopt(curl,CURLOPT_VERBOSE,1);
++      curl_easy_setopt(curl,CURLOPT_VERBOSE,1L);
+     }
+-  curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER,opt->flags.check_cert);
++  curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER,(long)opt->flags.check_cert);
+   curl_easy_setopt(curl,CURLOPT_CAINFO,opt->ca_cert_file);
+   if(proxy)
+Index: keyserver/gpgkeys_hkp.c
+===================================================================
+--- keyserver/gpgkeys_hkp.c    (revision 4741)
++++ keyserver/gpgkeys_hkp.c    (working copy)
+@@ -202,9 +202,9 @@
+     fprintf(console,"gpgkeys: HTTP URL is `%s'\n",request);
+   curl_easy_setopt(curl,CURLOPT_URL,request);
+-  curl_easy_setopt(curl,CURLOPT_POST,1);
++  curl_easy_setopt(curl,CURLOPT_POST,1L);
+   curl_easy_setopt(curl,CURLOPT_POSTFIELDS,key);
+-  curl_easy_setopt(curl,CURLOPT_FAILONERROR,1);
++  curl_easy_setopt(curl,CURLOPT_FAILONERROR,1L);
+   res=curl_easy_perform(curl);
+   if(res!=0)
+@@ -661,7 +661,7 @@
+     {
+       fprintf(console,"gpgkeys: curl version = %s\n",curl_version());
+       curl_easy_setopt(curl,CURLOPT_STDERR,console);
+-      curl_easy_setopt(curl,CURLOPT_VERBOSE,1);
++      curl_easy_setopt(curl,CURLOPT_VERBOSE,1L);
+     }
+   if(proxy)
This page took 0.149566 seconds and 4 git commands to generate.