Subject: pkgsrc on Solaris 8 using GNU C and GNU make
To: None <netbsd-help@netbsd.org>
From: adam morley <adam-netbsd-help@gmi.com>
List: netbsd-help
Date: 06/23/2003 13:57:54
First off, I hope this is the right place. In the event it isn't, sorry, please direct me to the approriate forum.
I've installed pkgsrc from source on Solaris 8/sparc using GNU C and Solaris's make (/usr/ccs/bin/make). Its a test, so its in a random place (/export/pkgsrc). I've grabbed the pkgsrc.tar.gz from the NetBSD-current/tar_files directory, and untarred it, set up the /etc/mk.conf file and am trying to build a package (any package).
I first used Solaris's make:
# pwd
/export/pkgsrc/pkgsrc/devel/bmake
# /usr/ccs/bin/make
make: Fatal error in reader: Makefile, line 28: Unexpected end of line seen
That led me to believe I should use GNU's make:
# /usr/local/bin/make
Makefile:27: *** missing separator. Stop.
# /usr/local/bin/make -v
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
# cat Makefile
# $NetBSD: Makefile,v 1.9 2003/04/30 07:58:45 sjg Exp $
#
DISTNAME= bmake-3.1.18
WRKSRC= ${WRKDIR}/bmake
CATEGORIES= devel
MASTER_SITES= ftp://ftp.netbsd.org/pub/incoming/sjg/
MAINTAINER= sjg@netbsd.org
HOMEPAGE= http://www.crufty.net/help/sjg/bmake.html
COMMENT= Portable (autoconf) version of NetBSD 'make' utility
DEPENDS+= mk-files>=1.3.2:../../devel/mk-files
makesyspath=${PREFIX}/share/mk:/usr/share/mk:/usr/local/share/mk:/opt/share/mk
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-default-sys-path=${makesyspath}
do-build:
cd ${WRKSRC} && MAKESYSPATH=${makesyspath} make -f makefile.boot bootstrap
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bmake ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/bmake.cat1 ${PREFIX}/man/cat1/bmake.0
${INSTALL_MAN} ${WRKSRC}/bmake.1 ${PREFIX}/man/man1
.include "../../mk/bsd.pkg.mk"
Here it is inside vi with :set list:
....
^I${INSTALL_MAN} ${WRKSRC}/bmake.cat1 ${PREFIX}/man/cat1/bmake.0$
^I${INSTALL_MAN} ${WRKSRC}/bmake.1 ${PREFIX}/man/man1$
$
.include "../../mk/bsd.pkg.mk"$
~
~
~
~
# gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.3/specs
Configured with: ../configure --disable-nls --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld
Thread model: posix
gcc version 3.2.3
# cat /etc/mk.conf
# Example /etc/mk.conf file produced by bootstrap-pkgsrc
# Mon Jun 23 13:02:34 PDT 2003
.ifdef BSD_PKG_MK # begin pkgsrc settings
PKG_DBDIR=/export/pkgsrc/var/db/pkg
LOCALBASE=/export/pkgsrc/usr/pkg
ZOULARISBASE=/export/pkgsrc/usr/pkg
FETCH_CMD=/export/pkgsrc/usr/pkg/bin/ftp
PAX=/export/pkgsrc/usr/pkg/bin/pax
.endif # end pkgsrc settings
All files were downloaded today, about 11:00 PDT. What the heck am I missing? Its something obvious, I know.
--
adam