Subject: pkg/36441: www/thttpd build fails in current pkgsrc
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Aleksej Saushev <asau@hotbox.ru>
List: pkgsrc-bugs
Date: 06/04/2007 20:45:01
>Number:         36441
>Category:       pkg
>Synopsis:       www/thttpd does not build in current pkgsrc
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 04 20:45:00 +0000 2007
>Originator:     Aleksej Saushev <asau@hotbox.ru>
>Release:        NetBSD 4.99.20
>Organization:
>Environment:
System: NetBSD asau.local 4.99.20 NetBSD 4.99.20 (KERN) #25: Sun Jun 3 12:29:03 MSD 2007 root@asau.local:/usr/obj/sys/arch/i386/compile/KERN i386
Architecture: i386
Machine: i386
>Description:
	www/thttpd build fails in current pkgsrc
>How-To-Repeat:
	cd www/thttpd && make
>Fix:

Fix #1. Change Makefile pre-configure target:

-------------------------------8<-------------------------------
--- Makefile.orig	2007-06-05 00:32:17.000000000 +0400
+++ Makefile	2007-06-05 00:35:40.000000000 +0400
@@ -41,6 +41,7 @@
 	${CP} ${FILESDIR}/thttpd.conf ${WRKSRC}
 
 pre-configure:
+	${ECHO} 'subdirs: this' >> ${WRKSRC}/Makefile.in # missing dependency
 	${MV} ${WRKSRC}/extras/htpasswd.1 ${WRKSRC}/extras/thtpasswd.1
 	${MV} ${WRKSRC}/extras/htpasswd.c ${WRKSRC}/extras/thtpasswd.c
 	for FILE in thttpd.8 extras/Makefile.in extras/thtpasswd.c; do	\
-------------------------------8<-------------------------------


Fix #2. Introduce patch.

patches/patch-ah:
-------------------------------8<-------------------------------
$NetBSD$

--- Makefile.in.orig	2007-06-05 00:06:52.000000000 +0400
+++ Makefile.in	2007-06-05 00:08:02.000000000 +0400
@@ -94,7 +94,7 @@
 	  -e 's/[ 	][ 	]*/", 0, "/' -e 's/^/{ "/' -e 's/$$/", 0 },/'
 
 
-subdirs:
+subdirs: thttpd
 	for i in $(SUBDIRS) ; do ( \
 	    cd $$i ; \
 	    pwd ; \
-------------------------------8<-------------------------------