###
### Fri Jan 23 16:03:40 EST 2004:
### bmake bulk-package for magic-7.1nb1
### Current pkg count:  9 installed packages: digest-20021220 libtool-base-1.4.20010614nb19 patch-2.5.4nb2 pkg_install-info-4.5nb2 plotutils-2.4.1nb2 png-1.2.5nb2 x11-links-0.19 xpkgwedge-1.9 zlib-1.2.1
###
BULK> Full rebuild in progress...
BULK> Cleaning package and its depends
===> Cleaning for magic-7.1nb1
===> Cleaning for patch-2.5.4nb2
===> Cleaning for x11-links-0.19
===> Cleaning for gmake-3.80nb2
===> Cleaning for pkg_install-info-4.5nb2
===> Cleaning for gettext-lib-0.11.5nb2
===> Cleaning for libiconv-1.9.1nb1
===> Cleaning for libtool-base-1.4.20010614nb19
BULK> Removing installed packages which are not needed to build magic-7.1nb1
BULK> Keeping BULK_PREREQ: xpkgwedge-1.9 (pkgtools/xpkgwedge)
BULK> magic-7.1nb1 requires installed package digest-20021220 (pkgtools/digest
pkgtools/rdigest) to build.
BULK> magic-7.1nb1 requires installed package pkg_install-info-4.5nb2 (pkgtools/pkg_install-info) to build.
BULK> magic-7.1nb1 requires installed package patch-2.5.4nb2 (devel/patch) to build.
/usr/pkg/sbin/pkg_delete -K /var/db/pkg -r zlib-1.2.1
BULK> magic-7.1nb1 requires installed package x11-links-0.19 (pkgtools/x11-links) to build.
BULK> magic-7.1nb1 requires installed package libtool-base-1.4.20010614nb19 (devel/libtool-base) to build.
BULK> Installing packages which are required to build magic-7.1nb1.
BULK> Required package patch-2.5.4nb2 (devel/patch) is already installed
BULK> Required package x11-links-0.19 (pkgtools/x11-links) is already installed
BULK> /usr/pkg/sbin/pkg_add -K /var/db/pkg  /packages/SunOS/5.9/sparc/All/gmake-3.80nb2.tgz

===> Installing configuration/support files for libiconv-1.9.1nb1

	/usr/pkg/lib/charset.alias
