Subject: pkg/15852: build failure of editors/jed
To: None <gnats-bugs@gnats.netbsd.org>
From: None <hiramatu@boreas.dti.ne.jp>
List: netbsd-bugs
Date: 03/10/2002 12:50:47
>Number:         15852
>Category:       pkg
>Synopsis:       build failure of editors/jed
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 09 19:54:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Hiramatsu Yoshifumi
>Release:        -current 1.5ZA
>Organization:
	
>Environment:
	<machine, os, target, libraries (multiple lines)>
System: NetBSD river.my.domain 1.5ZA NetBSD 1.5ZA (River) #1: Sat Feb 16 01:29:44 JST 2002     hiramatsu@river.my.domain:/usr/src/sys/arch/i386/compile/River i386
Architecture: i386
Machine: i386
>Description:
When LOCALBASE is set to /usr/local2, building editors/jed fails with
following message.

cc -O2 -fno-strength-reduce   -I/usr/X11R6/include -Dunix -DJED  -I/usr/tmp/editors/jed/work/slang/src -Wl,-R/usr/local2/lib -L/usr/local2/lib /usr/tmp/editors/jed/work/jed-B0.99-15/src/chkslang.c -o /usr/tmp/editors/jed/work/jed-B0.99-15/src/objs/chkslang -Wl,-R/usr/local2/lib -L/usr/local2/lib -L/usr/tmp/editors/jed/work/slang/src/objs -lslang  -lcurses  -lutil  -lm
/usr/tmp/editors/jed/work/jed-B0.99-15/src/chkslang.c:20: slang.h: No such file or directory
*** Error code 1

Stop.
make: stopped in /usr/tmp/editors/jed/work/jed-B0.99-15/src
*** Error code 1

Stop.
make: stopped in /usr/tmp/editors/jed/work/jed-B0.99-15
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/editors/jed
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/editors/jed

>How-To-Repeat:
	
>Fix:
This patch changes jed to use libslang's buildlink.mk, and makes
build finishes successfully.

diff -Nrbu jed.orig/Makefile jed/Makefile
--- jed.orig/Makefile	Sun Mar  3 04:52:52 2002
+++ jed/Makefile	Sun Mar 10 12:26:11 2002
@@ -8,11 +8,9 @@
 			ftp://ftp.uni-stuttgart.de/pub/unix/misc/slang/jed/
 
 MAINTAINER=		packages@netbsd.org
-HOMEPAGE=		http://space.mit.edu/%7Edavis/jed.html
+HOMEPAGE=		http://space.mit.edu/~davis/jed/
 COMMENT=		Text editor with many features, extensible through S-Lang functions
 
-DEPENDS+=		libslang-[0-9]*:../../devel/libslang
-
 GNU_CONFIGURE=		yes
 CONFIGURE_ARGS+=	--without-X
 
@@ -27,4 +25,5 @@
 	${RM} -f ${PREFIX}/share/jed/doc/jed.1 ${PREFIX}/share/jed/doc/rgrep.1
 	${RMDIR} ${PREFIX}/share/jed/bin
 
+.include "../../devel/libslang/buildlink.mk"
 .include "../../mk/bsd.pkg.mk"
diff -Nrbu jed.orig/distinfo jed/distinfo
--- jed.orig/distinfo	Sun Mar  3 04:52:52 2002
+++ jed/distinfo	Sun Mar 10 12:26:11 2002
@@ -2,5 +2,4 @@
 
 SHA1 (jed-B0.99-15.tar.gz) = dfcb1b5ea0330666e919a83a3ebf01b4444d2e07
 Size (jed-B0.99-15.tar.gz) = 833835 bytes
-SHA1 (patch-aa) = f2ab9edd609b05c864b26da720d3f708a05a2d86
 SHA1 (patch-ab) = 41bd984d5fdc26b0c7652981df9ed187b9c9ae27
diff -Nrbu jed.orig/patches/patch-aa jed/patches/patch-aa
--- jed.orig/patches/patch-aa	Sun Mar  3 04:52:52 2002
+++ jed/patches/patch-aa	Thu Jan  1 09:00:00 1970
@@ -1,21 +0,0 @@
-$NetBSD: patch-aa,v 1.5 2001/10/25 19:29:12 agc Exp $
-
---- configure.orig	Tue Oct  9 08:49:42 2001
-+++ configure	Tue Oct  9 08:51:20 2001
-@@ -2576,7 +2576,7 @@
-                  /usr/share/lib/terminfo \
- 		 /usr/local/lib/terminfo"
- 
--TERMCAP=-ltermcap
-+TERMCAP=-lcurses
- 
- echo $ac_n "checking for Terminfo""... $ac_c" 1>&6
- echo "configure:2583: checking for Terminfo" >&5
-@@ -2623,6 +2623,7 @@
- test "x$exec" = "xNONE" && exec="$ac_default_prefix"
- test "x$exec_prefix" = "xNONE" && exec_prefix="$prefix"
- JD_Search_Dirs="$JD_Search_Dirs \
-+		/usr/pkg/include,/usr/pkg/lib
-                 $includedir,$libdir \
-                 /usr/local/include,/usr/local/lib \
- 		/usr/include,/usr/lib \

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