Solved Poudriere newbie about default perl version switch

Hi All

I'm using ports system build from source and studying ports-mgmt/poudriere and replace from ports-mgmt/portmaster🐱
Cast study and got confusing about default perl version switch.

Section of /usr/ports/UPDATING
Code:
20231017:
  AFFECTS: users of lang/perl5*
  AUTHOR: delphij@FreeBSD.org

  The default Perl version has been switched to Perl 5.36.  If you are using
  binary packages to upgrade your system, you do not have anything to do, pkg
......
The section explained switching using portupgrade and portmaster in base system.
Confusing..🤔
  1. I have no idea how to switching in jail environment of ports-mgmt/poudriere
  2. Install all of dependence ports into base system.
Thanks for any suggestions/documentation 😸
 
Poudriere picks up the default by itself. It starts pulling in the new Perl and invalidates all the previous dependencies. That could mean a whole slew of package rebuilds (anything that starts with p5 and whatever depends on those). When running a pkg upgrade you'll see these packages get replaced, a pkg autoremove will get rid of installed packages that are no longer required. It's been a smooth ride on my systems like this.
 
Poudriere picks up the default by itself. It starts pulling in the new Perl and invalidates all the previous dependencies. That could mean a whole slew of package rebuilds (anything that starts with p5 and whatever depends on those). When running a pkg upgrade you'll see these packages get replaced, a pkg autoremove will get rid of installed packages that are no longer required. It's been a smooth ride on my systems like this.
Thanks bvdw78
It take sample ad easily 👍
 
The default is set in ${PORTS}/Mk/bsd.default-versions.mk, you can overrule that default by setting DEFAULT_VERSIONS in make.conf. Poudriere has its own set of make.conf files (it ignores the 'system' /etc/make.conf). You don't have to do anything if you just want to go with the flow.

Code:
   Create optional make.conf
     You can also specify a global make.conf which will be used for all the
     jails.  Any of the following are allowed and will all be used in the
     order shown:

           /usr/local/etc/poudriere.d/make.conf
           /usr/local/etc/poudriere.d/<setname>-make.conf
           /usr/local/etc/poudriere.d/<tree>-make.conf
           /usr/local/etc/poudriere.d/<jailname>-make.conf
           /usr/local/etc/poudriere.d/<tree>-<setname>-make.conf
           /usr/local/etc/poudriere.d/<jailname>-<tree>-make.conf
           /usr/local/etc/poudriere.d/<jailname>-<setname>-make.conf
           /usr/local/etc/poudriere.d/<jailname>-<tree>-<setname>-make.conf
           /usr/local/etc/poudriere.d/hooks/plugins/<plugin>/make.conf
See poudriere(8).
 
The default is set in ${PORTS}/Mk/bsd.default-versions.mk, you can overrule that default by setting DEFAULT_VERSIONS in make.conf. Poudriere has its own set of make.conf files (it ignores the 'system' /etc/make.conf). You don't have to do anything if you just want to go with the flow.

Code:
   Create optional make.conf
     You can also specify a global make.conf which will be used for all the
     jails.  Any of the following are allowed and will all be used in the
     order shown:

           /usr/local/etc/poudriere.d/make.conf
           /usr/local/etc/poudriere.d/<setname>-make.conf
           /usr/local/etc/poudriere.d/<tree>-make.conf
           /usr/local/etc/poudriere.d/<jailname>-make.conf
           /usr/local/etc/poudriere.d/<tree>-<setname>-make.conf
           /usr/local/etc/poudriere.d/<jailname>-<tree>-make.conf
           /usr/local/etc/poudriere.d/<jailname>-<setname>-make.conf
           /usr/local/etc/poudriere.d/<jailname>-<tree>-<setname>-make.conf
           /usr/local/etc/poudriere.d/hooks/plugins/<plugin>/make.conf
See poudriere(8).
Hi SirDice
Thanks your detail explanation🤝👍

Study stage currently using system make.conf, src-env.conf and src.conf right now as follows 🐱
Code:
# ll /usr/local/etc/poudriere.d/
-rw-r--r--  1 root wheel 347  8月 25 14:07 base.pkglist
drwxr-xr-x  6 root wheel   6  8月 25 14:07 basePortsTree-jail_ftpd-options/
drwxr-xr-x  2 root wheel   4  7月 26 00:57 hooks/
-rw-r--r--  1 root wheel  26  8月 25 14:07 jail_common.pkglist
-rw-r--r--  1 root wheel  11  8月 25 14:07 jail_ftpd.pkglist
-rw-r--r--  1 root wheel  33  8月 25 14:07 jail_httpd.pkglist
-rw-r--r--  1 root wheel  25  8月 25 14:07 jail_sqld.pkglist
drwxr-xr-x  2 root wheel   2  8月 25 15:57 jails/
lrwxr-xr-x  1 root wheel  14  8月 25 14:07 make.conf@ -> /etc/make.conf
drwxr-xr-x  2 root wheel   2  8月 25 15:57 ports/
lrwxr-xr-x  1 root wheel  17  8月 25 14:07 src-env.conf@ -> /etc/src-env.conf
lrwxr-xr-x  1 root wheel  13  8月 25 14:07 src.conf@ -> /etc/src.conf
 
Back
Top