Subject: pkg/36450: lang/mzscheme build fails in current pkgsrc
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Aleksej Saushev <asau@hotbox.ru>
List: pkgsrc-bugs
Date: 06/05/2007 22:20:01
>Number: 36450
>Category: pkg
>Synopsis: lang/mzscheme build fails in current pkgsrc
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jun 05 22:20:00 +0000 2007
>Originator: Aleksej Saushev <asau@hotbox.ru>
>Release: NetBSD 4.99.20
>Organization:
>Environment:
System: NetBSD asau.local 4.99.20 NetBSD 4.99.20 (KERN) #25: Sun Jun 3 12:29:03 MSD 2007 root@asau.local:/usr/obj/sys/arch/i386/compile/KERN i386
Architecture: i386
Machine: i386
>Description:
lang/mzscheme build fails in current pkgsrc
>How-To-Repeat:
cd lang/mzscheme && make
>Fix:
Introduce following patches.
patches/patch-ak:
-------------------------------8<-------------------------------
$NetBSD$
--- src/mzscheme/Makefile.in.orig 2007-06-06 01:00:44.000000000 +0400
+++ src/mzscheme/Makefile.in 2007-06-06 01:01:26.000000000 +0400
@@ -47,8 +47,8 @@
cd guile; make
dynlib:
- cd src; $(MAKE) mzheaders
- cd dynsrc; $(MAKE) dynlib
+ (cd src; $(MAKE) mzheaders)
+ (cd dynsrc; $(MAKE) dynlib)
dynexample:
$(MAKE) dynlib
@@ -76,7 +76,7 @@
$(AR) $(ARFLAGS) @GCDIR@/gc.@LIBSFX@ @GCDIR@/*.@LTO@
mzlibrary:
- cd src; $(MAKE) all
+ (cd src; $(MAKE) all)
$(MAKE) libmzscheme.@LIBSFX@
libmzscheme.@LIBSFX@: src/*.@LTO@
-------------------------------8<-------------------------------
patches/patch-al:
-------------------------------8<-------------------------------
$NetBSD$
--- src/mzscheme/src/gmp/gmp.c.orig 2007-06-06 01:07:34.000000000 +0400
+++ src/mzscheme/src/gmp/gmp.c 2007-06-06 01:10:15.000000000 +0400
@@ -35,10 +35,10 @@
#include "gmp-impl.h"
#include "gmplonglong.h"
-static const int mp_bits_per_limb = BITS_PER_MP_LIMB;
-static const int __gmp_0 = 0;
-static int __gmp_junk;
-static int gmp_errno = 0;
+const int mp_bits_per_limb = BITS_PER_MP_LIMB;
+const int __gmp_0 = 0;
+int __gmp_junk;
+int gmp_errno = 0;
#define SCHEME_BIGNUM_USE_FUEL(n) scheme_bignum_use_fuel(n)
extern void scheme_bignum_use_fuel(long n);
-------------------------------8<-------------------------------