Non-Maintainer update: editors/nedit - Add BUILD_BROKEN_NEDIT to build with Open Motif 2.2.2 (default)

Andrew J.Caines A.J.Caines at
Sun Jun 6 01:45:21 GMT 2004

>Submitter-Id:	current-users
>Originator:	Andrew J. Caines
>Organization:	H.A.L. Plant
>Confidential:	no 
>Synopsis:	Non-Maintainer update: editors/nedit - Add BUILD_BROKEN_NEDIT to build with Open Motif 2.2.2 (default)
>Severity:	serious
>Priority:	high
>Category:	ports
>Class:		update
>Release:	FreeBSD 4.10-STABLE i386
System: FreeBSD 4.10-STABLE FreeBSD 4.10-STABLE #0: Fri Jun 4 08:39:15 EDT 2004 toor at i386

	Port build fails with default Motif (open-motif-2.2.2_2) because NEdit authors don't want to build against Open Motif 2.2.2:

===>  Building for nedit-5.4
(cd util;  make -f Makefile.freebsd verify_config &&  make -f Makefile.freebsd libNUtil.a)
ccache gcc -O2 -pipe -march=pentium -O -I/usr/X11R6/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD -DUSE_XMIM -o check_lin_tif check_lin_tif.c
Open Motif or OSF Motif detected.
@(#)Motif Version 2.2.2
ERROR:  Bad Open Motif Version:
        @(#)Motif Version 2.2.2

This version of Open Motif is known to be broken and is
thus unsupported by the NEdit developers.  It will probably
cause NEdit to crash frequently.  Check these pages for a more
detailed description of the problems with this version:

NEdit is known to work with LessTif versions:
and is known to be very stable with Open Motif version 2.1.30,
which is freely available from several sources, including:

Also, unless you need a customized NEdit you should STRONGLY
consider downloading a pre-built binary from,
since these are the most stable versions.

If you really want to build a known-bad version of NEdit you
can override this sanity check by adding -DBUILD_BROKEN_NEDIT
to the CFLAGS variable in your platform's Makefile (e.g.
*** Error code 1

Stop in /data/ports/editors/nedit/work/nedit-5.4/util.
*** Error code 1

Stop in /data/ports/editors/nedit/work/nedit-5.4.
*** Error code 1

Stop in /data/ports/editors/nedit.
	Try to build port

	Add -DBUILD_BROKEN_NEDIT to the nedit FreeBSD Makefile:

diff -ruN nedit.orig/files/patch-ac nedit/files/patch-ac
--- nedit.orig/files/patch-ac	Sat Jun  5 21:19:54 2004
+++ nedit/files/patch-ac	Sat Jun  5 21:11:27 2004
@@ -1,5 +1,5 @@
---- makefiles/Makefile.freebsd.orig	Sun Sep 28 15:03:10 2003
-+++ makefiles/Makefile.freebsd	Sat Feb  7 15:00:18 2004
+--- makefiles/Makefile.freebsd.orig	Sun Sep 28 11:03:10 2003
++++ makefiles/Makefile.freebsd	Sat Jun  5 21:10:26 2004
 @@ -1,6 +1,6 @@
  # $Id: Makefile.freebsd,v 2003/09/28 15:03:10 edg Exp $
@@ -15,7 +15,7 @@
 -LIBS= ${MOTIFLIB} -L${PREFIX}/lib -lm -lXpm -lXext -lXt -lSM -lICE -lX11
 +LIBS+= ${MOTIFLIB} -L${X11BASE}/lib -lm -lXpm -lXext -lXt -lSM -lICE -lX11
  include Makefile.common


Note that I've modified patch-ac which already changes the nedit FreeBSD Makefile.

There has been some discussion about the validity of the NEdit authors' position on stability, however I suggest this patch independently of this argument for the simple reason that the port fails to install by default. See the freebsd-ports archive for details.

More information about the freebsd-ports mailing list