Subject: pkg/8063: distfile for devel/libslang no longer exists
To: None <gnats-bugs@gnats.netbsd.org>
From: None <ingolf@knuut.de>
List: netbsd-bugs
Date: 07/24/1999 09:30:09
>Number:         8063
>Category:       pkg
>Synopsis:       distfile for devel/libslang no longer exists
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 24 09:20:00 1999
>Last-Modified:
>Originator:     Ingolf Koch
>Organization:
Beste Kneipe in Jena-Ost
>Release:        NetBSD-1.4
>Environment:
System: NetBSD elefant 1.4 NetBSD 1.4 (ELEFANT) #1: Sat Jul 24 12:28:20 MEST 1999 ingolf@elefant:/usr/obj/sys/arch/sparc/compile/ELEFANT sparc


>Description:
	The slang-1.3.7.tar.gz file does no longer exist.
>How-To-Repeat:
	Try to install devel/libslang.
>Fix:
	Use the current slang-1.3.8.tar.gz (with the following
modifications to the package files:

--- Makefile.orig	Fri Jun 18 13:23:39 1999
+++ Makefile	Sat Jul 24 16:58:18 1999
@@ -2,8 +2,8 @@
 # FreeBSD Id: Makefile,v 1.10 1997/07/17 15:12:41 max Exp 
 #
 
-DISTNAME=       slang-1.3.7
-PKGNAME=        libslang-1.3.7
+DISTNAME=       slang-1.3.8
+PKGNAME=        libslang-1.3.8
 CATEGORIES=	devel
 MASTER_SITES=   ftp://space.mit.edu/pub/davis/slang/v1.3/ \
 		http://gd.tuwien.ac.at/editors/davis/slang/v1.3/

--- md5	Sat Jul 24 17:00:20 1999
+++ md5.orig	Fri Jun 18 13:23:39 1999
@@ -1,3 +1,3 @@
 $NetBSD: md5,v 1.4 1999/06/17 22:57:24 mjl Exp $
 
-MD5 (slang-1.3.8.tar.gz) = 78c8e6dddbee362e356eaf2bb16770b7
+MD5 (slang-1.3.7.tar.gz) = daea2a2b5f013ada6dc292273fc300b3

--- patch-sum	Sat Jul 24 17:27:12 1999
+++ patch-sum.orig	Fri Jul  9 15:50:37 1999
@@ -1,5 +1,5 @@
 $NetBSD: patch-sum,v 1.1 1999/07/09 13:50:37 agc Exp $
 
-MD5 (patch-aa) = 122c036eb2180128f1debf119a3b3210
-MD5 (patch-ab) = b64efb60fc4527c5969b7369b5dc245a
-MD5 (patch-ac) = 17bcd77ed1759f1cb9d6b96647546e69
+MD5 (patch-aa) = a4c31808bf651aeb42284f899932901b
+MD5 (patch-ab) = f61e5f1efbc116e742f1865da3f675af
+MD5 (patch-ac) = 3193f6001056058f4aa9b71b1b97c6d0

Replace the patch files with the following:

patches/patch-aa:
--- src/Makefile.in.orig	Tue Jul 13 22:30:40 1999
+++ src/Makefile.in	Sat Jul 24 17:16:20 1999
@@ -2,9 +2,9 @@
 #---------------------------------------------------------------------------
 # ANSI C compiler
 #---------------------------------------------------------------------------
-CC              = @CC@
+CC              = $(LIBTOOL) @CC@
 CFLAGS 		= @CFLAGS@
-LDFLAGS		= @LDFLAGS@ @DYNAMIC_LINK_FLAGS@
+LDFLAGS		= $(EXECLIBS)
 #-----------------------------------------------------------------------------
 # System library that contains functions for dynamic linking (-ldl)
 #-----------------------------------------------------------------------------
@@ -22,7 +22,7 @@
 # Set these values to ABSOLUTE path names
 #---------------------------------------------------------------------------
 SRCDIR = @SRCDIR@# Location of sources
-OBJDIR = @OBJDIR@# Location of objects
+OBJDIR = .# Location of objects
 ELFDIR = @ELFDIR@# Location of elf objects
 
 #---------------------------------------------------------------------------
@@ -63,13 +63,13 @@
 ELF_MINOR_VERSION	= @slang_minor_version@#
 
 CONFIG_H		= config.h
-ALL_CFLAGS		= $(CFLAGS) -Dunix $(THIS_LIB_DEFINES)
+ALL_CFLAGS		= -Dunix $(CFLAGS) $(THIS_LIB_DEFINES)
 ALL_ELF_CFLAGS		= $(ELF_CFLAGS) -Dunix $(THIS_LIB_DEFINES)
 COMPILE_CMD		= $(CC) -c $(ALL_CFLAGS)
 ELFCOMPILE_CMD		= $(ELF_CC) -c $(ALL_ELF_CFLAGS)
 ELF_LINK_CMD		= @ELF_LINK_CMD@
 
-NORMAL_LIB = lib$(THIS_LIB).a
+NORMAL_LIB = lib$(THIS_LIB).la
 OBJDIR_NORMAL_LIB = $(OBJDIR)/$(NORMAL_LIB)
 
 ELFLIB = lib$(THIS_LIB).so#
@@ -78,7 +78,7 @@
 
 ELFDIR_ELF_LIB = $(ELFDIR)/$(ELFLIB_MAJOR_MINOR)#
 
-EXECLIBS = -L$(OBJDIR) -lslang -lm $(TCAPLIB) $(DL_LIB)
+EXECLIBS = libslang.la $(TCAPLIB)
 EXECDEPS = $(OBJDIR_NORMAL_LIB)
 
 OFILES = @PROGRAM_OFILES@
@@ -93,13 +93,13 @@
 #---------------------------------------------------------------------------
 # Rules
 #---------------------------------------------------------------------------
-all: $(OBJDIR) $(CONFIG_H) $(OBJDIR_NORMAL_LIB) $(OTHERSTUFF)
+all: $(OBJDIR) $(CONFIG_H) $(OBJDIR_NORMAL_LIB)
 elf: $(ELFDIR) $(CONFIG_H) $(ELFDIR_ELF_LIB)
 
 $(OBJDIR_NORMAL_LIB): $(OBJDIR) $(CONFIG_H) $(OBJS)
 	-$(RM) $(OBJDIR_NORMAL_LIB)
-	cd $(OBJDIR); $(AR_CR) $(NORMAL_LIB) $(OFILES)
-	$(RANLIB) $(OBJDIR_NORMAL_LIB)
+	cd $(OBJDIR); $(LIBTOOL) --mode=link cc -o $(NORMAL_LIB) $(OFILES:.o=.lo) \
+		-rpath $(PREFIX)/lib -version-info 1:3
 	@echo ""
 	@echo $(NORMAL_LIB) created in $(OBJDIR)
 
@@ -124,9 +124,7 @@
 install: install_basic_lib install_docs
 install_basic_lib: $(install_lib_dir) $(install_include_dir) $(OBJDIR_NORMAL_LIB)
 	@echo installing $(OBJDIR_NORMAL_LIB) in $(install_lib_dir)
-	$(INSTALL_DATA) $(OBJDIR_NORMAL_LIB) $(install_lib_dir)
-	$(RANLIB) $(install_lib_dir)/$(NORMAL_LIB)
-	chmod 644 $(install_lib_dir)/$(NORMAL_LIB)
+	$(LIBTOOL) --mode=install $(INSTALL_DATA) $(OBJDIR_NORMAL_LIB) $(install_lib_dir)
 	@echo installing slang.h and slcurses.h in $(install_include_dir)
 	$(INSTALL_DATA) $(SRCDIR)/slang.h $(install_include_dir)
 	$(INSTALL_DATA) $(SRCDIR)/slcurses.h $(install_include_dir)

patches/patch-ab:
--- configure.orig	Tue Jul 13 22:30:30 1999
+++ configure	Sat Jul 24 17:19:07 1999
@@ -1926,17 +1926,6 @@
 
 TERMCAP=-ltermcap
 
-echo $ac_n "checking for Terminfo""... $ac_c" 1>&6
-echo "configure:1931: checking for Terminfo" >&5
-for terminfo_dir in $JD_Terminfo_Dirs
-do
-   if test -d $terminfo_dir 
-   then
-      echo "$ac_t""yes" 1>&6
-      TERMCAP=""
-      break
-   fi
-done
 if test "$TERMCAP"; then
   echo "$ac_t""no" 1>&6
   cat >> confdefs.h <<\EOF

patches/patch-ac:
--- src/slang.h.orig	Tue Jul 13 22:30:41 1999
+++ src/slang.h	Sat Jul 24 17:23:45 1999
@@ -24,6 +24,11 @@
 # endif
 #endif /* __watcomc__ */
 
+#ifdef __NetBSD__
+#undef unix
+#define unix 1
+#endif
+
 #ifdef unix
 # ifndef __unix__
 #  define __unix__ 1


DEPENDS in the following Makefiles may have to be updated, too:
	editors/jed/Makefile
	misc/most/Makefile
	news/slrn/Makefile
	sysutils/gmc/Makefile
	sysutils/mc/Makefile
	www/lynx/Makefile
>Audit-Trail:
>Unformatted: