Commit graph

468 commits

Author SHA1 Message Date
gdt
4c5826e2d8 Add caution that Command Line Tools do not auto-update
Patch from Jan Danielsson.
2016-09-20 00:46:49 +00:00
gdt
aae1471228 Revise ABI discussion
Substantially revise the ABI 32/64 discussion, separating the
close-in-time changes about the default ABI vs how it is encoded.
Thanks to jperkin for off-list clarifications.
2016-07-15 14:51:16 +00:00
gdt
6ee01e594a Explain switch to default ABI=64
Explain how to recover on a machine that used to be ABI=32. by
pointing to jperkin's email about this and giving an example.
2016-07-14 23:35:05 +00:00
sevan
2272a54955 Copy out the notes from the pkgsrc guide, Interix was the only platform which
had notes in the guide which were not already available in its README file.
2016-07-10 01:25:16 +00:00
sevan
89e84d63cf Add notes about common problems & mk.conf snippet for Sun Workshop users from the pkgsrc guide 2016-07-03 15:38:12 +00:00
sevan
f97e706a37 Add note regarding prerequisites 2016-07-03 15:16:47 +00:00
sevan
4903cd1c5b link to "pkgsrc on MirOS" page 2016-07-03 14:47:05 +00:00
joerg
1bcdb13b35 Disable maintainer mode for the right tool. 2016-06-22 11:40:16 +00:00
joerg
ceb082dd63 Disable maintainer mode here as well. 2016-06-22 08:07:11 +00:00
joerg
4daa7a37d3 No need to set USE_DESTDIR now. 2016-04-10 16:18:45 +00:00
jperkin
0fb5b70487 Fix --quiet. The output is far from quiet, but at least it now works. 2016-02-08 14:53:43 +00:00
jperkin
0d727d5415 Fix PowerPC 32-bit case. 2016-02-04 13:45:24 +00:00
jperkin
ac56158090 Attempt to bring sanity to how ABI and MACHINE_ARCH are set.
Previously there were at least 5 different ways MACHINE_ARCH could be set,
some statically and some at run time, and in many cases these settings
differed, leading to issues at pkg_add time where there was conflict
between the setting encoded into the package and that used by pkg_install.

Instead, move to a single source of truth where the correct value based on
the host and the chosen (or default) ABI is determined in the bootstrap
script.  The value can still be overridden in mk.conf if necessary, e.g.
for cross-compiling.

ABI is now set by default and if unset a default is calculated based on
MACHINE_ARCH.  This fixes some OS, e.g. Linux, where the wrong default was
previously chosen.

As a result of the refactoring there is no need for LOWER_ARCH, with
references to it replaced by MACHINE_ARCH.  SPARC_TARGET_ARCH is also
removed.
2016-01-24 16:14:44 +00:00
jperkin
e79c2d4835 Ensure we set MACHINE_ARCH correctly for Darwin x86_64. Fixes recent
bootstrap issues.
2016-01-06 17:59:58 +00:00
yyamano
9389ee1ae9 Fix typos. 2016-01-06 07:15:23 +00:00
joerg
cd5c4d5cd3 Tell libarchive's configure explicitly what make we later want for
recursive invocations.
2015-12-29 21:13:57 +00:00
dholland
272dfa8ca4 Document --binary-macpkg.
XXX: there should be a man page for the bootstrap script, or something.
XXX: AFAICT there is no one place its arguments are documented...
2015-12-29 19:14:35 +00:00
joerg
63f9c9b7cc Include basic package creation logic in the bootstrap version of
pkg_install. Use this with PKG_COMPRESSION=none to convert all of the
bootstrap to USE_DESTDIR=yes.
2015-12-27 12:36:42 +00:00
jperkin
9c7c89b590 Build nbawk and nbsed on Darwin 10.11 (El Capitan) too, it still has the sed
which fails when using a UTF-8 locale.  Ok'd during the freeze by wiz@
2015-12-18 13:49:07 +00:00
joerg
e1b28148a5 Match MACHINE_ARCH override used in bsd.prefs.mk on FreeBSD and
DragonFly.
2015-12-11 23:55:44 +00:00
sevan
03100e7b11 Mention where the command tools can be obtained from to save time, as the Apple developer
portal search doesn't offer it as a result.
2015-11-28 23:24:54 +00:00
jperkin
b5d86f4cf5 Default to ABI=64 on Darwin hosts which report as x86_64. 2015-11-09 10:54:44 +00:00
sevan
a15f6f2fde Mention the details of the packages for PowerPC Mac OS X.
From a discussion that took place offlist around
http://mail-index.netbsd.org/tech-pkg/2015/11/06/msg015926.html

