pkgsrc-Bugs archive

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

pkg/44628: Update lang/tinyscheme to 1.40 and fix Linux build issue



>Number:         44628
>Category:       pkg
>Synopsis:       Update lang/tinyscheme to 1.40 and fix Linux build issue
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 23 12:25:02 +0000 2011
>Originator:     Silas Silva
>Release:        5.0
>Organization:
>Environment:
NetBSD red 5.0 NetBSD 5.0 (XEN3_DOMU) #0: Sun Apr 26 19:10:36 UTC 2009  
builds%b6.netbsd.org@localhost:/home/builds/ab/netbsd-5-0-RELEASE/i386/200904260229Z-obj/home/builds/ab/netbsd-5-0-RELEASE/src/sys/arch/i386/compile/XEN3_DOMU
 i386
>Description:
TinyScheme is 1.39 in pkgsrc.  Version 1.40 fixes important bugs.

Also, it has a workaround (patch its Makefile directly) to make it compile 
under NetBSD, which breaks build on GNU/Linux.

This patch accept suggestions from Aleksej Saushev and Jeremy C. Reed to use 
pkgsrc framework (mk/dlopen.buildlink3.mk) to know whether or not link against 
dl.  It is much more portable and should work on other Unixen that 
dlopen.buildlink3.mk deals with.
>How-To-Repeat:
Just build lang/tinyscheme in GNU/Linux to get the error.
>Fix:
Apply this patch:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/tinyscheme/Makefile,v
retrieving revision 1.12
diff -u -r1.12 Makefile
--- Makefile    12 Aug 2010 10:22:40 -0000      1.12
+++ Makefile    21 Feb 2011 14:18:41 -0000
@@ -1,10 +1,8 @@
 # $NetBSD: Makefile,v 1.12 2010/08/12 10:22:40 asau Exp $
 
-DISTNAME=      tinyscheme1.39
-PKGNAME=       tinyscheme-1.39
+DISTNAME=      tinyscheme-1.40
 CATEGORIES=    lang
 MASTER_SITES=  $(MASTER_SITE_SOURCEFORGE:=tinyscheme/)
-EXTRACT_SUFX=  .zip
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      http://tinyscheme.sourceforge.net/home.html
@@ -14,6 +12,9 @@
 MAKE_FILE=     makefile
 USE_LIBTOOL=   yes
 
+.include "../../mk/dlopen.buildlink3.mk"
+MAKE_ENV+=     SYS_LIBS=${BUILDLINK_LDADD.dl:Q}
+
 PKG_DESTDIR_SUPPORT=   user-destdir
 INSTALLATION_DIRS=     bin include lib share/tinyscheme
 
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/lang/tinyscheme/distinfo,v
retrieving revision 1.10
diff -u -r1.10 distinfo
--- distinfo    12 Aug 2010 10:22:40 -0000      1.10
+++ distinfo    21 Feb 2011 14:18:41 -0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.10 2010/08/12 10:22:40 asau Exp $
+$NetBSD$
 
-SHA1 (tinyscheme1.39.zip) = d759bff93683399ee7abbfd1a822d000adb22a0c
-RMD160 (tinyscheme1.39.zip) = d8d365ccceb9482ffd457fd6d4f97c1651e131e9
-Size (tinyscheme1.39.zip) = 58751 bytes
-SHA1 (patch-aa) = 94cac80297b4e89e2fe2ff8a575c616354aa122d
+SHA1 (tinyscheme-1.40.tar.gz) = e03f7ac41f0517bb35eced2772c79eb9db42ea82
+RMD160 (tinyscheme-1.40.tar.gz) = 1eac087a90c2c2e8ca5f4cefbc5660b96491e4b3
+Size (tinyscheme-1.40.tar.gz) = 60160 bytes
+SHA1 (patch-aa) = 503dacf47cedf00752da66d1d25a66bba350e196
Index: patches/patch-aa
===================================================================
RCS file: /cvsroot/pkgsrc/lang/tinyscheme/patches/patch-aa,v
retrieving revision 1.7
diff -u -r1.7 patch-aa
--- patches/patch-aa    12 Aug 2010 10:22:41 -0000      1.7
+++ patches/patch-aa    21 Feb 2011 14:18:41 -0000
@@ -1,53 +1,44 @@
-$NetBSD: patch-aa,v 1.7 2010/08/12 10:22:41 asau Exp $
+$NetBSD$
 
---- makefile.orig      2006-12-07 13:29:24.000000000 +0300
-+++ makefile   2010-08-12 14:14:07.000000000 +0400
+--- makefile.orig      2011-02-21 10:54:25.000000000 -0300
++++ makefile   2011-02-21 10:57:14.000000000 -0300
 @@ -18,7 +18,7 @@
  #AR= echo
  
- # Unix, generally 
--CC = gcc -fpic 
-+#CC = gcc -fpic 
- DEBUG=-g -Wall -Wno-char-subscripts -O 
- Osuf=o 
- SOsuf=so 
-@@ -28,16 +28,17 @@
- OUT = -o $@ 
- RM= -rm -f
- AR= ar crs
-+SYS_LIBS= -lm
-  
- # Linux 
- LD = gcc 
- LDFLAGS = -shared 
+ # Unix, generally
+-CC = gcc -fpic
++#CC = gcc -fpic
+ DEBUG=-g -Wall -Wno-char-subscripts -O
+ Osuf=o
+ SOsuf=so
+@@ -33,8 +33,8 @@
+ LD = gcc
+ LDFLAGS = -shared
  DEBUG=-g -Wno-char-subscripts -O
 -SYS_LIBS= -ldl
+-PLATFORM_FEATURES= -DSUN_DL=1
 +#SYS_LIBS= -ldl
- PLATFORM_FEATURES= -DSUN_DL=1
++#PLATFORM_FEATURES= -DSUN_DL=1
  
  # Cygwin
--PLATFORM_FEATURES = -DUSE_STRLWR=0
-+#PLATFORM_FEATURES = -DUSE_STRLWR=0
- 
-  
- # Solaris 
-@@ -57,19 +58,23 @@
- LIBTARGET = $(LIBPREFIX)tinyscheme.$(SOsuf) 
+ #PLATFORM_FEATURES = -DUSE_STRLWR=0
+@@ -57,19 +57,23 @@
+ LIBTARGET = $(LIBPREFIX)tinyscheme.$(SOsuf)
  STATICLIBTARGET = $(LIBPREFIX)tinyscheme.$(LIBsuf)
  
 -all: $(LIBTARGET) $(STATICLIBTARGET) scheme$(EXE_EXT)
 +all: $(STATICLIBTARGET) scheme$(EXE_EXT)
  
--%.$(Osuf): %.c 
--      $(CC) -I. -c $(DEBUG) $(FEATURES) $(DL_FLAGS) $< 
+-%.$(Osuf): %.c
+-      $(CC) -I. -c $(DEBUG) $(FEATURES) $(DL_FLAGS) $<
 -
--$(LIBTARGET): $(OBJS) 
--      $(LD) $(LDFLAGS) $(OUT) $(OBJS) $(SYS_LIBS) 
+-$(LIBTARGET): $(OBJS)
+-      $(LD) $(LDFLAGS) $(OUT) $(OBJS) $(SYS_LIBS)
 +.c.$(Osuf):
 +      $(LIBTOOL) --mode=compile $(CC) -I. -c $(DEBUG) $(FEATURES) $(DL_FLAGS) 
$< 
  
- scheme$(EXE_EXT): $(OBJS) 
--      $(CC) -o $@ $(DEBUG) $(OBJS) $(SYS_LIBS) 
+ scheme$(EXE_EXT): $(OBJS)
+-      $(CC) -o $@ $(DEBUG) $(OBJS) $(SYS_LIBS)
 +      $(LIBTOOL) --mode=link $(CC) -o $@ $(DEBUG) $(OBJS) $(LIBS:.a=.la) 
$(SYS_LIBS) 
  
  $(STATICLIBTARGET): $(OBJS)
@@ -62,4 +53,4 @@
 +      $(BSD_INSTALL_DATA) scheme.h $(DESTDIR)$(PREFIX)/include/tinyscheme.h
  
  $(OBJS): scheme.h scheme-private.h opdefines.h
- dynload.$(Osuf): dynload.h 
+ dynload.$(Osuf): dynload.h



Home | Main Index | Thread Index | Old Index