pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/bootstrap import the required bits of bootstrap-pkgsrc...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/04ef2ae61248
branches:  trunk
changeset: 470682:04ef2ae61248
user:      grant <grant%pkgsrc.org@localhost>
date:      Thu Mar 11 13:03:58 2004 +0000

description:
import the required bits of bootstrap-pkgsrc from 20040311.

diffstat:

 bootstrap/README                         |    24 +
 bootstrap/README.AIX                     |    42 +
 bootstrap/README.Darwin                  |    33 +
 bootstrap/README.FreeBSD                 |    23 +
 bootstrap/README.IRIX                    |    33 +
 bootstrap/README.Interix                 |    38 +
 bootstrap/README.Linux                   |     7 +
 bootstrap/README.MacOSX                  |    30 +
 bootstrap/README.OpenBSD                 |    32 +
 bootstrap/README.Solaris                 |    56 +
 bootstrap/bmake/ChangeLog                |   219 +
 bootstrap/bmake/FILES                    |    83 +
 bootstrap/bmake/Makefile.in              |   116 +
 bootstrap/bmake/PSD.doc/Makefile         |     8 +
 bootstrap/bmake/PSD.doc/tutorial.ms      |  3744 ++++++++++++++++++++++++++++++
 bootstrap/bmake/README                   |   110 +
 bootstrap/bmake/aclocal.m4               |    77 +
 bootstrap/bmake/arch.c                   |  1344 ++++++++++
 bootstrap/bmake/bit.h                    |   102 +
 bootstrap/bmake/buf.c                    |   308 ++
 bootstrap/bmake/buf.h                    |    79 +
 bootstrap/bmake/compat.c                 |   636 +++++
 bootstrap/bmake/cond.c                   |  1352 ++++++++++
 bootstrap/bmake/config.h.in              |   182 +
 bootstrap/bmake/configure                |  2966 +++++++++++++++++++++++
 bootstrap/bmake/configure.in             |   210 +
 bootstrap/bmake/dir.c                    |  1476 +++++++++++
 bootstrap/bmake/dir.h                    |    72 +
 bootstrap/bmake/find_lib.sh              |    13 +
 bootstrap/bmake/for.c                    |   390 +++
 bootstrap/bmake/getenv.c                 |    90 +
 bootstrap/bmake/getopt.c                 |   179 +
 bootstrap/bmake/hash.c                   |   429 +++
 bootstrap/bmake/hash.h                   |   118 +
 bootstrap/bmake/install-sh               |   201 +
 bootstrap/bmake/job.c                    |  3483 +++++++++++++++++++++++++++
 bootstrap/bmake/job.h                    |   265 ++
 bootstrap/bmake/list.h                   |   300 ++
 bootstrap/bmake/lst.h                    |   166 +
 bootstrap/bmake/lst.lib/Makefile         |    10 +
 bootstrap/bmake/lst.lib/lstAppend.c      |   124 +
 bootstrap/bmake/lst.lib/lstAtEnd.c       |    81 +
 bootstrap/bmake/lst.lib/lstAtFront.c     |    82 +
 bootstrap/bmake/lst.lib/lstClose.c       |    88 +
 bootstrap/bmake/lst.lib/lstConcat.c      |   187 +
 bootstrap/bmake/lst.lib/lstDatum.c       |    82 +
 bootstrap/bmake/lst.lib/lstDeQueue.c     |    92 +
 bootstrap/bmake/lst.lib/lstDestroy.c     |   113 +
 bootstrap/bmake/lst.lib/lstDupl.c        |   110 +
 bootstrap/bmake/lst.lib/lstEnQueue.c     |    84 +
 bootstrap/bmake/lst.lib/lstFind.c        |    81 +
 bootstrap/bmake/lst.lib/lstFindFrom.c    |   105 +
 bootstrap/bmake/lst.lib/lstFirst.c       |    82 +
 bootstrap/bmake/lst.lib/lstForEach.c     |    83 +
 bootstrap/bmake/lst.lib/lstForEachFrom.c |   123 +
 bootstrap/bmake/lst.lib/lstInit.c        |    87 +
 bootstrap/bmake/lst.lib/lstInsert.c      |   124 +
 bootstrap/bmake/lst.lib/lstInt.h         |   113 +
 bootstrap/bmake/lst.lib/lstIsAtEnd.c     |    92 +
 bootstrap/bmake/lst.lib/lstIsEmpty.c     |    80 +
 bootstrap/bmake/lst.lib/lstLast.c        |    82 +
 bootstrap/bmake/lst.lib/lstMember.c      |    80 +
 bootstrap/bmake/lst.lib/lstNext.c        |   125 +
 bootstrap/bmake/lst.lib/lstOpen.c        |    92 +
 bootstrap/bmake/lst.lib/lstRemove.c      |   142 +
 bootstrap/bmake/lst.lib/lstReplace.c     |    84 +
 bootstrap/bmake/lst.lib/lstSucc.c        |    84 +
 bootstrap/bmake/lst.lib/makefile.boot.in |    45 +
 bootstrap/bmake/machine.sh               |    80 +
 bootstrap/bmake/main.c                   |  1743 +++++++++++++
 bootstrap/bmake/make-conf.h              |   133 +
 bootstrap/bmake/make.1                   |  1238 +++++++++
 bootstrap/bmake/make.c                   |  1107 ++++++++
 bootstrap/bmake/make.h                   |   438 +++
 bootstrap/bmake/makefile.boot.in         |    60 +
 bootstrap/bmake/missing/sys/cdefs.h      |   176 +
 bootstrap/bmake/mk/bsd.README            |   683 +++++
 bootstrap/bmake/mk/bsd.dep.mk            |    62 +
 bootstrap/bmake/mk/bsd.depall.mk         |     5 +
 bootstrap/bmake/mk/bsd.doc.mk            |    84 +
 bootstrap/bmake/mk/bsd.files.mk          |    40 +
 bootstrap/bmake/mk/bsd.hostprog.mk       |   137 +
 bootstrap/bmake/mk/bsd.inc.mk            |    29 +
 bootstrap/bmake/mk/bsd.info.mk           |    64 +
 bootstrap/bmake/mk/bsd.kernobj.mk        |    33 +
 bootstrap/bmake/mk/bsd.kinc.mk           |   145 +
 bootstrap/bmake/mk/bsd.kmod.mk           |    98 +
 bootstrap/bmake/mk/bsd.lib.mk            |   524 ++++
 bootstrap/bmake/mk/bsd.links.mk          |    44 +
 bootstrap/bmake/mk/bsd.man.mk            |   199 +
 bootstrap/bmake/mk/bsd.nls.mk            |    65 +
 bootstrap/bmake/mk/bsd.obj.mk            |    91 +
 bootstrap/bmake/mk/bsd.prog.mk           |   224 +
 bootstrap/bmake/mk/bsd.subdir.mk         |    62 +
 bootstrap/bmake/mk/bsd.sys.mk            |   134 +
 bootstrap/bmake/mk/sys.mk                |   207 +
 bootstrap/bmake/mkdeps.sh                |   322 ++
 bootstrap/bmake/nonints.h                |   154 +
 bootstrap/bmake/parse.c                  |  2825 ++++++++++++++++++++++
 bootstrap/bmake/pathnames.h              |    52 +
 bootstrap/bmake/ranlib.h                 |    30 +
 bootstrap/bmake/setenv.c                 |   154 +
 bootstrap/bmake/sigcompat.c              |   333 ++
 bootstrap/bmake/sprite.h                 |   113 +
 bootstrap/bmake/str.c                    |   472 +++
 bootstrap/bmake/suff.c                   |  2544 ++++++++++++++++++++
 bootstrap/bmake/targ.c                   |   726 +++++
 bootstrap/bmake/trace.c                  |   125 +
 bootstrap/bmake/trace.h                  |    56 +
 bootstrap/bmake/util.c                   |   506 ++++
 bootstrap/bmake/var.c                    |  2919 +++++++++++++++++++++++
 bootstrap/bmake/wait.h                   |    81 +
 bootstrap/bootstrap                      |   543 ++++
 bootstrap/cleanup                        |    17 +
 bootstrap/files/install-sh               |   281 ++
 bootstrap/files/irix.patch               |    40 +
 bootstrap/files/packages.cat7            |   757 ++++++
 bootstrap/files/strip-sh                 |    26 +
 bootstrap/mkbinarykit                    |   116 +
 bootstrap/mods/bmake/Makefile.in         |   116 +
 bootstrap/mods/mk/Darwin.bsd.lib.mk      |   524 ++++
 bootstrap/mods/mk/Darwin.bsd.man.mk      |   199 +
 bootstrap/mods/mk/Darwin.sys.mk          |   210 +
 bootstrap/mods/mk/FreeBSD.bsd.man.mk     |   137 +
 bootstrap/mods/mk/IRIX.bsd.lib.mk        |   524 ++++
 bootstrap/mods/mk/IRIX.own.mk            |   244 +
 bootstrap/mods/mk/IRIX.sys.mk            |   193 +
 bootstrap/mods/mk/Linux.bsd.lib.mk       |   524 ++++
 bootstrap/mods/mk/Linux.sys.mk           |   194 +
 bootstrap/mods/mk/NetBSD.bsd.man.mk      |   199 +
 bootstrap/mods/mk/NetBSD.sys.mk          |   207 +
 bootstrap/mods/mk/OpenBSD.bsd.man.mk     |   137 +
 bootstrap/mods/mk/OpenBSD.bsd.own.mk     |   306 ++
 bootstrap/mods/mk/OpenBSD.bsd.prog.mk    |   176 +
 bootstrap/mods/mk/OpenBSD.sys.mk         |   202 +
 bootstrap/mods/mk/SunOS.bsd.sys.mk       |   141 +
 bootstrap/mods/mk/SunOS.sys.mk           |   211 +
 bootstrap/mods/mk/bsd.own.mk.in          |   328 ++
 bootstrap/mods/mk/generic.sys.mk         |   208 +
 bootstrap/pkg.sh                         |   569 ++++
 bootstrap/ufsdiskimage                   |   106 +
 141 files changed, 48545 insertions(+), 0 deletions(-)

