Subject: pkg/33632: www/libwww solaris
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <dauphin@enst.fr>
List: pkgsrc-bugs
Date: 06/02/2006 15:25:01
>Number:         33632
>Category:       pkg
>Synopsis:       www/libwww solaris
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 02 15:25:00 +0000 2006
>Originator:     Gilles Dauphin
>Release:        SunOS 5.10 i86pc
>Organization:
ENST 
>Environment:


System: SunOS bi.enst.fr 5.10 Generic_Patch_118844-30 i86pc


>Description:


bmake install the first time

gmake[1]: Leaving directory `/pkg/obj/www/libwww/work/w3c-libwww-5.4.0'
===> [Automatic manual page handling]
=> Generating post-install file lists
===> Registering installation for libwww-5.4.0nb5
libwww-5.4.0nb5 requires installed package openssl-0.9.7inb1
libwww-5.4.0nb5 requires installed package zlib-1.2.3
=> Checking for missing run-time search paths in libwww-5.4.0nb5
=> Checking for work-directory references in libwww-5.4.0nb5
=> Checking file-check results for libwww-5.4.0nb5
*** The PLIST does not match installed files!
*** The following files are in /usr/pkg but not in the PLIST:
        /usr/pkg/lib/libmd5.a
        /usr/pkg/lib/libmd5.la
        /usr/pkg/lib/libmd5.so
        /usr/pkg/lib/libmd5.so.0
        /usr/pkg/lib/libmd5.so.0.1.0
*** Error code 1



>How-To-Repeat:


bmake install 
first time


>Fix:


You must rebuild Makefile.in with automake when using
the configure's option --with-md5=no , else you alway build the modules/md5
and there is a md5 dependency in Library/src. Here is the patch:

--- Makefile.orig       Fri Jun  2 17:11:24 2006
+++ Makefile    Fri Jun  2 17:02:02 2006
@@ -18,7 +18,7 @@
 EXTRACT_ONLY=          ${DISTNAME}${EXTRACT_SUFX}
 SITES_libwww-configure-5.4.0nb1.gz=    ${MASTER_SITE_LOCAL}
 
-USE_TOOLS+=            gmake perl
+USE_TOOLS+=            gmake perl automake14
 USE_LIBTOOL=           YES
 
 GNU_CONFIGURE=         YES
@@ -39,6 +39,8 @@
        ${TOUCH} ${WRKSRC}/${f}
 .endfor
        ${TOUCH} `${FIND} ${WRKSRC} -name Makefile.in -print`
+       sleep 1
+       ${TOUCH} ${WRKSRC}/modules/Makefile.am ${WRKSRC}/Library/src/Makefile.am
 
 .include "../../mk/bsd.prefs.mk"
 
@@ -50,8 +52,13 @@
 .if ${OPSYS} == "SunOS"
 # Solaris has a /usr/lib/libmd5 which seems to be enouth, and
 # /usr/local/lib/libmd5 breaks /usr/lib/librt
-CONFIGURE_ARGS+= --without-md5
+CONFIGURE_ARGS+= --with-md5=no
 PLIST_SUBST+=  MD5LIB="@comment "
+
+post-configure:
+       (cd ${WRKSRC}/modules; ${TOUCH} Makefile.am ; gmake Makefile.in)
+       (cd ${WRKSRC}/Library/src; ${TOUCH} Makefile.am ; gmake Makefile.in)
+
 .else
 .  if !exists(/usr/include/md5.h)
 CONFIGURE_ARGS+=       --with-md5=${SSLBASE:Q}