Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jan 2006 23:10:33 -0500 (EST)
From:      Gregory Wright <gwright@antiope.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/91545: [patch] texmacs port crashes on startup when built on FreeBSD 6.0-RELEASE-p1
Message-ID:  <200601090410.k094AX5P007447@ivy-mike.18clay.com>
Resent-Message-ID: <200601090420.k094K9xA041200@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         91545
>Category:       ports
>Synopsis:       [patch] texmacs port crashes on startup when built on FreeBSD 6.0-RELEASE-p1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 09 04:20:08 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Gregory Wright
>Release:        FreeBSD 6.0-RELEASE-p1 i386
>Organization:
>Environment:
System: FreeBSD ivy-mike.18clay.com 6.0-RELEASE-p1 FreeBSD 6.0-RELEASE-p1 #1: Tue Dec 20 14:31:02 EST 2005 gwright@ivy-mike.18clay.com:/usr/obj/usr/src/sys/IVY-MIKE i386


	dual 2.8 GHz Xeon, 2 GB, using SMP enabled kernel.
>Description:
	Texmacs 1.0.6 builds successfully using the current portfile,
	however, when the program is started it fails as soon as
	input is attempted in the main canvas with an allocation
	exception, and the program immediately terminates.

	This behavior did not occur with the previous version of
	texmacs (1.0.5) on FreeBSD 5.4-RELEASE.
>How-To-Repeat:
	# cd /usr/ports/editors/texmacs
	# make install
	# cd
	# texmacs

	...and attempt input in the main canvas. The program willr
	generate an exception and terminate.
>Fix:
	The problem seems to be that disabling texmac's internal
	allocator (by the --disable-fastalloc configure option)
	triggers a bug under FreeBSD 6.0. Changing to the default
	configuration fixed the problem.

	The resulting texmacs was tested by running a maxima
	session and ran successfully.

	A patch which uses the default allocator on FreeBSD 6.0
	and above is attached. It should be applied in
	/usr/ports/editors/texmacs.

--- texmacs.Makefile.patch begins here ---
--- Makefile	Mon Dec 12 07:03:25 2005
+++ Makefile.new	Thu Jan  5 08:54:24 2006
@@ -30,8 +30,13 @@
 CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
 		LDFLAGS="-L${LOCALBASE}/lib"
-CONFIGURE_ARGS=	--disable-fastalloc --enable-optimize="${CXXFLAGS}" \
+CONFIGURE_ARGS=	--enable-optimize="${CXXFLAGS}" \
 		--with-iconv="${LOCALBASE}"
+
+.if ${OSVERSION} < 600000
+CONFIGURE_ARGS+=--disable-fastalloc
+.endif
+
 MAKE_ARGS=	CP="${CP} -R -f"
 ALL_TARGET=	${PORTNAME:U}
 
--- texmacs.Makefile.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601090410.k094AX5P007447>