From nobody@FreeBSD.org  Thu Apr  6 21:15:15 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9C42D16A410
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  6 Apr 2006 21:15:15 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4A18643D5D
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  6 Apr 2006 21:15:04 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k36LF4E5003354
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 6 Apr 2006 21:15:04 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k36LF3Yd003353;
	Thu, 6 Apr 2006 21:15:03 GMT
	(envelope-from nobody)
Message-Id: <200604062115.k36LF3Yd003353@www.freebsd.org>
Date: Thu, 6 Apr 2006 21:15:03 GMT
From: "Pedro F. Giffuni" <giffunip@asme.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: lang/smalltalk: unbreak on amd64.
X-Send-Pr-Version: www-2.3

>Number:         95441
>Category:       ports
>Synopsis:       lang/smalltalk: unbreak on amd64.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    vs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 06 21:20:13 GMT 2006
>Closed-Date:    Mon Nov 13 08:15:19 GMT 2006
>Last-Modified:  Mon Nov 13 08:15:19 GMT 2006
>Originator:     Pedro F. Giffuni
>Release:        6.0
>Organization:
>Environment:
N/A
>Description:
Unbreak on amd64.

- updated libffi for x86_64 and maybe other platforms support.

- added a dependency on math/libgmp.
>How-To-Repeat:
The current port has:

.if ${ARCH} != "i386" && ${ARCH} != "alpha"
BROKEN=		"Does not compile on !i386 and !alpha"
.endif
>Fix:
diff -ruN smalltalk.orig/Makefile smalltalk/Makefile
--- smalltalk.orig/Makefile	Sat Mar 11 23:41:48 2006
+++ smalltalk/Makefile	Thu Apr  6 14:42:08 2006
@@ -8,27 +8,31 @@
 PORTNAME=	smalltalk
 PORTVERSION=	2.2
 CATEGORIES=	lang
-MASTER_SITES=	${MASTER_SITE_GNU}
+MASTER_SITES=	${MASTER_SITE_GNU}:smalltalk	\
+		http://www.spindazzle.org/:libffi
 MASTER_SITE_SUBDIR=	${PORTNAME}
