Import of pkgsrc-2015Q1

This commit is contained in:
2015-04-22 14:34:26 +02:00
committed by Lionel Sambuc
parent 9a8c06dafb
commit 4af1cdf7a9
25114 changed files with 870550 additions and 795435 deletions

View File

@@ -1,11 +1,6 @@
$NetBSD: README.Interix,v 1.15 2012/01/11 01:15:17 riz Exp $
$NetBSD: README.Interix,v 1.16 2015/01/19 00:12:43 obache Exp $
Please read the general README file, and the Interix installation
instructions in the pkgsrc Guide at:
http://www.NetBSD.org/docs/pkgsrc/platforms.html#interix
A prebuilt bootstrap kit and prebuilt binary packages for Interix 3.5 are
available from the pkgsrc information page:
http://www.NetBSD.org/docs/software/packages.html

View File

@@ -1,4 +1,4 @@
$NetBSD: README.Linux,v 1.4 2008/06/18 21:37:31 dmcmahill Exp $
$NetBSD: README.Linux,v 1.5 2015/02/28 18:50:46 prlw1 Exp $
Please read the general README file as well.
@@ -13,7 +13,7 @@ grep: /lib/libattr.la: No such file or directory
/usr/pkgsrc/bootstrap/work/wrk/pkgtools/pkg_install/work/.tools/bin/sed: can't read /lib/libattr.la: No such file or directory
libtool: link: `/lib/libattr.la' is not a valid libtool archive
The soltion is to copy /usr/lib/libattr.la to /lib/libattr.la with:
The solution is to copy /usr/lib/libattr.la to /lib/libattr.la with:
cp -p /usr/lib/libattr.la /lib

View File

@@ -1,21 +1,20 @@
$NetBSD: README.MacOSX,v 1.17 2014/03/18 01:28:26 gdt Exp $
$NetBSD: README.MacOSX,v 1.20 2015/02/22 17:11:34 gdt Exp $
* system tools issues
** gcc vs clang
Older versions of Mac OS X (with XCode, of course) provided gcc, and
pkgsrc defaulted to using gcc. With 10.9, gcc is no longer present
and one must bootstrap with "--compiler=clang". (Arguably, pkgsrc
should default to clang on 10.9.)
Older versions of Mac OS X (when XCode is installed) provided gcc, and
pkgsrc defaulted to using gcc. With 10.9, gcc is no longer present.
(In 2014Q2 and earlier, one must explicitly bootstrap with
"--compiler=clang".)
** i386 vs x86_64 ABI issue
Mac OS X Snow Leopard (10.6) through Mavericks (10.9) supports 64-bit
binaries on most Intel Macs and build those by default on such
machine. This has caused problems with packages which get confused
because "MACHINE_ARCH" is in some OS versions set to "i386" (on a
64-bit system!).
Mac OS X 10.6 through 10.10 supports 64-bit binaries on most Intel
Macs and builds those by default on such machine. This has caused
problems with packages which get confused because "MACHINE_ARCH" is in
some OS versions set to "i386" (on a 64-bit system!).
version: uname -m : uname -p
10.6: i386 : i386
10.9: x86_64 : i386
@@ -48,42 +47,12 @@ App Store.
Note that as of 10.9, cvs is no longer provided. You can build
devel/scmcvs. To obtain pkgsrc in order to bootstrap and build cvs,
it may be useful to use git to clone https://github.com/jsonn/pkgsrc
it may be useful to `git clone https://github.com/jsonn/pkgsrc.git`.
** X11
X11 used to be built into Mac OS X, but as of 10.8 it is not.
Install XQuartz from http://xquartz.macosforge.org/landing/
** XL compiler
[The text in this section dates from 2004-10-07! Please update it if
you have used XL since then.]
Experimental support for IBM's XL C/C++ compiler is present (tested
with version 6.0). To use it, set:
PKGSRC_COMPILER=xlc
in mk.conf. XL C uses the Apple provided libtool to create shared
libraries, however, we must force it to call libtool with the full
path to avoid calling the pkgsrc provided GNU libtool with arguments
that it does not understand.
edit the template configuration file /opt/ibmcmp/vac/6.0/etc/vac.base.cfg
and set:
libtool = /usr/bin/libtool
then run:
/opt/ibmcmp/vacpp/6.0/bin/vacpp_configure -gcc /usr -install -force
as root to install the configuration.
to bootstrap with xlc, you need to make sure CFLAGS contains "-ma":
env CC=/opt/ibmcmp/vacpp/6.0/bin/xlc CFLAGS=-ma ./bootstrap
X11 used to be built into Mac OS X, but as of 10.8 it is no longer
included. Install XQuartz from http://xquartz.macosforge.org/landing/
* Mac OS X Versions
@@ -96,34 +65,33 @@ in mind that there are no guarantees:
SUPPORTED doesn't mean that anyone is required to fix your problem; it
means that we agree that it is broadly desireable that such problems
be fixed and that we therefore allow them to be listed in our issue
tracker.
tracker. Structural breakage is unacceptable.
DEPRECATED means that individual problems are not of interest, but
pkgsrc overall working is of enough interest to be allowed to be
listed in the issue tracker.
listed in the issue tracker. Structural breakage is undesirable,
but a fair topic of discussion if keeping support is painful.
Individual pkg PRs may be bounced to authors to retest with newer
versions, and closed if that doesn't happen in 14 days.
IGNORED means we are not willing to expend issue tracker resources
(clutter for those reviewing the db) at all.
(clutter for those reviewing the db) at all. PRs may be summarily
closed. We are also unconcerned with whether pkgsrc works on the
system at all.
Given the above definitions, the pkgsrc developers label versions of
Mac OS X as follows:
10.9 (13.1.0): current, PRs may be filed. Structurally breaking
pkgsrc on 10.9 is considered not ok. [SUPPORTED]
10.10: current. [SUPPORTED]
10.8: somewhat old, PRs may still be filed. Structurally breaking
pkgsrc on 10.8 is considered not ok. [SUPPORTED]
10.9 (13.1.0): somewhat old but not that crufty. [SUPPORTED]
10.7: old, but PRs may still be filed. Structurally breaking pkgsrc
on 10.7 is considered not ok. [SUPPORTED]
10.8: old. [SUPPORTED]
10.6 (10.8.0): very old, and individual pkg PRs may be bounced to
authors to retest with newer versions, and closed if that
doesn't happen in 14 days. We will for now consider
structurally breaking pkgsrc on 10.6 to be undesirable. If
keeping support for 10.6 causes excessive work for maintainers
it may be moved to IGNORED state any time, without
warning. [DEPRECATED]
10.7: old. [SUPPORTED]
10.6 (10.8.0): very old [DEPRECATED] (But note that this is the
Joyent i386-mode build target.)
10.5 and below: ancient, and PRs will be summarily closed. It is
acceptable to give zero consideration to causing structural
@@ -135,20 +103,21 @@ they might have otherwise. (The rationale for supporting versions
beyond the current and previous ones has been the difficulty for users
to upgrade.)
* Bulk build suggestions and issues
* Bulk builds
Clearly, it is desirable for a bulk build to be useful on as many
computers as possible. The main issues are which ABI and which OS X
version.
version. Targetting older versions makes a build run on more systems,
and targetting newer versions makes the build closer to what would be
obtained from bootstrappping on a newer version and thus avoids some
issues.
** 10.6, --abi=32
jperkin@netbsd.org provides a bulk build for quarterly branches
(--abi=32, OSX 10.6, and therefore gcc 4.2.1, XQuartz,
X11_TYPE=native):
http://www.perkin.org.uk/pages/pkgsrc-binary-packages-for-osx.html
http://mail-index.netbsd.org/pkgsrc-bulk/2014/01/10/msg010276.html
which should run on any version from 10.6 to 10.9.
Joyent provide a bulk build for quarterly branches (--abi=32, OSX
10.6, and therefore gcc 4.2.1, XQuartz, X11_TYPE=native):
http://pkgsrc.joyent.com/install-on-osx/
which should run on any version from 10.6 and up.
Note that sed on 10.9 is broken, but a bootstrap on 10.6 will not
avoid it, so while one can install this bootstrap on 10.9 and run
@@ -156,7 +125,5 @@ binary packages, building packages will not in general work.
** 10.9, --abi=64 --compiler=clang
Given the 10.9 license situation, a bulk build on 10.9 (and therefore
clang) seems reasonable, with either --abi=32 or --abi=64. Such
builds are almost certainly only usable on 10.9, but that is or will
be soon a large fraction of Macs.
Joyent provide a build build for 10.9/x86_64, at the same URL as
above.

