D
Deleted member 69948
Guest
Do you need to create a port first and then make a package from that then install it? Is that the correct procedure? Are you supposed to use Poudriere: https://docs.freebsd.org/en/books/handbook/ports/#ports-poudriere Where exactly in these instructions does it show where to supply the source code? Let's go through the steps listed on this page:
1. Poudriere is installed using the ports-mgmt/poudriere package or port. The installation includes a sample configuration file /usr/local/etc/poudriere.conf.sample. Copy this file to /usr/local/etc/poudriere.conf. Edit the copied file to suit the local configuration.
Okay, so Poudriere is installed and configured.
2. After configuration, initialize poudriere so that it installs a jail with the required FreeBSD tree and a ports tree. Specify a name for the jail using -j and the FreeBSD version with -v. On systems running FreeBSD/amd64, the architecture can be set with -a to either i386 or amd64. The default is the architecture shown by uname.
Okay, so we have created a jail with a FreeBSD tree and a ports tree. So far so good.
3. The basic configuration shown here puts a single jail-, port-, and set-specific make.conf in /usr/local/etc/poudriere.d. The filename in this example is created by combining the jail name, port name, and set name: 11amd64-local-workstation-make.conf. The system make.conf and this new file are combined at build time to create the make.conf used by the build jail.
Packages to be built are entered in 11amd64-local-workstation-pkglist:
Okay, so now we specify which packages to build in the .conf file. Does the source code go in these directories? Because it doesn't say that.
4. Options and dependencies for the specified ports are configured:
Options and dependencies are configured. Okay.
5. Finally, packages are built and a package repository is created:
Great, but where is the source code? Is it put in those directories in step 3? Do these instructions take you from source code to installable package? And the only thing I'm not understanding is where to put the source code?
1. Poudriere is installed using the ports-mgmt/poudriere package or port. The installation includes a sample configuration file /usr/local/etc/poudriere.conf.sample. Copy this file to /usr/local/etc/poudriere.conf. Edit the copied file to suit the local configuration.
Okay, so Poudriere is installed and configured.
2. After configuration, initialize poudriere so that it installs a jail with the required FreeBSD tree and a ports tree. Specify a name for the jail using -j and the FreeBSD version with -v. On systems running FreeBSD/amd64, the architecture can be set with -a to either i386 or amd64. The default is the architecture shown by uname.
Okay, so we have created a jail with a FreeBSD tree and a ports tree. So far so good.
3. The basic configuration shown here puts a single jail-, port-, and set-specific make.conf in /usr/local/etc/poudriere.d. The filename in this example is created by combining the jail name, port name, and set name: 11amd64-local-workstation-make.conf. The system make.conf and this new file are combined at build time to create the make.conf used by the build jail.
Packages to be built are entered in 11amd64-local-workstation-pkglist:
editors/emacs
devel/git
ports-mgmt/pkg
...
Okay, so now we specify which packages to build in the .conf file. Does the source code go in these directories? Because it doesn't say that.
4. Options and dependencies for the specified ports are configured:
# poudriere options -j 11amd64 -p local -z workstation -f 11amd64-local-workstation-pkglist
Options and dependencies are configured. Okay.
5. Finally, packages are built and a package repository is created:
# poudriere bulk -j 11amd64 -p local -z workstation -f 11amd64-local-workstation-pkglist
Great, but where is the source code? Is it put in those directories in step 3? Do these instructions take you from source code to installable package? And the only thing I'm not understanding is where to put the source code?
Last edited by a moderator: