Subject: pkg/4608: gtexinfo is missing in pkgsrc/devel/Makefile and version is old
To: None <gnats-bugs@gnats.netbsd.org>
From: None <frueauf@ira.uka.de>
List: netbsd-bugs
Date: 11/30/1997 16:53:49
>Number:         4608
>Category:       pkg
>Synopsis:       gtexinfo is missing in pkgsrc/devel/Makefile and version is old
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 30 08:05:00 1997
>Last-Modified:
>Originator:     Thorsten Frueauf
>Organization:
private
	
>Release:        <NetBSD-current source date> pkgsrc as of 29.11.1997
>Environment:
	
System: NetBSD cyberlap 1.3_BETA NetBSD 1.3_BETA (CYBERLAP) #12: Sun Nov 30 00:53:06 MET 1997 frueauf@cyberlap:/usr/src/sys/arch/i386/compile/CYBERLAP i386


>Description:
	
gtexinfo is not listed in the pkgsrc/devel/Makefile, thus a `make fetch`
from pkgsrc does not get it. But several pkges depend on it, so why not
enable it too?

And apart form that, our gtexinfo pkg is stil texinfo-3.9 - but texinfo-3.11
is the recent version.

>How-To-Repeat:
	
Try `make fetch` in pkgsrc/devel and watch that the texinfo dist file
is not fetched. Try to install something that depends on texinfo and
watch it fetching version 3.9.

>Fix:
	
Apply the following diff from /usr/pkgsrc:

*** devel/gtexinfo/files/md5-orig	Thu Oct 16 10:36:46 1997
--- devel/gtexinfo/files/md5	Sun Nov 30 14:29:29 1997
***************
*** 1 ****
! MD5 (texinfo-3.9.tar.gz) = 94039aa7449af22dd8c7da23bdc52b6a
--- 1 ----
! MD5 (texinfo-3.11.tar.gz) = 398f30ec1a5b6ec8dbad7172644cc543
*** devel/gtexinfo/pkg/PLIST-orig	Sun Nov  9 15:22:34 1997
--- devel/gtexinfo/pkg/PLIST	Sun Nov 30 15:31:05 1997
***************
*** 4,12 ****
  bin/texindex
  bin/texi2dvi
  bin/install-info
- man/man1/info.1.gz
  info/dir
- info/makeinfo.info
  info/info.info
  info/info-stnd.info
  info/texinfo
--- 4,10 ----
***************
*** 22,24 ****
--- 20,24 ----
  info/texinfo-10
  info/texinfo-11
  info/texinfo-12
+ share/locale/de/LC_MESSAGES/texinfo.mo
+ share/locale/fr/LC_MESSAGES/texinfo.mo
*** devel/gtexinfo/Makefile-orig	Thu Oct 16 10:36:46 1997
--- devel/gtexinfo/Makefile	Sun Nov 30 15:49:57 1997
***************
*** 1,22 ****
  # $NetBSD: Makefile,v 1.1.1.1 1997/10/09 09:13:49 agc Exp $
  # New ports collection makefile for:	GNU texinfo
! # Version required:     3.9
  # Date created:		7th October 1997
  # Whom:			Alistair Crooks (agc@netbsd.org)
  #
  
! DISTNAME=       texinfo-3.9
! PKGNAME=	gtexinfo-3.9
  CATEGORIES=	devel
  MASTER_SITES=   ${MASTER_SITE_GNU}
  
  GNU_CONFIGURE=	yes
- MAN1=		info.1
- 
- post-install:
- 	${PREFIX}/bin/install-info --info-dir=${PREFIX}/info ${PREFIX}/info/texinfo
- 	${PREFIX}/bin/install-info --info-dir=${PREFIX}/info ${PREFIX}/info/makeinfo.info
- 	${PREFIX}/bin/install-info --info-dir=${PREFIX}/info ${PREFIX}/info/info.info
- 	${PREFIX}/bin/install-info --info-dir=${PREFIX}/info ${PREFIX}/info/info-stnd.info
  
  .include <bsd.port.mk>
--- 1,15 ----
  # $NetBSD: Makefile,v 1.1.1.1 1997/10/09 09:13:49 agc Exp $
  # New ports collection makefile for:	GNU texinfo
! # Version required:     3.11
  # Date created:		7th October 1997
  # Whom:			Alistair Crooks (agc@netbsd.org)
  #
  
! DISTNAME=       texinfo-3.11
! PKGNAME=	gtexinfo-3.11
  CATEGORIES=	devel
  MASTER_SITES=   ${MASTER_SITE_GNU}
  
  GNU_CONFIGURE=	yes
  
  .include <bsd.port.mk>
*** devel/Makefile-orig	Fri Nov 21 12:58:10 1997
--- devel/Makefile	Sun Nov 30 14:17:07 1997
***************
*** 25,30 ****
--- 25,31 ----
  #    SUBDIR += gdbtk
      SUBDIR += gindent
      SUBDIR += gmake
+     SUBDIR += gtexinfo
      SUBDIR += id-utils
  #    SUBDIR += ilu
  #    SUBDIR += lclint
*** devel/gtexinfo/patches-orig/patch-aa	Thu Oct 16 10:36:46 1997
--- devel/gtexinfo/patches/patch-aa	Sun Nov 30 16:25:09 1997
***************
*** 1,26 ****
! --- util/install-info.c	1996/10/03 23:13:36	1.12
! +++ util/install-info.c	1997/10/07 13:10:54
! @@ -338,16 +338,23 @@
!     We define this function here rather than using strerror
!     because not all systems have strerror.  */
   
! +#include <sys/param.h>
! +#include <string.h>
  +
!  char *
!  my_strerror (errnum)
!       int errnum;
!  {
! +#if (defined(BSD) && BSD >= 199306)
! +	return strerror(errnum);
! +#else
!    extern char *sys_errlist[];
!    extern int sys_nerr;
   
!    if (errnum >= 0 && errnum < sys_nerr)
!      return sys_errlist[errnum];
!    return (char *) "Unknown error";
! +#endif
!  }
!  
!  /* This table defines all the long-named options, says whether they
--- 1,55 ----
! --- info/terminal.c-orig	Tue Jul 29 23:42:05 1997
! +++ info/terminal.c	Sun Nov 30 15:01:19 1997
! @@ -31,7 +31,7 @@
!  #ifdef HAVE_NCURSES_TERMCAP_H
!  #include <ncurses/termcap.h>
!  #else
! -#ifdef HAVE_TERMCAP_H
! +#if defined(HAVE_TERMCAP_H) && !defined(__NetBSD__)
!  #include <termcap.h>
!  #else
!  /* On Solaris2, sys/types.h #includes sys/reg.h, which #defines PC.
! --- doc/dir-orig	Sun Nov 30 15:57:49 1997
! +++ doc/dir	Sun Nov 30 15:58:42 1997
! @@ -0,0 +1,17 @@
! +This is the directory file `dir' a.k.a. `DIR', which contains the
! +topmost node of the Info hierarchy.  This file is merely made available
! +for your hacking pleasure, not official or standard in any way.
! +If it doesn't make sense to you, or you don't like it, ignore it.
! +
! +$Id: dir,v 1.23 1997/07/25 18:05:32 karl Exp $
! +
! +File: dir	Node: Top	This is the top of the INFO tree.
! +
! +This node gives a menu of the major topics accessible through Info.
! +
! +  `q' quits;
! +  `?' lists all Info commands;
! +  `h' starts the Info tutorial;
! +  `mTexinfo RET' visits the Texinfo manual, etc.
! +
! +* Menu:
! --- doc/Makefile.in-orig	Fri Aug  1 01:52:01 1997
! +++ doc/Makefile.in	Sun Nov 30 16:20:38 1997
! @@ -208,7 +208,7 @@
!  install-exec: 
!  	@$(NORMAL_INSTALL)
!  
! -install-data: install-info-am install-data-local
! +install-data: install-empty-dir install-info-am install-data-local
!  	@$(NORMAL_INSTALL)
   
!  install: install-exec install-data all
! @@ -292,6 +292,12 @@
!  	    echo " install-info --info-dir=$(infodir) $(infodir)/$$file";\
!  	    install-info --info-dir=$(infodir) $(infodir)/$$file || :;\
!  	  done; \
! +	else : ; fi
  +
! +install-empty-dir:
! +	if ! (test -f $(infodir)/dir); then \
! +	  echo "installing empty dir file to $(infodir)"; \
! +	  $(INSTALL_DATA) $(srcdir)/dir $(infodir)/dir ; \
!  	else : ; fi
   
!  # Remove them at make distclean.
>Audit-Trail:
>Unformatted:
gtexinfo is missing in pkgsrc/devel/Makefile and version is old