pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/ap-perl www/ap-perl: Fix build with gcc 4.7



details:   https://anonhg.NetBSD.org/pkgsrc/rev/432662794282
branches:  trunk
changeset: 609671:432662794282
user:      marino <marino%pkgsrc.org@localhost>
date:      Mon Oct 08 11:49:39 2012 +0000

description:
www/ap-perl: Fix build with gcc 4.7

GCC 4.7 requires variable declaration before use.

diffstat:

 www/ap-perl/distinfo                                    |   3 ++-
 www/ap-perl/patches/patch-src_modules_perl_perl__util.c |  14 ++++++++++++++
 2 files changed, 16 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r 815a4a455125 -r 432662794282 www/ap-perl/distinfo
--- a/www/ap-perl/distinfo      Mon Oct 08 11:06:33 2012 +0000
+++ b/www/ap-perl/distinfo      Mon Oct 08 11:49:39 2012 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.13 2011/09/21 14:59:32 obache Exp $
+$NetBSD: distinfo,v 1.14 2012/10/08 11:49:39 marino Exp $
 
 SHA1 (mod_perl-1.31.tar.gz) = 5f6eadf2b0fc24ed4376d7708226391baa14c73f
 RMD160 (mod_perl-1.31.tar.gz) = 296bd5e95018c313bab84ae7b21ae9f64bd4a394
@@ -9,3 +9,4 @@
 SHA1 (patch-src_modules_perl_Log.xs) = 60c7473fac429a4aeeb60c8670dcdcb0f9cb80be
 SHA1 (patch-src_modules_perl_mod__perl.c) = 3c2e82fb91d4a470e7f018a92b330eac4c7b0630
 SHA1 (patch-src_modules_perl_perl__config.c) = daa30ae219bce44c0763ec84f64cef79989651a4
+SHA1 (patch-src_modules_perl_perl__util.c) = 741cfbd38ceb78e1b69c093b695be7b841e69b10
diff -r 815a4a455125 -r 432662794282 www/ap-perl/patches/patch-src_modules_perl_perl__util.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ap-perl/patches/patch-src_modules_perl_perl__util.c   Mon Oct 08 11:49:39 2012 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_modules_perl_perl__util.c,v 1.1 2012/10/08 11:49:40 marino Exp $
+
+GCC 4.7 requires variable declaration before use.
+
+--- src/modules/perl/perl_util.c.orig  2007-12-03 07:19:59.000000000 +0000
++++ src/modules/perl/perl_util.c
+@@ -670,6 +670,7 @@ void mod_perl_init_ids(void)  /* $$, $>,
+     if(set_ids++) return;
+     sv_setiv(GvSV(gv_fetchpv("$", TRUE, SVt_PV)), (I32)getpid());
+ #ifndef WIN32
++    int uid, euid, gid, egid;
+     uid  = (int)getuid(); 
+     euid = (int)geteuid(); 
+     gid  = (int)getgid(); 



Home | Main Index | Thread Index | Old Index