BULK> Required package pkg_install-info-4.5nb2 (pkgtools/pkg_install-info) is already installed
BULK> Required package gettext-lib-0.11.5nb2 (devel/gettext-lib) is already installed
BULK> Required package libiconv-1.9.1nb1 (converters/libiconv) is already installed
BULK> Required package libtool-base-1.4.20010614nb19 (devel/libtool-base) is already installed
BULK> Required package xpkgwedge-1.9 (pkgtools/xpkgwedge) is already installed
BULK> Required package digest-20021220 (pkgtools/digest) is already installed
bmake package (magic-7.1nb1)
===> Checking for vulnerabilities in magic-7.1nb1
=> Checksum OK for magic-7.1.tar.gz.
work.sol9 -> /work/pkgbuild/cad/magic/work.sol9
===> Extracting for magic-7.1nb1
===> Required installed package x11-links>=0.19: x11-links-0.19 found
===> Required installed package gmake>=3.78: gmake-3.80nb2 found
===> Patching for magic-7.1nb1
===> Applying pkgsrc patches for magic-7.1nb1
cd /work/pkgbuild/cad/magic/work.sol9/magic-7.1 && for f in `/usr/bin/find . -type f -exec /usr/xpg4/bin/grep -l CAD_HOME {} /dev/null \;` ; do  /usr/ucb/echo "Replacing CAD_HOME in $f" ;  /usr/bin/mv -f $f $f.bak ; /usr/pkg/bin/nbsed 's;CAD_HOME;MAGIC_HOME;g' $f.bak > $f ;  /usr/bin/rm $f.bak ;  done
Replacing CAD_HOME in ./READ_ME
Replacing CAD_HOME in ./doc/groff_files_orig/addendum6.5
Replacing CAD_HOME in ./doc/groff_files_orig/introduction.ms
Replacing CAD_HOME in ./doc/groff_files_orig/maint1
Replacing CAD_HOME in ./doc/groff_files_orig/maint2
Replacing CAD_HOME in ./doc/groff_files_orig/tut4
Replacing CAD_HOME in ./doc/groff_files_orig/psfiles/addendum6.5.ps
Replacing CAD_HOME in ./doc/groff_files_orig/psfiles/introduction.ps
Replacing CAD_HOME in ./doc/groff_files_orig/psfiles/maint1.ps
Replacing CAD_HOME in ./doc/groff_files_orig/psfiles/maint2.ps
Replacing CAD_HOME in ./doc/groff_files_orig/psfiles/tut4.ps
Replacing CAD_HOME in ./doc/man/magic.1
Replacing CAD_HOME in ./doc/textfiles/default_macros.txt
Replacing CAD_HOME in ./doc/textfiles/hires-color.txt
Replacing CAD_HOME in ./doc/textfiles/locking.txt
Replacing CAD_HOME in ./ext2spice/0.times
Replacing CAD_HOME in ./lisp/other/:config
Replacing CAD_HOME in ./magic/proto.magic
Replacing CAD_HOME in ./scripts/config
Replacing CAD_HOME in ./scripts/findcad
Replacing CAD_HOME in ./scripts/config.orig
Replacing CAD_HOME in ./utils/flock.c
Replacing CAD_HOME in ./utils/path.c
/usr/bin/chmod 755 /work/pkgbuild/cad/magic/work.sol9/magic-7.1/scripts/config
===> Overriding tools for magic-7.1nb1
===> Buildlinking for magic-7.1nb1
===> Configuring for magic-7.1nb1
cd /work/pkgbuild/cad/magic/work.sol9/magic-7.1 && printf "1\n2\n6\n\n\n\n\n\n\n\n\n\n\n" |  /usr/bin/env MAGIC_HOME=/usr/pkg USETOOLS=no MAKECONF=/dev/null USETOOLS="no" OBJECT_FMT="ELF" LDFLAGS=" -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/openwin/lib -Wl,-R/usr/openwin/lib" RPATH_FLAG="-R" WHOLE_ARCHIVE_FLAG="-z allextract" NO_WHOLE_ARCHIVE_FLAG="-z defaultextract" LINK_ALL_LIBGCC_HACK="" PATH=/work/pkgbuild/cad/magic/work.sol9/.tools/bin:/work/pkgbuild/cad/magic/work.sol9/.buildlink/bin:/usr/pkg/bin:/usr/pkg/sbin:/usr/bin:/usr/sbin:/sbin:/usr/ccs/bin:/usr/ccs/lib:/usr/pkg/bin:/usr/openwin/bin PREFIX=/usr/pkg LOCALBASE=/usr/pkg X11BASE=/usr/openwin CFLAGS="-O -I/usr/pkg/include -I/usr/openwin/include" CPPFLAGS="  -I/usr/pkg/include -I/usr/openwin/include" FFLAGS="-O" X11PREFIX=/usr/pkg CC="/opt/SUNWspro/bin/cc" CXX="/opt/SUNWspro/bin/CC" CPP="/opt/SUNWspro/bin/cc -E" PTHREAD_CFLAGS="" PTHREAD_LDFLAGS="" BSD_INSTALL_PROGRAM="/usr/ucb/install -c -s -o root -g root -m 555"		 BSD_INSTALL_SCRIPT="/usr/ucb/install -c -o root -g root -m 555"			 BSD_INSTALL_DATA="/usr/ucb/install -c -o root -g root -m 444"			 BSD_INSTALL_MAN="/usr/ucb/install -c -o root -g root -m 444"			 BSD_INSTALL="/usr/ucb/install"				 BSD_INSTALL_PROGRAM_DIR="/usr/ucb/install -d -o root -g root -m 755"	 BSD_INSTALL_SCRIPT_DIR="/usr/ucb/install -d -o root -g root -m 755"		 BSD_INSTALL_DATA_DIR="/usr/ucb/install -d -o root -g root -m 755"		 BSD_INSTALL_MAN_DIR="/usr/ucb/install -d -o root -g root -m 755" PKG_SYSCONFDIR="/usr/pkg/etc" BUILDLINK_DIR="/work/pkgbuild/cad/magic/work.sol9/.buildlink" BUILDLINK_X11_DIR="/work/pkgbuild/cad/magic/work.sol9/.buildlink-x11" BUILDLINK_CACHE_ALL=yes BUILDLINK_CPPFLAGS="-I/usr/pkg/include -I/usr/openwin/include" BUILDLINK_LDFLAGS="-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/openwin/lib -Wl,-R/usr/openwin/lib"  CC="cc" CXX="CC"  LD="ld"   IMAKE="imake"  INSTALL_INFO="/work/pkgbuild/cad/magic/work.sol9/.tools/bin/install-info" MAKEINFO="/work/pkgbuild/cad/magic/work.sol9/.tools/bin/makeinfo" VIEWBASE=/usr/pkg ./scripts/config

              Welcome to Magic's configuration program.
                    This is Version 7.1.

You have $MAGIC_HOME set to "/usr/pkg".

The $MAGIC_HOME value will be reflected in the $CADDIR varible in the 
defs.mak files. It is only needed for installation so you can change
it by modifying the defs.mak after building.

You can create other custom configurations yourself.  Read the
maintainer's manuals for details.  In particular, you can have more than
one graphics driver installed.
 
We haven't been able to test all of these configurations.  If 
you develop modifications to Magic or to this configuration program,
please let us (magic-hackers@csl.cornell.edu) know.
-------------------------------------------------------------------------------
Magic works with the following window configurations.  X11 is preferred.
	1) X11
	2) OpenGL
	3) SunView
	4) OS/2 Warp
	5) X10
	6) AED graphics terminal

Please select one or more of the above configurations by number:  X11 selected
Make sure your default link and include path contains the X11
libraries and header files. Otherwise edit LDFLAGS in defs.mak
to include them.

-------------------------------------------------------------------------------
The following operating systems are known:

	 1) Linux
	 2) NetBSD 1.x 
	 3) FreeBSD 2.x 
	 4) OSF/1 on a 64 bit machine (Digital Alpha AXP)
	 5) Solaris 2.x (aka SunOS 5.x)
	 6) SunOS 4.x 
	 7) SGI IRIX
	 8) OS/2 Warp
	 9) BSD Unix systems (Ultrix, pre-4.0 SunOS, RISCos4.0, etc..)
 	10) SYSV Unix systems (A/UX, HPUX)
	11) Cygwin (UNIX for MS Windows)
Please select one of the above operating systems by number:  
NetBSD 1.x selected
I am not able to figure out where cpp is on your system
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/cad/magic
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/cad/magic
BULK> magic-7.1nb1 was marked as broken:
-rw-r--r--   1 root     other       8262 Jan 23 16:04 .broken.html
bmake deinstall
===> Deinstalling for magic
BULK> Marking all packages which depend upon magic-7.1nb1 as broken:
BULK> Build for magic-7.1nb1 was not successful, aborting.