+DISTFILES=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:smalltalk	\
+		libffi-green${EXTRACT_SUFX}:libffi
+EXTRACT_ONLY=	${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	GNU Smalltalk
 
-LIB_DEPENDS=	gdbm.3:${PORTSDIR}/databases/gdbm \
-		execinfo.1:${PORTSDIR}/devel/libexecinfo
+LIB_DEPENDS=	execinfo.1:${PORTSDIR}/devel/libexecinfo	\
+		gdbm.3:${PORTSDIR}/databases/gdbm		\
+		gmp.6:${PORTSDIR}/math/libgmp4
 
 OPTIONS=	TCLTK "Enable Tcl/Tk binding" on
 
 USE_GNOME=	gnomehack gnometarget pkgconfig
 USE_GCC=	3.4+
+GNU_CONFIGURE=	yes
 USE_ICONV=	yes
-USE_REINPLACE=	yes
 USE_GMAKE=	yes
-GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
 		ac_cv_prog_EMACS=no
-CONFIGURE_ARGS=	--enable-generational-gc=no --enable-gtk=no \
-		--with-emacs=no --with-gmp=no
+CONFIGURE_ARGS=	--disable-generational-gc --enable-gtk=no \
+		--without-emacs --with-gmp=${LOCALBASE}/lib
 INSTALLS_SHLIB=	yes
 
 MAN1=		gst.1
@@ -39,8 +43,10 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${ARCH} != "i386" && ${ARCH} != "alpha"
-BROKEN=		"Does not compile on !i386 and !alpha"
+.if ${ARCH} == "amd64"
+CONFIGURE_TARGET=	x86_64-portbld-freebsd${OSREL}
+.elif ${ARCH} != "i386" && ${ARCH} != "alpha"
+BROKEN=		Does not compile on !i386 and !alpha
 .endif
 
 .if ${OSVERSION} < 500000
@@ -56,6 +62,10 @@
 			--with-tk=${LOCALBASE}/lib/tk8.4
 PLIST_SUB+=	TCLTK=""
 .endif
+
+post-extract:
+	${RM} -rf ${WRKSRC}/libffi
+	@(cd ${WRKSRC}; ${TAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/libffi-green${EXTRACT_SUFX})
 
 post-patch:
 	@${FIND} ${WRKSRC} -name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} -e \
diff -ruN smalltalk.orig/distinfo smalltalk/distinfo
--- smalltalk.orig/distinfo	Sat Mar 11 23:41:48 2006
+++ smalltalk/distinfo	Thu Apr  6 13:44:44 2006
@@ -1,3 +1,6 @@
 MD5 (smalltalk-2.2.tar.gz) = f092bb42f6cf52b429dba8640f8bf810
 SHA256 (smalltalk-2.2.tar.gz) = ca134253f45bf5e3f34113c8d2a677f7733c464e2c3d75316f05e1d1437541b0
 SIZE (smalltalk-2.2.tar.gz) = 4187113
+MD5 (libffi-green.tar.gz) = 229290a13965c2cb8620a2679b8069aa
+SHA256 (libffi-green.tar.gz) = da3f82edfbad391dfe2a8b25bada6ff80db3a74faa8c551cdaec783b7039d7b2
+SIZE (libffi-green.tar.gz) = 376904

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: vs 
State-Changed-When: Mon Apr 24 14:52:26 UTC 2006 
State-Changed-Why:  
Incomplete plist: 
===>  Building package for smalltalk-2.2 
Creating package /tmp/packages/All/smalltalk-2.2.tbz 
Registering depends: tk-8.4.11,2 xorg-libraries-6.9.0 fontconfig-2.3.2_3,1 gdbm-1.8.3_2 libdrm-2.0.1_1 libexecinfo-1.1_1 libgmp-4.2 libiconv-1.9.2_2 freetype2-2.1.10_3 tcl-8.4.11,1 expat-2.0.0_1 pkgconfig-0.20. 
Creating bzip'd tar ball in '/tmp/packages/All/smalltalk-2.2.tbz' 
Deleting smalltalk-2.2  
================================================================ 
Deleting xorg-libraries-6.9.0 tk-8.4.11,2 tcl-8.4.11,1 pkgconfig-0.20 libiconv-1.9.2_2 libgmp-4.2 libexecinfo-1.1_1 libdrm-2.0.1_1 gmake-3.80_2 gettext-0.14.5_2 gdbm-1.8.3_2 freetype2-2.1.10_3 fontconfig-2.3.2_3,1 expat-2.0.0_1  

=== Checking filesystem state 
list of extra files and directories in / (not present before this port was installed but present after it was deinstalled) 
4486804       20 -r--r--r--    1 root             wheel                9118 Apr 24 14:44 usr/local/include/ffi.h 
4136        4 drwxr-xr-x    3 root             wheel                 512 Apr 24 14:44 usr/local/lib/gcc 
4139        4 drwxr-xr-x    3 root             wheel                 512 Apr 24 14:44 usr/local/lib/gcc/x86_64-portbld-freebsd6.0 
4141        4 drwxr-xr-x    3 root             wheel                 512 Apr 24 14:44 usr/local/lib/gcc/x86_64-portbld-freebsd6.0/include 
4144        4 drwxr-xr-x    2 root             wheel                 512 Apr 24 14:44 usr/local/lib/gcc/x86_64-portbld-freebsd6.0/include/libffi 
4145        8 -r--r--r--    1 root             wheel                2580 Apr 24 14:44 usr/local/lib/gcc/x86_64-portbld-freebsd6.0/include/libffi/ffitarget.h 
4148        4 drwxr-xr-x    2 root             wheel                 512 Apr 24 14:44 usr/local/lib/elf 
4149       76 -rwxr-xr-x    1 root             wheel               36916 Apr 24 14:44 usr/local/lib/elf/libffi.so.4 
4153        0 lrwxr-xr-x    1 root             wheel                  11 Apr 24 14:44 usr/local/lib/elf/libffi.so -> libffi.so.4 
4156        4 -rwxr-xr-x    1 root             wheel                 726 Apr 24 14:44 usr/local/lib/elf/libffi.la 
4159      120 -rw-r--r--    1 root             wheel               61416 Apr 24 14:44 usr/local/lib/elf/libffi.a 
================================================================ 


Responsible-Changed-From-To: freebsd-ports-bugs->vs 
Responsible-Changed-By: vs 
Responsible-Changed-When: Mon Apr 24 14:52:26 UTC 2006 
Responsible-Changed-Why:  
Track this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=95441 

From: "Pedro F. Giffuni" <giffunip@yahoo.com>
To: Volker Stolz <vs@freebsd.org>
Cc:  
Subject: Re: ports/95441: lang/smalltalk: unbreak on amd64.
Date: Mon, 24 Apr 2006 20:49:54 +0200 (CEST)

 Hi;
 
 Thanks for the report! I'm not sure what to do here: I am tempted to just
 remove them since these files were not installed in the original port but with
 a shared library I'd think it twice; an easy fix would be adding them to the
 pkg-plist.
 
 FWIW, I talked to the author and he says he updated libffi on the current
 version but he hasn't released a new version yet, still it will be necessary to
 change the target on the amd64 case. 
 
 Perhaps we should just close this PR and wait for the new version, but adding
 the amd64 target change might be a good reminder for the next update.
 
 cheers,
 
    Pedro.
 
 --- Volker Stolz <vs@FreeBSD.org> ha scritto: 
 
 > Synopsis: lang/smalltalk: unbreak on amd64.
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: vs
 > State-Changed-When: Mon Apr 24 14:52:26 UTC 2006
 > State-Changed-Why: 
 > Incomplete plist:
 > ===>  Building package for smalltalk-2.2
 > Creating package /tmp/packages/All/smalltalk-2.2.tbz
 > Registering depends: tk-8.4.11,2 xorg-libraries-6.9.0 fontconfig-2.3.2_3,1
 > gdbm-1.8.3_2 libdrm-2.0.1_1 libexecinfo-1.1_1 libgmp-4.2 libiconv-1.9.2_2
 > freetype2-2.1.10_3 tcl-8.4.11,1 expat-2.0.0_1 pkgconfig-0.20.
 > Creating bzip'd tar ball in '/tmp/packages/All/smalltalk-2.2.tbz'
 > Deleting smalltalk-2.2 
 > ================================================================
 > Deleting xorg-libraries-6.9.0 tk-8.4.11,2 tcl-8.4.11,1 pkgconfig-0.20
 > libiconv-1.9.2_2 libgmp-4.2 libexecinfo-1.1_1 libdrm-2.0.1_1 gmake-3.80_2
 > gettext-0.14.5_2 gdbm-1.8.3_2 freetype2-2.1.10_3 fontconfig-2.3.2_3,1
 > expat-2.0.0_1 
 > 
 > === Checking filesystem state
 > list of extra files and directories in / (not present before this port was
 > installed but present after it was deinstalled)
 > 4486804       20 -r--r--r--    1 root             wheel                9118
 > Apr 24 14:44 usr/local/include/ffi.h
 >   4136        4 drwxr-xr-x    3 root             wheel                 512
 > Apr 24 14:44 usr/local/lib/gcc
 >   4139        4 drwxr-xr-x    3 root             wheel                 512
 > Apr 24 14:44 usr/local/lib/gcc/x86_64-portbld-freebsd6.0
 >   4141        4 drwxr-xr-x    3 root             wheel                 512
 > Apr 24 14:44 usr/local/lib/gcc/x86_64-portbld-freebsd6.0/include
 >   4144        4 drwxr-xr-x    2 root             wheel                 512
 > Apr 24 14:44 usr/local/lib/gcc/x86_64-portbld-freebsd6.0/include/libffi
 >   4145        8 -r--r--r--    1 root             wheel                2580
 > Apr 24 14:44
 > usr/local/lib/gcc/x86_64-portbld-freebsd6.0/include/libffi/ffitarget.h
 >   4148        4 drwxr-xr-x    2 root             wheel                 512
 > Apr 24 14:44 usr/local/lib/elf
 >   4149       76 -rwxr-xr-x    1 root             wheel               36916
 > Apr 24 14:44 usr/local/lib/elf/libffi.so.4
 >   4153        0 lrwxr-xr-x    1 root             wheel                  11
 > Apr 24 14:44 usr/local/lib/elf/libffi.so -> libffi.so.4
 >   4156        4 -rwxr-xr-x    1 root             wheel                 726
 > Apr 24 14:44 usr/local/lib/elf/libffi.la
 >   4159      120 -rw-r--r--    1 root             wheel               61416
 > Apr 24 14:44 usr/local/lib/elf/libffi.a
 > ================================================================
 > 
 > 
 > Responsible-Changed-From-To: freebsd-ports-bugs->vs
 > Responsible-Changed-By: vs
 > Responsible-Changed-When: Mon Apr 24 14:52:26 UTC 2006
 > Responsible-Changed-Why: 
 > Track this.
 > 
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=95441
 > 
 
 
 
 	
 
 	
 		
 ___________________________________ 
 Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB 
 http://mail.yahoo.it
State-Changed-From-To: feedback->closed 
State-Changed-By: vs 
State-Changed-When: Mon Nov 13 08:14:20 UTC 2006 
State-Changed-Why:  
Closed on submitter's request and ENOTIME on my end. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=95441 
>Unformatted:
