pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/p5-WWW-Curl - Add patches/patch-Makefile.PL to giv...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/75ea509f9213
branches:  trunk
changeset: 348973:75ea509f9213
user:      mef <mef%pkgsrc.org@localhost>
date:      Tue Jun 21 13:23:32 2016 +0000

description:
- Add patches/patch-Makefile.PL to give adhoc work around with clang build,

./curlopt-constants.c:19:58: error: non-void function 'constant' should return a value [-Wreturn-type]
if (strEQ(name, "DID_MEMORY_FUNC_TYPEDEFS")) return CURL_DID_MEMORY_FUNC_TYPEDEFS;
                                                    ^

diffstat:

 www/p5-WWW-Curl/Makefile                  |   3 ++-
 www/p5-WWW-Curl/distinfo                  |   3 ++-
 www/p5-WWW-Curl/patches/patch-Makefile.PL |  18 ++++++++++++++++++
 3 files changed, 22 insertions(+), 2 deletions(-)

diffs (51 lines):

diff -r 19014ea446f2 -r 75ea509f9213 www/p5-WWW-Curl/Makefile
--- a/www/p5-WWW-Curl/Makefile  Tue Jun 21 12:58:38 2016 +0000
+++ b/www/p5-WWW-Curl/Makefile  Tue Jun 21 13:23:32 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2016/06/08 19:25:18 wiz Exp $
+# $NetBSD: Makefile,v 1.35 2016/06/21 13:23:32 mef Exp $
 #
 
 DISTNAME=      WWW-Curl-4.17
@@ -13,6 +13,7 @@
 LICENSE=       mit
 
 BUILDLINK_API_DEPENDS.curl+=   curl>=7.10.8
+CFLAGS=        -Wall -Werror -Wreturn-type
 
 PERL5_PACKLIST=        auto/WWW/Curl/.packlist
 PERL5_MODULE_TYPE=     Module::Install::Bundled
diff -r 19014ea446f2 -r 75ea509f9213 www/p5-WWW-Curl/distinfo
--- a/www/p5-WWW-Curl/distinfo  Tue Jun 21 12:58:38 2016 +0000
+++ b/www/p5-WWW-Curl/distinfo  Tue Jun 21 13:23:32 2016 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.14 2016/02/01 13:19:36 mef Exp $
+$NetBSD: distinfo,v 1.15 2016/06/21 13:23:32 mef Exp $
 
 SHA1 (WWW-Curl-4.17.tar.gz) = 8ec7b7b39bd653539671fb02fbb7d0ff4863e636
 RMD160 (WWW-Curl-4.17.tar.gz) = 786b6e0461051eae67bdcded046095895ea2a6a2
 SHA512 (WWW-Curl-4.17.tar.gz) = bc7a75d0e23f5a77578fd7244b56a1e1b81d814993b90ac7132926f0d571232c4c95875bc615cb6239e424ae1d5481d27796efc5376bb0845d1da0ff1137c0d6
 Size (WWW-Curl-4.17.tar.gz) = 50917 bytes
+SHA1 (patch-Makefile.PL) = 7abf71d929aff8c764969431790727741fa453b7
diff -r 19014ea446f2 -r 75ea509f9213 www/p5-WWW-Curl/patches/patch-Makefile.PL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/p5-WWW-Curl/patches/patch-Makefile.PL Tue Jun 21 13:23:32 2016 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-Makefile.PL,v 1.1 2016/06/21 13:23:32 mef Exp $
+
+Adhoc work around not to pick the definition of CURL_DID_MEMORY_FUNC_TYPEDEFS:
+./curlopt-constants.c:19:58: error: non-void function 'constant' should return a value [-Wreturn-type]
+if (strEQ(name, "DID_MEMORY_FUNC_TYPEDEFS")) return CURL_DID_MEMORY_FUNC_TYPEDEFS;
+^
+
+--- Makefile.PL.orig   2016-06-21 21:55:38.000000000 +0900
++++ Makefile.PL        2016-06-21 21:57:43.000000000 +0900
+@@ -127,7 +127,7 @@ if (!defined($curl_h)) {
+     close H;
+ 
+     for my $e (sort @syms) {
+-       if($e =~ /(OBSOLETE|^CURL_EXTERN|_LAST\z|_LASTENTRY\z)/) {
++       if($e =~ /(OBSOLETE|^CURL_EXTERN|_LAST\z|_LASTENTRY\z|CURL_DID_MEMORY_FUNC_TYPEDEFS\z)/) {
+           next;
+        }
+        my ($group) = $e =~ m/^([^_]+_)/;



Home | Main Index | Thread Index | Old Index