Reviewed by gdt@
2015-11-08 14:41:17 +00:00
sevan
ca67d9e79c Use a single style to reference OS X
Reviewed by gdt@
2015-11-08 14:24:31 +00:00
gdt
c90e95da40 Update notes on versions.
Add pointer to a pkgsrc-bulk message about a 10.4 powerpc build, and
therefore drop notion that there are no 10.4 users.
2015-11-07 20:17:08 +00:00
sevan
f5a273fb71 For Bitrig
Switch to using arch(1) to detect the architecture of host
Set $machine_arch to x86_64 if on amd64
Pass $machine_arch to the devel/bmake build process

Reviewed by wiz@
2015-11-07 19:55:46 +00:00
sevan
d26f69914c Use arch(1) to detect the architecture of host
Switch $machine_arch to x86_64 if on OpenBSD/amd64
Pass $machine_arch to the devel/bmake build process

Reviewed by wiz@
2015-11-07 14:05:20 +00:00
gdt
83e12739b4 Rototiil versions section
Replace and simplify the versions section.  Drop notion of
supported/deprecated.  Explain why people run specific old versions.
Assert that there are no 10.4 pkgsrc users, and very few 10.5.  Keep
notion that PRs for <= 10.5 without fixes can be closed without
fixing.

Explain Darwin vs OS X.  Point to PureDarwin.  Explain that pkgsrc for
Darwin is really for OSX and invite doc patches.

Make a few minor edits.

It remains for someone to explain more clearly the issue of
broken/missing SDKs in 10.11 and command line tools.

As discussed on tech-pkg, with input from jperkin and tron.
2015-11-07 12:55:03 +00:00
gdt
0a5272fd89 Fix a typo and s/Mac OS X/OS X/g
Thanks to wiz@ and Luis Muir for pointing these out.
2015-11-06 16:38:27 +00:00
gdt
01012f32b6 Make assorted minor updates
- Remove information about older versions of pkgsrc.
- Note that /usr/include is gone and that there are SDKs
- Add hazy explanation of the missing SDK/command-line-tools issue.
- Add 10.11 (but do not change deprecation status of anything).
- Clarify (but do not try to update for current reality) the 10.6/10.9
  bulk build descriptions.
2015-11-06 15:48:52 +00:00
tron
619b1bd74a If "/usr/bin/bash" is installed under Solaris always prefer it over the
"pdksh" package. Using the package is too problematic, see PR pkg/39524.
2015-06-13 13:15:39 +00:00
sevan
8514571a7a Introduce preliminary support for Bitrig to pkgsrc
Initial patchset to add support by rodent@
Further adjustments made based on feedback by joerg@
Tested by myself with numerous bulkbuilds thanks to Patrick Wildt @ Bitrig

Reviewed by bsiegert@ joerg@ wiz@
2015-06-04 15:48:45 +00:00
sevan
4e8a0fc564 Use pdksh when bootstrapping on AIX, while it's possible to bootstrap
successfully using the stock /bin/sh supplied with the system, things don't work
correctly.

