pkgsrc-Bugs archive

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

pkg/44076: Please update lang/f2c



>Number:         44076
>Category:       pkg
>Synopsis:       Please update lang/f2c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 10 01:30:00 +0000 2010
>Originator:     Silas Silva
>Release:        5.0.2
>Organization:
>Environment:
NetBSD hope 5.0.2 NetBSD 5.0.2 (GENERIC) #0: Sat Feb  6 17:53:27 UTC 2010  
builds%b7.netbsd.org@localhost:/home/builds/ab/netbsd-5-0-2-RELEASE/i386/201002061851Z-obj/home/builds/ab/netbsd-5-0-2-RELEASE/src/sys/arch/i386/compile/GENERIC
 i386
>Description:
lang/f2c has some patches to make it compilable in some environments, where GCC 
4.4 is preset.  Since these patches are already pulled upstream, those patches 
are not necessary in pkgsrc anymore.
>How-To-Repeat:

>Fix:
Dan McMahill kindly created a f2c-20100903 bundle in a NetBSD FTP mirror, so I 
could test pkgsrc with it.  I modified the files so I could compile this new 
version of f2c with pkgsrc.  Among the packages that need a fortran77 compiler, 
 math/odepack compiles (I didn't test if it runs!) fine under NetBSD and 
GNU/Linux with this new version of f2c.

Please, besides creating a bundle for f2c-20100903 in the NetBSD FTP, apply the 
following patch in lang/f2c:

diff --git a/f2c/Makefile b/f2c/Makefile
index 7662fe7..15b8bf0 100644
--- a/f2c/Makefile
+++ b/f2c/Makefile
@@ -1,7 +1,6 @@
 # $NetBSD: Makefile,v 1.57 2010/11/01 18:01:16 wiz Exp $
 
-DISTNAME=      f2c-20090411    # see notes below
-PKGREVISION=   5
+DISTNAME=      f2c-20100903    # see notes below
 CATEGORIES=    lang
 MASTER_SITES=  ${MASTER_SITE_LOCAL}
 
diff --git a/f2c/distinfo b/f2c/distinfo
index 732d58a..bce2d84 100644
--- a/f2c/distinfo
+++ b/f2c/distinfo
@@ -1,11 +1,8 @@
 $NetBSD: distinfo,v 1.26 2010/07/31 20:31:33 dholland Exp $
 
-SHA1 (f2c-20090411.tar.gz) = 949e832b84aaa912a99471a95c6fd449898d50e0
-RMD160 (f2c-20090411.tar.gz) = e86ff3de4564267a57f508a5a68e81af2b1a9468
-Size (f2c-20090411.tar.gz) = 1045385 bytes
+SHA1 (f2c-20100903.tar.gz) = 851e8ac6ab7dc414bf8b88122bddb4ea36c960c8
+RMD160 (f2c-20100903.tar.gz) = 3c2b300c19a6d96e9e3907b5c1723cdfba1d51af
+Size (f2c-20100903.tar.gz) = 1046742 bytes
 SHA1 (patch-aa) = f1224ff17cdc96f083a247dce88b690e8b939eb0
 SHA1 (patch-ad) = 7f204a45891e3632589ea8fb0e4e379a0a792dea
 SHA1 (patch-ak) = 8652a54df300ddd60d9b1a9594d312349b782cf4
-SHA1 (patch-al) = 9e06670ca6078c47f5cc6132f3f6158ec1757dc7
-SHA1 (patch-am) = 4be770f4ba34cfe7a3e6c27898e42ea6cb921128
-SHA1 (patch-an) = e4ec24f7b6203aa53d1d37848c9fd8a7b29b82dc
diff --git a/f2c/patches/patch-al b/f2c/patches/patch-al
deleted file mode 100644
index dbb4ed1..0000000
--- a/f2c/patches/patch-al
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-al,v 1.1 2010/07/31 20:31:33 dholland Exp $
-
-PR 43291: integer type misuse caught by gcc 4.4
-
---- src/data.c.orig    2001-03-01 21:16:12.000000000 +0000
-+++ src/data.c
-@@ -360,7 +360,7 @@
-               k = elen - valp->vleng->constblock.Const.ci;
-               if(k > 0) {
-                       dataline(varname, offset, TYBLANK);
--                      fprintf(dfile, "\t%d\n", k);
-+                      fprintf(dfile, "\t%d\n", (int) k);
-                       }
-               break;
- 
diff --git a/f2c/patches/patch-am b/f2c/patches/patch-am
deleted file mode 100644
index 00cee72..0000000
--- a/f2c/patches/patch-am
+++ /dev/null
@@ -1,19 +0,0 @@
-$NetBSD: patch-am,v 1.1 2010/07/31 20:31:33 dholland Exp $
-
-PR 43291: integer type misuse caught by gcc 4.4
-
---- src/format.c.orig  2003-03-20 18:34:13.000000000 +0000
-+++ src/format.c
-@@ -2363,7 +2363,11 @@ p1get_const(FILE *infile, int type, stru
-           result->vstg = 1;
-           break;
-       case TYCHAR:
--          status = fscanf(infile, "%lx", resultp);
-+      {
-+          void *tmp;
-+          status = fscanf(infile, "%p", &tmp);
-+          *resultp = tmp;
-+      }
-           break;
-       default:
-           erri ("p1get_const:  bad constant type '%d'", type);
diff --git a/f2c/patches/patch-an b/f2c/patches/patch-an
deleted file mode 100644
index 6002e2f..0000000
--- a/f2c/patches/patch-an
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-an,v 1.1 2010/07/31 20:31:33 dholland Exp $
-
-PR 43291: integer type misuse caught by gcc 4.4
-
---- src/p1output.c.orig        2001-03-01 21:16:13.000000000 +0000
-+++ src/p1output.c
-@@ -206,7 +206,7 @@ p1_const(register Constp cp)
-           if (vleng && !ISICON (vleng))
-               err("p1_const:  bad vleng\n");
-           else
--              fprintf(pass1_file, "%d: %d %lx\n", P1_CONST, type,
-+              fprintf(pass1_file, "%d: %d %p\n", P1_CONST, type,
-                       cpexpr((expptr)cp));
-           break;
-       default:



Home | Main Index | Thread Index | Old Index