Commit graph

269 commits

Author SHA1 Message Date
joerg
370e455e33 mtree is no longer needed or used by the pkgsrc infrastructure. 2007-07-02 14:59:19 +00:00
tnn
0234d40e0a xargs(1) on Interix is broken. It executes the utility on the command line
even if standard input is the empty string. Install a wrapper script
bundled with pkgtools/bootstrap-extras to deal with this. This is an
attempt at a permanent workaround for the problem described in PR pkg/25777
which has regressed since it was initially fixed.

We can now bootstrap again on Interix 3.5.
2007-07-01 23:27:43 +00:00
tnn
98dc400c93 Improve HP-UX specific documentation 2007-06-30 10:54:37 +00:00
schmonz
7235907039 We no longer need to check $pkgsrcdir for case-sensitivity.
XXX Is it time we stopped checking $prefix, too? IMO, yes.
2007-05-30 01:42:59 +00:00
schmonz
2452b41ca1 Mac OS X fixes:
* Build Universal iff a suitable SDK for the host system is present.
    From tron.
* Handle the case where where PKG_DBDIR is under PREFIX.
2007-05-27 19:55:58 +00:00
schmonz
1e8e0b5466 Entab. 2007-05-23 19:42:19 +00:00
schmonz
956c789358 Add a --universal switch to enable building Universal binaries on
Mac OS X (off by default).
2007-05-23 19:41:05 +00:00
schmonz
380b35feb5 Remove no-op variable (doubly so, it's incorrectly spelled) for AIX. 2007-05-23 13:54:15 +00:00
schmonz
7c876411d5 Find and replace %DATE% in the Mac .pkg. Oh, and build everything
as Universal binaries.
2007-05-23 05:06:03 +00:00
schmonz
1db7c81ad8 Replace hardcoded date with a token for sed to update. 2007-05-23 05:00:40 +00:00
schmonz
bef8568825 tnftp means to link with its own libedit, but on OS X the linker's
search order means that the system libedit gets found first. This
hasn't been much of a problem until now, but the system libedit
lacks support for Apple's 64-bit architectures, which breaks the
Universal build. Therefore, force linking with tnftp's internal
libedit by replacing "-ledit" in ${LIBS} with "../libedit/libedit.a".
Workaround suggested by tls.
2007-05-23 04:20:36 +00:00
schmonz
1da550d9bb On OS X, build a double-clickable Mac package. 2007-05-22 17:48:32 +00:00
schmonz
f87da5554f Add Mac OS X PackageMaker project file for bootstrap tools. Created
with /Developer/Applications/Utilities/PackageMaker.app, then
converted from blob to the equivalent XML with:

$ plutil -convert xml1 macpkg.pmproj

mkbinarykit will run this file through a bit of sed, then use the
result to generate a double-clickable Mac package.
2007-05-22 17:43:33 +00:00
tnn
cb6e83f784 hpux: machine_arch is hppa, not 9000. 2007-04-25 13:24:24 +00:00
tnn
6c1669a945 hpux support 2007-04-21 01:27:44 +00:00
tnn
6eb1d9d995 update OSF1 bootstrap documentation 2007-04-20 13:16:01 +00:00
tnn
146da1286c Teach pkgsrc about HP-UX. 2007-04-14 14:17:49 +00:00
joerg
2dfcdbab0c Change bootstrap to register bmake as package. Change bmake to
use inplace libnbcompat like the direct build from bootstrap
does. Fix a long-standing bug in mkbinarykit. The default work
directory was "work" (relative) and therefore MAKECONF=work/...
was passed down, effectively making it a nop. That resulted in
digest being incorrectly installed during the bootstrap.

Tested on DragonFly by myself and on OSF by tnn@, discussed with jlam@
2007-04-12 20:31:04 +00:00
joerg
ffe432cecd Remove absolutely useless functionality to build source kits. This is
unlikely to work with the changes in bootstrap itself anyway.
2007-04-12 18:44:54 +00:00
joerg
2a722b785e When calling bootstrap-register from the bootstrap script for the
various packages, pass down PKG_PRESERVE. Remove the default setting of
PKG_PRESERVE, it makes perfect sense to install e.g. pkgtools/mtree
and be able to remove it again, if it is not an essientiel tool.

OK jlam@
2007-04-12 14:36:40 +00:00
wiz
f93aa15197 Remove references to pkgmanpages package and packages(7). Noted by reed@. 2007-03-02 16:48:48 +00:00
rillig
860cfa817b In the bootstrap script, MAKECONF must be overridden, so that the
settings from there don't influence the bootstrap process.

Fixes PR 33188.
2007-02-22 23:29:02 +00:00
jschauma
6551e7578c don't assume that tar can compress, instead pipe to gzip 2007-01-28 01:40:49 +00:00
rillig
262f062106 Added a fix for the case when /bin/sh is a (symlink to) dash. 2007-01-26 15:48:42 +00:00
rillig
416baedaae The example mk.conf is installed automatically if there isn't already a
mk.conf. This makes using pkgsrc a bit easier.
2007-01-26 07:57:04 +00:00
tron
2a80b9c275 Bump suggested disk image size to 1GB. 2007-01-22 13:07:05 +00:00
rillig
b94b66aebd Changed the URL for downloading gcc, since the old one gives a 404. 2007-01-11 03:34:10 +00:00
tv
f91b394772 Add lang/nawk and sysutils/install-sh to the "don't blow away" package
list for bulk builds.  (Revert previous on bootstrap; the PKG_PRESERVE
hack didn't work as expected.)
2006-11-06 21:08:42 +00:00
tv
e03538189e Set PKG_PRESERVE on install-sh, nbsed, nawk if installed for the current
platform as a bootstrap tool.  These cannot be nuked as part of the bulk
build clean cycles, or else parts of the .mk infrastructure won't work.
2006-11-06 21:01:42 +00:00
rillig
d7aa920f48 Added --unprivileged as an alias for --ignore-user-check, aligning with
the wording in many other places. Also added --quiet to the usage text,
which I had forgotten before.
2006-10-13 19:09:53 +00:00
rillig
56b5590c2f Added the --quiet option.
Made the code simpler by defining a register_package function.
2006-10-02 16:26:54 +00:00
rillig
beba035f61 Typo. 2006-09-18 13:27:15 +00:00
rillig
d84e87b5c4 Fixed a bug that prevented the definition of ${ID} to be written into
the example mk.conf.

The explanation for setting DBG to the empty value is written to the
mk.conf file to inform the uninitiated pkgsrc user about its purpose.
2006-09-18 12:35:44 +00:00
schwarz
aa38134c13 ${X11BASE} can now be set to /usr, so just do so for IRIX and OSF1. No need
for any artificial symlinking any more in bootstrap.
2006-09-10 20:14:43 +00:00
schwarz
ed33e64104 gcc 3.4.6 is known to compile on IRIX 5.3 2006-09-03 14:30:26 +00:00
schwarz
bb77fff061 fix typo 2006-09-02 11:15:49 +00:00
schwarz
b396fa74ce make sure that no default optimizer flags are set via DBG if CFLAGS is
specified
2006-09-02 11:14:48 +00:00
schmonz
f3398823b2 Catch up to the Guide. 2006-08-30 04:51:05 +00:00
schmonz
3e66a7cf3d If creating a disk image on Darwin 7.0 or newer, create a case-sensitive
HFS+ rather than a UFS. The result performs better, among other things.
2006-08-30 04:36:10 +00:00
schmonz
343f2433e1 Rename "ufsdiskimage" to "darwindiskimage" in preparation for
creating case-sensitive HFS+ instead of UFS on Darwin 7.0 or newer.
2006-08-30 04:29:53 +00:00
schwarz
0b9cc38f3e * bootstrap no longer needs regex.h
* support environment variables CP, GREP, ID, MKDIR, TEST, TOUCH, XARGS to
  allow specification on non-standard tools (needed on IRIX 5)
* preserve compiler/linker flags if set
2006-08-26 15:42:27 +00:00
schwarz
0ee1ef088c * use the pkgsrc mkdir_p script on IRIX 5
* default to cc for CC with mipspro, ido, and sunpro
* make sure CFLAGS and CPPFLAGS are used when set by the user
2006-08-20 14:25:22 +00:00
schwarz
4bce3c261b added information about latest release of cureutils 2006-08-05 14:57:19 +00:00
rillig
f63a40d9e4 Added an option --compiler, which can be used to override the automatic
compiler detection. This is needed for Solaris with SunPro at least,
since bootstrap tried to install gcc>=2.95.3 during the registration of
the bootstrap packages.
2006-08-02 23:43:47 +00:00
rillig
2d74ada610 Allow the bootstrap command to be run from any directory, not just
pkgsrcdir.
2006-07-24 07:57:45 +00:00
jlam
898a0c5f98 In the post-bootstrap message, tell the user the correct manpage directory
to add to MANPATH.
2006-07-21 19:08:56 +00:00
jlam
d5b27ab1f8 Add a new option "--full" that implies all of the platform-independent
bootstrap software will be installed, regardless of platform.
2006-07-21 18:58:03 +00:00
jlam
fc3c1e56b8 Don't create the "work" symlink when building and installing software. 2006-07-21 18:46:52 +00:00
jlam
80e73a2bc7 Add back $pkg_install_args when invoking the pkg_install configure
script.  It was lost in revision 1.55.  This fixes the path to the
various pax, mtree, ftp commands used by pkg_install.  Bump the version
number of the bootstrap script.
2006-07-21 16:31:49 +00:00
jlam
a0c229751d Since bootstrap happens quite early and it's hard to get good debugging
output for bug reports, build with PKG_VERBOSE defined.
2006-07-21 15:30:30 +00:00
jlam
e4c8520953 Ensure $wrkdir is an absolute path so that $wrkobjdir is too. Avoids
creating empty "work" directories in the pkgsrc tree due to the
bootstrap script setting WRKOBJDIR=$wrkobjdir.
2006-07-21 15:16:39 +00:00
jlam
1c419eedc0 Fix a reversed test -- if the user specifies "CC" in the environment,
then he really doesn't want to always use CC=gcc.  This has no effect
if you were previously setting CC=gcc anyway.  Noted by Stuart Shelton.
2006-07-20 19:28:42 +00:00
jlam
98bd70c66b Fix location of install-sh script in the bootstrap work directory.
Problem noted by OBATA Akio on pkgsrc-users@.
2006-07-20 15:13:10 +00:00
jlam
79d62b7bc1 Explicitly set the compiler used to build nawk. The Makefile was
explicitly setting CC=cc, so override it on the bmake command line.
We use the CC taken from the environment first, and default to "gcc"
if CC is not set.
2006-07-19 15:27:37 +00:00
jlam
3c8ae20801 Ensure that "Makefile" and not "makefile" is used when building nawk.
The former contains fixes for the latter to avoid make errors.
2006-07-19 15:01:23 +00:00
jlam
90f0ef4799 * Move the "extra" scripts installed by bootstrap for certain platforms
into a separate package pkgtools/bootstrap-extras.  Teach the bootstrap
  script to look for those scripts from the bootstrap-extras package.

* When registering the installed software, set WRKOBJDIR to the bootstrap
  work directory to protect against a read-only pkgsrc tree.
2006-07-17 14:30:05 +00:00
jlam
2d7c2b7a83 Copy the *.mk files from the pkgtools/bootstrap-mk-files package for
installation.  Garbage-collect the unused bmake and mods directories.
Register the *.mk files at the end of the bootstrap process.
2006-07-14 23:19:15 +00:00
jlam
2d21291fbe Nothing uses the pkg.sh script anymore. We now rely on the real pkg_*
tools after they're installed to do package registration within pkgsrc
itself.
2006-07-14 22:18:05 +00:00
jlam
0fad60e408 Use the pkgtools/pkgmanpages package instead of keeping our own copy of
the packages.7 man/catman page.
2006-07-14 22:17:09 +00:00
jlam
4118037f3f Create a separate pkgtools/tnftp package that is installed as part of
the bootstrap process and which may be needed by pkg_install.  This
is distinct from the net/tnftp package that is now a "normal" package.

Modify the bootstrap script to use pkgtools/tnftp instead, and clean up
some of the registration code.
2006-07-14 21:41:42 +00:00
jlam
9c75370cb9 Use pkgtools/pax when registering the bootstrap pax. 2006-07-14 19:40:26 +00:00
jlam
1be6b7fd35 Catch up with modifications to bootstrap:
* pkgsrc/lang/nawk is now a bootstrap tool

    * pkgsrc/mk is needed to allow the bootstrap script to properly
      register the software installed.
2006-07-14 17:58:26 +00:00
jlam
ed6be9b70d Back out part of revision 1.60 that I didn't mean to commit. 2006-07-14 17:55:56 +00:00
jlam
9924c898b7 Register the files that installed by the bootstrap script into the
package database.

XXX There are still some files not registered, e.g. share/mk and any
XXX mkdir/install/strip/ldd replacements needed by some platforms.
XXX These will probably get moved into pkgsrc proper.
2006-07-14 17:51:13 +00:00
jlam
80fb46b42a Fix path to the bmake.1 man page in the work directory. 2006-07-14 15:58:43 +00:00
jlam
ac8e595261 Install the bmake man page now that we properly handle PKGMANDIR in
bootstrap.
2006-07-14 15:21:05 +00:00
jlam
72aafc46c3 Fix TOOLS_PLATFORM.tar definition (cut and paste bug). 2006-07-14 14:30:21 +00:00
jlam
ded5437a56 Add nawk as a bootstrap tool. Reorder the builds so that nawk and sed
are built just after bmake so that they may be used in the configure
scripts for later bootstrap tools.
2006-07-14 14:27:00 +00:00
jlam
cc40796fe9 Pass the computed mandir down to all the configure script invocations. 2006-07-13 21:37:30 +00:00
jlam
c33cc9f058 Allow the user to specify --pkgmandir to control where man pages go. 2006-07-13 21:27:06 +00:00
jlam
3fb04117ee * Set PKG_TOOLS_BIN to the location of the bootstrapped pkg_* tools
in the example mk.conf file.

* Don't install digest anymore.  It's not needed by binary package users
  and it's handled within pkgsrc/mk now via BOOTSTRAP_DEPENDS.
2006-07-13 14:54:00 +00:00
jlam
acec97ecc0 After building bmake, use it exclusively to build everything else that
needs "make".
2006-07-11 18:04:08 +00:00
jlam
6ce9c24794 Generate the proper TOOLS_PLATFORM.* lines for bootstrap binaries to
tell the tools framework which binaries to use.  Also add some whitespace
so the example mk.conf looks more like a "real" mk.conf.
2006-07-11 17:29:20 +00:00
rillig
dd7c830ba9 This file had been copied from IRIX.sys.mk, which contained a wrong
definition for CXXCPP, so fixed the definition here, too.
2006-07-11 04:18:26 +00:00
rillig
f30442209d CPP is "CC -E", not "CC" alone. This fixes Jan's bulk build on IRIX64. 2006-07-10 21:26:00 +00:00
schwarz
a6e6f7ffef corrected a few typos
changed recommendation to define C++ compiler unconditionally in mk.conf
2006-04-18 18:11:21 +00:00
schwarz
eeec12647c re-introduce a modification from 1.48 that had erroneously been removed
with the modification for 1.49.
2006-04-14 20:37:08 +00:00
joerg
f860aa0fbb Don't use the carat (^) in class matches, as it is not supported by
some shells. Use precendency order instead.

Should fix PR 33236.
2006-04-11 14:35:48 +00:00
joerg
b14c4dc764 Allow overriding of the default FETCH_CMD with --fetch-cmd
for both bootstrap and mkbinarykit. When this is done or the
platform fragment of bootstrap specifies an explicit fetch_cmd,
tnftp is not built.

Use /usr/bin/ftp by default on DragonFly 1.4 and later.
2006-04-10 18:29:24 +00:00
schwarz
89bda489cd added bootstrap support for IRIX 5.3 (finally :-)) 2006-04-10 13:29:38 +00:00
joerg
bfa6f4aed8 For DragonFly before the 1.4.0 release, default to $prefix/pkgdb to
avoid conflicts with FreeBSD ports. Later versions use pkgsrc by default,
so use the more natural /var/db/pkg location and match the install CD
thereby.
2006-04-09 13:39:52 +00:00
reed
5abef9be14 Over 1200 files touched but no revisions bumped :)
RECOMMENDED is removed. It becomes ABI_DEPENDS.