Reviewed by wiz@
2015-05-03 14:26:57 +00:00
tnn
b76489d84e mention installation instructions for GCC toolchains 2015-04-19 19:29:44 +00:00
tnn
c9dd3c8c54 Don't recommend the native compiler or native X11 any more.
GCC and X11_TYPE=modular is what will work best.
2015-04-19 19:21:39 +00:00
rodent
d160bf4a08 Update for the OpenBSD of today. Add info on test cases. Improve wording. 2015-04-05 00:40:07 +00:00
prlw1
fb86d64311 typo 2015-02-28 18:50:46 +00:00
gdt
d193405d3f Drop xlc compiler information.
This was added in 2004 and there have been no reports of anyone even
trying to use it in many many years.  Searching on the web finds only
information from 2003.
2015-02-22 17:11:34 +00:00
gdt
787883acc8 Rototill version list (without policy change).
Add Joyent bulk build links.

CVS: ----------------------------------------------------------------------
CVS: CVSROOT  cvs.NetBSD.org:/cvsroot
CVS: please use "PR category/123" to have the commitmsg appended to PR 123
2015-02-22 17:08:17 +00:00
obache
0b7a7fd02d remove obsolated information for bootstrap kit and binary packages. 2015-01-19 00:12:43 +00:00
jperkin
9bf4d06492 Don't build the cwrappers package during bootstrap, it is pulled in
as a build dependency as needed.
2014-12-04 10:36:02 +00:00
jperkin
eb5184f07c Add a "--cwrappers" option to build and enable cwrappers. 2014-12-01 13:43:55 +00:00
jperkin
9b3f758131 Add support for --make-jobs, which passes down -j or MAKE_JOBS as
appropriate.  The default continues to be 1.
2014-09-01 12:29:58 +00:00
cheusov
eec1402772 Fix packages creation on Interix.
User/group names are used instead of uid/gid.
  Problem with spaces inside user/group name should be fixed by Cygwin
  support added some time ago.
2014-08-14 00:21:24 +00:00
schmonz
b7f74ffdde "--compiler clang" will have gotten better by the next quarterly branch. 2014-08-03 01:16:41 +00:00
schmonz
3898d50233 Need nbsed on Yosemite (not sure about awk, but little harm). 2014-08-01 15:01:16 +00:00
schmonz
8a0b90762f Detecting clang on OS X is stymied in some configurations by "gcc"
looking sufficiently like gcc. Inspect "cc" instead, and don't
believe it's __GNUC__ unless it's also not __clang__.

While here, if you manage to find and install PackageMaker.app, it
still works on 10.9 for --binary-macpkg.

From Sevan Janiyan.
2014-07-30 16:30:26 +00:00
ryoon
906069ae93 Remove unnecessary . 2014-07-14 13:54:24 +00:00
jperkin
9e9ad92b64 Use check_compiler=yes on Darwin, fixes bootstrap with newer XCode that
includes gcc which is actually clang.
2014-07-11 17:29:21 +00:00
asau
b673262e2f Amend previous: pick built bmake binary from correct directory. 2014-04-17 18:29:01 +00:00
asau
f335584ed6 Follow the conventional path of "configure-make-install"
when bootstrapping bmake.
2014-04-17 18:27:24 +00:00
asau
44162d0641 The only use of "bmakexenv" variable is on IRIX to pass MAKE=pmake
to devel/bmake when bootstrapping the latter.
bmake doesn't take this environment variable into consideration anyway.
2014-04-17 18:12:47 +00:00
obache
545c8428c8 Set CLANGBASE=/usr automatically if CLANGBASE is not set and /usr/bin/clang exists.
It is expected in mk/compiler/clang.mk that CLANGBASE is set properly
even if builtin clang is selected.
2014-04-03 09:05:11 +00:00
gdt
aebfc1d012 Explain problems with sed.
Basically: 10.9's sed is broken, bootstrap works around this via nbsed
on 10.9, and therefore while a 10.6 boostrap's binaries will *run* on
10.9, one can't reliably build new packages.

