Import of pkgsrc-2014Q1
This commit is contained in:
+2
-1
@@ -1,4 +1,4 @@
|
||||
$NetBSD: CHANGES-2004,v 1.20 2006/08/14 09:06:47 wiz Exp $
|
||||
$NetBSD: CHANGES-2004,v 1.21 2014/01/20 11:30:53 wiz Exp $
|
||||
|
||||
Changes to the packages collection and infrastructure in 2004:
|
||||
|
||||
@@ -3016,6 +3016,7 @@ Changes to the packages collection and infrastructure in 2004:
|
||||
Updated xmess to 0.83.1 [kristerw 2004-06-21]
|
||||
Updated rconfig to 0.33 [abs 2004-06-21]
|
||||
Added ap2-auth-pgsql-2.0.2b [darcy 2004-06-21]
|
||||
Updated py-cddb to 0.4 [drochner 2004-06-21]
|
||||
Updated wmi to 8 [salo 2004-06-22]
|
||||
Updated screws to 0.54 [xtraeme 2004-06-22]
|
||||
Updated p5-Device-Modem to 1.36 [grant 2004-06-22]
|
||||
|
||||
+2
-1
@@ -1,4 +1,4 @@
|
||||
$NetBSD: CHANGES-2010,v 1.4395 2012/06/03 18:44:59 wiz Exp $
|
||||
$NetBSD: CHANGES-2010,v 1.4396 2014/01/17 20:19:09 wiz Exp $
|
||||
|
||||
Changes to the packages collection and infrastructure in 2010:
|
||||
|
||||
@@ -3785,6 +3785,7 @@ Changes to the packages collection and infrastructure in 2010:
|
||||
Updated misc/tellico to 2.3 [wiz 2010-08-15]
|
||||
Updated games/rftg to 0.7.3 [wiz 2010-08-15]
|
||||
Added lang/py-cxfreeze version 4.2 [drochner 2010-08-15]
|
||||
Added devel/py-rope version 0.9.3 [drochner 2010-08-15]
|
||||
Updated www/ikiwiki to 3.20100815 [schmonz 2010-08-16]
|
||||
Updated lang/ruby18-base to 1.8.7.174nb6 [taca 2010-08-16]
|
||||
Updated devel/slib to 3.2.3 [wiz 2010-08-16]
|
||||
|
||||
+3
-1
@@ -1,4 +1,4 @@
|
||||
$NetBSD: CHANGES-2012,v 1.4030 2013/06/12 12:10:35 mef Exp $
|
||||
$NetBSD: CHANGES-2012,v 1.4032 2013/10/23 09:12:24 wiz Exp $
|
||||
|
||||
Changes to the packages collection and infrastructure in 2012:
|
||||
|
||||
@@ -3342,6 +3342,7 @@ Changes to the packages collection and infrastructure in 2012:
|
||||
Updated math/gcalctool-gtk3 to 6.4.2.1 [drochner 2012-07-04]
|
||||
Updated security/libgnome-keyring to 3.4.1 [drochner 2012-07-04]
|
||||
Updated print/poppler to 0.20.1 [drochner 2012-07-04]
|
||||
Added sysutils/testdisk version 6.13 [drochner 2012-07-04]
|
||||
Added devel/p5-CPAN-Meta-Requirements version 2.122 [sno 2012-07-05]
|
||||
Added devel/p5-CPAN-Uploader version 0.103001 [sno 2012-07-05]
|
||||
Added devel/p5-MooseX-OneArgNew version 0.002 [sno 2012-07-05]
|
||||
@@ -6096,6 +6097,7 @@ Changes to the packages collection and infrastructure in 2012:
|
||||
Updated www/opera to 12.12 [obache 2012-12-18]
|
||||
Updated mail/sylpheed to 3.3.0 [taca 2012-12-18]
|
||||
Updated editors/vim-xaw to 7.3.712nb1 [morr 2012-12-18]
|
||||
Updated graphics/inkscape to 0.48.4 [drochner 2012-12-18]
|
||||
Updated devel/p5-CPAN-Reporter to 1.2009 [wen 2012-12-19]
|
||||
Updated devel/pango to 1.32.4nb1 [obache 2012-12-19]
|
||||
Updated security/p5-Crypt-CBC to 2.32 [wen 2012-12-19]
|
||||
|
||||
+3351
-2
File diff suppressed because it is too large
Load Diff
+1907
File diff suppressed because it is too large
Load Diff
@@ -1,133 +0,0 @@
|
||||
$NetBSD: CHANGES-pkgsrc-2013Q2,v 1.1.2.35 2013/09/18 09:56:52 spz Exp $
|
||||
|
||||
Changes to the packages collection and infrastructure on the
|
||||
pkgsrc-2013Q2 branch:
|
||||
|
||||
Created pkgsrc-2013Q2 branch [agc 2013-07-02 00:05 UTC]
|
||||
|
||||
Pullup ticket #4168 - requested by martin
|
||||
www/firefox: build fix
|
||||
Pullup ticket #4170 - requested by ryoon
|
||||
www/firefox-l10n: installation fix
|
||||
Pullup ticket #4173 - requested by rodent
|
||||
audio/libfishsound: build fix
|
||||
Pullup ticket #4174 - requested by ryoon
|
||||
audio/nas: bug fix patch
|
||||
Pullup ticket #4175 - requested by obache
|
||||
multimedia/adobe-flash-plugin11: security update
|
||||
Pullup ticket #4176 - requested by obache
|
||||
lang/sun-jdk7: security update
|
||||
lang/sun-jre7: security update
|
||||
Pullup ticket #4184 - requested by tron
|
||||
www/apache22: security update
|
||||
Pullup ticket #4177 - requested by taca
|
||||
x11/libXi: security update
|
||||
Pullup ticket #4178 - requested by taca
|
||||
www/squid3: security update
|
||||
Pullup ticket #4182 - requested by taca
|
||||
mail/roundcube: dependency fix
|
||||
Pullup ticket #4183 - requested by taca
|
||||
lang/php53: security update
|
||||
Pullup ticket #4179 - requested by taca
|
||||
misc/rubygems: build fix
|
||||
textproc/ruby-xslt: build fix
|
||||
Pullup ticket #4180 - requested by taca
|
||||
devel/ruby-rdoc: bug fix patch
|
||||
Pullup ticket #4181 - requested by taca
|
||||
devel/ruby-stream: build fix
|
||||
Pullup ticket #4186 - requested by taca
|
||||
x11/ruby-tk: build fix
|
||||
Pullup ticket #4187 - requested by wiz
|
||||
security/gnupg: security update
|
||||
Pullup ticket #4188 - requested by wiz
|
||||
security/libgcrypt: security update
|
||||
Pullup ticket #4189 - requested by taca
|
||||
net/bind99: security update
|
||||
Pullup ticket #4190 - requested by taca
|
||||
net/bind98: security update
|
||||
Pullup ticket #4193 - requested by ryoon
|
||||
www/apache24: security update
|
||||
Pullup ticket #4194 - requested by is
|
||||
lang/swi-prolog-lite: bug fix patch
|
||||
Pullup ticket #4195 - requested by bouyer
|
||||
mail/spamassassin: bug fix patch
|
||||
Pullup ticket #4191 - requested by tron
|
||||
databases/phpmyadmin: security update
|
||||
Pullup ticket #4192 - requested by tron
|
||||
net/wireshark: security update
|
||||
Pullup ticket #4196 - requested by taca
|
||||
lang/php54: security patch
|
||||
Pullup ticket #4197 - requested by taca
|
||||
www/typo3_45: security update
|
||||
Pullup ticket #4198 - requested by taca
|
||||
www/typo3_47: security update
|
||||
Pullup ticket #4199 - requested by taca
|
||||
www/typo3_60: security update
|
||||
Pullup ticket #4200 - requested by spz
|
||||
databases/mysql55-client: distfile update
|
||||
databases/mysql55-server: distfile update
|
||||
Pullup ticket #4201 - requested by obache
|
||||
net/nagios-base: security update
|
||||
Pullup ticket #4202 - requested by taca
|
||||
lang/php54: security update
|
||||
Pullup ticket #4203 - requested by bouyer
|
||||
mail/dovecot2: bug fix patch
|
||||
Pullup ticket #4204 - requested by bouyer
|
||||
time/kronolith: packaging fix patch
|
||||
Pullup ticket #4205 - requested by khorben
|
||||
graphics/glx-utils: build fix
|
||||
Pullup ticket #4206 - requested by ryoon
|
||||
mail/thunderbird: security update
|
||||
Pullup ticket #4207 - requested by taca
|
||||
net/samba: security update
|
||||
Pullup ticket #4208 - requested by taca
|
||||
net/samba35: security update
|
||||
Pullup ticket #4210 - requested by wiz
|
||||
www/py-werkzeug-docs: packaging fix
|
||||
Pullup ticket #4211 - requested by schmonz
|
||||
www/cvsweb: Perl compatibility patch
|
||||
Pullup ticket #4212 - requested by adam
|
||||
mail/dovecot2: security update
|
||||
Pullup ticket #4213 - requested by spz
|
||||
lang/python27: security patch
|
||||
Pullup ticket #4214 - requested by bsiegert
|
||||
devel/doxygen: build fix
|
||||
Pullup ticket #4215 - requested by hannken
|
||||
net/chrony: security update
|
||||
Pullup ticket #4216 - requested by drochner
|
||||
security/putty: security update
|
||||
Pullup ticket #4217 - requested by drochner
|
||||
net/filezilla: security update
|
||||
Pullup ticket #4218 - requested by ryoon
|
||||
devel/xulrunner17: security update
|
||||
Pullup ticket #4219 - requested by obache
|
||||
emulators/suse121_compat: bug fix patch
|
||||
Pullup ticket #4220 - requested by taca
|
||||
lang/php53: security patch
|
||||
Pullup ticket #4221 - requested by taca
|
||||
lang/php*: apply framework changes to make pullup requests possible
|
||||
Pullup ticket #4222 - requested by taca
|
||||
lang/php54: security update
|
||||
Pullup ticket #4223 - requested by taca
|
||||
www/contao211: bug fix patch
|
||||
www/contao30: bug fix patch
|
||||
www/contao31: bug fix patch
|
||||
Pullup ticket #4224 - requested by taca
|
||||
mail/roundcube: security update
|
||||
Pullup ticket #4225 - requested by wiz
|
||||
graphics/MesaLib: build fix
|
||||
Pullup ticket #4226 - requested by bouyer
|
||||
lang/php53: build fix
|
||||
lang/php54: build fix
|
||||
Pullup ticket #4228 - requested by spz
|
||||
mk/defaults/mk.conf: build fix for various packages
|
||||
Pullup ticket #4230 - requested by taca
|
||||
www/typo3_60: security update
|
||||
Pullup ticket #4231 - requested by obache
|
||||
multimedia/adobe-flash-plugin11: security update
|
||||
Pullup ticket #4233 - requested by wen
|
||||
www/mediawiki: security update
|
||||
Pullup ticket #4234 - requested by morr
|
||||
www/wordpress: security update
|
||||
Pullup ticket #4232 - requested by tron
|
||||
net/wireshark: security update
|
||||
@@ -0,0 +1,29 @@
|
||||
$NetBSD: CHANGES-pkgsrc-2014Q1,v 1.1.2.7 2014/04/11 11:50:29 tron Exp $
|
||||
|
||||
Changes to the packages collection and infrastructure on the
|
||||
pkgsrc-2014Q1 branch:
|
||||
|
||||
Created pkgsrc-2014Q1 branch [agc 2014-03-31 05:15 UTC]
|
||||
|
||||
Pullup ticket #4352 - requested by obache
|
||||
emulators/suse131_openssl: security update
|
||||
Pullup ticket #4353 - requested by obache
|
||||
misc/libreoffice4-bin: build fix
|
||||
Pullup ticket #4359 - requested by obache
|
||||
security/openssl: security update
|
||||
Pullup ticket #4354 - requested by obache
|
||||
inputmethod/ibus: bug fix patch
|
||||
Pullup ticket #4355 - requested by obache
|
||||
wm/awesome: build fix
|
||||
Pullup ticket #4360 - requested by obache
|
||||
emulators/suse131_openssl: security update
|
||||
Pullup ticket #4357 - requested by taca
|
||||
www/contao211: security update
|
||||
Pullup ticket #4358 - requested by taca
|
||||
www/contao32: security update
|
||||
Pullup ticket #4361 - requested by ryoon
|
||||
www/apache-tomcat7: security update
|
||||
Pullup ticket #4362 - requested by obache
|
||||
multimedia/adobe-flash-plugin11: security update
|
||||
Pullup ticket #4363 - requested by obache
|
||||
graphics/jbigkit: security update
|
||||
@@ -1,4 +1,4 @@
|
||||
<!-- $NetBSD: buildlink.xml,v 1.34 2013/04/21 15:20:46 wiz Exp $ -->
|
||||
<!-- $NetBSD: buildlink.xml,v 1.36 2013/07/30 07:14:09 wiz Exp $ -->
|
||||
|
||||
<chapter id="buildlink">
|
||||
<title>Buildlink methodology</title>
|
||||
@@ -126,6 +126,17 @@ BUILDLINK_API_DEPENDS.foo+= foo>=1.1.0
|
||||
which Motif version will be used.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para><filename>readline.buildlink3.mk</filename> checks for a
|
||||
system-provided GNU readline or editline (libedit) installation,
|
||||
or adds a dependency on <filename role="pkg">devel/readline</filename>,
|
||||
<filename role="pkg">devel/editline</filename>. The user can set
|
||||
<varname>READLINE_DEFAULT</varname> to choose readline implementation.
|
||||
If your package really needs GNU readline library, its Makefile
|
||||
should include <filename>devel/readline/buildlink3.mk</filename>
|
||||
instead of <filename>readline.buildlink3.mk</filename>.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para><filename>oss.buildlink3.mk</filename> defines several
|
||||
variables that may be used by packages that use the
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!-- $NetBSD: bulk.xml,v 1.10 2012/08/26 10:34:20 wiz Exp $ -->
|
||||
<!-- $NetBSD: bulk.xml,v 1.12 2013/12/31 19:27:06 dholland Exp $ -->
|
||||
|
||||
<chapter id="bulk">
|
||||
<title>Creating binary packages for everything in pkgsrc (bulk
|
||||
@@ -66,15 +66,15 @@ temporary filesystems, others must survive a sudden reboot.</para>
|
||||
|
||||
<itemizedlist>
|
||||
|
||||
<listitem><para>10 GB for the distfiles (read-write, remote, temporary)</para></listitem>
|
||||
<listitem><para>40 GB for the distfiles (read-write, remote, temporary)</para></listitem>
|
||||
|
||||
<listitem><para>10 GB for the binary packages (read-write, remote, permanent)</para></listitem>
|
||||
<listitem><para>30 GB for the binary packages (read-write, remote, permanent)</para></listitem>
|
||||
|
||||
<listitem><para>400 MB for the pkgsrc tree (read-only, remote, permanent)</para></listitem>
|
||||
<listitem><para>1 GB for the pkgsrc tree (read-only, remote, permanent)</para></listitem>
|
||||
|
||||
<listitem><para>5 GB for <filename>LOCALBASE</filename> (read-write, local, temporary for pbulk, permanent for old-bulk)</para></listitem>
|
||||
|
||||
<listitem><para>5 GB for the log files (read-write, remote, permanent)</para></listitem>
|
||||
<listitem><para>10 GB for the log files (read-write, remote, permanent)</para></listitem>
|
||||
|
||||
<listitem><para>5 GB for temporary files (read-write, local, temporary)</para></listitem>
|
||||
|
||||
@@ -329,15 +329,15 @@ fi
|
||||
<title>Disk space requirements</title>
|
||||
|
||||
<para>Currently, roughly the following requirements are valid for
|
||||
NetBSD 2.0/i386:</para>
|
||||
NetBSD 6.99/amd64:</para>
|
||||
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>10 GB - distfiles (NFS ok)</para>
|
||||
<para>40 GB - distfiles (NFS ok)</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para>8 GB - full set of all binaries (NFS ok)</para>
|
||||
<para>30 GB - full set of all binaries (NFS ok)</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
@@ -417,8 +417,7 @@ fi
|
||||
<step>
|
||||
|
||||
<para><filename>/usr/src</filename> (system sources,
|
||||
e. g. for <filename
|
||||
role="pkg">sysutils/aperture</filename>):</para>
|
||||
rarely used by packages if at all:</para>
|
||||
|
||||
<screen>&rprompt; <userinput>ln -s ../disk1/cvs .</userinput>
|
||||
&rprompt; <userinput>ln -s cvs/src-2.0 src</userinput></screen>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!-- $NetBSD: creating.xml,v 1.12 2012/10/03 22:14:01 wiz Exp $ -->
|
||||
<!-- $NetBSD: creating.xml,v 1.16 2014/01/18 20:18:50 wiz Exp $ -->
|
||||
|
||||
<chapter id="creating">
|
||||
<title>Creating a new pkgsrc package from scratch</title>
|
||||
@@ -136,23 +136,12 @@ settings that are typical of KDE packages.</para>
|
||||
<para>Python modules and programs packages are easily created using a
|
||||
set of predefined variables.</para>
|
||||
|
||||
<para>Most Python packages use either <quote>distutils</quote> or
|
||||
easy-setup (<quote>eggs</quote>).
|
||||
If the software uses <quote>distutils</quote>, set the
|
||||
<varname>PYDISTUTILSPKG</varname> variable to <quote>yes</quote> so
|
||||
pkgsrc will make use of this framework.
|
||||
<quote>distutils</quote> uses a script called <filename>setup.py</filename>,
|
||||
if the <quote>distutils</quote> driver is not called
|
||||
<filename>setup.py</filename>, set the <varname>PYSETUP</varname> variable
|
||||
to the name of the script.</para>
|
||||
|
||||
<para>
|
||||
If the default Python versions are not supported by the software, set the
|
||||
<varname>PYTHON_VERSIONS_ACCEPTED</varname> variable to the Python versions
|
||||
the software is known to work with, from the most recent to the older
|
||||
one, e.g.
|
||||
If some Python versions are not supported by the software, set the
|
||||
<varname>PYTHON_VERSIONS_INCOMPATIBLE</varname> variable to the Python versions
|
||||
that are not supported, e.g.
|
||||
<programlisting>
|
||||
PYTHON_VERSIONS_ACCEPTED= 31 27 26
|
||||
PYTHON_VERSIONS_INCOMPATIBLE= 26
|
||||
</programlisting></para>
|
||||
|
||||
<para>
|
||||
@@ -166,22 +155,43 @@ DISTNAME= foopymodule-1.2.10
|
||||
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
||||
</programlisting></para>
|
||||
|
||||
<para>If it is an application, also include
|
||||
<quote><filename>../../lang/python/application.mk</filename></quote>
|
||||
before <quote>extension.mk</quote>.</para>
|
||||
|
||||
<para>If the packaged software, either it is an application or a module, is
|
||||
egg-aware, you only need to include
|
||||
<quote><filename>../../lang/python/egg.mk</filename></quote>.</para>
|
||||
|
||||
<para>In order to correctly set the path to the Python interpreter, use the
|
||||
<para>If it is an application, include
|
||||
<quote><filename>../../lang/python/application.mk</filename></quote>.
|
||||
In order to correctly set the path to the Python interpreter, use the
|
||||
<varname>REPLACE_PYTHON</varname> variable and set it to the list of files
|
||||
(paths relative to <varname>WRKSRC</varname>) that must be corrected.
|
||||
For example :
|
||||
For example:
|
||||
<programlisting>
|
||||
REPLACE_PYTHON= *.py
|
||||
</programlisting></para>
|
||||
|
||||
<para>Most Python packages use either <quote>distutils</quote> or
|
||||
easy-setup (<quote>eggs</quote>).
|
||||
If the software uses <quote>distutils</quote>, include
|
||||
<quote><filename>../../lang/python/distutils.mk</filename></quote>.
|
||||
so pkgsrc will use this framework.
|
||||
<quote>distutils</quote> uses a script called <filename>setup.py</filename>,
|
||||
if the <quote>distutils</quote> driver is not called
|
||||
<filename>setup.py</filename>, set the <varname>PYSETUP</varname> variable
|
||||
to the name of the script.</para>
|
||||
|
||||
<para>Otherwise, if the packaged software is egg-aware, you only need
|
||||
to include
|
||||
<quote><filename>../../lang/python/egg.mk</filename></quote>.</para>
|
||||
|
||||
<para>Some Python modules have separate distributions for Python-2.x
|
||||
and Python-3.x support. In pkgsrc this is handled by the
|
||||
<filename>versioned_dependencies.mk</filename> file. Set
|
||||
<varname>PYTHON_VERSIONED_DEPENDENCIES</varname> to the list of
|
||||
packages that should be depended upon and include
|
||||
<quote><filename>../../lang/python/versioned_dependencies.mk</filename></quote>,
|
||||
then the pkgsrc infrastructure will depend on the appropriate package
|
||||
version. For example:
|
||||
<programlisting>
|
||||
PYTHON_VERSIONED_DEPENDENCIES=dateutil dns
|
||||
</programlisting>
|
||||
Look inside <filename>versioned_dependencies.mk</filename> for a list
|
||||
of supported packages.</para>
|
||||
</sect2>
|
||||
|
||||
</sect1>
|
||||
@@ -376,7 +386,7 @@ and tried again.</para>
|
||||
|
||||
<programlisting>
|
||||
[...]
|
||||
cc -o xpidl.o -c -DOSTYPE=\"NetBSD3\" -DOSARCH=\"NetBSD\" -I../../../dist/include/xpcom -I../../../dist/include -I/tmp/roland/pkgsrc/www/nvu/work.bacc/mozilla/dist/include/nspr -I/usr/X11R6/include -fPIC -DPIC -I/home/roland/pkg/include -I/usr/include -I/usr/X11R6/include -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -pedantic -O2 -I/home/roland/pkg/include -I/usr/include -Dunix -pthread -pipe -DDEBUG -D_DEBUG -DDEBUG_roland -DTRACING -g -I/home/roland/pkg/include/glib/glib-1.2 -I/home/roland/pkg/lib/glib/include -I/usr/pkg/include/orbit-1.0 -I/home/roland/pkg/include -I/usr/include -I/usr/X11R6/include -include ../../../mozilla-config.h -DMOZILLA_CLIENT -Wp,-MD,.deps/xpidl.pp xpidl.c
|
||||
cc -o xpidl.o -c -DOSTYPE=\"NetBSD3\" -DOSARCH=\"NetBSD\" [...]
|
||||
In file included from xpidl.c:42:
|
||||
xpidl.h:53:24: libIDL/IDL.h: No such file or directory
|
||||
In file included from xpidl.c:42:
|
||||
|
||||
+29
-14
@@ -1,4 +1,4 @@
|
||||
<!-- $NetBSD: faq.xml,v 1.48 2011/07/31 08:48:22 spz Exp $ -->
|
||||
<!-- $NetBSD: faq.xml,v 1.50 2014/02/03 16:09:34 wiz Exp $ -->
|
||||
|
||||
<chapter id="faq"> <?dbhtml filename="faq.html"?>
|
||||
<title>Frequently Asked Questions</title>
|
||||
@@ -138,11 +138,6 @@ with each package.</para>
|
||||
methods: multiple CD-ROMs and network FTP/HTTP connections.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para><filename role="pkg">pkgtools/xpkgwedge</filename>: Put X11
|
||||
packages someplace else (enabled by default).</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para><filename role="pkg">devel/cpuflags</filename>: Determine
|
||||
the best compiler flags to optimise code for your current
|
||||
@@ -156,6 +151,12 @@ etc:</para>
|
||||
|
||||
<itemizedlist>
|
||||
|
||||
<listitem>
|
||||
<para><filename role="pkg">pkgtools/pkgin</filename>: A package
|
||||
update tool similar to apt(1). Download, install, and upgrade
|
||||
binary packages easily.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para><filename role="pkg">pkgtools/pkg_chk</filename>: Reports on
|
||||
packages whose installed versions do not match the latest pkgsrc
|
||||
@@ -202,16 +203,10 @@ etc:</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para><filename role="pkg">pkgtools/rpm2pkg</filename>,
|
||||
<filename role="pkg">pkgtools/url2pkg</filename>: Aids in
|
||||
<para><filename role="pkg">pkgtools/url2pkg</filename>: Aids in
|
||||
converting to pkgsrc.</para>
|
||||
</listitem>
|
||||
|
||||
<listitem>
|
||||
<para><filename role="pkg">pkgtools/gensolpkg</filename>: Convert
|
||||
pkgsrc to a Solaris package.</para>
|
||||
</listitem>
|
||||
|
||||
</itemizedlist>
|
||||
|
||||
<para>Utilities for people maintaining pkgsrc (or: more obscure pkg
|
||||
@@ -272,7 +267,7 @@ enable this feature by adding the option
|
||||
distfile is found, pkgsrc will try to resume it.</para>
|
||||
|
||||
<para>You can also
|
||||
use a different program than the default &man.ftp.1; by changing the
|
||||
use a different program than the platform default program by changing the
|
||||
<varname>FETCH_USING</varname> variable. You can specify the program by
|
||||
using of ftp, fetch, wget or curl. Alternatively, fetching can be disabled
|
||||
by using the value manual. A value of custom disables the system defaults
|
||||
@@ -332,6 +327,26 @@ http_proxy=http://orpheus.amdahl.com:80/
|
||||
|
||||
<!-- ================================================================== -->
|
||||
|
||||
<sect1 id="fetch-https">
|
||||
<title>How to fetch files from HTTPS sites</title>
|
||||
|
||||
<para>Some fetch tools are not prepared to support HTTPS by default
|
||||
(for example, the one in NetBSD 6.0), or the one installed by the
|
||||
pkgsrc bootstrap (to avoid an openssl dependency that low in the
|
||||
dependency graph).</para>
|
||||
|
||||
<para>Usually you won't notice, because distribution files are
|
||||
mirrored weekly to <quote>ftp.NetBSD.org</quote>, but that might not
|
||||
be often enough if you are following pkgsrc-current. In that case, set
|
||||
<varname>FETCH_USING</varname> in your &mk.conf; file to
|
||||
<quote>curl</quote> or <quote>wget</quote>, which are both compiled
|
||||
with HTTPS support by default. Of course, these tools need to be
|
||||
installed before you can use them this way.</para>
|
||||
|
||||
</sect1>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
|
||||
<sect1 id="passive-ftp">
|
||||
<title>How do I tell <command>make fetch</command> to do passive FTP?</title>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!-- $NetBSD: fixes.xml,v 1.121 2013/05/26 18:21:46 wiz Exp $ -->
|
||||
<!-- $NetBSD: fixes.xml,v 1.123 2013/08/24 16:55:21 bsiegert Exp $ -->
|
||||
|
||||
<chapter id="fixes"> <?dbhtml filename="fixes.html"?>
|
||||
<title>Making your package work</title>
|
||||
@@ -133,6 +133,7 @@ INTERACTIVE_STAGE= configure install
|
||||
artistic artistic-2.0
|
||||
boost-license
|
||||
cc-by-sa-v3.0
|
||||
cc0-1.0-universal
|
||||
cddl-1.0
|
||||
cpl-1.0
|
||||
epl-v1.0
|
||||
@@ -443,6 +444,20 @@ DEPENDS+= ImageMagick>=6.0:../../graphics/ImageMagick
|
||||
linkend="security-handling"/> for more
|
||||
information.</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>If the package depends on either one of two (or more)
|
||||
packages, specify the <quote>pre-req-package-name</quote> as a
|
||||
comma-separated list between curly braces.</para>
|
||||
|
||||
<para>As an example, take a package that depends on the Perl
|
||||
<quote>version</quote> module, which has been part of Perl
|
||||
itself since version 5.10.0. This either/or dependency is
|
||||
expressed as:</para>
|
||||
|
||||
<programlisting>
|
||||
DEPENDS+= {perl>=5.10.0,p5-version-[0-9]*}:../../devel/p5-version
|
||||
</programlisting>
|
||||
</listitem>
|
||||
</orderedlist>
|
||||
|
||||
<para>If your package needs files from another package to build,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!-- $NetBSD: getting.xml,v 1.31 2013/05/03 16:55:29 asau Exp $ -->
|
||||
<!-- $NetBSD: getting.xml,v 1.32 2013/11/07 08:52:43 jnemeth Exp $ -->
|
||||
|
||||
<chapter id="getting">
|
||||
<title>Where to get pkgsrc and how to keep it up-to-date</title>
|
||||
@@ -58,18 +58,18 @@ and dashes.</para>
|
||||
|
||||
<para>You can fetch the same files using FTP.</para>
|
||||
|
||||
<para>The tar file for the stable branch 2009Q1 is in the
|
||||
directory <filename>pkgsrc-2009Q1</filename> and is also called <ulink
|
||||
url="ftp://ftp.NetBSD.org/pub/pkgsrc/pkgsrc-2009Q1/pkgsrc-2009Q1.tar.gz"><filename>pkgsrc-2009Q1.tar.gz</filename></ulink>.</para>
|
||||
<para>The tar file for the stable branch 2013Q1 is in the
|
||||
directory <filename>pkgsrc-2013Q1</filename> and is also called <ulink
|
||||
url="ftp://ftp.NetBSD.org/pub/pkgsrc/pkgsrc-2013Q1/pkgsrc.tar.gz"><filename>pkgsrc.tar.gz</filename></ulink>.</para>
|
||||
|
||||
<para>To download a pkgsrc stable tarball, run:</para>
|
||||
|
||||
<screen>
|
||||
&uprompt; <userinput>ftp ftp://ftp.NetBSD.org/pub/pkgsrc/<replaceable>pkgsrc-20xxQy</replaceable>/<replaceable>pkgsrc-20xxQy</replaceable>.tar.gz</userinput></screen>
|
||||
&uprompt; <userinput>ftp ftp://ftp.NetBSD.org/pub/pkgsrc/<replaceable>pkgsrc-20xxQy</replaceable>/pkgsrc.tar.gz</userinput></screen>
|
||||
|
||||
<para>Where <replaceable>pkgsrc-20xxQy</replaceable> is the
|
||||
stable branch to be downloaded, for example,
|
||||
<quote>pkgsrc-2009Q1</quote>.</para>
|
||||
<quote>pkgsrc-2013Q1</quote>.</para>
|
||||
|
||||
<para>You can use fetch it also using "wget", "curl",
|
||||
or your web browser.</para>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!-- $NetBSD: introduction.xml,v 1.28 2013/03/31 09:08:06 obache Exp $ -->
|
||||
<!-- $NetBSD: introduction.xml,v 1.30 2013/08/22 13:54:51 ryoon Exp $ -->
|
||||
|
||||
<chapter id="introduction">
|
||||
<title>What is pkgsrc?</title>
|
||||
@@ -190,7 +190,7 @@ minutes!</para>
|
||||
</row>
|
||||
<row>
|
||||
<entry><ulink url="http://www.mirbsd.org/">MirBSD</ulink></entry>
|
||||
<entry align="center">Aug 2011</entry>
|
||||
<entry align="center">Jan 2011</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><ulink url="http://www.minix3.org/">Minix3</ulink></entry>
|
||||
@@ -200,6 +200,10 @@ minutes!</para>
|
||||
<entry><ulink url="http://cygwin.com/">Cygwin</ulink></entry>
|
||||
<entry align="center">Mar 2013</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><ulink url="http://www.debian.org/ports/kfreebsd-gnu/">GNU/kFreeBSD</ulink></entry>
|
||||
<entry align="center">Jul 2013</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!-- $NetBSD: platforms.xml,v 1.81 2013/03/08 12:08:08 obache Exp $ -->
|
||||
<!-- $NetBSD: platforms.xml,v 1.84 2013/11/15 10:11:47 asau Exp $ -->
|
||||
|
||||
<chapter id="platforms">
|
||||
<title>Using pkgsrc on systems other than &os;</title>
|
||||
@@ -23,7 +23,7 @@
|
||||
<para>Installing the bootstrap kit from source should be as simple as:</para>
|
||||
|
||||
<screen>
|
||||
&rprompt; <userinput>env CVS_RSH=ssh cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout pkgsrc</userinput>
|
||||
&rprompt; <userinput>env CVS_RSH=ssh cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P pkgsrc</userinput>
|
||||
&rprompt; <userinput>cd pkgsrc/bootstrap</userinput>
|
||||
&rprompt; <userinput>./bootstrap</userinput>
|
||||
</screen>
|
||||
@@ -150,6 +150,16 @@
|
||||
</orderedlist>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="gnukfreebsd">
|
||||
<title>GNU/kFreeBSD</title>
|
||||
|
||||
<para>Debian GNU/kFreeBSD is the only GNU/kFreeBSD distribution now.
|
||||
Debian GNU/kFreeBSD 7.0 or later is tested and supported.</para>
|
||||
|
||||
<para> You should install ncurses (libncurses and libncurses-dev)
|
||||
packages.</para>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="interix">
|
||||
<title>Interix</title>
|
||||
|
||||
@@ -460,6 +470,34 @@ ICCBASE= /opt/intel/cc/10.1.008
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 id="mirbsd">
|
||||
<title>MirBSD</title>
|
||||
|
||||
<para>pkgsrc has been tested on MirBSD #10-current (2011 and newer).
|
||||
Older versions might also work. Releases before #10 are not
|
||||
supported.</para>
|
||||
|
||||
<para>The package tools of the (older) native ports tree,
|
||||
<ulink url="//www.mirbsd.org/ports.htm">MirPorts</ulink>,
|
||||
have the same names as the ones used by pkgsrc. Care should be taken
|
||||
that the right tools are used. When installing packages from source,
|
||||
use the <filename>bmake</filename> command for pkgsrc and
|
||||
<filename>mmake</filename> for MirPorts.</para>
|
||||
|
||||
<para>pkgsrc and MirPorts use the same location for the package
|
||||
database, <filename>/var/db/pkg</filename>. It is strongly recommended
|
||||
to use <filename>/usr/pkg/db</filename> instead, so that the pkgsrc
|
||||
tree is self-contained. This is also the default setting used in the
|
||||
binary package builds.</para>
|
||||
|
||||
<para>Binary packages for MirBSD/i386 can be found on the pkgsrc ftp
|
||||
server. The bootstrap kit there already contains the
|
||||
<command>pkgin</command> package manager. See the
|
||||
<ulink url="https://www.mirbsd.org/pkgsrc.htm">pkgsrc on MirOS</ulink>
|
||||
page for more details.</para>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 id="openbsd">
|
||||
<title>OpenBSD</title>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!-- $NetBSD: submit.xml,v 1.26 2012/06/07 08:15:55 wiz Exp $ -->
|
||||
<!-- $NetBSD: submit.xml,v 1.28 2014/02/25 02:30:06 mspo Exp $ -->
|
||||
|
||||
<chapter id="submit"> <?dbhtml filename="submit.html"?>
|
||||
<title>Submitting and Committing</title>
|
||||
@@ -87,7 +87,7 @@
|
||||
not the same as your NetBSD login name. The target also automatically
|
||||
removes possibly existing entries for the package in the
|
||||
<filename>TODO</filename> file. Don't forget to commit
|
||||
the changes, e.g. by using <command>make changes-entry-commit</command>!
|
||||
the changes, e.g. by using <command>make commit-changes-entry</command>!
|
||||
If you are not using a checkout directly from cvs.NetBSD.org, but e.g.
|
||||
a local copy of the repository, you can set USE_NETBSD_REPO=yes. This
|
||||
makes the cvs commands use the main repository.
|
||||
@@ -114,6 +114,9 @@ you can check by running <quote>cvs status</quote>. An example:</para>
|
||||
&uprompt; cd ..
|
||||
&uprompt; vi Makefile # add SUBDIRS+=pkgname line
|
||||
&uprompt; cvs commit Makefile
|
||||
&uprompt; cd pkgname
|
||||
&uprompt; make CTYPE=Added changes-entry
|
||||
&uprompt; make commit-changes-entry
|
||||
</programlisting>
|
||||
|
||||
<para>The commit message of the initial import should include part of the
|
||||
|
||||
+219
-128
@@ -82,11 +82,13 @@
|
||||
<dt><span class="sect2"><a href="#cygwin">3.3.1. Cygwin</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#darwin">3.3.2. Darwin (Mac OS X)</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#freebsd">3.3.3. FreeBSD</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#interix">3.3.4. Interix</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#irix">3.3.5. IRIX</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#linux">3.3.6. Linux</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#openbsd">3.3.7. OpenBSD</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#solaris">3.3.8. Solaris</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#gnukfreebsd">3.3.4. GNU/kFreeBSD</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#interix">3.3.5. Interix</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#irix">3.3.6. IRIX</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#linux">3.3.7. Linux</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#mirbsd">3.3.8. MirBSD</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#openbsd">3.3.9. OpenBSD</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#solaris">3.3.10. Solaris</a></span></dt>
|
||||
</dl></dd>
|
||||
</dl></dd>
|
||||
<dt><span class="chapter"><a href="#using">4. Using pkgsrc</a></span></dt>
|
||||
@@ -166,17 +168,18 @@ builds)</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#resume-transfers">9.5. How to resume transfers when fetching distfiles?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#x.org-from-pkgsrc">9.6. How can I install/use modular X.org from pkgsrc?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#fetch-behind-firewall">9.7. How to fetch files from behind a firewall</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#passive-ftp">9.8. How do I tell <span class="command"><strong>make fetch</strong></span> to do passive FTP?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#fetching-all-distfiles">9.9. How to fetch all distfiles at once</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#tmac.andoc-missing">9.10. What does <span class="quote">“<span class="quote">Don't know how to make
|
||||
<dt><span class="sect1"><a href="#fetch-https">9.8. How to fetch files from HTTPS sites</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#passive-ftp">9.9. How do I tell <span class="command"><strong>make fetch</strong></span> to do passive FTP?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#fetching-all-distfiles">9.10. How to fetch all distfiles at once</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#tmac.andoc-missing">9.11. What does <span class="quote">“<span class="quote">Don't know how to make
|
||||
/usr/share/tmac/tmac.andoc</span>”</span> mean?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#bsd.own.mk-missing">9.11. What does <span class="quote">“<span class="quote">Could not find bsd.own.mk</span>”</span> mean?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#using-sudo-with-pkgsrc">9.12. Using 'sudo' with pkgsrc</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#faq.conf">9.13. How do I change the location of configuration files?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#audit-packages">9.14. Automated security checks</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#ufaq-cflags">9.15. Why do some packages ignore my <code class="varname">CFLAGS</code>?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#ufaq-fail">9.16. A package does not build. What shall I do?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#faq.rcs-conflicts">9.17. What does <span class="quote">“<span class="quote">Makefile appears to contain unresolved cvs/rcs/??? merge conflicts</span>”</span> mean?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#bsd.own.mk-missing">9.12. What does <span class="quote">“<span class="quote">Could not find bsd.own.mk</span>”</span> mean?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#using-sudo-with-pkgsrc">9.13. Using 'sudo' with pkgsrc</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#faq.conf">9.14. How do I change the location of configuration files?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#audit-packages">9.15. Automated security checks</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#ufaq-cflags">9.16. Why do some packages ignore my <code class="varname">CFLAGS</code>?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#ufaq-fail">9.17. A package does not build. What shall I do?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#faq.rcs-conflicts">9.18. What does <span class="quote">“<span class="quote">Makefile appears to contain unresolved cvs/rcs/??? merge conflicts</span>”</span> mean?</a></span></dt>
|
||||
</dl></dd>
|
||||
</dl></dd>
|
||||
<dt><span class="part"><a href="#developers-guide">II. The pkgsrc developer's guide</a></span></dt>
|
||||
@@ -668,7 +671,7 @@ minutes!</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a class="ulink" href="http://www.mirbsd.org/" target="_top">MirBSD</a></td>
|
||||
<td align="center">Aug 2011</td>
|
||||
<td align="center">Jan 2011</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a class="ulink" href="http://www.minix3.org/" target="_top">Minix3</a></td>
|
||||
@@ -678,6 +681,10 @@ minutes!</p>
|
||||
<td><a class="ulink" href="http://cygwin.com/" target="_top">Cygwin</a></td>
|
||||
<td align="center">Mar 2013</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a class="ulink" href="http://www.debian.org/ports/kfreebsd-gnu/" target="_top">GNU/kFreeBSD</a></td>
|
||||
<td align="center">Jul 2013</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</div>
|
||||
@@ -817,11 +824,13 @@ minutes!</p>
|
||||
<dt><span class="sect2"><a href="#cygwin">3.3.1. Cygwin</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#darwin">3.3.2. Darwin (Mac OS X)</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#freebsd">3.3.3. FreeBSD</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#interix">3.3.4. Interix</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#irix">3.3.5. IRIX</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#linux">3.3.6. Linux</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#openbsd">3.3.7. OpenBSD</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#solaris">3.3.8. Solaris</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#gnukfreebsd">3.3.4. GNU/kFreeBSD</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#interix">3.3.5. Interix</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#irix">3.3.6. IRIX</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#linux">3.3.7. Linux</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#mirbsd">3.3.8. MirBSD</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#openbsd">3.3.9. OpenBSD</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#solaris">3.3.10. Solaris</a></span></dt>
|
||||
</dl></dd>
|
||||
</dl></dd>
|
||||
<dt><span class="chapter"><a href="#using">4. Using pkgsrc</a></span></dt>
|
||||
@@ -901,17 +910,18 @@ builds)</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#resume-transfers">9.5. How to resume transfers when fetching distfiles?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#x.org-from-pkgsrc">9.6. How can I install/use modular X.org from pkgsrc?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#fetch-behind-firewall">9.7. How to fetch files from behind a firewall</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#passive-ftp">9.8. How do I tell <span class="command"><strong>make fetch</strong></span> to do passive FTP?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#fetching-all-distfiles">9.9. How to fetch all distfiles at once</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#tmac.andoc-missing">9.10. What does <span class="quote">“<span class="quote">Don't know how to make
|
||||
<dt><span class="sect1"><a href="#fetch-https">9.8. How to fetch files from HTTPS sites</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#passive-ftp">9.9. How do I tell <span class="command"><strong>make fetch</strong></span> to do passive FTP?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#fetching-all-distfiles">9.10. How to fetch all distfiles at once</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#tmac.andoc-missing">9.11. What does <span class="quote">“<span class="quote">Don't know how to make
|
||||
/usr/share/tmac/tmac.andoc</span>”</span> mean?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#bsd.own.mk-missing">9.11. What does <span class="quote">“<span class="quote">Could not find bsd.own.mk</span>”</span> mean?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#using-sudo-with-pkgsrc">9.12. Using 'sudo' with pkgsrc</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#faq.conf">9.13. How do I change the location of configuration files?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#audit-packages">9.14. Automated security checks</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#ufaq-cflags">9.15. Why do some packages ignore my <code class="varname">CFLAGS</code>?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#ufaq-fail">9.16. A package does not build. What shall I do?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#faq.rcs-conflicts">9.17. What does <span class="quote">“<span class="quote">Makefile appears to contain unresolved cvs/rcs/??? merge conflicts</span>”</span> mean?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#bsd.own.mk-missing">9.12. What does <span class="quote">“<span class="quote">Could not find bsd.own.mk</span>”</span> mean?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#using-sudo-with-pkgsrc">9.13. Using 'sudo' with pkgsrc</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#faq.conf">9.14. How do I change the location of configuration files?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#audit-packages">9.15. Automated security checks</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#ufaq-cflags">9.16. Why do some packages ignore my <code class="varname">CFLAGS</code>?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#ufaq-fail">9.17. A package does not build. What shall I do?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#faq.rcs-conflicts">9.18. What does <span class="quote">“<span class="quote">Makefile appears to contain unresolved cvs/rcs/??? merge conflicts</span>”</span> mean?</a></span></dt>
|
||||
</dl></dd>
|
||||
</dl>
|
||||
</div>
|
||||
@@ -978,14 +988,14 @@ and dashes.</p>
|
||||
respectively.
|
||||
</p>
|
||||
<p>You can fetch the same files using FTP.</p>
|
||||
<p>The tar file for the stable branch 2009Q1 is in the
|
||||
directory <code class="filename">pkgsrc-2009Q1</code> and is also called <a class="ulink" href="ftp://ftp.NetBSD.org/pub/pkgsrc/pkgsrc-2009Q1/pkgsrc-2009Q1.tar.gz" target="_top"><code class="filename">pkgsrc-2009Q1.tar.gz</code></a>.</p>
|
||||
<p>The tar file for the stable branch 2013Q1 is in the
|
||||
directory <code class="filename">pkgsrc-2013Q1</code> and is also called <a class="ulink" href="ftp://ftp.NetBSD.org/pub/pkgsrc/pkgsrc-2013Q1/pkgsrc.tar.gz" target="_top"><code class="filename">pkgsrc.tar.gz</code></a>.</p>
|
||||
<p>To download a pkgsrc stable tarball, run:</p>
|
||||
<pre class="screen">
|
||||
<code class="prompt">$</code> <strong class="userinput"><code>ftp ftp://ftp.NetBSD.org/pub/pkgsrc/<em class="replaceable"><code>pkgsrc-20xxQy</code></em>/<em class="replaceable"><code>pkgsrc-20xxQy</code></em>.tar.gz</code></strong></pre>
|
||||
<code class="prompt">$</code> <strong class="userinput"><code>ftp ftp://ftp.NetBSD.org/pub/pkgsrc/<em class="replaceable"><code>pkgsrc-20xxQy</code></em>/pkgsrc.tar.gz</code></strong></pre>
|
||||
<p>Where <em class="replaceable"><code>pkgsrc-20xxQy</code></em> is the
|
||||
stable branch to be downloaded, for example,
|
||||
<span class="quote">“<span class="quote">pkgsrc-2009Q1</span>”</span>.</p>
|
||||
<span class="quote">“<span class="quote">pkgsrc-2013Q1</span>”</span>.</p>
|
||||
<p>You can use fetch it also using "wget", "curl",
|
||||
or your web browser.</p>
|
||||
<p>Then, extract it with:</p>
|
||||
@@ -1116,11 +1126,13 @@ release -d
|
||||
<dt><span class="sect2"><a href="#cygwin">3.3.1. Cygwin</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#darwin">3.3.2. Darwin (Mac OS X)</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#freebsd">3.3.3. FreeBSD</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#interix">3.3.4. Interix</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#irix">3.3.5. IRIX</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#linux">3.3.6. Linux</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#openbsd">3.3.7. OpenBSD</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#solaris">3.3.8. Solaris</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#gnukfreebsd">3.3.4. GNU/kFreeBSD</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#interix">3.3.5. Interix</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#irix">3.3.6. IRIX</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#linux">3.3.7. Linux</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#mirbsd">3.3.8. MirBSD</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#openbsd">3.3.9. OpenBSD</a></span></dt>
|
||||
<dt><span class="sect2"><a href="#solaris">3.3.10. Solaris</a></span></dt>
|
||||
</dl></dd>
|
||||
</dl>
|
||||
</div>
|
||||
@@ -1140,7 +1152,7 @@ release -d
|
||||
</p>
|
||||
<p>Installing the bootstrap kit from source should be as simple as:</p>
|
||||
<pre class="screen">
|
||||
<code class="prompt">#</code> <strong class="userinput"><code>env CVS_RSH=ssh cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout pkgsrc</code></strong>
|
||||
<code class="prompt">#</code> <strong class="userinput"><code>env CVS_RSH=ssh cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P pkgsrc</code></strong>
|
||||
<code class="prompt">#</code> <strong class="userinput"><code>cd pkgsrc/bootstrap</code></strong>
|
||||
<code class="prompt">#</code> <strong class="userinput"><code>./bootstrap</code></strong>
|
||||
</pre>
|
||||
@@ -1244,7 +1256,15 @@ release -d
|
||||
</div>
|
||||
<div class="sect2">
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="interix"></a>3.3.4. Interix</h3></div></div></div>
|
||||
<a name="gnukfreebsd"></a>3.3.4. GNU/kFreeBSD</h3></div></div></div>
|
||||
<p>Debian GNU/kFreeBSD is the only GNU/kFreeBSD distribution now.
|
||||
Debian GNU/kFreeBSD 7.0 or later is tested and supported.</p>
|
||||
<p> You should install ncurses (libncurses and libncurses-dev)
|
||||
packages.</p>
|
||||
</div>
|
||||
<div class="sect2">
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="interix"></a>3.3.5. Interix</h3></div></div></div>
|
||||
<p>Interix is a POSIX-compatible subsystem for the Windows NT kernel,
|
||||
providing a Unix-like environment with a tighter kernel integration than
|
||||
available with Cygwin. It is part of the Windows Services for Unix
|
||||
@@ -1262,7 +1282,7 @@ release -d
|
||||
with pkgsrc.</p>
|
||||
<div class="sect3">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="platform.interix-sfu-install"></a>3.3.4.1. When installing Interix/SFU</h4></div></div></div>
|
||||
<a name="platform.interix-sfu-install"></a>3.3.5.1. When installing Interix/SFU</h4></div></div></div>
|
||||
<p>At an absolute minimum, the following packages must be installed from
|
||||
the Windows Services for Unix 3.5 distribution in order to use pkgsrc:</p>
|
||||
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
|
||||
@@ -1303,7 +1323,7 @@ release -d
|
||||
</div>
|
||||
<div class="sect3">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="platform.interix-sfu-postinstall"></a>3.3.4.2. What to do if Interix/SFU is already installed</h4></div></div></div>
|
||||
<a name="platform.interix-sfu-postinstall"></a>3.3.5.2. What to do if Interix/SFU is already installed</h4></div></div></div>
|
||||
<p>If SFU is already installed and you wish to alter these settings to work
|
||||
with pkgsrc, note the following things.</p>
|
||||
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
|
||||
@@ -1326,7 +1346,7 @@ release -d
|
||||
</div>
|
||||
<div class="sect3">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="platform.interix-notes"></a>3.3.4.3. Important notes for using pkgsrc</h4></div></div></div>
|
||||
<a name="platform.interix-notes"></a>3.3.5.3. Important notes for using pkgsrc</h4></div></div></div>
|
||||
<p>The package manager (either the pkgsrc "su" user, or the user
|
||||
running "pkg_add") must be a member of the local Administrators
|
||||
group. Such a user must also be used to run the bootstrap. This is
|
||||
@@ -1349,7 +1369,7 @@ interix:kP=\E[S:kN=\E[T:kH=\E[U:dc@:DC@:tc=pcansi:
|
||||
</div>
|
||||
<div class="sect3">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="platform.interix-limits"></a>3.3.4.4. Limitations of the Interix platform</h4></div></div></div>
|
||||
<a name="platform.interix-limits"></a>3.3.5.4. Limitations of the Interix platform</h4></div></div></div>
|
||||
<p>Though Interix suffices as a familiar and flexible substitute
|
||||
for a full Unix-like platform, it has some drawbacks that should
|
||||
be noted for those desiring to make the most of Interix.</p>
|
||||
@@ -1406,7 +1426,7 @@ interix:kP=\E[S:kN=\E[T:kH=\E[U:dc@:DC@:tc=pcansi:
|
||||
</div>
|
||||
<div class="sect3">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="platform.interix-knownissues"></a>3.3.4.5. Known issues for pkgsrc on Interix</h4></div></div></div>
|
||||
<a name="platform.interix-knownissues"></a>3.3.5.5. Known issues for pkgsrc on Interix</h4></div></div></div>
|
||||
<p>It is not necessary, in general, to have a "root" user on the
|
||||
Windows system; any member of the local Administrators group will
|
||||
suffice. However, some packages currently assume that the user
|
||||
@@ -1425,7 +1445,7 @@ interix:kP=\E[S:kN=\E[T:kH=\E[U:dc@:DC@:tc=pcansi:
|
||||
</div>
|
||||
<div class="sect2">
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="irix"></a>3.3.5. IRIX</h3></div></div></div>
|
||||
<a name="irix"></a>3.3.6. IRIX</h3></div></div></div>
|
||||
<p>You will need a working C compiler, either gcc or SGI's MIPS and MIPSpro
|
||||
compiler (cc/c89). Please set the <code class="varname">CC</code> environment variable
|
||||
according to your preference. If you do not have a license for the MIPSpro
|
||||
@@ -1470,7 +1490,7 @@ PKGSRC_COMPILER= mipspro
|
||||
</div>
|
||||
<div class="sect2">
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="linux"></a>3.3.6. Linux</h3></div></div></div>
|
||||
<a name="linux"></a>3.3.7. Linux</h3></div></div></div>
|
||||
<p>Some versions of Linux (for example Debian GNU/Linux) need
|
||||
either libtermcap or libcurses (libncurses). Installing the
|
||||
distributions libncurses-dev package (or equivalent) should fix
|
||||
@@ -1513,7 +1533,30 @@ ICCBASE= /opt/intel/cc/10.1.008
|
||||
</div>
|
||||
<div class="sect2">
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="openbsd"></a>3.3.7. OpenBSD</h3></div></div></div>
|
||||
<a name="mirbsd"></a>3.3.8. MirBSD</h3></div></div></div>
|
||||
<p>pkgsrc has been tested on MirBSD #10-current (2011 and newer).
|
||||
Older versions might also work. Releases before #10 are not
|
||||
supported.</p>
|
||||
<p>The package tools of the (older) native ports tree,
|
||||
<a class="ulink" href="//www.mirbsd.org/ports.htm" target="_top">MirPorts</a>,
|
||||
have the same names as the ones used by pkgsrc. Care should be taken
|
||||
that the right tools are used. When installing packages from source,
|
||||
use the <code class="filename">bmake</code> command for pkgsrc and
|
||||
<code class="filename">mmake</code> for MirPorts.</p>
|
||||
<p>pkgsrc and MirPorts use the same location for the package
|
||||
database, <code class="filename">/var/db/pkg</code>. It is strongly recommended
|
||||
to use <code class="filename">/usr/pkg/db</code> instead, so that the pkgsrc
|
||||
tree is self-contained. This is also the default setting used in the
|
||||
binary package builds.</p>
|
||||
<p>Binary packages for MirBSD/i386 can be found on the pkgsrc ftp
|
||||
server. The bootstrap kit there already contains the
|
||||
<span class="command"><strong>pkgin</strong></span> package manager. See the
|
||||
<a class="ulink" href="https://www.mirbsd.org/pkgsrc.htm" target="_top">pkgsrc on MirOS</a>
|
||||
page for more details.</p>
|
||||
</div>
|
||||
<div class="sect2">
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="openbsd"></a>3.3.9. OpenBSD</h3></div></div></div>
|
||||
<p>OpenBSD 5.1 has been tested and supported,
|
||||
other versions may work.</p>
|
||||
<p>Care should be taken so that the tools that this kit installs do not conflict
|
||||
@@ -1554,7 +1597,7 @@ ICCBASE= /opt/intel/cc/10.1.008
|
||||
</div>
|
||||
<div class="sect2">
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="solaris"></a>3.3.8. Solaris</h3></div></div></div>
|
||||
<a name="solaris"></a>3.3.10. Solaris</h3></div></div></div>
|
||||
<p>Solaris 2.6 through 10 are supported on both x86 and sparc.
|
||||
You will need a working C compiler. Both gcc 4.5.3 and
|
||||
Sun WorkShop 5 have been tested.</p>
|
||||
@@ -1575,7 +1618,7 @@ ICCBASE= /opt/intel/cc/10.1.008
|
||||
and e.g. <code class="filename">/usr/pkg/{bin,sbin}</code>.</p>
|
||||
<div class="sect3">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="solaris-gcc-note"></a>3.3.8.1. If you are using gcc</h4></div></div></div>
|
||||
<a name="solaris-gcc-note"></a>3.3.10.1. If you are using gcc</h4></div></div></div>
|
||||
<p>It makes life much simpler if you only use the same gcc consistently
|
||||
for building all packages.</p>
|
||||
<p>It is recommended that an external gcc be used only for bootstrapping,
|
||||
@@ -1586,7 +1629,7 @@ ICCBASE= /opt/intel/cc/10.1.008
|
||||
</div>
|
||||
<div class="sect3">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="solaris-sun-workshop-note"></a>3.3.8.2. If you are using Sun WorkShop</h4></div></div></div>
|
||||
<a name="solaris-sun-workshop-note"></a>3.3.10.2. If you are using Sun WorkShop</h4></div></div></div>
|
||||
<p>You will need at least the following packages installed (from WorkShop
|
||||
5.0)</p>
|
||||
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
|
||||
@@ -1616,7 +1659,7 @@ CXXCPP= CC -E
|
||||
</div>
|
||||
<div class="sect3">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="solaris-sunpro-64"></a>3.3.8.3. Building 64-bit binaries with SunPro</h4></div></div></div>
|
||||
<a name="solaris-sunpro-64"></a>3.3.10.3. Building 64-bit binaries with SunPro</h4></div></div></div>
|
||||
<p>To build 64-bit packages, you just need to have the
|
||||
following lines in your <a class="link" href="#mk.conf"><code class="filename">mk.conf</code></a> file:</p>
|
||||
<pre class="programlisting">
|
||||
@@ -1632,7 +1675,7 @@ ABI= 64
|
||||
</div>
|
||||
<div class="sect3">
|
||||
<div class="titlepage"><div><div><h4 class="title">
|
||||
<a name="plat.sunos.problems"></a>3.3.8.4. Common problems</h4></div></div></div>
|
||||
<a name="plat.sunos.problems"></a>3.3.10.4. Common problems</h4></div></div></div>
|
||||
<p>Sometimes, when using <span class="command"><strong>libtool</strong></span>,
|
||||
<code class="filename">/bin/ksh</code> crashes with a segmentation fault.
|
||||
The workaround is to use another shell for the configure
|
||||
@@ -2590,11 +2633,11 @@ disk space can be read-only, some other must be writable. Some can be on
|
||||
remote filesystems (such as NFS) and some should be local. Some can be
|
||||
temporary filesystems, others must survive a sudden reboot.</p>
|
||||
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
|
||||
<li class="listitem"><p>10 GB for the distfiles (read-write, remote, temporary)</p></li>
|
||||
<li class="listitem"><p>10 GB for the binary packages (read-write, remote, permanent)</p></li>
|
||||
<li class="listitem"><p>400 MB for the pkgsrc tree (read-only, remote, permanent)</p></li>
|
||||
<li class="listitem"><p>40 GB for the distfiles (read-write, remote, temporary)</p></li>
|
||||
<li class="listitem"><p>30 GB for the binary packages (read-write, remote, permanent)</p></li>
|
||||
<li class="listitem"><p>1 GB for the pkgsrc tree (read-only, remote, permanent)</p></li>
|
||||
<li class="listitem"><p>5 GB for <code class="filename">LOCALBASE</code> (read-write, local, temporary for pbulk, permanent for old-bulk)</p></li>
|
||||
<li class="listitem"><p>5 GB for the log files (read-write, remote, permanent)</p></li>
|
||||
<li class="listitem"><p>10 GB for the log files (read-write, remote, permanent)</p></li>
|
||||
<li class="listitem"><p>5 GB for temporary files (read-write, local, temporary)</p></li>
|
||||
</ul></div>
|
||||
</div>
|
||||
@@ -2800,10 +2843,10 @@ fi
|
||||
<div class="titlepage"><div><div><h3 class="title">
|
||||
<a name="disk-space-requirements"></a>7.3.5. Disk space requirements</h3></div></div></div>
|
||||
<p>Currently, roughly the following requirements are valid for
|
||||
NetBSD 2.0/i386:</p>
|
||||
NetBSD 6.99/amd64:</p>
|
||||
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
|
||||
<li class="listitem"><p>10 GB - distfiles (NFS ok)</p></li>
|
||||
<li class="listitem"><p>8 GB - full set of all binaries (NFS ok)</p></li>
|
||||
<li class="listitem"><p>40 GB - distfiles (NFS ok)</p></li>
|
||||
<li class="listitem"><p>30 GB - full set of all binaries (NFS ok)</p></li>
|
||||
<li class="listitem"><p>5 GB - temp space for compiling (local disk recommended)</p></li>
|
||||
</ul></div>
|
||||
<p>Note that all pkgs will be de-installed as soon as they are
|
||||
@@ -2859,7 +2902,7 @@ fi
|
||||
</li>
|
||||
<li class="step">
|
||||
<p><code class="filename">/usr/src</code> (system sources,
|
||||
e. g. for <a href="ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/sysutils/aperture/README.html" target="_top"><code class="filename">sysutils/aperture</code></a>):</p>
|
||||
rarely used by packages if at all:</p>
|
||||
<pre class="screen"><code class="prompt">#</code> <strong class="userinput"><code>ln -s ../disk1/cvs .</code></strong>
|
||||
<code class="prompt">#</code> <strong class="userinput"><code>ln -s cvs/src-2.0 src</code></strong></pre>
|
||||
</li>
|
||||
@@ -3235,17 +3278,18 @@ currently running.</p></dd>
|
||||
<dt><span class="sect1"><a href="#resume-transfers">9.5. How to resume transfers when fetching distfiles?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#x.org-from-pkgsrc">9.6. How can I install/use modular X.org from pkgsrc?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#fetch-behind-firewall">9.7. How to fetch files from behind a firewall</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#passive-ftp">9.8. How do I tell <span class="command"><strong>make fetch</strong></span> to do passive FTP?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#fetching-all-distfiles">9.9. How to fetch all distfiles at once</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#tmac.andoc-missing">9.10. What does <span class="quote">“<span class="quote">Don't know how to make
|
||||
<dt><span class="sect1"><a href="#fetch-https">9.8. How to fetch files from HTTPS sites</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#passive-ftp">9.9. How do I tell <span class="command"><strong>make fetch</strong></span> to do passive FTP?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#fetching-all-distfiles">9.10. How to fetch all distfiles at once</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#tmac.andoc-missing">9.11. What does <span class="quote">“<span class="quote">Don't know how to make
|
||||
/usr/share/tmac/tmac.andoc</span>”</span> mean?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#bsd.own.mk-missing">9.11. What does <span class="quote">“<span class="quote">Could not find bsd.own.mk</span>”</span> mean?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#using-sudo-with-pkgsrc">9.12. Using 'sudo' with pkgsrc</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#faq.conf">9.13. How do I change the location of configuration files?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#audit-packages">9.14. Automated security checks</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#ufaq-cflags">9.15. Why do some packages ignore my <code class="varname">CFLAGS</code>?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#ufaq-fail">9.16. A package does not build. What shall I do?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#faq.rcs-conflicts">9.17. What does <span class="quote">“<span class="quote">Makefile appears to contain unresolved cvs/rcs/??? merge conflicts</span>”</span> mean?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#bsd.own.mk-missing">9.12. What does <span class="quote">“<span class="quote">Could not find bsd.own.mk</span>”</span> mean?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#using-sudo-with-pkgsrc">9.13. Using 'sudo' with pkgsrc</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#faq.conf">9.14. How do I change the location of configuration files?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#audit-packages">9.15. Automated security checks</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#ufaq-cflags">9.16. Why do some packages ignore my <code class="varname">CFLAGS</code>?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#ufaq-fail">9.17. A package does not build. What shall I do?</a></span></dt>
|
||||
<dt><span class="sect1"><a href="#faq.rcs-conflicts">9.18. What does <span class="quote">“<span class="quote">Makefile appears to contain unresolved cvs/rcs/??? merge conflicts</span>”</span> mean?</a></span></dt>
|
||||
</dl>
|
||||
</div>
|
||||
<p>This section contains hints, tips & tricks on special things in
|
||||
@@ -3323,8 +3367,6 @@ with each package.</p>
|
||||
Adds extra functionality to pkgsrc, allowing it to fetch distfiles
|
||||
from multiple locations. It currently supports the following
|
||||
methods: multiple CD-ROMs and network FTP/HTTP connections.</p></li>
|
||||
<li class="listitem"><p><a href="ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/pkgtools/xpkgwedge/README.html" target="_top"><code class="filename">pkgtools/xpkgwedge</code></a>: Put X11
|
||||
packages someplace else (enabled by default).</p></li>
|
||||
<li class="listitem"><p><a href="ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/devel/cpuflags/README.html" target="_top"><code class="filename">devel/cpuflags</code></a>: Determine
|
||||
the best compiler flags to optimise code for your current
|
||||
CPU and compiler. </p></li>
|
||||
@@ -3332,6 +3374,9 @@ with each package.</p>
|
||||
<p>Utilities for keeping track of installed packages, being up to date,
|
||||
etc:</p>
|
||||
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
|
||||
<li class="listitem"><p><a href="ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/pkgtools/pkgin/README.html" target="_top"><code class="filename">pkgtools/pkgin</code></a>: A package
|
||||
update tool similar to apt(1). Download, install, and upgrade
|
||||
binary packages easily.</p></li>
|
||||
<li class="listitem"><p><a href="ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/pkgtools/pkg_chk/README.html" target="_top"><code class="filename">pkgtools/pkg_chk</code></a>: Reports on
|
||||
packages whose installed versions do not match the latest pkgsrc
|
||||
entries.</p></li>
|
||||
@@ -3352,11 +3397,8 @@ etc:</p>
|
||||
<li class="listitem"><p><a href="ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/pkgtools/pkgdiff/README.html" target="_top"><code class="filename">pkgtools/pkgdiff</code></a>: Automate
|
||||
making and maintaining patches for a package (includes pkgdiff,
|
||||
pkgvi, mkpatches, etc.).</p></li>
|
||||
<li class="listitem"><p><a href="ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/pkgtools/rpm2pkg/README.html" target="_top"><code class="filename">pkgtools/rpm2pkg</code></a>,
|
||||
<a href="ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/pkgtools/url2pkg/README.html" target="_top"><code class="filename">pkgtools/url2pkg</code></a>: Aids in
|
||||
<li class="listitem"><p><a href="ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/pkgtools/url2pkg/README.html" target="_top"><code class="filename">pkgtools/url2pkg</code></a>: Aids in
|
||||
converting to pkgsrc.</p></li>
|
||||
<li class="listitem"><p><a href="ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/pkgtools/gensolpkg/README.html" target="_top"><code class="filename">pkgtools/gensolpkg</code></a>: Convert
|
||||
pkgsrc to a Solaris package.</p></li>
|
||||
</ul></div>
|
||||
<p>Utilities for people maintaining pkgsrc (or: more obscure pkg
|
||||
utilities)</p>
|
||||
@@ -3397,7 +3439,7 @@ enable this feature by adding the option
|
||||
<a class="link" href="#mk.conf"><code class="filename">mk.conf</code></a>. If, during a fetch step, an incomplete
|
||||
distfile is found, pkgsrc will try to resume it.</p>
|
||||
<p>You can also
|
||||
use a different program than the default <a class="citerefentry" href="http://netbsd.gw.com/cgi-bin/man-cgi?ftp+1+NetBSD-5.0.1+i386"><span class="citerefentry"><span class="refentrytitle">ftp</span>(1)</span></a> by changing the
|
||||
use a different program than the platform default program by changing the
|
||||
<code class="varname">FETCH_USING</code> variable. You can specify the program by
|
||||
using of ftp, fetch, wget or curl. Alternatively, fetching can be disabled
|
||||
by using the value manual. A value of custom disables the system defaults
|
||||
@@ -3445,7 +3487,22 @@ http_proxy=http://orpheus.amdahl.com:80/
|
||||
</div>
|
||||
<div class="sect1">
|
||||
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
||||
<a name="passive-ftp"></a>9.8. How do I tell <span class="command"><strong>make fetch</strong></span> to do passive FTP?</h2></div></div></div>
|
||||
<a name="fetch-https"></a>9.8. How to fetch files from HTTPS sites</h2></div></div></div>
|
||||
<p>Some fetch tools are not prepared to support HTTPS by default
|
||||
(for example, the one in NetBSD 6.0), or the one installed by the
|
||||
pkgsrc bootstrap (to avoid an openssl dependency that low in the
|
||||
dependency graph).</p>
|
||||
<p>Usually you won't notice, because distribution files are
|
||||
mirrored weekly to <span class="quote">“<span class="quote">ftp.NetBSD.org</span>”</span>, but that might not
|
||||
be often enough if you are following pkgsrc-current. In that case, set
|
||||
<code class="varname">FETCH_USING</code> in your <a class="link" href="#mk.conf"><code class="filename">mk.conf</code></a> file to
|
||||
<span class="quote">“<span class="quote">curl</span>”</span> or <span class="quote">“<span class="quote">wget</span>”</span>, which are both compiled
|
||||
with HTTPS support by default. Of course, these tools need to be
|
||||
installed before you can use them this way.</p>
|
||||
</div>
|
||||
<div class="sect1">
|
||||
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
||||
<a name="passive-ftp"></a>9.9. How do I tell <span class="command"><strong>make fetch</strong></span> to do passive FTP?</h2></div></div></div>
|
||||
<p>This depends on which utility is used to retrieve distfiles. From
|
||||
<code class="filename">bsd.pkg.mk</code>, <code class="varname">FETCH_CMD</code> is assigned
|
||||
the first available command from the following list:</p>
|
||||
@@ -3465,7 +3522,7 @@ transfers.</p>
|
||||
</div>
|
||||
<div class="sect1">
|
||||
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
||||
<a name="fetching-all-distfiles"></a>9.9. How to fetch all distfiles at once</h2></div></div></div>
|
||||
<a name="fetching-all-distfiles"></a>9.10. How to fetch all distfiles at once</h2></div></div></div>
|
||||
<p>You would like to download all the distfiles in a single batch
|
||||
from work or university, where you can't run a <span class="command"><strong>make
|
||||
fetch</strong></span>. There is an archive of distfiles on <a class="ulink" href="ftp://ftp.NetBSD.org/pub/pkgsrc/distfiles/" target="_top">ftp.NetBSD.org</a>,
|
||||
@@ -3497,7 +3554,7 @@ by running:</p>
|
||||
</div>
|
||||
<div class="sect1">
|
||||
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
||||
<a name="tmac.andoc-missing"></a>9.10. What does <span class="quote">“<span class="quote">Don't know how to make
|
||||
<a name="tmac.andoc-missing"></a>9.11. What does <span class="quote">“<span class="quote">Don't know how to make
|
||||
/usr/share/tmac/tmac.andoc</span>”</span> mean?</h2></div></div></div>
|
||||
<p>When compiling the <a href="ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/pkgtools/pkg_install/README.html" target="_top"><code class="filename">pkgtools/pkg_install</code></a>
|
||||
package, you get the error from make that it doesn't know how to make
|
||||
@@ -3511,7 +3568,7 @@ environment or in <a class="link" href="#mk.conf"><code class="filename">mk.conf
|
||||
</div>
|
||||
<div class="sect1">
|
||||
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
||||
<a name="bsd.own.mk-missing"></a>9.11. What does <span class="quote">“<span class="quote">Could not find bsd.own.mk</span>”</span> mean?</h2></div></div></div>
|
||||
<a name="bsd.own.mk-missing"></a>9.12. What does <span class="quote">“<span class="quote">Could not find bsd.own.mk</span>”</span> mean?</h2></div></div></div>
|
||||
<p>You didn't install the compiler set, <code class="filename">comp.tgz</code>,
|
||||
when you installed your NetBSD machine. Please get and install it, by
|
||||
extracting it in <code class="filename">/</code>:</p>
|
||||
@@ -3523,7 +3580,7 @@ the one that corresponds to your release (determine via <span class="command"><s
|
||||
</div>
|
||||
<div class="sect1">
|
||||
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
||||
<a name="using-sudo-with-pkgsrc"></a>9.12. Using 'sudo' with pkgsrc</h2></div></div></div>
|
||||
<a name="using-sudo-with-pkgsrc"></a>9.13. Using 'sudo' with pkgsrc</h2></div></div></div>
|
||||
<p>When installing packages as non-root user and using the just-in-time
|
||||
<a class="citerefentry" href="http://netbsd.gw.com/cgi-bin/man-cgi?su+1+NetBSD-5.0.1+i386"><span class="citerefentry"><span class="refentrytitle">su</span>(1)</span></a> feature of pkgsrc, it can become annoying to type in the root
|
||||
password for each required package installed. To avoid this, the sudo
|
||||
@@ -3541,7 +3598,7 @@ SU_CMD= ${LOCALBASE}/bin/sudo /bin/sh -c
|
||||
</div>
|
||||
<div class="sect1">
|
||||
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
||||
<a name="faq.conf"></a>9.13. How do I change the location of configuration files?</h2></div></div></div>
|
||||
<a name="faq.conf"></a>9.14. How do I change the location of configuration files?</h2></div></div></div>
|
||||
<p>As the system administrator, you can choose where configuration files
|
||||
are installed. The default settings make all these files go into
|
||||
<code class="filename">${PREFIX}/etc</code> or some of its subdirectories; this may
|
||||
@@ -3563,7 +3620,7 @@ reinstall any affected packages.</p>
|
||||
</div>
|
||||
<div class="sect1">
|
||||
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
||||
<a name="audit-packages"></a>9.14. Automated security checks</h2></div></div></div>
|
||||
<a name="audit-packages"></a>9.15. Automated security checks</h2></div></div></div>
|
||||
<p>Please be aware that there can often be bugs in third-party software,
|
||||
and some of these bugs can leave a machine vulnerable to exploitation by
|
||||
attackers. In an effort to lessen the exposure, the NetBSD packages team
|
||||
@@ -3596,7 +3653,7 @@ check.</p>
|
||||
</div>
|
||||
<div class="sect1">
|
||||
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
||||
<a name="ufaq-cflags"></a>9.15. Why do some packages ignore my <code class="varname">CFLAGS</code>?</h2></div></div></div>
|
||||
<a name="ufaq-cflags"></a>9.16. Why do some packages ignore my <code class="varname">CFLAGS</code>?</h2></div></div></div>
|
||||
<p>When you add your own preferences to the
|
||||
<code class="varname">CFLAGS</code> variable in your
|
||||
<a class="link" href="#mk.conf"><code class="filename">mk.conf</code></a>, these flags are passed in
|
||||
@@ -3618,7 +3675,7 @@ check.</p>
|
||||
</div>
|
||||
<div class="sect1">
|
||||
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
||||
<a name="ufaq-fail"></a>9.16. A package does not build. What shall I do?</h2></div></div></div>
|
||||
<a name="ufaq-fail"></a>9.17. A package does not build. What shall I do?</h2></div></div></div>
|
||||
<div class="procedure"><ol class="procedure" type="1">
|
||||
<li class="step"><p>Make sure that your copy of pkgsrc is consistent. A
|
||||
case that occurs often is that people only update pkgsrc in
|
||||
@@ -3639,7 +3696,7 @@ check.</p>
|
||||
</div>
|
||||
<div class="sect1">
|
||||
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
||||
<a name="faq.rcs-conflicts"></a>9.17. What does <span class="quote">“<span class="quote">Makefile appears to contain unresolved cvs/rcs/??? merge conflicts</span>”</span> mean?</h2></div></div></div>
|
||||
<a name="faq.rcs-conflicts"></a>9.18. What does <span class="quote">“<span class="quote">Makefile appears to contain unresolved cvs/rcs/??? merge conflicts</span>”</span> mean?</h2></div></div></div>
|
||||
<p>You have modified a file from pkgsrc, and someone else has
|
||||
modified that same file afterwards in the CVS repository. Both changes
|
||||
are in the same region of the file, so when you updated pkgsrc, the
|
||||
@@ -4013,23 +4070,13 @@ settings that are typical of KDE packages.</p>
|
||||
<a name="creating.python-module"></a>10.1.3. Python modules and programs</h3></div></div></div>
|
||||
<p>Python modules and programs packages are easily created using a
|
||||
set of predefined variables.</p>
|
||||
<p>Most Python packages use either <span class="quote">“<span class="quote">distutils</span>”</span> or
|
||||
easy-setup (<span class="quote">“<span class="quote">eggs</span>”</span>).
|
||||
If the software uses <span class="quote">“<span class="quote">distutils</span>”</span>, set the
|
||||
<code class="varname">PYDISTUTILSPKG</code> variable to <span class="quote">“<span class="quote">yes</span>”</span> so
|
||||
pkgsrc will make use of this framework.
|
||||
<span class="quote">“<span class="quote">distutils</span>”</span> uses a script called <code class="filename">setup.py</code>,
|
||||
if the <span class="quote">“<span class="quote">distutils</span>”</span> driver is not called
|
||||
<code class="filename">setup.py</code>, set the <code class="varname">PYSETUP</code> variable
|
||||
to the name of the script.</p>
|
||||
<p>
|
||||
If the default Python versions are not supported by the software, set the
|
||||
<code class="varname">PYTHON_VERSIONS_ACCEPTED</code> variable to the Python versions
|
||||
the software is known to work with, from the most recent to the older
|
||||
one, e.g.
|
||||
If some Python versions are not supported by the software, set the
|
||||
<code class="varname">PYTHON_VERSIONS_INCOMPATIBLE</code> variable to the Python versions
|
||||
that are not supported, e.g.
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
PYTHON_VERSIONS_ACCEPTED= 31 27 26
|
||||
PYTHON_VERSIONS_INCOMPATIBLE= 26
|
||||
</pre>
|
||||
<p>
|
||||
If the packaged software is a Python module, include
|
||||
@@ -4042,20 +4089,43 @@ In this case, the package directory should be called
|
||||
DISTNAME= foopymodule-1.2.10
|
||||
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
||||
</pre>
|
||||
<p>If it is an application, also include
|
||||
<span class="quote">“<span class="quote"><code class="filename">../../lang/python/application.mk</code></span>”</span>
|
||||
before <span class="quote">“<span class="quote">extension.mk</span>”</span>.</p>
|
||||
<p>If the packaged software, either it is an application or a module, is
|
||||
egg-aware, you only need to include
|
||||
<span class="quote">“<span class="quote"><code class="filename">../../lang/python/egg.mk</code></span>”</span>.</p>
|
||||
<p>In order to correctly set the path to the Python interpreter, use the
|
||||
<p>If it is an application, include
|
||||
<span class="quote">“<span class="quote"><code class="filename">../../lang/python/application.mk</code></span>”</span>.
|
||||
In order to correctly set the path to the Python interpreter, use the
|
||||
<code class="varname">REPLACE_PYTHON</code> variable and set it to the list of files
|
||||
(paths relative to <code class="varname">WRKSRC</code>) that must be corrected.
|
||||
For example :
|
||||
For example:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
REPLACE_PYTHON= *.py
|
||||
</pre>
|
||||
<p>Most Python packages use either <span class="quote">“<span class="quote">distutils</span>”</span> or
|
||||
easy-setup (<span class="quote">“<span class="quote">eggs</span>”</span>).
|
||||
If the software uses <span class="quote">“<span class="quote">distutils</span>”</span>, include
|
||||
<span class="quote">“<span class="quote"><code class="filename">../../lang/python/distutils.mk</code></span>”</span>.
|
||||
so pkgsrc will use this framework.
|
||||
<span class="quote">“<span class="quote">distutils</span>”</span> uses a script called <code class="filename">setup.py</code>,
|
||||
if the <span class="quote">“<span class="quote">distutils</span>”</span> driver is not called
|
||||
<code class="filename">setup.py</code>, set the <code class="varname">PYSETUP</code> variable
|
||||
to the name of the script.</p>
|
||||
<p>Otherwise, if the packaged software is egg-aware, you only need
|
||||
to include
|
||||
<span class="quote">“<span class="quote"><code class="filename">../../lang/python/egg.mk</code></span>”</span>.</p>
|
||||
<p>Some Python modules have separate distributions for Python-2.x
|
||||
and Python-3.x support. In pkgsrc this is handled by the
|
||||
<code class="filename">versioned_dependencies.mk</code> file. Set
|
||||
<code class="varname">PYTHON_VERSIONED_DEPENDENCIES</code> to the list of
|
||||
packages that should be depended upon and include
|
||||
<span class="quote">“<span class="quote"><code class="filename">../../lang/python/versioned_dependencies.mk</code></span>”</span>,
|
||||
then the pkgsrc infrastructure will depend on the appropriate package
|
||||
version. For example:
|
||||
</p>
|
||||
<pre class="programlisting">
|
||||
PYTHON_VERSIONED_DEPENDENCIES=dateutil dns
|
||||
</pre>
|
||||
<p>
|
||||
Look inside <code class="filename">versioned_dependencies.mk</code> for a list
|
||||
of supported packages.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sect1">
|
||||
@@ -4225,7 +4295,7 @@ So I changed the <code class="literal">x11/gtk2</code> to
|
||||
and tried again.</p>
|
||||
<pre class="programlisting">
|
||||
[...]
|
||||
cc -o xpidl.o -c -DOSTYPE=\"NetBSD3\" -DOSARCH=\"NetBSD\" -I../../../dist/include/xpcom -I../../../dist/include -I/tmp/roland/pkgsrc/www/nvu/work.bacc/mozilla/dist/include/nspr -I/usr/X11R6/include -fPIC -DPIC -I/home/roland/pkg/include -I/usr/include -I/usr/X11R6/include -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -pedantic -O2 -I/home/roland/pkg/include -I/usr/include -Dunix -pthread -pipe -DDEBUG -D_DEBUG -DDEBUG_roland -DTRACING -g -I/home/roland/pkg/include/glib/glib-1.2 -I/home/roland/pkg/lib/glib/include -I/usr/pkg/include/orbit-1.0 -I/home/roland/pkg/include -I/usr/include -I/usr/X11R6/include -include ../../../mozilla-config.h -DMOZILLA_CLIENT -Wp,-MD,.deps/xpidl.pp xpidl.c
|
||||
cc -o xpidl.o -c -DOSTYPE=\"NetBSD3\" -DOSARCH=\"NetBSD\" [...]
|
||||
In file included from xpidl.c:42:
|
||||
xpidl.h:53:24: libIDL/IDL.h: No such file or directory
|
||||
In file included from xpidl.c:42:
|
||||
@@ -5526,6 +5596,14 @@ BUILDLINK_API_DEPENDS.foo+= foo>=1.1.0
|
||||
<span class="quote">“<span class="quote">lesstif</span>”</span>, <span class="quote">“<span class="quote">motif</span>”</span> or
|
||||
<span class="quote">“<span class="quote">openmotif</span>”</span> to choose
|
||||
which Motif version will be used.</p></li>
|
||||
<li class="listitem"><p><code class="filename">readline.buildlink3.mk</code> checks for a
|
||||
system-provided GNU readline or editline (libedit) installation,
|
||||
or adds a dependency on <a href="ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/devel/readline/README.html" target="_top"><code class="filename">devel/readline</code></a>,
|
||||
<a href="ftp://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/devel/editline/README.html" target="_top"><code class="filename">devel/editline</code></a>. The user can set
|
||||
<code class="varname">READLINE_DEFAULT</code> to choose readline implementation.
|
||||
If your package really needs GNU readline library, its Makefile
|
||||
should include <code class="filename">devel/readline/buildlink3.mk</code>
|
||||
instead of <code class="filename">readline.buildlink3.mk</code>.</p></li>
|
||||
<li class="listitem"><p><code class="filename">oss.buildlink3.mk</code> defines several
|
||||
variables that may be used by packages that use the
|
||||
Open Sound System (OSS) API.</p></li>
|
||||
@@ -7658,7 +7736,7 @@ TOOLS_PLATFORM.true?= true # shell builtin
|
||||
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
||||
<a name="tools.questions"></a>18.4. Questions regarding the tools</h2></div></div></div>
|
||||
<div class="qandaset">
|
||||
<a name="idm76168656"></a><dl>
|
||||
<a name="idm73061424"></a><dl>
|
||||
<dt>18.4.1. <a href="#tools.new">How do I add a new tool?</a>
|
||||
</dt>
|
||||
<dt>18.4.2. <a href="#tools.listall">How do I get a list of all available
|
||||
@@ -7677,7 +7755,7 @@ TOOLS_PLATFORM.true?= true # shell builtin
|
||||
<tbody>
|
||||
<tr class="question">
|
||||
<td align="left" valign="top">
|
||||
<a name="tools.new"></a><a name="idm76168272"></a><p><b>18.4.1.</b></p>
|
||||
<a name="tools.new"></a><a name="idm73061040"></a><p><b>18.4.1.</b></p>
|
||||
</td>
|
||||
<td align="left" valign="top"><p>How do I add a new tool?</p></td>
|
||||
</tr>
|
||||
@@ -7687,7 +7765,7 @@ TOOLS_PLATFORM.true?= true # shell builtin
|
||||
</tr>
|
||||
<tr class="question">
|
||||
<td align="left" valign="top">
|
||||
<a name="tools.listall"></a><a name="idm76167248"></a><p><b>18.4.2.</b></p>
|
||||
<a name="tools.listall"></a><a name="idm73060016"></a><p><b>18.4.2.</b></p>
|
||||
</td>
|
||||
<td align="left" valign="top"><p>How do I get a list of all available
|
||||
tools?</p></td>
|
||||
@@ -7698,7 +7776,7 @@ TOOLS_PLATFORM.true?= true # shell builtin
|
||||
</tr>
|
||||
<tr class="question">
|
||||
<td align="left" valign="top">
|
||||
<a name="tools.used"></a><a name="idm76166224"></a><p><b>18.4.3.</b></p>
|
||||
<a name="tools.used"></a><a name="idm73058992"></a><p><b>18.4.3.</b></p>
|
||||
</td>
|
||||
<td align="left" valign="top"><p>How can I get a list of all the tools that a
|
||||
package is using while being built? I want to know whether it
|
||||
@@ -7895,6 +7973,7 @@ INTERACTIVE_STAGE= configure install
|
||||
artistic artistic-2.0
|
||||
boost-license
|
||||
cc-by-sa-v3.0
|
||||
cc0-1.0-universal
|
||||
cddl-1.0
|
||||
cpl-1.0
|
||||
epl-v1.0
|
||||
@@ -8160,6 +8239,18 @@ DEPENDS+= ImageMagick>=6.0:../../graphics/ImageMagick
|
||||
vulnerabilities file. See <a class="xref" href="#security-handling" title="19.1.10. Handling packages with security problems">Section 19.1.10, “Handling packages with security problems”</a> for more
|
||||
information.</p>
|
||||
</li>
|
||||
<li class="listitem">
|
||||
<p>If the package depends on either one of two (or more)
|
||||
packages, specify the <span class="quote">“<span class="quote">pre-req-package-name</span>”</span> as a
|
||||
comma-separated list between curly braces.</p>
|
||||
<p>As an example, take a package that depends on the Perl
|
||||
<span class="quote">“<span class="quote">version</span>”</span> module, which has been part of Perl
|
||||
itself since version 5.10.0. This either/or dependency is
|
||||
expressed as:</p>
|
||||
<pre class="programlisting">
|
||||
DEPENDS+= {perl>=5.10.0,p5-version-[0-9]*}:../../devel/p5-version
|
||||
</pre>
|
||||
</li>
|
||||
</ol></div>
|
||||
<p>If your package needs files from another package to build,
|
||||
add the relevant distribution files to
|
||||
@@ -9185,7 +9276,7 @@ PERL5_PACKLIST= auto/Pg/.packlist
|
||||
need to manually patch the package.</p></li>
|
||||
<li class="listitem"><p>Check the PLIST and remove any entries under the etc/gconf
|
||||
directory, as they will be handled automatically. See
|
||||
<a class="xref" href="#faq.conf" title="9.13. How do I change the location of configuration files?">Section 9.13, “How do I change the location of configuration files?”</a> for more information.</p></li>
|
||||
<a class="xref" href="#faq.conf" title="9.14. How do I change the location of configuration files?">Section 9.14, “How do I change the location of configuration files?”</a> for more information.</p></li>
|
||||
<li class="listitem"><p>Define the <code class="varname">GCONF_SCHEMAS</code> variable in
|
||||
your <code class="filename">Makefile</code> with a list of all
|
||||
<code class="filename">.schemas</code> files installed by the package, if
|
||||
@@ -9760,7 +9851,7 @@ place.</p></li>
|
||||
and if you still don't have the answer, ask on the
|
||||
<code class="literal">pkgsrc-users</code> mailing list.</p>
|
||||
<div class="qandaset">
|
||||
<a name="idm77694160"></a><dl>
|
||||
<a name="idm74589232"></a><dl>
|
||||
<dt>22.1. <a href="#devfaq.makeflags">What is the difference between
|
||||
MAKEFLAGS, .MAKEFLAGS and
|
||||
MAKE_FLAGS?</a>
|
||||
@@ -9805,7 +9896,7 @@ do?</a>
|
||||
<tbody>
|
||||
<tr class="question">
|
||||
<td align="left" valign="top">
|
||||
<a name="devfaq.makeflags"></a><a name="idm77693776"></a><p><b>22.1.</b></p>
|
||||
<a name="devfaq.makeflags"></a><a name="idm74588848"></a><p><b>22.1.</b></p>
|
||||
</td>
|
||||
<td align="left" valign="top"><p>What is the difference between
|
||||
<code class="varname">MAKEFLAGS</code>, <code class="varname">.MAKEFLAGS</code> and
|
||||
@@ -9821,7 +9912,7 @@ do?</a>
|
||||
</tr>
|
||||
<tr class="question">
|
||||
<td align="left" valign="top">
|
||||
<a name="devfaq.make"></a><a name="idm77689808"></a><p><b>22.2.</b></p>
|
||||
<a name="devfaq.make"></a><a name="idm74584880"></a><p><b>22.2.</b></p>
|
||||
</td>
|
||||
<td align="left" valign="top"><p>What is the difference between
|
||||
<code class="varname">MAKE</code>, <code class="varname">GMAKE</code> and
|
||||
@@ -9839,7 +9930,7 @@ do?</a>
|
||||
</tr>
|
||||
<tr class="question">
|
||||
<td align="left" valign="top">
|
||||
<a name="devfaq.cc"></a><a name="idm77685328"></a><p><b>22.3.</b></p>
|
||||
<a name="devfaq.cc"></a><a name="idm74580400"></a><p><b>22.3.</b></p>
|
||||
</td>
|
||||
<td align="left" valign="top"><p>What is the difference between
|
||||
<code class="varname">CC</code>, <code class="varname">PKG_CC</code> and
|
||||
@@ -9857,7 +9948,7 @@ do?</a>
|
||||
</tr>
|
||||
<tr class="question">
|
||||
<td align="left" valign="top">
|
||||
<a name="devfaq.bl3flags"></a><a name="idm77681232"></a><p><b>22.4.</b></p>
|
||||
<a name="devfaq.bl3flags"></a><a name="idm74576304"></a><p><b>22.4.</b></p>
|
||||
</td>
|
||||
<td align="left" valign="top"><p>What is the difference between
|
||||
<code class="varname">BUILDLINK_LDFLAGS</code>,
|
||||
@@ -9870,7 +9961,7 @@ do?</a>
|
||||
</tr>
|
||||
<tr class="question">
|
||||
<td align="left" valign="top">
|
||||
<a name="devfaq.bl3prefix"></a><a name="idm77678928"></a><p><b>22.5.</b></p>
|
||||
<a name="devfaq.bl3prefix"></a><a name="idm74574128"></a><p><b>22.5.</b></p>
|
||||
</td>
|
||||
<td align="left" valign="top"><p>Why does <span class="command"><strong>make show-var
|
||||
VARNAME=BUILDLINK_PREFIX.<em class="replaceable"><code>foo</code></em></strong></span>
|
||||
@@ -9886,7 +9977,7 @@ do?</a>
|
||||
</tr>
|
||||
<tr class="question">
|
||||
<td align="left" valign="top">
|
||||
<a name="devfaq.master_sites"></a><a name="idm77675856"></a><p><b>22.6.</b></p>
|
||||
<a name="devfaq.master_sites"></a><a name="idm74570928"></a><p><b>22.6.</b></p>
|
||||
</td>
|
||||
<td align="left" valign="top"><p>What does
|
||||
<code class="literal">${MASTER_SITE_SOURCEFORGE:=package/}</code> mean? I
|
||||
@@ -9910,7 +10001,7 @@ do?</a>
|
||||
</tr>
|
||||
<tr class="question">
|
||||
<td align="left" valign="top">
|
||||
<a name="devfaq.mailinglists"></a><a name="idm77667792"></a><p><b>22.7.</b></p>
|
||||
<a name="devfaq.mailinglists"></a><a name="idm74554672"></a><p><b>22.7.</b></p>
|
||||
</td>
|
||||
<td align="left" valign="top"><p>Which mailing lists are there for package
|
||||
developers?</p></td>
|
||||
@@ -9935,7 +10026,7 @@ do?</a>
|
||||
</tr>
|
||||
<tr class="question">
|
||||
<td align="left" valign="top">
|
||||
<a name="devfaq.documentation"></a><a name="idm77664080"></a><p><b>22.8.</b></p>
|
||||
<a name="devfaq.documentation"></a><a name="idm74550960"></a><p><b>22.8.</b></p>
|
||||
</td>
|
||||
<td align="left" valign="top"><p>Where is the pkgsrc
|
||||
documentation?</p></td>
|
||||
@@ -9983,7 +10074,7 @@ do?</a>
|
||||
</tr>
|
||||
<tr class="question">
|
||||
<td align="left" valign="top">
|
||||
<a name="devfaq.too-much-time"></a><a name="idm77657552"></a><p><b>22.9.</b></p>
|
||||
<a name="devfaq.too-much-time"></a><a name="idm74544432"></a><p><b>22.9.</b></p>
|
||||
</td>
|
||||
<td align="left" valign="top"><p>I have a little time to kill. What shall I
|
||||
do?</p></td>
|
||||
|
||||
+193
-116
@@ -64,11 +64,13 @@ I. The pkgsrc user's guide
|
||||
3.3.1. Cygwin
|
||||
3.3.2. Darwin (Mac OS X)
|
||||
3.3.3. FreeBSD
|
||||
3.3.4. Interix
|
||||
3.3.5. IRIX
|
||||
3.3.6. Linux
|
||||
3.3.7. OpenBSD
|
||||
3.3.8. Solaris
|
||||
3.3.4. GNU/kFreeBSD
|
||||
3.3.5. Interix
|
||||
3.3.6. IRIX
|
||||
3.3.7. Linux
|
||||
3.3.8. MirBSD
|
||||
3.3.9. OpenBSD
|
||||
3.3.10. Solaris
|
||||
|
||||
4. Using pkgsrc
|
||||
|
||||
@@ -147,17 +149,18 @@ I. The pkgsrc user's guide
|
||||
9.5. How to resume transfers when fetching distfiles?
|
||||
9.6. How can I install/use modular X.org from pkgsrc?
|
||||
9.7. How to fetch files from behind a firewall
|
||||
9.8. How do I tell make fetch to do passive FTP?
|
||||
9.9. How to fetch all distfiles at once
|
||||
9.10. What does "Don't know how to make /usr/share/tmac/tmac.andoc"
|
||||
9.8. How to fetch files from HTTPS sites
|
||||
9.9. How do I tell make fetch to do passive FTP?
|
||||
9.10. How to fetch all distfiles at once
|
||||
9.11. What does "Don't know how to make /usr/share/tmac/tmac.andoc"
|
||||
mean?
|
||||
9.11. What does "Could not find bsd.own.mk" mean?
|
||||
9.12. Using 'sudo' with pkgsrc
|
||||
9.13. How do I change the location of configuration files?
|
||||
9.14. Automated security checks
|
||||
9.15. Why do some packages ignore my CFLAGS?
|
||||
9.16. A package does not build. What shall I do?
|
||||
9.17. What does "Makefile appears to contain unresolved cvs/rcs/???
|
||||
9.12. What does "Could not find bsd.own.mk" mean?
|
||||
9.13. Using 'sudo' with pkgsrc
|
||||
9.14. How do I change the location of configuration files?
|
||||
9.15. Automated security checks
|
||||
9.16. Why do some packages ignore my CFLAGS?
|
||||
9.17. A package does not build. What shall I do?
|
||||
9.18. What does "Makefile appears to contain unresolved cvs/rcs/???
|
||||
merge conflicts" mean?
|
||||
|
||||
II. The pkgsrc developer's guide
|
||||
@@ -590,11 +593,13 @@ Table 1.1. Platforms supported by pkgsrc
|
||||
|---------------------------------------------+------------------|
|
||||
|Haiku | Sep 2010 |
|
||||
|---------------------------------------------+------------------|
|
||||
|MirBSD | Aug 2011 |
|
||||
|MirBSD | Jan 2011 |
|
||||
|---------------------------------------------+------------------|
|
||||
|Minix3 | Nov 2011 |
|
||||
|---------------------------------------------+------------------|
|
||||
|Cygwin | Mar 2013 |
|
||||
|---------------------------------------------+------------------|
|
||||
|GNU/kFreeBSD | Jul 2013 |
|
||||
+----------------------------------------------------------------+
|
||||
|
||||
|
||||
@@ -716,11 +721,13 @@ Table of Contents
|
||||
3.3.1. Cygwin
|
||||
3.3.2. Darwin (Mac OS X)
|
||||
3.3.3. FreeBSD
|
||||
3.3.4. Interix
|
||||
3.3.5. IRIX
|
||||
3.3.6. Linux
|
||||
3.3.7. OpenBSD
|
||||
3.3.8. Solaris
|
||||
3.3.4. GNU/kFreeBSD
|
||||
3.3.5. Interix
|
||||
3.3.6. IRIX
|
||||
3.3.7. Linux
|
||||
3.3.8. MirBSD
|
||||
3.3.9. OpenBSD
|
||||
3.3.10. Solaris
|
||||
|
||||
4. Using pkgsrc
|
||||
|
||||
@@ -799,16 +806,17 @@ Table of Contents
|
||||
9.5. How to resume transfers when fetching distfiles?
|
||||
9.6. How can I install/use modular X.org from pkgsrc?
|
||||
9.7. How to fetch files from behind a firewall
|
||||
9.8. How do I tell make fetch to do passive FTP?
|
||||
9.9. How to fetch all distfiles at once
|
||||
9.10. What does "Don't know how to make /usr/share/tmac/tmac.andoc" mean?
|
||||
9.11. What does "Could not find bsd.own.mk" mean?
|
||||
9.12. Using 'sudo' with pkgsrc
|
||||
9.13. How do I change the location of configuration files?
|
||||
9.14. Automated security checks
|
||||
9.15. Why do some packages ignore my CFLAGS?
|
||||
9.16. A package does not build. What shall I do?
|
||||
9.17. What does "Makefile appears to contain unresolved cvs/rcs/??? merge
|
||||
9.8. How to fetch files from HTTPS sites
|
||||
9.9. How do I tell make fetch to do passive FTP?
|
||||
9.10. How to fetch all distfiles at once
|
||||
9.11. What does "Don't know how to make /usr/share/tmac/tmac.andoc" mean?
|
||||
9.12. What does "Could not find bsd.own.mk" mean?
|
||||
9.13. Using 'sudo' with pkgsrc
|
||||
9.14. How do I change the location of configuration files?
|
||||
9.15. Automated security checks
|
||||
9.16. Why do some packages ignore my CFLAGS?
|
||||
9.17. A package does not build. What shall I do?
|
||||
9.18. What does "Makefile appears to contain unresolved cvs/rcs/??? merge
|
||||
conflicts" mean?
|
||||
|
||||
Chapter 2. Where to get pkgsrc and how to keep it up-to-date
|
||||
@@ -865,15 +873,15 @@ published at pkgsrc.tar.bz2 and pkgsrc.tar.xz respectively.
|
||||
|
||||
You can fetch the same files using FTP.
|
||||
|
||||
The tar file for the stable branch 2009Q1 is in the directory pkgsrc-2009Q1 and
|
||||
is also called pkgsrc-2009Q1.tar.gz.
|
||||
The tar file for the stable branch 2013Q1 is in the directory pkgsrc-2013Q1 and
|
||||
is also called pkgsrc.tar.gz.
|
||||
|
||||
To download a pkgsrc stable tarball, run:
|
||||
|
||||
$ ftp ftp://ftp.NetBSD.org/pub/pkgsrc/pkgsrc-20xxQy/pkgsrc-20xxQy.tar.gz
|
||||
$ ftp ftp://ftp.NetBSD.org/pub/pkgsrc/pkgsrc-20xxQy/pkgsrc.tar.gz
|
||||
|
||||
Where pkgsrc-20xxQy is the stable branch to be downloaded, for example, "
|
||||
pkgsrc-2009Q1".
|
||||
pkgsrc-2013Q1".
|
||||
|
||||
You can use fetch it also using "wget", "curl", or your web browser.
|
||||
|
||||
@@ -998,11 +1006,13 @@ Table of Contents
|
||||
3.3.1. Cygwin
|
||||
3.3.2. Darwin (Mac OS X)
|
||||
3.3.3. FreeBSD
|
||||
3.3.4. Interix
|
||||
3.3.5. IRIX
|
||||
3.3.6. Linux
|
||||
3.3.7. OpenBSD
|
||||
3.3.8. Solaris
|
||||
3.3.4. GNU/kFreeBSD
|
||||
3.3.5. Interix
|
||||
3.3.6. IRIX
|
||||
3.3.7. Linux
|
||||
3.3.8. MirBSD
|
||||
3.3.9. OpenBSD
|
||||
3.3.10. Solaris
|
||||
|
||||
3.1. Binary distribution
|
||||
|
||||
@@ -1018,7 +1028,7 @@ permissions like setuid are ignored).
|
||||
|
||||
Installing the bootstrap kit from source should be as simple as:
|
||||
|
||||
# env CVS_RSH=ssh cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout pkgsrc
|
||||
# env CVS_RSH=ssh cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P pkgsrc
|
||||
# cd pkgsrc/bootstrap
|
||||
# ./bootstrap
|
||||
|
||||
@@ -1103,7 +1113,14 @@ with the FreeBSD userland tools. There are several steps:
|
||||
3. An example mk.conf file will be placed in /etc/mk.conf.example file when
|
||||
you use the bootstrap script.
|
||||
|
||||
3.3.4. Interix
|
||||
3.3.4. GNU/kFreeBSD
|
||||
|
||||
Debian GNU/kFreeBSD is the only GNU/kFreeBSD distribution now. Debian GNU/
|
||||
kFreeBSD 7.0 or later is tested and supported.
|
||||
|
||||
You should install ncurses (libncurses and libncurses-dev) packages.
|
||||
|
||||
3.3.5. Interix
|
||||
|
||||
Interix is a POSIX-compatible subsystem for the Windows NT kernel, providing a
|
||||
Unix-like environment with a tighter kernel integration than available with
|
||||
@@ -1121,7 +1138,7 @@ and Windows Server 2008 R2 (6.1). As of this writing, the SUA's Interix 6.0
|
||||
(32bit) and 6.1 (64bit) subsystems have been tested. Other versions may work as
|
||||
well. The Interix 5.x subsystem has not yet been tested with pkgsrc.
|
||||
|
||||
3.3.4.1. When installing Interix/SFU
|
||||
3.3.5.1. When installing Interix/SFU
|
||||
|
||||
At an absolute minimum, the following packages must be installed from the
|
||||
Windows Services for Unix 3.5 distribution in order to use pkgsrc:
|
||||
@@ -1165,7 +1182,7 @@ hotfixes note above, the following option can be added to the appropriate
|
||||
will disable DEP completely, which may be a security risk if applications are
|
||||
often run as a user in the Administrators group!)
|
||||
|
||||
3.3.4.2. What to do if Interix/SFU is already installed
|
||||
3.3.5.2. What to do if Interix/SFU is already installed
|
||||
|
||||
If SFU is already installed and you wish to alter these settings to work with
|
||||
pkgsrc, note the following things.
|
||||
@@ -1188,7 +1205,7 @@ pkgsrc, note the following things.
|
||||
|
||||
Set the DWORD value "EnableSetuidBinaries" to 1; then reboot.
|
||||
|
||||
3.3.4.3. Important notes for using pkgsrc
|
||||
3.3.5.3. Important notes for using pkgsrc
|
||||
|
||||
The package manager (either the pkgsrc "su" user, or the user running
|
||||
"pkg_add") must be a member of the local Administrators group. Such a user must
|
||||
@@ -1213,7 +1230,7 @@ adequate emulation in most cases:
|
||||
interix:kP=\E[S:kN=\E[T:kH=\E[U:dc@:DC@:tc=pcansi:
|
||||
|
||||
|
||||
3.3.4.4. Limitations of the Interix platform
|
||||
3.3.5.4. Limitations of the Interix platform
|
||||
|
||||
Though Interix suffices as a familiar and flexible substitute for a full
|
||||
Unix-like platform, it has some drawbacks that should be noted for those
|
||||
@@ -1257,7 +1274,7 @@ desiring to make the most of Interix.
|
||||
make tape drive access possible by using Cygwin as a bridge (similarly to
|
||||
audio bridged via Cygwin's esound server).
|
||||
|
||||
3.3.4.5. Known issues for pkgsrc on Interix
|
||||
3.3.5.5. Known issues for pkgsrc on Interix
|
||||
|
||||
It is not necessary, in general, to have a "root" user on the Windows system;
|
||||
any member of the local Administrators group will suffice. However, some
|
||||
@@ -1273,7 +1290,7 @@ around the issue:
|
||||
# chmod -R g+w $PKG_DBDIR
|
||||
|
||||
|
||||
3.3.5. IRIX
|
||||
3.3.6. IRIX
|
||||
|
||||
You will need a working C compiler, either gcc or SGI's MIPS and MIPSpro
|
||||
compiler (cc/c89). Please set the CC environment variable according to your
|
||||
@@ -1317,7 +1334,7 @@ to make sure that MIPSPro is used, please set your PATH to not include the
|
||||
location of gcc (often /usr/freeware/bin), and (important) pass the
|
||||
'--preserve-path' flag.
|
||||
|
||||
3.3.6. Linux
|
||||
3.3.7. Linux
|
||||
|
||||
Some versions of Linux (for example Debian GNU/Linux) need either libtermcap or
|
||||
libcurses (libncurses). Installing the distributions libncurses-dev package (or
|
||||
@@ -1359,7 +1376,26 @@ linking a C++ shared library and records it, throwing away the -Bstatic and
|
||||
libtool-linked C++ shared libraries will have a runtime dependency on the icc
|
||||
libraries until this is fixed in libtool.
|
||||
|
||||
3.3.7. OpenBSD
|
||||
3.3.8. MirBSD
|
||||
|
||||
pkgsrc has been tested on MirBSD #10-current (2011 and newer). Older versions
|
||||
might also work. Releases before #10 are not supported.
|
||||
|
||||
The package tools of the (older) native ports tree, MirPorts, have the same
|
||||
names as the ones used by pkgsrc. Care should be taken that the right tools are
|
||||
used. When installing packages from source, use the bmake command for pkgsrc
|
||||
and mmake for MirPorts.
|
||||
|
||||
pkgsrc and MirPorts use the same location for the package database, /var/db/
|
||||
pkg. It is strongly recommended to use /usr/pkg/db instead, so that the pkgsrc
|
||||
tree is self-contained. This is also the default setting used in the binary
|
||||
package builds.
|
||||
|
||||
Binary packages for MirBSD/i386 can be found on the pkgsrc ftp server. The
|
||||
bootstrap kit there already contains the pkgin package manager. See the pkgsrc
|
||||
on MirOS page for more details.
|
||||
|
||||
3.3.9. OpenBSD
|
||||
|
||||
OpenBSD 5.1 has been tested and supported, other versions may work.
|
||||
|
||||
@@ -1392,7 +1428,7 @@ with the OpenBSD userland tools. There are several steps:
|
||||
.endif
|
||||
|
||||
|
||||
3.3.8. Solaris
|
||||
3.3.10. Solaris
|
||||
|
||||
Solaris 2.6 through 10 are supported on both x86 and sparc. You will need a
|
||||
working C compiler. Both gcc 4.5.3 and Sun WorkShop 5 have been tested.
|
||||
@@ -1417,7 +1453,7 @@ Whichever compiler you use, please ensure the compiler tools and your $prefix
|
||||
are in your PATH. This includes /usr/ccs/{bin,lib} and e.g. /usr/pkg/
|
||||
{bin,sbin}.
|
||||
|
||||
3.3.8.1. If you are using gcc
|
||||
3.3.10.1. If you are using gcc
|
||||
|
||||
It makes life much simpler if you only use the same gcc consistently for
|
||||
building all packages.
|
||||
@@ -1428,7 +1464,7 @@ gcc used during bootstrapping.
|
||||
|
||||
Binary packages of gcc can be found through http://www.sunfreeware.com/.
|
||||
|
||||
3.3.8.2. If you are using Sun WorkShop
|
||||
3.3.10.2. If you are using Sun WorkShop
|
||||
|
||||
You will need at least the following packages installed (from WorkShop 5.0)
|
||||
|
||||
@@ -1452,7 +1488,7 @@ Note
|
||||
The CPP setting might break some packages that use the C preprocessor for
|
||||
processing things other than C source code.
|
||||
|
||||
3.3.8.3. Building 64-bit binaries with SunPro
|
||||
3.3.10.3. Building 64-bit binaries with SunPro
|
||||
|
||||
To build 64-bit packages, you just need to have the following lines in your
|
||||
mk.conf file:
|
||||
@@ -1465,7 +1501,7 @@ Note
|
||||
This setting has been tested for the SPARC architecture. Intel and AMD machines
|
||||
need some more work.
|
||||
|
||||
3.3.8.4. Common problems
|
||||
3.3.10.4. Common problems
|
||||
|
||||
Sometimes, when using libtool, /bin/ksh crashes with a segmentation fault. The
|
||||
workaround is to use another shell for the configure scripts, for example by
|
||||
@@ -2220,16 +2256,16 @@ be read-only, some other must be writable. Some can be on remote filesystems
|
||||
(such as NFS) and some should be local. Some can be temporary filesystems,
|
||||
others must survive a sudden reboot.
|
||||
|
||||
* 10 GB for the distfiles (read-write, remote, temporary)
|
||||
* 40 GB for the distfiles (read-write, remote, temporary)
|
||||
|
||||
* 10 GB for the binary packages (read-write, remote, permanent)
|
||||
* 30 GB for the binary packages (read-write, remote, permanent)
|
||||
|
||||
* 400 MB for the pkgsrc tree (read-only, remote, permanent)
|
||||
* 1 GB for the pkgsrc tree (read-only, remote, permanent)
|
||||
|
||||
* 5 GB for LOCALBASE (read-write, local, temporary for pbulk, permanent for
|
||||
old-bulk)
|
||||
|
||||
* 5 GB for the log files (read-write, remote, permanent)
|
||||
* 10 GB for the log files (read-write, remote, permanent)
|
||||
|
||||
* 5 GB for temporary files (read-write, local, temporary)
|
||||
|
||||
@@ -2387,11 +2423,11 @@ rebuild them, and they can be used to debug these broken package builds later.
|
||||
|
||||
7.3.5. Disk space requirements
|
||||
|
||||
Currently, roughly the following requirements are valid for NetBSD 2.0/i386:
|
||||
Currently, roughly the following requirements are valid for NetBSD 6.99/amd64:
|
||||
|
||||
* 10 GB - distfiles (NFS ok)
|
||||
* 40 GB - distfiles (NFS ok)
|
||||
|
||||
* 8 GB - full set of all binaries (NFS ok)
|
||||
* 30 GB - full set of all binaries (NFS ok)
|
||||
|
||||
* 5 GB - temp space for compiling (local disk recommended)
|
||||
|
||||
@@ -2440,7 +2476,7 @@ src/etc, be sure the following items are present and properly configured:
|
||||
|
||||
# ln -sf /usr/share/zoneinfo/UTC /usr/sandbox/etc/localtime
|
||||
|
||||
6. /usr/src (system sources, e. g. for sysutils/aperture):
|
||||
6. /usr/src (system sources, rarely used by packages if at all:
|
||||
|
||||
# ln -s ../disk1/cvs .
|
||||
# ln -s cvs/src-2.0 src
|
||||
@@ -2825,16 +2861,17 @@ Table of Contents
|
||||
9.5. How to resume transfers when fetching distfiles?
|
||||
9.6. How can I install/use modular X.org from pkgsrc?
|
||||
9.7. How to fetch files from behind a firewall
|
||||
9.8. How do I tell make fetch to do passive FTP?
|
||||
9.9. How to fetch all distfiles at once
|
||||
9.10. What does "Don't know how to make /usr/share/tmac/tmac.andoc" mean?
|
||||
9.11. What does "Could not find bsd.own.mk" mean?
|
||||
9.12. Using 'sudo' with pkgsrc
|
||||
9.13. How do I change the location of configuration files?
|
||||
9.14. Automated security checks
|
||||
9.15. Why do some packages ignore my CFLAGS?
|
||||
9.16. A package does not build. What shall I do?
|
||||
9.17. What does "Makefile appears to contain unresolved cvs/rcs/??? merge
|
||||
9.8. How to fetch files from HTTPS sites
|
||||
9.9. How do I tell make fetch to do passive FTP?
|
||||
9.10. How to fetch all distfiles at once
|
||||
9.11. What does "Don't know how to make /usr/share/tmac/tmac.andoc" mean?
|
||||
9.12. What does "Could not find bsd.own.mk" mean?
|
||||
9.13. Using 'sudo' with pkgsrc
|
||||
9.14. How do I change the location of configuration files?
|
||||
9.15. Automated security checks
|
||||
9.16. Why do some packages ignore my CFLAGS?
|
||||
9.17. A package does not build. What shall I do?
|
||||
9.18. What does "Makefile appears to contain unresolved cvs/rcs/??? merge
|
||||
conflicts" mean?
|
||||
|
||||
This section contains hints, tips & tricks on special things in pkgsrc that we
|
||||
@@ -2904,13 +2941,14 @@ Utilities used by pkgsrc (not automatically installed):
|
||||
distfiles from multiple locations. It currently supports the following
|
||||
methods: multiple CD-ROMs and network FTP/HTTP connections.
|
||||
|
||||
* pkgtools/xpkgwedge: Put X11 packages someplace else (enabled by default).
|
||||
|
||||
* devel/cpuflags: Determine the best compiler flags to optimise code for your
|
||||
current CPU and compiler.
|
||||
|
||||
Utilities for keeping track of installed packages, being up to date, etc:
|
||||
|
||||
* pkgtools/pkgin: A package update tool similar to apt(1). Download, install,
|
||||
and upgrade binary packages easily.
|
||||
|
||||
* pkgtools/pkg_chk: Reports on packages whose installed versions do not match
|
||||
the latest pkgsrc entries.
|
||||
|
||||
@@ -2932,9 +2970,7 @@ Utilities for people maintaining or creating individual packages:
|
||||
* pkgtools/pkgdiff: Automate making and maintaining patches for a package
|
||||
(includes pkgdiff, pkgvi, mkpatches, etc.).
|
||||
|
||||
* pkgtools/rpm2pkg, pkgtools/url2pkg: Aids in converting to pkgsrc.
|
||||
|
||||
* pkgtools/gensolpkg: Convert pkgsrc to a Solaris package.
|
||||
* pkgtools/url2pkg: Aids in converting to pkgsrc.
|
||||
|
||||
Utilities for people maintaining pkgsrc (or: more obscure pkg utilities)
|
||||
|
||||
@@ -2966,12 +3002,12 @@ By default, resuming transfers in pkgsrc is disabled, but you can enable this
|
||||
feature by adding the option PKG_RESUME_TRANSFERS=YES into mk.conf. If, during
|
||||
a fetch step, an incomplete distfile is found, pkgsrc will try to resume it.
|
||||
|
||||
You can also use a different program than the default ftp(1) by changing the
|
||||
FETCH_USING variable. You can specify the program by using of ftp, fetch, wget
|
||||
or curl. Alternatively, fetching can be disabled by using the value manual. A
|
||||
value of custom disables the system defaults and dependency tracking for the
|
||||
fetch program. In that case you have to provide FETCH_CMD, FETCH_BEFORE_ARGS,
|
||||
FETCH_RESUME_ARGS, FETCH_OUTPUT_ARGS, FETCH_AFTER_ARGS.
|
||||
You can also use a different program than the platform default program by
|
||||
changing the FETCH_USING variable. You can specify the program by using of ftp,
|
||||
fetch, wget or curl. Alternatively, fetching can be disabled by using the value
|
||||
manual. A value of custom disables the system defaults and dependency tracking
|
||||
for the fetch program. In that case you have to provide FETCH_CMD,
|
||||
FETCH_BEFORE_ARGS, FETCH_RESUME_ARGS, FETCH_OUTPUT_ARGS, FETCH_AFTER_ARGS.
|
||||
|
||||
For example, if you want to use wget to download, you'll have to use something
|
||||
like:
|
||||
@@ -3001,7 +3037,19 @@ the proxy port number. So the proxy environment variables are:
|
||||
ftp_proxy=ftp://orpheus.amdahl.com:80/
|
||||
http_proxy=http://orpheus.amdahl.com:80/
|
||||
|
||||
9.8. How do I tell make fetch to do passive FTP?
|
||||
9.8. How to fetch files from HTTPS sites
|
||||
|
||||
Some fetch tools are not prepared to support HTTPS by default (for example, the
|
||||
one in NetBSD 6.0), or the one installed by the pkgsrc bootstrap (to avoid an
|
||||
openssl dependency that low in the dependency graph).
|
||||
|
||||
Usually you won't notice, because distribution files are mirrored weekly to "
|
||||
ftp.NetBSD.org", but that might not be often enough if you are following
|
||||
pkgsrc-current. In that case, set FETCH_USING in your mk.conf file to "curl" or
|
||||
"wget", which are both compiled with HTTPS support by default. Of course, these
|
||||
tools need to be installed before you can use them this way.
|
||||
|
||||
9.9. How do I tell make fetch to do passive FTP?
|
||||
|
||||
This depends on which utility is used to retrieve distfiles. From bsd.pkg.mk,
|
||||
FETCH_CMD is assigned the first available command from the following list:
|
||||
@@ -3018,7 +3066,7 @@ following to your mk.conf file: PASSIVE_FETCH=1.
|
||||
Having that option present will prevent /usr/bin/ftp from falling back to
|
||||
active transfers.
|
||||
|
||||
9.9. How to fetch all distfiles at once
|
||||
9.10. How to fetch all distfiles at once
|
||||
|
||||
You would like to download all the distfiles in a single batch from work or
|
||||
university, where you can't run a make fetch. There is an archive of distfiles
|
||||
@@ -3053,7 +3101,7 @@ everything by running:
|
||||
|
||||
% make fetch NO_SKIP=yes
|
||||
|
||||
9.10. What does "Don't know how to make /usr/share/tmac/tmac.andoc" mean?
|
||||
9.11. What does "Don't know how to make /usr/share/tmac/tmac.andoc" mean?
|
||||
|
||||
When compiling the pkgtools/pkg_install package, you get the error from make
|
||||
that it doesn't know how to make /usr/share/tmac/tmac.andoc? This indicates
|
||||
@@ -3063,7 +3111,7 @@ distribution on your machine. It is recommended to do that to format man pages.
|
||||
In the case of the pkgtools/pkg_install package, you can get away with setting
|
||||
NOMAN=YES either in the environment or in mk.conf.
|
||||
|
||||
9.11. What does "Could not find bsd.own.mk" mean?
|
||||
9.12. What does "Could not find bsd.own.mk" mean?
|
||||
|
||||
You didn't install the compiler set, comp.tgz, when you installed your NetBSD
|
||||
machine. Please get and install it, by extracting it in /:
|
||||
@@ -3074,7 +3122,7 @@ machine. Please get and install it, by extracting it in /:
|
||||
comp.tgz is part of every NetBSD release. Get the one that corresponds to your
|
||||
release (determine via uname -r).
|
||||
|
||||
9.12. Using 'sudo' with pkgsrc
|
||||
9.13. Using 'sudo' with pkgsrc
|
||||
|
||||
When installing packages as non-root user and using the just-in-time su(1)
|
||||
feature of pkgsrc, it can become annoying to type in the root password for each
|
||||
@@ -3087,7 +3135,7 @@ mk.conf, somewhere after the definition of the LOCALBASE variable:
|
||||
SU_CMD= ${LOCALBASE}/bin/sudo /bin/sh -c
|
||||
.endif
|
||||
|
||||
9.13. How do I change the location of configuration files?
|
||||
9.14. How do I change the location of configuration files?
|
||||
|
||||
As the system administrator, you can choose where configuration files are
|
||||
installed. The default settings make all these files go into ${PREFIX}/etc or
|
||||
@@ -3107,7 +3155,7 @@ of PKGBASE.
|
||||
Note that after changing these settings, you must rebuild and reinstall any
|
||||
affected packages.
|
||||
|
||||
9.14. Automated security checks
|
||||
9.15. Automated security checks
|
||||
|
||||
Please be aware that there can often be bugs in third-party software, and some
|
||||
of these bugs can leave a machine vulnerable to exploitation by attackers. In
|
||||
@@ -3136,7 +3184,7 @@ If this package is installed, pkgsrc builds will use it to perform a security
|
||||
check before building any package. See Section 5.2, "Variables affecting the
|
||||
build process" for ways to control this check.
|
||||
|
||||
9.15. Why do some packages ignore my CFLAGS?
|
||||
9.16. Why do some packages ignore my CFLAGS?
|
||||
|
||||
When you add your own preferences to the CFLAGS variable in your mk.conf, these
|
||||
flags are passed in environment variables to the ./configure scripts and to
|
||||
@@ -3150,7 +3198,7 @@ Usually you can remove these lines. But be aware that some "smart" programmers
|
||||
write so bad code that it only works for the specific combination of CFLAGS
|
||||
they have chosen.
|
||||
|
||||
9.16. A package does not build. What shall I do?
|
||||
9.17. A package does not build. What shall I do?
|
||||
|
||||
1. Make sure that your copy of pkgsrc is consistent. A case that occurs often
|
||||
is that people only update pkgsrc in parts, because of performance reasons.
|
||||
@@ -3166,7 +3214,7 @@ they have chosen.
|
||||
|
||||
4. If the problem still exists, write a mail to the pkgsrc-users mailing list.
|
||||
|
||||
9.17. What does "Makefile appears to contain unresolved cvs/rcs/??? merge
|
||||
9.18. What does "Makefile appears to contain unresolved cvs/rcs/??? merge
|
||||
conflicts" mean?
|
||||
|
||||
You have modified a file from pkgsrc, and someone else has modified that same
|
||||
@@ -3525,17 +3573,11 @@ numerous settings that are typical of KDE packages.
|
||||
Python modules and programs packages are easily created using a set of
|
||||
predefined variables.
|
||||
|
||||
Most Python packages use either "distutils" or easy-setup ("eggs"). If the
|
||||
software uses "distutils", set the PYDISTUTILSPKG variable to "yes" so pkgsrc
|
||||
will make use of this framework. "distutils" uses a script called setup.py, if
|
||||
the "distutils" driver is not called setup.py, set the PYSETUP variable to the
|
||||
name of the script.
|
||||
If some Python versions are not supported by the software, set the
|
||||
PYTHON_VERSIONS_INCOMPATIBLE variable to the Python versions that are not
|
||||
supported, e.g.
|
||||
|
||||
If the default Python versions are not supported by the software, set the
|
||||
PYTHON_VERSIONS_ACCEPTED variable to the Python versions the software is known
|
||||
to work with, from the most recent to the older one, e.g.
|
||||
|
||||
PYTHON_VERSIONS_ACCEPTED= 31 27 26
|
||||
PYTHON_VERSIONS_INCOMPATIBLE= 26
|
||||
|
||||
If the packaged software is a Python module, include "../../lang/python/
|
||||
extension.mk". In this case, the package directory should be called "
|
||||
@@ -3544,18 +3586,32 @@ py-software" and PKGNAME should be set to "${PYPKGPREFIX}-${DISTNAME}", e.g.
|
||||
DISTNAME= foopymodule-1.2.10
|
||||
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
||||
|
||||
If it is an application, also include "../../lang/python/application.mk" before
|
||||
"extension.mk".
|
||||
|
||||
If the packaged software, either it is an application or a module, is
|
||||
egg-aware, you only need to include "../../lang/python/egg.mk".
|
||||
|
||||
In order to correctly set the path to the Python interpreter, use the
|
||||
REPLACE_PYTHON variable and set it to the list of files (paths relative to
|
||||
WRKSRC) that must be corrected. For example :
|
||||
If it is an application, include "../../lang/python/application.mk". In order
|
||||
to correctly set the path to the Python interpreter, use the REPLACE_PYTHON
|
||||
variable and set it to the list of files (paths relative to WRKSRC) that must
|
||||
be corrected. For example:
|
||||
|
||||
REPLACE_PYTHON= *.py
|
||||
|
||||
Most Python packages use either "distutils" or easy-setup ("eggs"). If the
|
||||
software uses "distutils", include "../../lang/python/distutils.mk". so pkgsrc
|
||||
will use this framework. "distutils" uses a script called setup.py, if the "
|
||||
distutils" driver is not called setup.py, set the PYSETUP variable to the name
|
||||
of the script.
|
||||
|
||||
Otherwise, if the packaged software is egg-aware, you only need to include "..
|
||||
/../lang/python/egg.mk".
|
||||
|
||||
Some Python modules have separate distributions for Python-2.x and Python-3.x
|
||||
support. In pkgsrc this is handled by the versioned_dependencies.mk file. Set
|
||||
PYTHON_VERSIONED_DEPENDENCIES to the list of packages that should be depended
|
||||
upon and include "../../lang/python/versioned_dependencies.mk", then the pkgsrc
|
||||
infrastructure will depend on the appropriate package version. For example:
|
||||
|
||||
PYTHON_VERSIONED_DEPENDENCIES=dateutil dns
|
||||
|
||||
Look inside versioned_dependencies.mk for a list of supported packages.
|
||||
|
||||
10.2. Examples
|
||||
|
||||
10.2.1. How the www/nvu package came into pkgsrc
|
||||
@@ -3706,7 +3762,7 @@ it would have looked for pkg-config instead of gtk-config. So I changed the x11
|
||||
/gtk2 to x11/gtk in the package Makefile, and tried again.
|
||||
|
||||
[...]
|
||||
cc -o xpidl.o -c -DOSTYPE=\"NetBSD3\" -DOSARCH=\"NetBSD\" -I../../../dist/include/xpcom -I../../../dist/include -I/tmp/roland/pkgsrc/www/nvu/work.bacc/mozilla/dist/include/nspr -I/usr/X11R6/include -fPIC -DPIC -I/home/roland/pkg/include -I/usr/include -I/usr/X11R6/include -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -pedantic -O2 -I/home/roland/pkg/include -I/usr/include -Dunix -pthread -pipe -DDEBUG -D_DEBUG -DDEBUG_roland -DTRACING -g -I/home/roland/pkg/include/glib/glib-1.2 -I/home/roland/pkg/lib/glib/include -I/usr/pkg/include/orbit-1.0 -I/home/roland/pkg/include -I/usr/include -I/usr/X11R6/include -include ../../../mozilla-config.h -DMOZILLA_CLIENT -Wp,-MD,.deps/xpidl.pp xpidl.c
|
||||
cc -o xpidl.o -c -DOSTYPE=\"NetBSD3\" -DOSARCH=\"NetBSD\" [...]
|
||||
In file included from xpidl.c:42:
|
||||
xpidl.h:53:24: libIDL/IDL.h: No such file or directory
|
||||
In file included from xpidl.c:42:
|
||||
@@ -4724,6 +4780,13 @@ issues:
|
||||
MOTIF_TYPE to "dt", "lesstif", "motif" or "openmotif" to choose which Motif
|
||||
version will be used.
|
||||
|
||||
* readline.buildlink3.mk checks for a system-provided GNU readline or
|
||||
editline (libedit) installation, or adds a dependency on devel/readline,
|
||||
devel/editline. The user can set READLINE_DEFAULT to choose readline
|
||||
implementation. If your package really needs GNU readline library, its
|
||||
Makefile should include devel/readline/buildlink3.mk instead of
|
||||
readline.buildlink3.mk.
|
||||
|
||||
* oss.buildlink3.mk defines several variables that may be used by packages
|
||||
that use the Open Sound System (OSS) API.
|
||||
|
||||
@@ -6633,6 +6696,7 @@ variable with "=" instead of "+=". The licenses accepted by default are:
|
||||
artistic artistic-2.0
|
||||
boost-license
|
||||
cc-by-sa-v3.0
|
||||
cc0-1.0-universal
|
||||
cddl-1.0
|
||||
cpl-1.0
|
||||
epl-v1.0
|
||||
@@ -6869,6 +6933,16 @@ version numbers recognized by pkg_info(1).
|
||||
Section 19.1.10, "Handling packages with security problems" for more
|
||||
information.
|
||||
|
||||
7. If the package depends on either one of two (or more) packages, specify the
|
||||
"pre-req-package-name" as a comma-separated list between curly braces.
|
||||
|
||||
As an example, take a package that depends on the Perl "version" module,
|
||||
which has been part of Perl itself since version 5.10.0. This either/or
|
||||
dependency is expressed as:
|
||||
|
||||
DEPENDS+= {perl>=5.10.0,p5-version-[0-9]*}:../../devel/p5-version
|
||||
|
||||
|
||||
If your package needs files from another package to build, add the relevant
|
||||
distribution files to DISTFILES, so they will be extracted automatically. See
|
||||
the print/ghostscript package for an example. (It relies on the jpeg sources
|
||||
@@ -7662,7 +7736,7 @@ take some extra steps to make sure they get registered in the database:
|
||||
manually patch the package.
|
||||
|
||||
3. Check the PLIST and remove any entries under the etc/gconf directory, as
|
||||
they will be handled automatically. See Section 9.13, "How do I change the
|
||||
they will be handled automatically. See Section 9.14, "How do I change the
|
||||
location of configuration files?" for more information.
|
||||
|
||||
4. Define the GCONF_SCHEMAS variable in your Makefile with a list of all
|
||||
@@ -8023,7 +8097,7 @@ or package moves or removals, set the CTYPE variable on the command line to
|
||||
your local login name is not the same as your NetBSD login name. The target
|
||||
also automatically removes possibly existing entries for the package in the
|
||||
TODO file. Don't forget to commit the changes, e.g. by using make
|
||||
changes-entry-commit! If you are not using a checkout directly from
|
||||
commit-changes-entry! If you are not using a checkout directly from
|
||||
cvs.NetBSD.org, but e.g. a local copy of the repository, you can set
|
||||
USE_NETBSD_REPO=yes. This makes the cvs commands use the main repository.
|
||||
|
||||
@@ -8047,6 +8121,9 @@ $ cvs commit
|
||||
$ cd ..
|
||||
$ vi Makefile # add SUBDIRS+=pkgname line
|
||||
$ cvs commit Makefile
|
||||
$ cd pkgname
|
||||
$ make CTYPE=Added changes-entry
|
||||
$ make commit-changes-entry
|
||||
|
||||
The commit message of the initial import should include part of the DESCR file,
|
||||
so people reading the mailing lists know what the package is/does.
|
||||
|
||||
Reference in New Issue
Block a user