View File

@@ -1,4 +1,4 @@
$NetBSD: README.OpenServer5,v 1.1 2014/03/14 21:54:25 ryoon Exp $
$NetBSD: README.OpenServer5,v 1.2 2014/07/14 13:54:24 ryoon Exp $
XXX You should change your /bin/sh to shells/pdksh under OpenServer 5.0.7/3.2!!
@@ -45,7 +45,7 @@ and put the following line to your mk.conf.
TOOLS_PLATFORM.rm?=/a/pkg/bin/grm
How to build gcc-4.2.4 for SCO OpenServer 5.0.7/.3.2
How to build gcc-4.2.4 for SCO OpenServer 5.0.7/3.2
====================================================
To follow these steps, you must have SCO OpenServer 5 Development System.

View File

@@ -1,6 +1,6 @@
#! /bin/sh
# $NetBSD: bootstrap,v 1.204 2014/03/14 21:52:13 ryoon Exp $
# $NetBSD: bootstrap,v 1.215 2014/12/04 10:36:02 jperkin Exp $
#
# Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org>
# All rights reserved.
@@ -58,9 +58,11 @@ usage="Usage: $0 "'
[ --binary-kit <tarball> ]
[ --binary-macpkg <pkg> ]
[ --compiler <compiler> ]
[ --cwrappers ]
[ --full ]
[ --gzip-binary-kit <tarball> ]
[ --help ]
[ --make-jobs <num> ]
[ --mk-fragment <mk.conf> ]
[ --pkgdbdir <pkgdbdir> ]
[ --pkginfodir <pkginfodir> ]
@@ -159,8 +161,10 @@ EOF
cat >${wrkdir}/$$.c <<EOF
#ifdef __GNUC__
#ifndef __clang__
indeed
#endif
#endif
EOF
compiler_is_gnu=`${testcc:-cc} -E ${wrkdir}/$$.c 2>/dev/null | grep -c indeed`
rm -f ${wrkdir}/$$.c
@@ -386,10 +390,12 @@ pkgmandir=
sysconfdir=
varbase=
full=no
compiler=""
quiet=no
cwrappers=no
full=no
make_jobs=1
mk_fragment=
quiet=no
while [ $# -gt 0 ]; do
case $1 in
@@ -411,6 +417,7 @@ while [ $# -gt 0 ]; do
--compiler) compiler="$2"; shift ;;
--abi=*) abi=`get_optarg "$1"` ;;
--abi) abi="$2"; shift ;;
--cwrappers) cwrappers=yes ;;
--unprivileged | --ignore-user-check) unprivileged=yes ;;
--prefer-pkgsrc=*)
prefer_pkgsrc=`get_optarg "$1"` ;;
@@ -433,6 +440,8 @@ while [ $# -gt 0 ]; do
binary_macpkg=`get_optarg "$1"` ;;
--binary-macpkg)
binary_macpkg="$2"; shift ;;
--make-jobs=*) make_jobs=`get_optarg "$1"` ;;
--make-jobs) make_jobs="$2"; shift ;;
--full) full=yes ;;
--quiet) quiet=yes ;;
--help) echo "$usage"; exit ;;
@@ -479,7 +488,6 @@ fi
overpath=""
root_user=root
bmakexenv=
bmakexargs=
need_extras=no
set_machine_arch=no
@@ -520,11 +528,12 @@ Darwin)
need_sed=no
set_opsys=no
machine_arch=`uname -p`
CC=${CC:-"gcc -isystem /usr/include"}; export CC
CC=${CC:-"cc -isystem /usr/include"}; export CC
check_compiler=yes
osrev=`uname -r`
macosx_version=`echo $osrev | awk -F . '{ print "10."$1-4; }'`
case "$macosx_version" in
10.[7-8])
10.[7-9])
packagemaker=/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
;;
10.[0-4])
@@ -535,7 +544,7 @@ Darwin)
;;
esac
case "$macosx_version" in
10.[8-9])
10.[8-9]|10.10)
need_awk=yes
need_sed=yes
;;
@@ -614,8 +623,8 @@ Interix)
mkdir -p "$@" # allows umask to take effect
}
default_install_mode=0775
root_user=`id -u`
root_group=131616
root_user=`id -un`
root_group=+Administrators
case `uname -r` in
3.* | 5.*)
need_bsd_install=yes
@@ -658,7 +667,6 @@ IRIX*)
set_opsys=yes
machine_arch=mipseb
bmakexargs="MACHINE_ARCH=$machine_arch"
bmakexenv="MAKE=pmake"
check_compiler=yes
if [ `uname -r` -lt 6 ]; then
# IRIX 5's mkdir bails out with an error when trying to create with the -p
@@ -842,6 +850,11 @@ no)
make_quiet_flags=""
esac
test ${make_jobs} -gt 0 2>/dev/null
if [ $? -ne 0 ]; then
die "ERROR: --make-jobs must be a positive integer argument"
fi
# export OPSYS and MACHINE_ARCH for pkg_install. we only set
# MACHINE_ARCH on platforms where we override bmake's value.
OPSYS=${opsys}
@@ -981,6 +994,9 @@ clang)
echo "CC= clang" >> ${TARGET_MKCONF}
echo "CXX= clang++" >> ${TARGET_MKCONF}
echo "CPP= \${CC} -E" >> ${TARGET_MKCONF}
if [ -z "$CLANGBASE" -a -f "/usr/bin/clang" ]; then
CLANGBASE="/usr"
fi
if [ -n "$CLANGBASE" -o -f "/bin/clang" ]; then
echo "CLANGBASE= $CLANGBASE" >> ${TARGET_MKCONF}
fi
@@ -1019,6 +1035,13 @@ fi
BOOTSTRAP_MKCONF=${wrkdir}/mk.conf
cp ${TARGET_MKCONF} ${BOOTSTRAP_MKCONF}
case "$cwrappers" in
yes)
echo "USE_CWRAPPERS= yes" >> ${TARGET_MKCONF}
echo "" >> ${TARGET_MKCONF}
;;
esac
# On all Debian GNU/kFreeBSD 7, /bin/sh is a symlink to /bin/dash, and
# use /bin/bash.
if [ "$opsys" = "GNUkFreeBSD" -a "$bootstrap_sh_set" != "set" ]; then
@@ -1074,9 +1097,9 @@ $shprog ./bootstrap.sh)"
bootstrap_bmake() {
echo_msg "Bootstrapping bmake"
copy_src $pkgsrcdir/devel/bmake/files bmake
run_cmd "chmod u+x $wrkdir/bmake/configure"
run_cmd "(cd $wrkdir/bmake && env $bmakexenv $shprog ./boot-strap $configure_quiet_flags -q -o bootstrap.$opsys --prefix=$wrkdir --sysconfdir=$wrkdir --mksrc none --with-default-sys-path="$wrkdir/share/mk" $bmakexargs)"
run_cmd "$install_sh -c -o $user -g $group -m 755 $wrkdir/bmake/bootstrap.$opsys/bmake $wrkdir/bin/bmake"
run_cmd "(cd $wrkdir/bmake && $shprog configure $configure_quiet_flags --with-default-sys-path=$wrkdir/share/mk --prefix=$wrkdir $bmakexargs)"
run_cmd "(cd $wrkdir/bmake && $shprog make-bootstrap.sh)"
run_cmd "$install_sh -c -o $user -g $group -m 755 $wrkdir/bmake/bmake $wrkdir/bin/bmake"
}
bootstrap_bmake
@@ -1085,14 +1108,14 @@ bmake="$wrkdir/bin/bmake $make_quiet_flags"
# build libnbcompat
echo_msg "Building libnbcompat"
copy_src $pkgsrcdir/pkgtools/libnbcompat/files libnbcompat
run_cmd "(cd $wrkdir/libnbcompat; $shprog ./configure $configure_quiet_flags -C --prefix=$prefix --infodir=$infodir --mandir=$mandir --sysconfdir=$sysconfdir --enable-bsd-getopt --enable-db && $bmake $make_quiet_flags)"
run_cmd "(cd $wrkdir/libnbcompat; $shprog ./configure $configure_quiet_flags -C --prefix=$prefix --infodir=$infodir --mandir=$mandir --sysconfdir=$sysconfdir --enable-bsd-getopt --enable-db && $bmake -j$make_jobs)"
# bootstrap ksh if necessary
case "$need_ksh" in
yes) echo_msg "Bootstrapping ksh"
copy_src $pkgsrcdir/shells/pdksh/files ksh
test -n "$CC" || CC=gcc # default to gcc if no compiler is specified
run_cmd "(cd $wrkdir/ksh && env $BSTRAP_ENV $shprog ./configure $configure_quiet_flags --prefix=$prefix --infodir=$infodir --mandir=$mandir --sysconfdir=$sysconfdir && $bmake)"
run_cmd "(cd $wrkdir/ksh && env $BSTRAP_ENV $shprog ./configure $configure_quiet_flags --prefix=$prefix --infodir=$infodir --mandir=$mandir --sysconfdir=$sysconfdir && $bmake -j$make_jobs)"
run_cmd "$install_sh -c -o $user -g $group -m 755 $wrkdir/ksh/ksh $wrkdir/bin/pdksh"
echo "TOOLS_PLATFORM.sh?= $prefix/bin/pdksh" >> ${TARGET_MKCONF}
echo "TOOLS_PLATFORM.sh?= $wrkdir/bin/pdksh" >> ${BOOTSTRAP_MKCONF}
@@ -1110,7 +1133,7 @@ case "$need_awk" in
yes) echo_msg "Bootstrapping awk"
copy_src $pkgsrcdir/lang/nawk/files awk
test -n "$CC" || CC=gcc # default to gcc if no compiler is specified
run_cmd "(cd $wrkdir/awk && $bmake -f Makefile CC=\"${CC}\" CFLAGS=\"${CFLAGS}\")"
run_cmd "(cd $wrkdir/awk && $bmake -j$make_jobs -f Makefile CC=\"${CC}\" CFLAGS=\"${CFLAGS}\")"
run_cmd "$install_sh -c -o $user -g $group -m 755 $wrkdir/awk/a.out $wrkdir/bin/nawk"
echo "TOOLS_PLATFORM.awk?= $prefix/bin/nawk" >> ${TARGET_MKCONF}
echo "TOOLS_PLATFORM.awk?= $wrkdir/bin/nawk" >> ${BOOTSTRAP_MKCONF}
@@ -1121,7 +1144,7 @@ esac
case "$need_sed" in
yes) echo_msg "Bootstrapping sed"
copy_src $pkgsrcdir/textproc/nbsed/files sed
run_cmd "(cd $wrkdir/sed; env $BSTRAP_ENV CPPFLAGS='$CPPFLAGS -I../libnbcompat' LDFLAGS='$LDFLAGS -L../libnbcompat' LIBS='$LIBS -lnbcompat' $shprog ./configure $configure_quiet_flags -C --prefix=$prefix --infodir=$infodir --mandir=$mandir --sysconfdir=$sysconfdir --program-transform-name='s,sed,nbsed,' && $bmake)"
run_cmd "(cd $wrkdir/sed; env $BSTRAP_ENV CPPFLAGS='$CPPFLAGS -I../libnbcompat' LDFLAGS='$LDFLAGS -L../libnbcompat' LIBS='$LIBS -lnbcompat' $shprog ./configure $configure_quiet_flags -C --prefix=$prefix --infodir=$infodir --mandir=$mandir --sysconfdir=$sysconfdir --program-transform-name='s,sed,nbsed,' && $bmake -j$make_jobs)"
run_cmd "$install_sh -c -o $user -g $group -m 755 $wrkdir/sed/sed $wrkdir/bin/sed"
echo "TOOLS_PLATFORM.sed?= $prefix/bin/nbsed" >> ${TARGET_MKCONF}
echo "TOOLS_PLATFORM.sed?= $wrkdir/bin/sed" >> ${BOOTSTRAP_MKCONF}
@@ -1136,7 +1159,7 @@ CPPFLAGS='$CPPFLAGS -I../libnbcompat -I../../libnbcompat' \
LDFLAGS='$LDFLAGS -L../libnbcompat -L../../libnbcompat' \
LIBS='$LIBS -lnbcompat' $shprog ./configure $configure_quiet_flags -C \
--enable-bootstrap --prefix=$prefix --sysconfdir=$sysconfdir \
--with-pkgdbdir=$pkgdbdir --infodir=$infodir --mandir=$mandir $pkg_install_args && $bmake)"
--with-pkgdbdir=$pkgdbdir --infodir=$infodir --mandir=$mandir $pkg_install_args && $bmake -j$make_jobs)"
run_cmd "$install_sh -c -o $user -g $group -m 755 $wrkdir/pkg_install/admin/pkg_admin $wrkdir/sbin/pkg_admin"
run_cmd "$install_sh -c -o $user -g $group -m 755 $wrkdir/pkg_install/create/pkg_create $wrkdir/sbin/pkg_create"
run_cmd "$install_sh -c -o $user -g $group -m 755 $wrkdir/pkg_install/info/pkg_info $wrkdir/sbin/pkg_info"
@@ -1213,7 +1236,7 @@ echo ".endif # end pkgsrc settings" >> ${BOOTSTRAP_MKCONF}
# build and register packages
# usage: build_package <packagedirectory> [additional arguments]
build_package() {
run_cmd "(cd $pkgsrcdir/$1 && $bmake USE_DESTDIR=no -DPKG_PRESERVE MAKECONF=${BOOTSTRAP_MKCONF} install)"
run_cmd "(cd $pkgsrcdir/$1 && $bmake MAKE_JOBS=${make_jobs} USE_DESTDIR=no -DPKG_PRESERVE MAKECONF=${BOOTSTRAP_MKCONF} install)"
}
#