BUILDLINK_RECOMMENDED.foo becomes BUILDLINK_ABI_DEPENDS.foo.

BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo.

BUILDLINK_DEPENDS does not change.

IGNORE_RECOMMENDED (which defaulted to "no") becomes USE_ABI_DEPENDS
which defaults to "yes".

Added to obsolete.mk checking for IGNORE_RECOMMENDED.

I did not manually go through and fix any aesthetic tab/spacing issues.

I have tested the above patch on DragonFly building and packaging
subversion and pkglint and their many dependencies.

I have also tested USE_ABI_DEPENDS=no on my NetBSD workstation (where I
have used IGNORE_RECOMMENDED for a long time). I have been an active user
of IGNORE_RECOMMENDED since it was available.

As suggested, I removed the documentation sentences suggesting bumping for
"security" issues.

As discussed on tech-pkg.

I will commit to revbump, pkglint, pkg_install, createbuildlink separately.

Note that if you use wip, it will fail!  I will commit to pkgsrc-wip
later (within day).
2006-04-06 06:21:32 +00:00
reed
25ae7d3703 Make sure devel/bmake is also in tarball. (Noticed by Matt Dillon.) 2006-01-02 23:27:09 +00:00
tron
84ddbdcecb Fix "${TMACDIR}" for Darwin 8.x (MacOS X Tiger). 2005-12-21 11:47:45 +00:00
joerg
b1d7563c85 Default to MKLINT=no by default. lint might not exist on the target
and the default breaks bsd.lib.mk users on DragonFly.
2005-12-20 16:15:37 +00:00
jschauma
b48101ad3b Apply parts of a patch from Georg Schwarz to allow IRIX 6.x to bootstrap
again.
2005-12-17 17:51:40 +00:00
minskim
11d41836b7 Bump BOOTSTRAP_VERSION due to the update of archivers/pax. 2005-12-01 03:03:51 +00:00
reed
bdc986df08 Do not define LIBC and other LIB* settings. This should fix
problem with building on systems that don't have the
/usr/lib/libc.a (LIBC).

This is the log entry from mk-files 20051104:
        * prog.mk: remove all the LIBC?= junk, use
        .-include libnames.mk instead (none by default).

Note this is not an exact copy of the mk-files 20051104 prog.mk.
(Todo: compare and test all the mk files with sjg's version.)
2005-11-18 06:31:22 +00:00
joerg
e806cd23e8 sysMkPath should be ${PREFIX}/share/mk by default and only that.
Including e.g. /usr/share/mk results in sys.mk read from there
as well. On DragonFly this adds X11BASE and results in obscure
breakages. Since the mk files are supposed to be self-contained,
it doesn't make much sense to look in other directories anyway.
Bump revision to annotate this.

Discussed-with: reed@.
Reported-by: Aggelos Economopoulos <aoiko AT cc DOT ece DOT ntua DOT gr>
2005-11-16 13:53:51 +00:00
reed
6fa7d5f273 Add "--mksrc none" to the boot-strap arguments for building "bmake". 2005-11-10 00:10:35 +00:00
reed
b1cd567242 Mention documentation that is local in pkgsrc tree.
And mention about PATH, MANPATH, and mk.conf.example.
2005-11-08 17:25:30 +00:00
reed
9dc3ac78a5 Remove the NetBSD specific Makefile.in for bmake. It was not used anyways
since yesterday's update (since it overwrites it).
2005-11-02 00:34:23 +00:00
tv
cb7746b286 Remove all the local documentation here and defer to the Guide. 2005-11-01 14:26:51 +00:00
reed
868a3892a6 bootstrap script uses source files from pkgsrc/devel/bmake/files
for "bmake".

Remove all of bmake source from this bootstrap.
Keep bootstrap/bmake/mk -- copy to files-mk (so the
bmake "boot-strap" doesn't notice the mk*).

This was tested on DragonFly, NetBSD and some on Linux.

Hopefully all the fixes to boostrap's bmake are included in
devel/bmake/files.

Note that the "mk" files is still not using devel/mk-files.
2005-11-01 01:06:02 +00:00
reed
cec0180295 Do not define sysconfdir when --prefix is set. This causes
sysconfdir to be reset if --prefix is later on command line.
2005-10-31 23:05:24 +00:00
wiz
007e2deceb Fix for OSF1 5.1, from Sergey Svishchev in PR 31864. 2005-10-19 00:33:12 +00:00
heinz
c0e7856048 Added definition of PATH. This fixes a silly bug of endless recursion
where "mkdir" is found in WRKDIR/.tools/bin after the tools are
available...including mkdir itself.
2005-10-09 20:12:29 +00:00
joerg
3cb54ed23e Replace getopt with equivalent code. This unbreaks bmake on DragonFly.
Obtained-from: src/usr.bin/make/main.c, rev 1.98
2005-10-02 11:43:34 +00:00
grant
38130a4ab9 #include <string.h> for memcpy() on Solaris 10.
from John Heasley in PR pkg/30544.
2005-08-21 12:35:00 +00:00
reed
b368fa3ab5 Mention --varbase option. 2005-08-19 16:12:14 +00:00