Commit graph

433 commits

Author SHA1 Message Date
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
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