diffs (truncated from 49109 to 300 lines):

diff -r f7a2f6fbcc86 -r 04ef2ae61248 bootstrap/README
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/bootstrap/README  Thu Mar 11 13:03:58 2004 +0000
@@ -0,0 +1,24 @@
+$NetBSD: README,v 1.1.1.1 2004/03/11 13:03:59 grant Exp $
+
+To try to get pkgsrc working on your system, please try the following
+as root:
+
+# ./bootstrap [ --prefix=${PREFIX} ] [ --pkgdbdir=${PKGDBDIR} ] \
+       [ --pkgsrcdir=${PKGSRCDIR} ]
+
+The defaults for the arguments are as follows:
+
+       --prefix        /usr/pkg
+       --pkgdbdir      /var/db/pkg
+       --pkgsrcdir     /usr/pkgsrc
+
+It is perfectly acceptable to place ${PKGDBDIR} under ${PREFIX}.
+
+Make sure that you have a working C compiler and make(1) binary in
+your path.
+
+See http://www.netbsd.org/Documentation/software/packages.html for
+more information about bootstrapping and using pkgsrc.
+
+We'd be very interested in hearing of any successes or failures on
+"unknown" (to us) systems.
diff -r f7a2f6fbcc86 -r 04ef2ae61248 bootstrap/README.AIX
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/bootstrap/README.AIX      Thu Mar 11 13:03:58 2004 +0000
@@ -0,0 +1,42 @@
+$NetBSD: README.AIX,v 1.1.1.1 2004/03/11 13:03:59 grant Exp $
+
+You will need gcc.  The AIX xlC compiler doesn't work, but probably
+could be made to.  gcc-3.3.2 has been tested.
+
+bootstrap-pkgsrc has been tested on AIX 4.3.  It will probably work on newer
+releases also.
+
+Please note the use of GNU binutils on AIX is not supported.
+Make sure GNU ld is not in your path.
+
+If you are using gcc
+--------------------
+It makes life much simpler if you only use the same gcc consistently
+for building all packages.
+
+It is recommended that an external gcc be used only for bootstrapping
+gcc from pkgsrc, lang/gcc3 is recommended.
+
+Post bootstrap setup
+--------------------
+
+Here is an example mk.conf:
+
+--- Cut here ---
+# Configure scripts don't always get this right
+MACHINE_GNU_PLATFORM=powerpc-ibm-aix4.3.3.0
+CC=gcc
+CHECK_SHLIBS=no
+RENAME=
+USE_GCC3=yes
+PKGMAKECONF=${MAKECONF}
+--- Cut here ---
+
+You also need to setup a few environment variables:
+
+PKG_DBDIR=/usr/pkg/pkgdb
+MAKECONF=/usr/pkg/etc/mk.conf
+MAKESYSPATH=/usr/pkg/share/mk
+
+You'll also want to set PATH, MANPATH and LIBPATH
+
diff -r f7a2f6fbcc86 -r 04ef2ae61248 bootstrap/README.Darwin
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/bootstrap/README.Darwin   Thu Mar 11 13:03:58 2004 +0000
@@ -0,0 +1,33 @@
+$NetBSD: README.Darwin,v 1.1.1.1 2004/03/11 13:03:58 grant Exp $
+
+If you are using Mac OS X:
+Before you start, you will need to download and install the Mac OS X Developer
+Tools from Apple's Developer Connection.  See http://developer.apple.com/macosx/
+for details.  Also, make sure you install X11 for Mac OS X and the X11 SDK from
+http://www.apple.com/macosx/x11/download/ if you intend to build packages
+that use the X11 Window System.
+
+Terse instructions:
+
+$ ./ufsdiskimage create ~/Documents/NetBSD 512  # megabytes - season to taste
+$ ./ufsdiskimage mount ~/Documents/NetBSD
+$ sudo chown `id -u`:`id -g` /Volumes/NetBSD
+$ curl -O \
+    ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/tar_files/pkgsrc.tar.gz
+$ tar -C /Volumes/NetBSD -zxvf pkgsrc.tar.gz && rm pkgsrc.tar.gz
+$ sudo ./bootstrap \
+    --prefix=/Volumes/NetBSD/pkg \
+    --pkgdbdir=/Volumes/NetBSD/pkgdb \
+    --pkgsrcdir=/Volumes/NetBSD/pkgsrc
+
+Note: if you already have a UFS partition, or have a spare partition[*]
+that you can format as UFS, use that instead of the UFS disk image.
+It'll be somewhat faster and will mount automatically at boot time.
+
+(Why can't you just use the HFS+ filesystem you've already got?
+Because pkgsrc currently requires the underlying filesystem to be
+case-sensitive, and HFS+ isn't.)
+
+[*] - If the partition you want to convert to UFS from HFS+ under
+Mac OS X is on the boot disk, then the disk tools won't do anything
+with it.  See "README.MacOSX".
diff -r f7a2f6fbcc86 -r 04ef2ae61248 bootstrap/README.FreeBSD
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/bootstrap/README.FreeBSD  Thu Mar 11 13:03:58 2004 +0000
@@ -0,0 +1,23 @@
+$NetBSD: README.FreeBSD,v 1.1.1.1 2004/03/11 13:03:58 grant Exp $
+
+Please read the general README file as well.
+
+Care should be taken so that the tools that this kit installs do not conflict
+with the FreeBSD userland tools. There are several steps:
+
+1. FreeBSD stores its ports pkg database in /var/db/pkg. It is therefore
+recommended that you choose a different location (e.g. /usr/pkgdb) by
+using the --pkgdbdir option to the bootstrap script.
+
+2. If you do not intend to use the FreeBSD ports tools, it's probably a
+good idea to move them out of the way to avoid confusion, e.g.:
+       cd /usr/sbin
+       mv pkg_add pkg_add.orig
+       mv pkg_create pkg_create.orig
+       mv pkg_delete pkg_delete.orig
+       mv pkg_info pkg_info.orig
+
+3. An example /etc/mk.conf file will be placed in mk.conf.example file
+when you use the bootstrap script.
+
+bootstrap-pkgsrc has been tested on FreeBSD 4.7 and 5.0 (i386).
diff -r f7a2f6fbcc86 -r 04ef2ae61248 bootstrap/README.IRIX
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/bootstrap/README.IRIX     Thu Mar 11 13:03:58 2004 +0000
@@ -0,0 +1,33 @@
+$NetBSD: README.IRIX,v 1.1.1.1 2004/03/11 13:03:59 grant Exp $
+
+You will need a working C compiler, either gcc or SGI's MIPS and MIPSpro
+compiler (cc/c89).  Please set the CC environment variable according to your
+preference.  If you do not have a license for the MIPSpro compiler suite, you
+can download a gcc tardist file from http://freeware.sgi.com/.
+
+Please note that you will need Irix 6.5.17 or higher, as this is the earliest
+version of Irix providing support for if_indextoname(3), if_nametoindex(3),
+etc.
+
+At this point in time, pkgsrc only supports one ABI.  That is, you can not
+switch between the old 32-bit ABI, the new 32-bit ABI and the 64-bit ABI.  If
+you start out using "abi=n32", that's what all your packages will be built
+with.
+
+Therefore, please make sure that you have no conflicting CFLAGS in your
+environment or the /etc/mk.conf.  Particularly, make sure that you do
+not try to link n32 object files with lib64 or vice versa.  Check your
+/etc/compiler.defaults and $SGI_ABI!
+
+If you have the actual pkgsrc tree mounted via NFS from a different host,
+please make sure to set WRKOBJDIR to a local directory, as it appears that
+Irix linker occasionally runs into issues when trying to link over a network
+mounted filesystem.
+
+The bootstrapping process should set all the right options for programs
+such as imake(1), but you may want to set some options depending on your
+local setup.  Please see pkgsrc/mk/bsd.pkg.defaults.mk and, of course,
+your compilers man pages for details.
+
+bootstrap-pkgsrc has been tested on Irix 6.5.18 on:
+       - an O2 with 1 195 MHZ IP32 Processor (R10000)
diff -r f7a2f6fbcc86 -r 04ef2ae61248 bootstrap/README.Interix
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/bootstrap/README.Interix  Thu Mar 11 13:03:58 2004 +0000
@@ -0,0 +1,38 @@
+$NetBSD: README.Interix,v 1.1.1.1 2004/03/11 13:03:59 grant Exp $
+
+Please read the general README file as well.
+
+NOTE:  Currently, Interix support in pkgsrc is unstable, so errors and
+problems are expected.  Known caveats are listed at the bottom of this
+document.
+
+Interix is a POSIX compatible subsystem for the Windows NT kernel, providing
+a Unix-like environment with a tighter kernel integration than available
+with Cygwin.  It is part of the Windows Services for Unix package, available
+for Windows 2000, XP, and 2003.  SFU can be downloaded from:
+
+    http://www.microsoft.com/windows/sfu/
+
+At an absolute minimum, the following packages must be installed from the
+Windows Services for Unix 3.5 distribution in order to use bootstrap-pkgsrc:
+
+    Utilities -> Base Utilities
+    Interix GNU Components -> (all)
+    Remote Connectivity
+    Interix SDK
+
+The Remote Connectivity subcomponent, Windows Remote Shell Service, does not
+need to be installed, but Remote Connectivity itself should be installed in
+order to have a working inetd.
+
+=====
+
+KNOWN CAVEATS
+
+* As of this writing, the necessary Interix support stubs have not yet been
+  added to pkgsrc/mk.
+
+* On Windows under Interix, the "root" user is actually named
+  "+Administrator".  This may require some modification to pkgsrc to
+  introduce a parameterized root user for installation purposes.  
+  (Likewise, the bootstrap script sets the root group to "+Administrators".)
diff -r f7a2f6fbcc86 -r 04ef2ae61248 bootstrap/README.Linux
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/bootstrap/README.Linux    Thu Mar 11 13:03:58 2004 +0000
@@ -0,0 +1,7 @@
+$NetBSD: README.Linux,v 1.1.1.1 2004/03/11 13:03:59 grant Exp $
+
+Please read the general README file as well.
+
+Some versions of Linux (for example Debian GNU/Linux) need either libtermcap
+or libcurses (libncurses).  Installing the distributions libncurses-dev
+package (or equivalent) should fix the problem.
diff -r f7a2f6fbcc86 -r 04ef2ae61248 bootstrap/README.MacOSX
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/bootstrap/README.MacOSX   Thu Mar 11 13:03:58 2004 +0000
@@ -0,0 +1,30 @@
+$NetBSD: README.MacOSX,v 1.1.1.1 2004/03/11 13:03:59 grant Exp $
+
+Please read "README.Darwin" first, as it applies to Mac OS X.
+
+Since most Macintoshes come with only 1 disk installed, and you
+want to have your pkgsrc UFS partition on that disk, there's a
+little trick you will have to do.
+
+The problem is that none of the disk tools will let you touch a
+disk that is booted from.  In my case, I have a 30G drive that I
+partitioned 4G for Classic/OS9, 4G for pkgsrc, and the rest for OS
+X.  Now, you can unmount the pkgsrc partition, but even if you
+newfs it, the partition map will show the partition as Apple_HFS
+and not Apple_UFS as automounter needs it to say.  The result of
+that newfs would be that the partition wouldn't be automounted,
+and if you manually mount it, it won't appear in Finder.
+
+You'll need to boot off of the OS X Installation (User) CD.  When
+the Installtion program starts, go up to the menu and select Disk
+Utility.  Now, you will be able to select the partition you want
+to be UFS, and Format it Apple UFS.
+
+Once you've done that, you Quit the Disk Utility and Quit the
+Installer... which will reboot your computer.  Now the new UFS
+partition will show up, but the permissions will be set to root,
+so you won't be able to write to it.  You'll have to chown the
+mount point to you (/Volumes/whatever).
+
+This note is as of 10.2 (Jaguar) and applies to earlier versions.
+[Hopefully Apple will fix Disk Utility in 10.3 (Panther)].
diff -r f7a2f6fbcc86 -r 04ef2ae61248 bootstrap/README.OpenBSD
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/bootstrap/README.OpenBSD  Thu Mar 11 13:03:58 2004 +0000
@@ -0,0 +1,32 @@
+$NetBSD: README.OpenBSD,v 1.1.1.1 2004/03/11 13:03:59 grant Exp $
+
+Please read the general README file as well.
+
+Care should be taken so that the tools that this kit installs do not conflict
+with the OpenBSD userland tools. There are several steps:
+
+1. OpenBSD stores its ports pkg database in /var/db/pkg. It is therefore
+recommended that you choose a different location (e.g. /usr/pkgdb) by
+using the --pkgdbdir option to the bootstrap script.
+
+2. If you do not intend to use the OpenBSD ports tools, it's probably a
+good idea to move them out of the way to avoid confusion, e.g.:
+       cd /usr/sbin
+       mv pkg_add pkg_add.orig
+       mv pkg_create pkg_create.orig
+       mv pkg_delete pkg_delete.orig
+       mv pkg_info pkg_info.orig
+
+3. An example /etc/mk.conf file will be placed in mk.conf.example file
+when you use the bootstrap script. OpenBSD's make program uses /etc/mk.conf 
+as well. You can work around this by enclosing all the pkgsrc specific parts 
+of the mk.conf file with:
+
+.ifdef BSD_PKG_MK
+# Pkgsrc stuff, e.g. insert mk.conf.example or similar here
+.else
+# OpenBSD stuff
+.endif
+
+bootstrap-pkgsrc has been tested on OpenBSD 3.2 (i386). Some testing has
+been done on 3.0 as well.
diff -r f7a2f6fbcc86 -r 04ef2ae61248 bootstrap/README.Solaris
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000



Home | Main Index | Thread Index | Old Index