(Thanks to jperkin@ for pointing this out.)
2014-03-18 01:28:26 +00:00
gdt
cfd25cb301 Update pointer to bulk build message (to be a quarterly one). 2014-03-17 17:12:58 +00:00
ryoon
6f83137ff3 Add README for Xinuos SCO OpenServer 5.0.7/3.2 2014-03-14 21:54:25 +00:00
ryoon
d0f71acda6 Add Xinuos SCO OpenServer 5.0.7/3.2 support
The license donation for OpenServer 5.0.7/3.2 by Xinuos Inc. helped to
make this commit possible.
2014-03-14 21:52:13 +00:00
gdt
1073191d2d Seriously rototill Mac instructions.
Explain clang.  Add 10.9.  Point out jperkin's builds.
2014-03-13 20:57:20 +00:00
asau
5cca1eda52 Detect Clang and apply proper compiler settings.
This fixes bootstrapping on FreeBSD 10 where cc is Clang
pretending poorly to be GCC.
2014-03-10 20:50:35 +00:00
jperkin
88099c9cc6 Add bootstrap support for multiarch support on Linux. For now only
building 32-bit packages on x86_64 is supported.
2014-03-07 14:59:42 +00:00
ryoon
f44b8ee992 Fix usage of build_package 2014-02-10 10:43:02 +00:00
asau
d3391891ea Suggest placing pkgdb under prefix. 2013-12-16 10:43:09 +00:00
asau
22bad8788c Actualise.
Don't insist on moving system tools.
2013-12-16 10:40:16 +00:00
joerg
15534d87f5 Mark the copy of bmake's configure as executable in case the checkout is
missing the bit.
2013-10-03 01:24:57 +00:00
ryoon
01967278e4 Add FreeMiNT settings. 2013-09-08 16:29:28 +00:00
jperkin
7bb768c97a Add a new use_bsdinstall variable which, if set to 'yes', will use bsdinstall
instead of install-sh on platforms which need a BSD install.  The install-sh
script is still used during the bootstrap process regardless.

Default to 'yes' on SunOS.  Other platforms can migrate over once they confirm
that sysutils/bsdinstall builds correctly.
2013-08-28 12:05:10 +00:00
ryoon
2fb31a1cd9 Fix one more pasto. 2013-08-22 13:46:37 +00:00
ryoon
0549226122 GNU/kFreeBSD user should install libncurses-dev. 2013-08-22 13:45:58 +00:00
ryoon
b5aa3b80ce or equivalent is not needed. 2013-08-22 13:45:01 +00:00
ryoon
356dc71912 Add README file for GNU/kFreeBSD platform. 2013-08-22 13:34:08 +00:00
jperkin
5029454154 Add --pkginfodir support. Fixes --prefix=/usr defaults. 2013-08-09 12:57:38 +00:00
obache
4ab9a5aaab overwrite config.{guess,sub} automatically after copied from in-place source
tree in bootstrap.
2013-08-04 01:19:19 +00:00
ryoon
4a0907cc4d Add (Debian) GNU/kFreeBSD port.
Similar to GNU/Linux.

