ports/65009: Maintainer update: lang/gforth (build fix)
Cyrille Lefevre
cyrille.lefevre at laposte.net
Thu Apr 8 16:00:27 UTC 2004
The following reply was made to PR ports/65009; it has been noted by GNATS.
From: Cyrille Lefevre <cyrille.lefevre at laposte.net>
To: freebsd-gnats-submit at FreeBSD.org
Cc: krion at FreeBSD.org, Oliver Eikemeier <eikemeier at fillmore-labs.com>
Subject: Re: ports/65009: Maintainer update: lang/gforth (build fix)
Date: Thu, 8 Apr 2004 17:51:25 +0200
this patch set replace the previous one :
Makefile
bsd.port.mk -> pre/post
CONFIGURE_ENV/MAKE_ENV += _CFLAGS
CONFIGURE_ARGS added
CONFIGURE_TARGET moved (related to PR#64393)
_CFLAGS added
PLIST_SUB += COMMENT (for 0.6.2 build -- doesn't work yet)
pkg-descr
WWW updated
pkg-plist
@comment -> %%COMMENT%%
files/patch-engine::Makefile.in
left untouched.
the next step would be to try to build 0.6.2 w/ gcc 2.95...
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/lang/gforth/Makefile,v
retrieving revision 1.16
diff -u -I$Id.*$ -I$.+BSD.*$ -r1.16 Makefile
--- Makefile 17 Mar 2004 20:03:16 -0000 1.16
+++ Makefile 8 Apr 2004 15:42:32 -0000
@@ -18,8 +18,11 @@
# BROKEN= 0.6.2 runtime does Segmentation Fault at compilation time !
# so, no update is planned right now... sorry.
+# let's try other architecture w/ latest patches...
#ONLY_FOR_ARCHS= i386 amd64 ia64
+.include <bsd.port.pre.mk>
+
# Global variables
#
@@ -27,8 +30,10 @@
USE_REINPLACE= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
-CONFIGURE_ENV= CFLAGS=${CFLAGS:N-O*:N-f*}
-MAKE_ENV= CFLAGS=${CFLAGS:N-O*:N-f*}
+CONFIGURE_ENV= CFLAGS="${CFLAGS:N-O*:N-f*} ${_CFLAGS}"
+CONFIGURE_ARGS= --enable-force-reg
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-${OPSYS:L}${OSREL}
+MAKE_ENV= CFLAGS="${CFLAGS:N-O*:N-f*} ${_CFLAGS}"
ALL_TARGET= all info
PLIST_SUB= PORTVERSION="${PORTVERSION}" \
EMACS_DIR="${EMACS_DIR:S,^${PREFIX}/,,}" \
@@ -53,6 +58,12 @@
BYTEORDER=l
.endif
+_CFLAGS= #none
+.if ${OSVERSION} >= 501103 # aka ${GCCVERSION} >= 030300
+# http://www.complang.tuwien.ac.at/forth/gforth/Known-problems.html
+_CFLAGS+= -fno-reorder-blocks
+.endif
+
DOC_FILES= AUTHORS BUGS Benchres COPYING COPYING.DOC \
INSTALL INSTALL.BINDIST NEWS README \
NEWS.vmgen README.vmgen ToDo
@@ -66,7 +77,12 @@
FORTH_DIR= ${DATADIR}/site-forth
EMPTY_DIRS= generic hppa ia64 m68k power sparc
+.if ${PORTVERSION} == 0.6.1
EMPTY_DIRS+= 4stack 6502 8086 avr c165 h8 misc sharc shboom
+PLIST_SUB+= COMMENT="@comment "
+.else
+PLIST_SUB+= COMMENT=""
+.endif
ARCH_DIR= ${DATADIR}/${PORTVERSION}/arch
# Post-extract
@@ -115,6 +131,4 @@
@${RMDIR} ${ARCH_DIR}/${dir}
.endfor
-.include <bsd.port.mk>
-
-CONFIGURE_TARGET:= --build=${CONFIGURE_TARGET}
+.include <bsd.port.post.mk>
Index: pkg-descr
===================================================================
RCS file: /home/ncvs/ports/lang/gforth/pkg-descr,v
retrieving revision 1.1
diff -u -I$Id.*$ -I$.+BSD.*$ -r1.1 pkg-descr
--- pkg-descr 21 Oct 2000 19:29:01 -0000 1.1
+++ pkg-descr 8 Apr 2004 15:42:32 -0000
@@ -5,4 +5,4 @@
implementation techniques: its inner innerpreter is indirect or
direct threaded.
-WWW: http://www.gnu.org/software/gforth/gforth.html
+WWW: http://www.gnu.org/software/gforth/
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/lang/gforth/pkg-plist,v
retrieving revision 1.4
diff -u -I$Id.*$ -I$.+BSD.*$ -r1.4 pkg-plist
--- pkg-plist 17 Mar 2004 20:03:16 -0000 1.4
+++ pkg-plist 8 Apr 2004 15:42:33 -0000
@@ -43,43 +43,43 @@
%%DATADIR%%/%%PORTVERSION%%/answords.fs
%%DATADIR%%/%%PORTVERSION%%/arch/386/asm.fs
%%DATADIR%%/%%PORTVERSION%%/arch/386/disasm.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/4stack/asm.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/4stack/mach.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/4stack/prim.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/4stack/relocate.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/6502/asm.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/6502/cold.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/6502/mach.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/6502/prim.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/6502/softuart.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/6502/zero.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/8086/asm.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/8086/mach.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/8086/prim.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/4stack/asm.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/4stack/mach.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/4stack/prim.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/4stack/relocate.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/6502/asm.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/6502/cold.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/6502/mach.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/6502/prim.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/6502/softuart.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/6502/zero.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/8086/asm.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/8086/mach.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/8086/prim.fs
%%DATADIR%%/%%PORTVERSION%%/arch/alpha/asm.fs
%%DATADIR%%/%%PORTVERSION%%/arch/alpha/disasm.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/avr/asm.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/c165/asm.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/c165/mach.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/c165/prim.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/h8/asm.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/avr/asm.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/c165/asm.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/c165/mach.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/c165/prim.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/h8/asm.fs
%%DATADIR%%/%%PORTVERSION%%/arch/mips/asm.fs
%%DATADIR%%/%%PORTVERSION%%/arch/mips/disasm.fs
%%DATADIR%%/%%PORTVERSION%%/arch/mips/insts.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/misc/asm.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/misc/mach.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/misc/prim.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/misc/sim.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/misc/sokoban.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/misc/tt.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/sharc/mach.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/shboom/asm.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/shboom/compiler.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/shboom/dis.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/shboom/dis2.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/shboom/doers.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/shboom/mach.fs
- at comment %%DATADIR%%/%%PORTVERSION%%/arch/shboom/prim.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/misc/asm.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/misc/mach.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/misc/prim.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/misc/sim.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/misc/sokoban.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/misc/tt.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/sharc/mach.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/shboom/asm.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/shboom/compiler.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/shboom/dis.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/shboom/dis2.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/shboom/doers.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/shboom/mach.fs
+%%COMMENT%%%%DATADIR%%/%%PORTVERSION%%/arch/shboom/prim.fs
%%DATADIR%%/%%PORTVERSION%%/asm/README
%%DATADIR%%/%%PORTVERSION%%/asm/basic.fs
%%DATADIR%%/%%PORTVERSION%%/asm/bitmask.fs
@@ -243,17 +243,17 @@
@dirrm %%DATADIR%%/%%PORTVERSION%%/doc
@dirrm %%DATADIR%%/%%PORTVERSION%%/compat
@dirrm %%DATADIR%%/%%PORTVERSION%%/asm
- at comment @dirrm %%DATADIR%%/%%PORTVERSION%%/arch/shboom
- at comment @dirrm %%DATADIR%%/%%PORTVERSION%%/arch/sharc
- at comment @dirrm %%DATADIR%%/%%PORTVERSION%%/arch/misc
+%%COMMENT%%@dirrm %%DATADIR%%/%%PORTVERSION%%/arch/shboom
+%%COMMENT%%@dirrm %%DATADIR%%/%%PORTVERSION%%/arch/sharc
+%%COMMENT%%@dirrm %%DATADIR%%/%%PORTVERSION%%/arch/misc
@dirrm %%DATADIR%%/%%PORTVERSION%%/arch/mips
- at comment @dirrm %%DATADIR%%/%%PORTVERSION%%/arch/h8
- at comment @dirrm %%DATADIR%%/%%PORTVERSION%%/arch/c165
- at comment @dirrm %%DATADIR%%/%%PORTVERSION%%/arch/avr
+%%COMMENT%%@dirrm %%DATADIR%%/%%PORTVERSION%%/arch/h8
+%%COMMENT%%@dirrm %%DATADIR%%/%%PORTVERSION%%/arch/c165
+%%COMMENT%%@dirrm %%DATADIR%%/%%PORTVERSION%%/arch/avr
@dirrm %%DATADIR%%/%%PORTVERSION%%/arch/alpha
- at comment @dirrm %%DATADIR%%/%%PORTVERSION%%/arch/8086
- at comment @dirrm %%DATADIR%%/%%PORTVERSION%%/arch/6205
- at comment @dirrm %%DATADIR%%/%%PORTVERSION%%/arch/4stack
+%%COMMENT%%@dirrm %%DATADIR%%/%%PORTVERSION%%/arch/8086
+%%COMMENT%%@dirrm %%DATADIR%%/%%PORTVERSION%%/arch/6205
+%%COMMENT%%@dirrm %%DATADIR%%/%%PORTVERSION%%/arch/4stack
@dirrm %%DATADIR%%/%%PORTVERSION%%/arch/386
@dirrm %%DATADIR%%/%%PORTVERSION%%/arch
@dirrm %%DATADIR%%/%%PORTVERSION%%
Cyrille Lefevre
--
mailto:cyrille.lefevre at laposte.net
More information about the freebsd-ports-bugs
mailing list