Commit graph

369 commits

Author SHA1 Message Date
hans
10556c70f1 Revert nawk change. 2011-11-29 17:06:45 +00:00
hans
b371a54c94 On SunOS, don't build nawk if a native one is available. 2011-11-29 15:06:20 +00:00
hans
3bc2d126f2 Not every tar knows -z. 2011-10-04 11:37:38 +00:00
hans
e419fd7957 Use more host tools on SunOS. Default to GNU tools when available. 2011-09-14 15:14:53 +00:00
agc
b6ae3a4acf order the options alphabetically - makes it much easier to see what options
there are.

no functional change.
2011-06-12 17:46:02 +00:00
obache
21461b22c1 Drop --ignore-case-check option from bootstrap script.
pkgsrc infrastructure itself does not require case-sensitive filesystem
nowadays, and always no need to check filesystem case-check.
2011-06-12 08:28:32 +00:00
obache
7c52b9b70b drop --fetch-cmd option and FETCH_CMD settings for default mk.conf.
fetch stuff was changed and it will not works as expected nowadays.
2011-06-12 07:58:51 +00:00
joerg
9a13771a76 Disable USE_DESTDIR for bootstrap. 2011-04-15 09:02:00 +00:00
agc
418419f39a Move this file to a 2-clause BSD license. 2011-04-05 05:43:19 +00:00
tron
ebb9d3bfd3 Use "-n" instead of "! -z". 2011-03-22 08:39:30 +00:00
gdt
3d95057a13 Note that i386 mode is the default, and point to tron@'s 2009 tech-pkg
post that explained the issues clearly.

Caution that 10.4 support is on even thinner ice with 10.7 due out.
2011-03-05 12:36:39 +00:00
agc
e81f515156 Add support for MirBSD to pkgsrc. Patches from Benny Siegert and
Thorsten Glaser.
2011-01-23 19:07:24 +00:00
adam
b2bfa79acd Allow to provide CC on Darwin 2010-12-26 11:24:21 +00:00
asau
e1f43dba2a Update information with my experience. Thanks to <riz> for reminding.
While here, remind about PATH.
2010-12-02 17:12:39 +00:00
obache
cc5fecb01d Revert r1.159, adding WRKOBJDIR to mk.conf from --workdir.
PR#44117.
2010-11-20 00:49:33 +00:00
joerg
f2d21a4c3b Bailout if the SH override is not a full path. 2010-11-13 21:43:39 +00:00
gdt
456d32aefe Describe levels of likely support for various versions of OS X, based
on consensus of pkgsrc developers from private discussion.

Essentially 10.3 and below will not be allowed to clutter the PR db,
10.4 is iffy, and 10.5 and 10.6 are normal.
2010-10-31 21:24:14 +00:00
obache
4d059ed1ca Update status of upstream Issue#5784. 2010-09-30 12:01:09 +00:00
obache
02b701ffb9 Set WRKOBJDIR=${workdir}/pkgsrc to target mk.conf if --workdir is specified. 2010-08-30 06:21:49 +00:00
obache
2066ae39a1 Initial bootstrap README for Haiku.
Now, we can bootstrap pkgsrc on Haiku without extra patch.
2010-08-22 04:32:53 +00:00
joerg
d8dd23b81a Don't allow a prefix or other directory ending in /. Adresses PR 43754. 2010-08-13 18:57:36 +00:00
seanb
9a61897f0a - Update QNX. 2010-03-19 14:11:11 +00:00
schmonz
61445a3327 It's been a couple years since the pkgsrc repository was modified
to support being checked out on case-insensitive file systems, and
many bulk builds have been done since then. Remove verbiage on this
subject, since nobody needs to concern themselves with it anymore,
and retire the associated script to create a suitable disk image.

