Commit graph

455 commits

Author SHA1 Message Date
sevan
07b8418439 Update the root_group for Minix to match the changes to mk files.
Head up by <leot>
2018-11-15 22:08:30 +00:00
rillig
8279aa9744 bootstrap/bootstrap: detect unknown options and print usage
Running bootstrap with short options (like -q for --quiet) is not
implemented. Therefore, instead of silently ignoring such options, fail
with an appropriate error message.
2018-11-11 19:31:54 +00:00
jperkin
6baaeb9379 bootstrap: Ensure CC is considered for SSP tests. 2018-11-09 13:37:09 +00:00
schmonz
c4f430b744 Optionally detect whether the compiler supports "-fstack-protector-strong".
If not, set _OPSYS_SUPPORTS_SSP=no during bootstrap and in mk.conf.

Do SSP detection on "SunOS", and let mk/platform/SunOS.mk's default
"yes" be overridden in mk.conf.

No change to generated mk.conf on NetBSD 8 or CentOS 6. Fixes bootstrap
on Tribblix.
2018-11-05 19:26:38 +00:00
sevan
f94c4766af Minix 3.4RC6 includes install(1) from NetBSD. 2018-10-30 15:22:53 +00:00
triaxx
2cd43afe22 Fix commit v 1.254
* Put indentation right to follow the existing style
* Correct wrong justification for need of pax on Arch: pax (and not PaX) is
  only provided throw https://aur.archlinux.org/packages/pax/ and get low
  support (currently broken)
2018-10-29 17:41:35 +00:00
triaxx
dfba945451 Arch Linux does not provide pax anymore
https://lists.archlinux.org/pipermail/arch-general/2017-April/043604.html
2018-10-29 15:16:32 +00:00
sevan
0a5a21105a libcompat_minix was removed some years back and minlib does not exist as a
linkable library in 3.4RC6 so don't try to link against these.
2018-10-28 18:41:41 +00:00
sevan
a26e1226e0 Minix/arm currently ships with GCC but the i386 build ships with clang so check
the compiler.
2018-10-28 16:59:00 +00:00
jperkin
dba7653756 bootstrap: Set PKGSRC_KEEP_BIN_PKGS=no during bootstrap.
This avoids errors when running from a read-only pkgsrc checkout as the
resulting packages cannot be written to the default PACKAGES directory.  The
binary packages aren't useful anyway, as they are often built with reduced
configuration options due to the limited bootstrap environment.

Fixes issue reported by Julien Savard and others.
2018-10-17 11:12:46 +00:00
schmonz
2b729d684c On OpenBSD, detect clang and prefer it over gcc. Addresses pkg/53170. 2018-09-09 10:01:26 +00:00
maya
6c25dec844 Remove clauses 3,4 from TNF-only copyright blocks.
This is based on the decision The NetBSD Foundation made in 2008 to
do so, which was already applied to src.

This change has been applied to code which is likely not in other
repositories.

ok board@, reviewed by riastradh@
2018-08-22 20:48:36 +00:00
bsiegert
6d4156bb9d On Chrome OS, build nbsed too.
Both sed and awk in the Chrome OS base are permanently put into sandbox
mode, which makes them unsuitable for pkgsrc use. We were already building
nbawk; also add nbsed.
2018-08-12 08:46:41 +00:00
bsiegert
1072becf9e Document cleaning up with ./cleanup.
Requested in PR pkg/41803.
2018-07-07 13:18:29 +00:00
rillig
19b0bb4391 bootstrap: don't output "Hopefully" when bootstrap finishes
The pkgsrc bootstrap has been used long enough to be more
self-confident.
2018-03-07 07:34:07 +00:00
bsiegert
dd09a279d9 Remove a mis-pasted line. Noticed by jperkin@. 2018-02-03 09:53:03 +00:00
bsiegert
1ad3e0227c Use pkgsrc awk on ChromeOS.
Since Chrome 64, /usr/bin/awk has been a version of mawk that is permanently
in restricted mode. Notably, this means it cannot run pipes, which pkgsrc
requires. Use nawk.
2018-02-02 15:53:44 +00:00
sevan
956f0a6f65 Define machine_arch for Cygwin, this resolves an issue where MACHINE_ARCH is set
to blank & configure substituation breaks because host type identifier is
complete.
-pc-cygwin, rather than x86_64-pc-cygwin.
2017-12-09 00:33:36 +00:00
bsiegert
22c455105d Set cwrappers in bootstrap mk.conf too.
When bootstrap is run with --cwrappers=no (or yes, for that matter),
the value is written into mk.conf at the end of the bootstrap but not
used _during_ the bootstrap itself. Thus, when bootstrapping on Linux
with no builtin diffutils, cwrappers ends up indirectly depending on
itself, and there is no way around that. This commit fixes this.
2017-10-22 19:29:20 +00:00
maya
ec10bce9ac Rename OS X to macOS to follow Apple's new naming
Eric Brown: PR pkg/52567: Readme.MacOSX is out of date

