Subject: pkg/29726: clamav-0.83 fails to build with pkgsrc-2004Q4
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Brian Buhrow <buhrow@lothlorien.nfbcal.org>
List: pkgsrc-bugs
Date: 03/17/2005 18:01:00
>Number:         29726
>Category:       pkg
>Synopsis:       Clamav-0.83 fails to build with pkgsrc srcs taken from pkg-src-2004Q4
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 17 18:01:00 +0000 2005
>Originator:     Brian Buhrow
>Release:        NetBSD 2.0
>Organization:
	
>Environment:
	
	
System: NetBSD 2.0 NetBSD 2.0 (NFBNETBSD) #0: Tue Jan 4 10:03:02 PST 2005 buhrow@lothlorien.nfbcal.org:/usr/src/sys/arch/i386/compile/NFBNETBSD i386
Architecture: i386
Machine: i386
>Description:
	
	After updating my pkgsrc tree with CVS using:
cvs update -Dp -rpkgsrc-2004Q4
I find that I cannot build the mail/clamav package.
Reverting to pkgsrc-2004Q3 works fine, with clamav-0.80. 

	Errors look like:

make: "../../mk/../../mk/bsd.prefs.mk" line 322: Malformed conditional (empty(_OPSYS_HAS_INET6:M[nN][oO]) && !defined(USE_SOCKS))
make: "../../mk/../../mk/bsd.prefs.mk" line 489: warning: Couldn't read shell's output for "cd /usr/pkgsrc/mail/clamav/../.. && "
make: "../../mk/../../mk/bsd.prefs.mk" line 509: warning: Couldn't read shell's output for "cd /usr/pkgsrc/mail/clamav && "
-n: not found
curl: (6) Couldn't resolve host 'milter'
make: "../../mk/../../mk/bsd.options.mk" line 180: warning: Couldn't read shell's output for " curl milter |  -n 1 | "
inet6: not found
-n: not found
make: "../../mk/../../mk/bsd.options.mk" line 183: warning: Couldn't read shell's output for " inet6 inet6 curl milter |  -n 1 | "
-n: not found
curl: (6) Couldn't resolve host 'milter'
make: "../../mk/../../mk/bsd.options.mk" line 186: warning: Couldn't read shell's output for "  curl milter |  -n 1 | "
make: "../../mail/libmilter/../../mk/../../mail/libmilter/../../mk/pthread.buildlink3.mk" line 125: Malformed conditional (exists(/usr/include/pthread.h) &&  !empty(PREFER_NATIVE_PTHREADS:M[yY][eE][sS]))
make: "/usr/pkgsrc/mail/clamav/Makefile" line 73: if-less else
make: "/usr/pkgsrc/mail/clamav/Makefile" line 73: Need an operator
make: "/usr/pkgsrc/mail/clamav/Makefile" line 78: if-less endif
make: "/usr/pkgsrc/mail/clamav/Makefile" line 78: Need an operator
make: "../../mk/../../mk/pthread.buildlink3.mk" line 125: Malformed conditional (exists(/usr/include/pthread.h) &&  !empty(PREFER_NATIVE_PTHREADS:M[yY][eE][sS]))
make: "../../mk/../../mk/pthread.buildlink3.mk" line 127: if-less else
make: "../../mk/../../mk/pthread.buildlink3.mk" line 127: Need an operator
make: "../../mk/../../mk/pthread.buildlink3.mk" line 145: if-less endif
make: "../../mk/../../mk/pthread.buildlink3.mk" line 145: Need an operator
make: "../../mk/../../mk/bsd.pkg.mk" line 41: Malformed conditional (empty(PKGSRC_SHOW_BUILD_DEFS:M[yY][eE][sS]))
make: "../../mk/../../mk/bsd.pkg.mk" line 41: Missing dependency operator
make: "../../mk/../../mk/bsd.pkg.mk" line 43: if-less elif
make: "../../mk/../../mk/bsd.pkg.mk" line 68: if-less endif
make: "../../mk/../../mk/bsd.pkg.mk" line 68: Need an operator
NO: not found
make: "../../mk/../../mk/bsd.pkg.mk" line 287: warning: "if PKG_DBDIR= /pkg_admin  pmatch 'perl>=5.0' perl-5.0 2>/dev/null; then   "YES";						 else								  "NO";						 fi" returned non-zero status
/usr/pkgsrc/mail/clamav/patches/patch-aa: permission denied
YES: not found
make: "../../mk/../../mk/bsd.pkg.mk" line 503: warning: "if [ -d /usr/pkgsrc/mail/clamav/patches ]; then  if [ "` /usr/pkgsrc/mail/clamav/patches/patch-*`" != "/usr/pkgsrc/mail/clamav/patches/patch-*" ]; then   YES;  else   NO;  fi  else   NO;  fi" returned non-zero status
make: "../../mk/../../mk/bsd.pkg.mk" line 577: Malformed conditional (empty(PKGSRC_SHOW_PATCH_ERRORMSG:M[yY][eE][sS]))
make: "../../mk/../../mk/bsd.pkg.mk" line 577: Missing dependency operator
make: "../../mk/../../mk/bsd.pkg.mk" line 579: if-less else
make: "../../mk/../../mk/bsd.pkg.mk" line 579: Need an operator
make: "../../mk/../../mk/bsd.pkg.mk" line 589: if-less endif
make: "../../mk/../../mk/bsd.pkg.mk" line 589: Need an operator
make: "../../mk/../../mk/bsd.pkg.mk" line 836: Malformed conditional (!empty(PKGSRC_RUN_TEST:M[yY][eE][sS]))
make: "../../mk/../../mk/bsd.pkg.mk" line 838: if-less else
make: "../../mk/../../mk/bsd.pkg.mk" line 838: Need an operator
make: "../../mk/../../mk/bsd.pkg.mk" line 840: if-less endif
make: "../../mk/../../mk/bsd.pkg.mk" line 840: Need an operator
make: "../../mk/../../mk/bsd.pkg.mk" line 1097: Malformed conditional ((${PKGSRC_LOCKTYPE} == "sleep" || ${PKGSRC_LOCKTYPE} == "once"))
make: "../../mk/../../mk/bsd.pkg.mk" line 1097: Missing dependency operator
make: "../../mk/../../mk/bsd.pkg.mk" line 1104: if-less endif
make: "../../mk/../../mk/bsd.pkg.mk" line 1104: Need an operator
make: "../../mk/../../mk/bsd.pkg.mk" line 1160: Malformed conditional (!empty(PKG_SYSCONFBASE:M${PREFIX}) ||  !empty(PKG_SYSCONFBASE:M${PREFIX}/*))
make: "../../mk/../../mk/bsd.pkg.mk" line 1166: warning: extra else
make: "../../mk/../../mk/bsd.pkg.mk" line 1170: if-less endif
make: "../../mk/../../mk/bsd.pkg.mk" line 1170: Need an operator
0: not found
make: "../../mk/compiler/../../mk/compiler/gcc.mk" line 43: warning: "( /usr/bin/cc -v 2>&1 |  'gcc version' ) 2>/dev/null ||  0" returned non-zero status
NO: not found
make: "../../mk/compiler/../../mk/compiler/gcc.mk" line 88: warning: "if PKG_DBDIR= /pkg_admin  pmatch 'gcc>=2.8.0' gcc-2.8.0 2>/dev/null; then   "YES";						 else								  "NO";						 fi" returned non-zero status
YES: not found
make: "../../mk/compiler/../../mk/compiler/gcc.mk" line 260: warning: "if PKG_DBDIR= /pkg_admin  pmatch 'gcc3-c>=none' gcc3-c-3.4.3 2>/dev/null; then   "NO";						 else								  "YES";						 fi" returned non-zero status
/pkg_info: not found
_GCC_SUBPREFIX_not_found/: not found
make: "../../mk/compiler/../../mk/compiler/gcc.mk" line 308: warning: "if PKG_DBDIR= /pkg_info  -qe gcc3-c; then			 PKG_DBDIR= /pkg_info  -f gcc3-c |			  "File:.*bin/gcc" |				  -e "s/.*File: *//;s/bin\/gcc.*//;q";		 else								 case /usr/bin/cc in						 /usr/pkg/*)						 subprefix="/usr";  case "${subprefix}" in				 "")	 "${subprefix}" ;;		 *)	 "${subprefix}/" ;;		 esac;						 ;;						 *)							  "_GCC_SUBPREFIX_not_found/";		 ;;						 esac;							 fi" returned non-zero status
_GCC_ARCHDIR_not_found: not found
make: "../../mk/compiler/../../mk/compiler/gcc.mk" line 315: warning: "if [ -x /usr/pkg/bin/gcc ]; then				  `/usr/pkg/bin/gcc  -print-libgcc-file-name 2>/dev/null`;  else								  "_GCC_ARCHDIR_not_found";			 fi" returned non-zero status
make: "../../mk/../../mk/bsd.pkg.mk" line 1213: Could not find ../../mk/wrapper/bsd.wrapper.mk
make: "../../mk/../../mk/bsd.pkg.mk" line 1904: Malformed conditional (${PKGSRC_LOCKTYPE} == "none")
make: "../../mk/../../mk/bsd.pkg.mk" line 1904: Need an operator
make: "../../mk/../../mk/bsd.pkg.mk" line 1907: if-less else
make: "../../mk/../../mk/bsd.pkg.mk" line 1907: Need an operator
make: "../../mk/../../mk/bsd.pkg.mk" line 1940: if-less endif
make: "../../mk/../../mk/bsd.pkg.mk" line 1940: Need an operator
make: "../../mk/../../mk/bsd.pkg.mk" line 1944: Malformed conditional (${PKGSRC_LOCKTYPE} == "sleep" || ${PKGSRC_LOCKTYPE} == "once")
make: "../../mk/../../mk/bsd.pkg.mk" line 1944: Need an operator
make: "../../mk/../../mk/bsd.pkg.mk" line 1949: if-less endif
make: "../../mk/../../mk/bsd.pkg.mk" line 1949: Need an operator
make: "../../mk/../../mk/bsd.pkg.mk" line 2689: Malformed conditional (${_DO_SHLIB_CHECKS} == "yes")
make: "../../mk/../../mk/bsd.pkg.mk" line 2689: Need an operator
make: "../../mk/../../mk/bsd.pkg.mk" line 2694: if-less endif
make: "../../mk/../../mk/bsd.pkg.mk" line 2694: Need an operator
make: "../../mk/../../mk/bsd.pkg.mk" line 3014: Malformed conditional (${_OPSYS_SHLIB_TYPE} == "ELF/a.out")
make: "../../mk/../../mk/bsd.pkg.mk" line 4557: Malformed conditional (!empty(LIBTOOLIZE_PLIST:M[yY][eE][sS]))
make: "../../mk/../../mk/bsd.pkg.mk" line 4582: if-less else
make: "../../mk/../../mk/bsd.pkg.mk" line 4582: Need an operator
make: "../../mk/../../mk/bsd.pkg.mk" line 4584: if-less endif
make: "../../mk/../../mk/bsd.pkg.mk" line 4584: Need an operator
make: "../../mk/../../mk/bsd.pkg.mk" line 5032: Malformed conditional (empty(LIBTOOLIZE_PLIST:M[yY][eE][sS]))
make: Fatal errors encountered -- cannot continue

make: stopped in /usr/pkgsrc/mail/clamav
>How-To-Repeat:
	
	Use the cvs command:
cvs update -Dp -rpkgsrc-2004Q4
to  update a pkgsrc src tree.
cd mail/clamav
make

	This should produce the troublesome output.

>Fix:
	
	I don't have a fix at this time.

>Unformatted: