Subject: Re: CVS commit: pkgsrc/x11/wxGTK
To: None <tech-pkg@NetBSD.org>
From: Thomas Klausner <wiz@NetBSD.org>
List: tech-pkg
Date: 07/16/2006 23:39:08
On Sun, Jul 16, 2006 at 01:31:46AM +0200, Dieter Baron wrote:
> In article <20060715141013.44098211CA@cvs.netbsd.org> Roland wrote:
> 
> : Module Name:    pkgsrc
> : Committed By:   rillig
> : Date:           Sat Jul 15 14:10:13 UTC 2006
> 
> : Modified Files:
> :         pkgsrc/x11/wxGTK: Makefile.common
> 
> : Log Message:
> : The native AWK of Solaris cannot patch the configure file, so gawk is
> : needed. Fixes PR 33998.
> 
> -USE_TOOLS+=            pkg-config msgfmt
> +USE_TOOLS+=            pkg-config msgfmt gawk:pkgsrc
> 
>   Not all the world is Solaris.  If I understand this diff correctly,
> gawk is added as dependency for *all* platforms now, which is wrong.  Please add it for Solaris only.

wxGTK failed in my NetBSD bulk build (similarly to the bulk
build report, see a different mail to tech-pkg some minutes
ago). Here's the beginning of the "broken" file:

<html>
<head><title>pkgsrc build log for wxGTK-2.6.3nb1</title></head>

