Subject: pkg/29869: pkgsrc gnutls fails build if makeinfo not installed
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Darrin B.Jewell <dbj@netbsd.org>
List: pkgsrc-bugs
Date: 04/03/2005 03:46:00
>Number:         29869
>Category:       pkg
>Synopsis:       pkgsrc gnutls fails build if makeinfo not installed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 03 03:46:00 +0000 2005
>Originator:     Darrin B. Jewell
>Release:        pkgsrc-2005Q1
>Organization:
>Environment:

Darwin Quiteria 7.8.0 Darwin Kernel Version 7.8.0: Wed Dec 22 14:26:17 PST 2004; root:xnu/xnu-517.11.1.obj~1/RELEASE_PPC  Power Macintosh powerpc

>Description:

The pkgsrc security/gnutls will fail to build if makeinfo is not installed.

Although the package ships pre-built .info files, it also contains
a makefile where those .info files depend on the toplevel configure
file.  Since this configure file is patched by pkgsrc, its timestamp
gets updated and the subsequent build attempts to recreate the .info
files from the .texi source.

>How-To-Repeat:

Attempt to build security/gnutls without makeinfo installed.

>Fix:

The following patch against the pkgsrc-2005Q1 branch fixes the
problem by removing the makefile dependency on the toplevel
configure file.  This allows the distributed .info files to be
installed without attempting to rebuild them.

Index: pkgsrc/security/gnutls/distinfo
===================================================================
RCS file: /u3/n/rsync/cvsroot/pkgsrc/security/gnutls/distinfo,v
retrieving revision 1.13
diff -u -r1.13 distinfo
--- pkgsrc/security/gnutls/distinfo	24 Feb 2005 13:10:06 -0000	1.13
+++ pkgsrc/security/gnutls/distinfo	2 Apr 2005 19:12:19 -0000
@@ -4,3 +4,4 @@
 RMD160 (gnutls-1.2.0.tar.bz2) = 1f03385047112721173f116821dc92680d60b687
 Size (gnutls-1.2.0.tar.bz2) = 2417909 bytes
 SHA1 (patch-aa) = 3b4adf0b6acde5a56c0a7f3003a0a1e90bfbd672
+SHA1 (patch-ab) = 42f31c1d3602a4e8970434cf906be1829632566c
Index: pkgsrc/security/gnutls/patches/patch-ab
===================================================================
RCS file: pkgsrc/security/gnutls/patches/patch-ab
diff -N pkgsrc/security/gnutls/patches/patch-ab
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ pkgsrc/security/gnutls/patches/patch-ab	2 Apr 2005 19:11:51 -0000
@@ -0,0 +1,13 @@
+$NetBSD: $
+
+--- doc/Makefile.in.orig	Thu Jan 27 08:16:50 2005
++++ doc/Makefile.in	Sat Apr  2 14:10:05 2005
+@@ -369,7 +369,7 @@
+ gnutls.pdf: gnutls.texi $(srcdir)/version.texi $(gnutls_TEXINFOS)
+ gnutls.html: gnutls.texi $(srcdir)/version.texi $(gnutls_TEXINFOS)
+ $(srcdir)/version.texi:  $(srcdir)/stamp-vti
+-$(srcdir)/stamp-vti: gnutls.texi $(top_srcdir)/configure
++$(srcdir)/stamp-vti: gnutls.texi
+ 	@(dir=.; test -f ./gnutls.texi || dir=$(srcdir); \
+ 	set `$(SHELL) $(srcdir)/mdate-sh $$dir/gnutls.texi`; \
+ 	echo "@set UPDATED $$1 $$2 $$3"; \