(Similar changes to the Guide will follow shortly.)
2010-02-21 19:04:07 +00:00
obache
72923363d0 Add Haiku support. 2010-02-06 10:28:54 +00:00
obache
76457bad72 remove redundant period in message, part of PR#41130. 2010-02-06 05:54:17 +00:00
obache
586ea81f3f Honor LIBS environment variable, part of PR#41130. 2010-02-06 05:51:50 +00:00
obache
f5999a6387 Sort $opsys case alphabetically.
part of PR#41130.
2010-02-06 04:30:49 +00:00
obache
2d7e9ef220 Add support of SSD/Linux.
* ROOT_GROUP=wheel, fixes PR#42073.
 * LOWER_VENDOR=ssd
 * adjust paths for some tools
2010-01-16 02:16:35 +00:00
obache
807f4576b8 No need to use pkgsrc bsd_install, awk, sed and xargs for SUA 6.0 on bootstrap.
XXX: If someone confirmed SUA 5.2 also so, please adjust "3.* | 5.*)" to "3.*)".
2009-12-13 08:35:22 +00:00
tron
66d7280734 Recommend to manually enforce the use of the 32-Bit API under
Mac OS X Snow Leopard at the moment.
2009-09-21 15:33:13 +00:00
dholland
24ef710dba Add /usr/bsd to $overpath for IRIX as per PR 38802. I'm going to leave
/usr/bsd/bin there for now (unless someone wants to confirm it's never
existed in *any* IRIX version) because it should ordinarily be harmless.
2009-08-01 20:19:37 +00:00
dholland
38be874322 fix typo 2009-08-01 20:16:25 +00:00
ahoka
e07420b706 Rollback my previous commit: pdksh doesnt solve the problem I wanted to. 2009-07-05 12:35:13 +00:00
ahoka
7e5a6ef277 Require ksh on HP-UX: /bin/sh dumps core during install on certain systems. 2009-06-27 22:30:50 +00:00
joerg
2dde42a844 Bail out before doing anything if PKG_PATH is set. 2009-06-15 17:02:14 +00:00
rillig
41caf0d671 Fixed the infinite recursion as suggested in PR 41446. Thanks for the
patch.
2009-05-29 15:58:37 +00:00
rillig
32ee6a524a Replaced the weird-looking and probably wrong code in mkdir_p_early with
much simpler code. This works around an endless recursion (and a
segmentation fault when using bash) when ./bootstrap is run in a
read-only directory.
2009-05-28 20:25:35 +00:00
billc
8551ba9310 also cleanup for testbootstrap 2009-05-17 23:44:48 +00:00
minskim
16eae2fdc0 Fix a square bracket mismatch. 2009-04-23 00:15:53 +00:00
joerg
c802ed4e34 Provide a better mkdir -p replacement for the early build for platforms
that don't have it.
Explicitly bail out if the work directory exists already.
2009-04-21 14:21:10 +00:00
joerg
d4f61b3a35 Don't install ftp -- it is no longer a dependency of bootstrap
components, so it doesn't need the special threatment.
2009-04-06 14:21:05 +00:00
joerg
abd77ea1ca Remove LIBNBCOMPAT_STYLE for nbsed, it is not used anywhere. 2009-02-05 18:53:03 +00:00
joerg
60f2e49122 Make life easier and pull in bdb and getopt for the initial build during
the bootstrap as well. Fixes the remainining part of PR 40544.
2009-02-04 07:44:58 +00:00
joerg
c8381772dc - retire fnmatch magic
- drop tnftp and pax from bootstrap, they can be installed as normal
dependencies now that pkg_install doesn't need them.
2009-02-02 13:01:29 +00:00
sketch
7ff985072a tyop 2009-01-26 10:02:19 +00:00
sketch
2d44a8903e Add default CC, CXX and CPP to mk.conf for Sun Studio. Ideally none of
these would have to be set here and instead default in mk/compiler but
the legacy share/*.mk stuff won't allow that yet.
2009-01-21 00:07:40 +00:00
adrianp
b0a5bee584 +sendmail 2009-01-19 20:34:33 +00:00
adrianp
3fcbff5331 We need printf too 2009-01-17 21:56:13 +00:00
adrianp
51d191d616 Add a note about additional packages required if bootstrap is in a Solaris
Zone.
2009-01-17 21:32:12 +00:00
sketch
6c43cf49d5 /usr/ucb/install cannot handle a Solaris zone with a read-only /usr but
writeable /usr/pkg, so use install-sh on Solaris instead.
2008-11-19 16:35:23 +00:00
joerg
8d0d604bc5 bmake is supposed to be standalone and we don't document a requirement
of make, so build libnbcompat after bmake using bmake.
2008-10-14 22:50:54 +00:00
joerg
6e80035f26 Use /usr/xpg4/bin/id on Solaris to get user id and group id.
Reported by David H. Gutter and based on the suggestion from salo
in PR 39235.
2008-07-31 13:42:57 +00:00
dbj
079359e425 previous commit also accidentally added default fetch_cmd=/usr/bin/ftp on darwin. 2008-07-20 23:57:36 +00:00
dbj
ddd4c9aaf3 support NBPAX_PROGRAM_PREFIX variable in TOOLS_PLATFORM.{pax,tar}
leave default value unset to preserve existing behavior.
you can now set NBPAX_PROGRAM_PREFIX=nb (for example) in your mk.conf
to have the bootstrap install and use nbpax/nbtar/nbcpio which don't conflict
with system provided tools.
2008-07-20 23:54:48 +00:00
reed
f2dfdebea7 Mention that if the default mk.conf doesn't already exist, the example is
copied into place.
2008-06-23 21:12:16 +00:00
reed
b7e90fd789 Remove old note about mk.conf.example file. 2008-06-23 21:11:39 +00:00
joerg
da712f263e Add a marker for bootstrap packages to allow special cases them during
bulk builds.
2008-06-19 18:36:51 +00:00
dmcmahill
fa85ed5bcc Document the issue and workaround for missing /lib/libattr.la on some RHEL
systems.
2008-06-18 21:37:31 +00:00
sketch
045e6bc85b Bail out if passed --abi on a platform for which we do special-case handling. 2008-06-17 12:11:59 +00:00
sketch
8bb95ad74e Update notes for using Sun's compiler and 64-bit support. 2008-06-17 11:59:08 +00:00
sketch
8bb177563e Save SUNWSPROBASE if provided. 2008-06-17 11:50:45 +00:00
sketch
7465f6ce76 Add --abi to set $ABI correctly, avoids the need for CFLAGS hacks. 2008-06-17 11:38:52 +00:00
sketch
eeaed4ba57 If $need_ksh, set TOOLS_PLATFORM.ksh too, else packages with USE_TOOLS+=ksh
overwrite the installed dependancy, breaking bulk builds.
2008-06-11 12:47:07 +00:00
tnn
d510667ede Build install-sh a bit earlier, so it's available before pdksh. 2008-05-24 13:38:33 +00:00
tnn
2be145ec3b Set need_ksh=yes for SunOS as well. Asked by joerg@ 2008-05-23 18:06:44 +00:00
tnn
499593f589 - Update bootstrap stuff to build shells/pdksh if need_ksh=yes
- set need_ksh=yes for OSF1
- rebootstrap the early bmake after having built ksh, so it's more
  likely to have a working shell for later use.
2008-05-23 17:49:52 +00:00
agc
23ee2f813b Remove the text which warns against using a case-insensitive file system
on Mac OS X - that hasn't been true for about a year.
2008-05-09 18:39:54 +00:00
agc
f3b1199e8a Remove the text which asserts that pkgsrc cannot be used on
case-insensitive file systems - it hasn't been true for about a year.
2008-05-09 18:37:54 +00:00
agc
8dd14e552e It's been possible to use case-insensitive file systems for Mac OS X for
about a year now. In celebration of this, remove the check and error message
when ensuring a case- sensitive filesystem on Mac OS X.

Keep the check for Interix.
2008-05-09 18:35:35 +00:00
minskim
6952c62e96 Set packagemaker so that the .pkg is built on Darwin.
This functionality disappeared when mkbinarykit was merged into bootstrap.
Still need to revive support for universal binary.
2008-04-30 03:14:55 +00:00
minskim
a82566f9af Make the --binary-macpkg option compatible with the other binary-kit options. 2008-04-29 22:03:19 +00:00
rtr
9c42693d00 note that if you intend to use gcc 4 on Tiger that you need to download
the xcode 2.5 development package. gcc4 that comes with xcode 2.0 builds
broken pkg_install tools.
2008-04-20 02:58:51 +00:00
jlam
84fa8ca684 + Remove pkgtools/pax and pkgtools/tnftp as they are no longer different
from archivers/pax and net/tnftp, respectively.  In the past, the
  pkgtools version of these packages installed into ${PKG_TOOLS_BIN},
  but this was changed in:

	pkgtools/pax/Makefile:1.15
	pkgtools/tnftp/Makefile:1.3

+ Get rid of archivers/pax/Makefile.common and net/tnftp/Makefile.common
  by merging them into their respective Makefiles.  The Makefile.common
  files existed solely for inclusion by the pkgtools versions of these
  packages, but with the removal of those packages, these files are
  now unnecessary.

+ Add full DESTDIR support to archivers/pax and net/tnftp.

+ Modify the bootstrap to build archivers/pax and net/tnftp instead of
  the pkgtools versions of these packages.
2008-03-06 04:45:58 +00:00
tron
5acb5cbde8 Try to fix PR pkg/26143 with caution:
- Set "CC" to "gcc -isystem /usr/include" during bootstrap.
- Add "-isystem /usr/include" to the Darwin specific "CPPFLAGS".
2008-01-30 22:57:31 +00:00
joerg
e5ec1e7ace Change default pathes to more sane values:
- /var as varbase is only used for privileged builds without prefix
  or when prefix is explicitly set to /usr/pkg
- if prefix is set to a non-standard value, derive varbase from it
- derive pkgdbdir from varbase

Based on the discussion in PR 37796 and with jlam@.
2008-01-24 14:48:02 +00:00
joerg
1d688ef264 Add --binary-kit, --gzip-binary-kit and --binary-macpkg to bootstrap
and retire mkbinarkit. The options take the desired output name as
argument.
2008-01-23 21:12:41 +00:00
rillig
cb7ca2f08d Make sure that the files found by check_prog are really regular files
and nothing else. This prevents bootstrap from exiting just because
there is a subdirectory named "awk" (or another tool) in one of the PATH
directories.

Fixes PR 37806.
2008-01-20 19:55:29 +00:00
tnn
41c4b93e60 Update URL for GCC toolchain kit. 2008-01-14 21:32:29 +00:00
minskim
1f53f80860 Make mkbinarykit work on Mac OS X 10.5. 2007-11-03 17:51:08 +00:00
rillig
d2ef0e68c4 Renamed the ignoreusercheck variable to unprivileged, since it does more
than just checking whether the bootstrap is run by root. No other
visible changes.
2007-11-01 23:18:54 +00:00
rillig
30bae8ae69 Added some very basic sanity checks for the arguments to bootstrap. This
code should have been here since the very beginning of bootstrap.
Additionally, the paths are checked that they only contain characters
from the "Portable Filename Character Set" (IEEE 2003.1, definition 3.276).

Motivated by http://mail-index.netbsd.org/pkgsrc-users/2007/10/17/0000.html
2007-10-17 02:45:42 +00:00
tnn
31a9294f62 We can nowadays bootstrap using the native compiler, so note this.
g/c some obsolete text.
2007-10-15 22:32:56 +00:00
martti
bd986edbc7 Remove trailing spaces. 2007-10-09 19:19:08 +00:00
rillig
b1ef808a1a Fixed a typo in the bootstrap program. Now it is possible to specify an
alternative fetch_cmd.

Patch provided by Pierre Bourgin in PR 37081.
2007-10-09 01:10:19 +00:00
heinz
218b20f444 Pkgsrc bootstrap installs gzip-base on AIX automatically, thus making it
unnecessary to provide it outside of pkgsrc.

This solves PR pkg/37030 by Matthew Clarke.
2007-10-02 18:29:55 +00:00
rillig
711951595a Mention --unprivileged, since pkgsrc runs (almost) great as unprivileged
user.
2007-09-29 15:50:16 +00:00
rillig
470ab0a92f Removed the warning about pkg_add or pkg_delete "not running as root"
completely. It only made the code more bloated, and a user trying to add
or delete packages would get lots of "Permission denied" warnings
anyway.
2007-09-08 09:58:14 +00:00
rillig
716ddb1f45 In unprivileged builds, the user running pkg_add and pkg_delete is
almost always an unprivileged user. So there's no point in printing a
warning in that case.
2007-09-07 15:45:14 +00:00
joerg
b3671133c5 Add QNX configuration. From Sean Boudreau. 2007-09-06 20:13:44 +00:00
joerg
181bacec05 Try to force a proper shell on Solaris by extending bmake to
expect full path names. Use the default locations in /bin unless
overriden explicitly. Bump revision of bmake.

On Solaris, use /usr/xpg4/bin/sh if it exists.
2007-09-06 19:23:25 +00:00
schwarz
7b0b779d9f do not add preset CFLAGS, CPPFLAGS or LDFLAGS to BOOTSTRAP_MKCONF since on
bootstrap time these variables are already set as shell variables. As a
result, they were doubled for bootstrap compiling.
An alternative solution to that issue would be to explicitly empty those
shell variables once they have been added to BOOTSTRAP_MKCONF, but that
approach would use more lines of shell code :-)
2007-08-18 11:01:28 +00:00
rillig
97cad8f63b Replaced the hard-coded /bin/bash with an environment variable. 2007-08-14 00:26:58 +00:00
rillig
66cc628334 s/POSIX/BSD/ for echo(1). 2007-08-13 22:48:59 +00:00
tnn
7b838717d9 Interix: Install xargs script in $wrkdir, not $prefix, for bootstrapping. 2007-08-05 16:12:15 +00:00
joerg
86c5c8668d In preparation for the libarchivification of pkg_create, pass down
--enable-bootstrap to pkg_install's configure for the first build phase.
2007-08-03 11:54:31 +00:00
joerg
501d7d17a4 Allow mkbinarykit to pass down --compiler. 2007-08-01 14:03:49 +00:00
joerg
929fd21498 Only write FETCH_CMD to mk.conf, if it is set already. 2007-07-31 14:31:27 +00:00
joerg
d9dc032976 Add --mk-fragment option to bootstrap. This allows including a fragment
after the automatic options and makes it simpler to rebuild the bootstrap
automatically from pbulk.
2007-07-29 17:09:47 +00:00
joerg
07eedea6c2 Split bootstrap into two phases:
- phase one builds the essential tools in the bare minimal version
  needed by the infrastructure to run "make install".
- phase two runs "make install" for all the bootstrap packages.

Set WRKOBJDIR for the second phase, we never want to leave garbage
around.

This increases the time for running bootstrap, but gives more
deterministic results. It also means that e.g. configuration files
in pkg_install can be handled normally. It is a prerequirement to
sanely allow pkg_install some more extended work like building
its own libarchive without having to worry too much about limitations
on some platforms.

This fixes the expansion of @gzcat@ in the download-vulnerability-list
script.

Tested by tnn@ on Interix and myself on DragonFly.
2007-07-27 10:43:24 +00:00
tnn
5649a6315a Update URLs for Documentation->docs move. 2007-07-02 19:05:29 +00:00