<body>
<pre>
###
### Sun Jul 16 11:30:17 GMT 2006:
### /usr/bin/make bulk-package for wxGTK-2.6.3nb1
### Current pkg count:  7 installed packages: boost-build-1.33.1 boost-headers-1.33.1 boost-libs-1.33.1 digest-20060302 gmake-3.81 monotone-0.27 monotone-server-0.27
###
BULK&gt; Full rebuild in progress...
/usr/pkg/bin/gawk: not found
make: "../../mk/wrapper/../../mk/buildlink3/../../fonts/Xft2/../../mk/wrapper/../../mk/buildlink3/../../fonts/Xft2/builtin.mk" line 41: warning: "/usr/pkg/bin/gawk 'BEGIN { M = 2; m = ".0"; r = "" }			 /#define[ 	]*XFT_MAJOR/ { M = $3 }		 /#define[ 	]*XFT_MINOR/ { m = "."$3 }		 /#define[ 	]*XFT_REVISION/ { r = "."$3 }		 END { printf "%s%s%s\n", M, m, r }'			 /usr/X11R6/include/X11/Xft/Xft.h" returned non-zero status
/usr/pkg/bin/gawk: not found
make: "../../mk/wrapper/../../mk/buildlink3/../../fonts/fontconfig/../../mk/wrapper/../../mk/buildlink3/../../fonts/fontconfig/builtin.mk" line 37: warning: "/usr/pkg/bin/gawk '/#define[ 	]*FC_MAJOR/ { M = $3 }			 /#define[ 	]*FC_MINOR/ { m = "."$3 }		 /#define[ 	]*FC_REVISION/ { r = "."$3 }		 END { printf "%s%s%s\n", M, m, r }'			 /usr/X11R6/include/fontconfig/fontconfig.h" returned non-zero status
/usr/pkg/bin/gawk: not found
make: "../../mk/wrapper/../../mk/buildlink3/../../textproc/expat/../../mk/wrapper/../../mk/buildlink3/../../textproc/expat/builtin.mk" line 40: warning: "/usr/pkg/bin/gawk '/#define[ 	]*XML_MAJOR_VERSION/ { M = $3 }	 /#define[ 	]*XML_MINOR_VERSION/ { m = "."$3 }	 /#define[ 	]*XML_MICRO_VERSION/ { u = "."$3 }	 END { printf "%s%s%s\n", M, m, u }'			 /usr/X11R6/include/expat.h" returned non-zero status
/usr/pkg/bin/gawk: not found
make: "../../mk/wrapper/../../mk/buildlink3/../../graphics/freetype2/../../mk/wrapper/../../mk/buildlink3/../../graphics/freetype2/builtin.mk" line 37: warning: "/usr/pkg/bin/gawk 'BEGIN { p = ".0" }					 /#define[ 	]*FREETYPE_MAJOR/ { M = $3 }		 /#define[ 	]*FREETYPE_MINOR/ { m = "."$3 }	 /#define[ 	]*FREETYPE_PATCH/ { p = "."$3 }	 END { printf "%s%s%s\n", M, m, p }'			 /usr/X11R6/include/freetype2/freetype/freetype.h" returned non-zero status
/usr/pkg/bin/gawk: not found
make: "../../mk/wrapper/../../mk/buildlink3/../../devel/zlib/../../mk/wrapper/../../mk/buildlink3/../../devel/zlib/builtin.mk" line 35: warning: "/usr/pkg/bin/gawk '/#define[ 	]*ZLIB_VERSION/ {			 vers = $3;					 gsub("\"", "", vers);				 print vers;					 }							 ' /usr/include/zlib.h" returned non-zero status
/usr/pkg/bin/gawk: not found
make: "../../mk/wrapper/../../mk/buildlink3/../../x11/xcursor/../../mk/wrapper/../../mk/buildlink3/../../x11/xcursor/builtin.mk" line 36: warning: "/usr/pkg/bin/gawk '/#define[ 	]*XCURSOR_(LIB_)?MAJOR/ { M = $3 }	 /#define[ 	]*XCURSOR_(LIB_)?MINOR/ { m = "."$3 }	 /#define[ 	]*XCURSOR_(LIB_)?REVISION/ { r = "."$3 }  END { printf "%s%s%s\n", M, m, r }'			 /usr/X11R6/include/X11/Xcursor/Xcursor.h" returned non-zero status
/usr/pkg/bin/gawk: not found
make: "../../mk/wrapper/../../mk/buildlink3/../../x11/randrproto/../../mk/wrapper/../../mk/buildlink3/../../x11/randrproto/builtin.mk" line 41: warning: "/usr/pkg/bin/gawk '/#define[ 	]*RANDR_MAJOR/ { M = $3 }		 /#define[ 	]*RANDR_MINOR/ { m = "."$3 }		 END { printf "%s%s\n", M, m }'				 /usr/X11R6/include/X11/extensions/randr.h" returned non-zero status
/usr/pkg/bin/gawk: not found
make: "../../mk/wrapper/../../mk/buildlink3/../../x11/renderproto/../../mk/wrapper/../../mk/buildlink3/../../x11/renderproto/builtin.mk" line 38: warning: "/usr/pkg/bin/gawk '/#define[ 	]*RENDER_MAJOR/ { M = $3 }		 /#define[ 	]*RENDER_MINOR/ { m = "."$3 }		 END { printf "%s%s\n", M, m }'				 /usr/X11R6/include/X11/extensions/render.h" returned non-zero status
/usr/pkg/bin/gawk: not found
make: "../../mk/wrapper/../../mk/buildlink3/../../graphics/glu/../../graphics/Mesa/../../mk/wrapper/../../mk/buildlink3/../../graphics/glu/../../graphics/Mesa/version.mk" line 28: warning: "/usr/pkg/bin/gawk '/#define[ 	]*GL_VERSION_1_2/ { v = "3.4.2" }	 /#define[ 	]*GL_VERSION_1_3/ { v = "4.0.4" }	 /#define[ 	]*GL_VERSION_1_4/ { v = "5.0" }		 /#define[ 	]*GL_VERSION_1_5/ { v = "6.0" }		 END { printf "%s\n", v }'				 /usr/X11R6/include/GL/gl.h" returned non-zero status
===&gt; Cleaning for wxGTK-2.6.3nb1
BULK&gt; Removing installed packages which are not needed to build wxGTK-2.6.3nb1
/usr/pkg/bin/gawk: not found
/usr/pkg/bin/gawk: not found
BULK&gt; wxGTK-2.6.3nb1 requires installed package digest-20060302 (unknown) to build.
/usr/pkg/bin/gawk: not found
/usr/pkg/bin/gawk: not found
BULK&gt; wxGTK-2.6.3nb1 requires installed package boost-libs-1.33.1 (unknown) to build.
/usr/pkg/bin/gawk: not found
/usr/pkg/bin/gawk: not found
BULK&gt; wxGTK-2.6.3nb1 requires installed package monotone-0.27 (unknown) to build.
/usr/pkg/bin/gawk: not found
/usr/pkg/bin/gawk: not found
BULK&gt; wxGTK-2.6.3nb1 requires installed package boost-headers-1.33.1 (unknown) to build.
/usr/pkg/bin/gawk: not found
/usr/pkg/bin/gawk: not found
BULK&gt; wxGTK-2.6.3nb1 requires installed package boost-build-1.33.1 (unknown) to build.
/usr/pkg/bin/gawk: not found
/usr/pkg/bin/gawk: not found
BULK&gt; wxGTK-2.6.3nb1 requires installed package gmake-3.81 (unknown) to build.
/usr/pkg/bin/gawk: not found
/usr/pkg/bin/gawk: not found
BULK&gt; wxGTK-2.6.3nb1 requires installed package monotone-server-0.27 (unknown) to build.
BULK&gt; Installing packages which are required to build wxGTK-2.6.3nb1.
...
===&gt; Checking for vulnerabilities in wxGTK-2.6.3nb1
env: /usr/pkg/bin/gawk: No such file or directory
ERROR: Define ALLOW_VULNERABLE_PACKAGES if this package is absolutely essential
*** Error code 1

Is pkgsrc using the pkgsrc gawk for everything because of the
USE_TOOLS line here?

Why doesn't the bulk build install gawk then?
 Thomas