-
Notifications
You must be signed in to change notification settings - Fork 162
using_testport
Brad Davis edited this page Jan 21, 2015
·
2 revisions
Install poudriere on the build host. This should be newer or the same version of all the target machines. Cross-building is supported with an amd64 host for i386 jails.
pkg install poudriere
Create a default configuration in the ${LOCALBASE}/etc/poudriere.conf
configuration file:
BASEFS=/poudriere
# Only 1 of the 2 following options is needed
# For ZFS:
ZPOOL=myzpool
# For NO ZFS:
NO_ZFS=yes
FREEBSD_HOST=ftp://ftp.freebsd.org
POUDRIERE_DATA=/poudriere_data
RESOLV_CONF=/etc/resolv.conf
DISTFILES_CACHE=/usr/ports/distfiles
poudriere is now ready to be used.
Create jails for the target versions you want to build packages for:
poudriere jail -c -j 91amd64 -v 9.1-RELEASE -a amd64
poudriere jail -c -j 10i386 -v head -a i386 -m svn
Then create a ports tree to be used by poudriere:
poudriere ports -c -m svn+https
This will create a ports tree that can be easily modified to create patches for submitting into The Ports Collection.
To modify a port, locate the ports tree by running:
poudriere ports -l
Once the location of the ports tree, modify the ports tree as needed and then launch a test by running the following:
poudriere testport -j <jailname> -o <category>/<portname>
See the help page for other options by running:
poudriere testport help