Bump bootstrap-mk-files to 20130727.
2013-07-26 09:38:15 +00:00
tron
ce13bd791b Don't use the bundled "awk" and "sed" under Mac OX Mountain Lion and newer.
They break badly on files with binary characters. This fixes e.g. the
build of the "youtube-dl" package.
2013-06-14 15:07:37 +00:00
tron
885aba5472 Under Mac OS X (Mountain) Lion "packagemaker" is part of the
"PackageMaker" application which resides in "/Applications".
2013-06-01 12:15:54 +00:00
ryoon
c0b144c06b On Debian/Ubuntu Linux, system's awk is mawk, and mawk does not
understand some regexp like [[:space:]].
ELF shared lib check is not working properly with mawk.
2013-05-11 23:42:44 +00:00
obache
6dc52584f3 update comment to refrect current release. 2013-03-17 15:19:11 +00:00
tcort
a8c64cfc46 bootstrap: Minix support. OK by agc. PR pkg/45041 2013-03-11 22:48:23 +00:00
obache
99d4ac611f Add hints for bootstrap pkgsrc on Cygwin. 2013-02-22 13:59:47 +00:00
obache
381fd5cad9 Fix ROOT_USER/ROOT_GROUP for Cygwin to Administrators/Administrators (not using
its UID/GID), and sync platform privilege check with bootstrap script.
2013-02-22 13:39:31 +00:00
obache
c786fb3750 Use Administrators for ROOT_GROUP of Cygwin instead of Administrator. 2013-02-20 12:44:14 +00:00
obache
949655aa14 Fixes reverse condition of is_root() for Cygwin. 2013-02-20 11:04:26 +00:00
obache
a801271e05 fix a typo 2013-02-20 10:59:36 +00:00
obache
99dcda1037 Set proper variables for the case of --compiler=clang. 2013-02-20 10:30:41 +00:00
obache
bd575bf9fa Rename objdir for bootstrap bmake, to avoid conflict with system
cygwin/config.h heaer on Cygwin with case-insensitive filesystem.
2013-02-09 12:45:24 +00:00
obache
a2d8b8c8f7 tell Cygiwn to bootstrap. 2013-02-09 12:41:43 +00:00
schmonz
770a889561 Recommend "Command Line Tools for Xcode" as mentioned in
<URL:http://kennethreitz.org/experiments/xcode-gcc-and-homebrew>.
2013-02-06 15:25:24 +00:00
hans
1b5c526284 Use /usr/bin/bash on all SunOS 5.11 variants if it exists. Fall back to
shells/pdksh in all other cases, native /bin/ksh is not good enough.
2013-01-31 22:55:21 +00:00
cheusov
89159d130f Latest version of Haiku uses name "baron" for superuser. So, we use id(1) at bootstrap time 2013-01-06 17:33:24 +00:00
wiz
7a0e9ffa7a Note that you should install the command line tools. 2012-12-29 20:02:38 +00:00
wiz
f69b8cf333 Update where to get X11 and note 10.8 as supported, moving down
older versions as appropriate.
2012-12-29 19:17:57 +00:00
cheusov
e68b228a58 Fix "bootstrap --unprivileged" failure on Haiku 2012-10-02 21:02:21 +00:00
jperkin
ac8fbf323d Add support for --prefer-pkgsrc which will set PREFER_PKGSRC in the bootstrap
and target mk.conf.  Primarily useful to ensure pkgsrc zlib/bzip2 etc are used
for pkg_install.
2012-07-26 13:00:48 +00:00
jperkin
74f81035d9 Make bash the default shell on SmartOS. 2012-07-24 13:18:00 +00:00
jperkin
91411eac7f Support GCCBASE in bootstrap, and provide a working example based on OmniOS. 2012-07-13 16:12:41 +00:00
jperkin
dcc44bc21e Use native ksh93 on Solaris 11 and derivatives. 2012-06-15 09:54:41 +00:00
jperkin
72cf2ffded Remove /usr/xpg4/bin from $PATH on Solaris, it causes weird issues in the
bmake test suite, and is unnecessary.  Instead, ensure we use the xpg4 id.

Tested on Solaris 9 and SmartOS.  Fixes PR#45444.
2012-06-08 12:15:29 +00:00
christos
570a256f33 Don't enforce vulnerability tests during bootstrap. On old systems eg.
NetBSD-3, the checker command line syntax was different leading to failure
to install.
2012-05-15 16:42:43 +00:00
riz
49fa835809 Minor corrections, from Snader_LB on FreeNode:
- capitalize ``NetBSD.org'';
- remove trailing whitespace;
- clarify the bootstrapping procedure's ending sentence, and end
  it with punctuation.
2012-01-11 01:15:17 +00:00
hans
10556c70f1 Revert nawk change. 2011-11-29 17:06:45 +00:00