Additional changes by me: don't mention that the file isn't README.OSX
due to OS X being a different name, because the new name macOS makes
the filename less confusing.
2017-09-23 05:53:52 +00:00
maya
5e144002c5 macOS 10.13 requires nbsed and nbawk
From Eric Brown in PR pkg/52566
2017-09-23 05:43:51 +00:00
gdt
84bfe7cdd4 bootstrap/MacOSX: explain tools issues for 10.12 2017-09-21 19:42:16 +00:00
maya
dbff74fd54 Add code for finding machine_arch on OSF1
From Naruaki Etomi in PR pkg/52311
2017-06-19 06:30:48 +00:00
khorben
ef481a5e81 Allow bootstrapping without cwrappers
Since cwrappers was enabled by default on some platforms, it became
effectively impossible to bootstrap without cwrappers there.

With this change "--cwrappers" needs to be set to "auto", "yes" or "no"
explicitly when used.

No functional change intended without specifying "--cwrappers" (or with
"auto").

Submitted on tech-pkg@ with no objection.
2017-04-29 21:40:40 +00:00
sevan
823c79ca57 Add instructions on installing required dependencies on Debian & derivatives to
ensure a smooth process
Taken from:
https://imil.net/blog/2015/07/05/using-pkgsrc-on-debian-gnulinux/
2017-03-06 21:26:01 +00:00
tron
284d8c8b5c As macOS Sierra still ships with a broken "awk" and "sed" use the
pkgsrc variants as we do under Mac OS X El Capitan.
2017-02-11 16:08:31 +00:00
sevan
fd6d11404b - With the move to pkgng, it is no longer required to rename binaries on current
release, state that instructions only apply to legacy release.
- State that only the compler in base is currently support.
- Update the list of tested releases.
2017-02-09 00:20:59 +00:00
jperkin
320f4325bb Simplify and optimise previous. 2017-02-01 10:14:09 +00:00
sevan
89bfc37b33 For POWER8 systems running Linux, set $machine_arch to powerpc64le if machine
hardware name is ppc64le.
Automatically default to 64bit ABI for powerpc64le systems.
2017-02-01 09:54:21 +00:00
maya
cc8aef5d00 mention you can prefer pkgsrc at bootstrap, too.
pointed out by jperkin, thanks.
2017-01-22 20:14:50 +00:00
maya
d85e3dfad2 Mention in openbsd readme that it is possible to use OpenSSL from pkgsrc,
as an alternative to the somewhat controversial patch suggested in
PR pkg/51486.
2017-01-22 18:10:35 +00:00
jperkin
e5ce097b03 Test for existing $prefix and $pkgdbdir and bail out early if they exist,
rather than failing with exotic errors later.
2017-01-10 12:30:00 +00:00
jperkin
0bd8813cb1 Use die() 2017-01-10 12:16:08 +00:00
sevan
4b892002ee Update XQuartz URL 2017-01-09 16:19:28 +00:00
jperkin
5067dbcc65 Pass --without-lz4 to libarchive bootstrap, avoids issues on Gentoo where
the native lz4 is found.
2017-01-03 17:53:14 +00:00
jperkin
14882b76b8 Change the default PKG_DBDIR to be ${LOCALBASE}/pkgdb. Resolves issues on
other BSDs which already use /var/db/pkg for the native package manager.
2016-11-15 11:19:09 +00:00
jperkin
b29215dde2 When building cwrappers via bootstrap, either directly via --cwrappers or
indirectly via it being pulled in using USE_CWRAPPERS=auto, we need to
ensure that it is not built with -DPKG_PRESERVE as otherwise it interacts
badly with pbulk's pkg_delete test.
2016-11-01 20:44:22 +00:00
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