Building ports in a jail with different host version.

Greetings!
My English is not very good, excuse me if I said something wrong...

I have Raspberry Pi 5 with FreeBSD 14.3-STABLE and jail with FreeBSD 13.2-RELEASE-p10
I need to build some ports in this jail, but I'm running into a weird problem...
By first, I tried to set variable "UNAME_r" to 13.2-RELEASE-p10 for allow ports to build.
Second, I set parameter "osrelease" in jail.conf
But both solutions led to a strange result: in perl, all variables defining an osrelease contain quotes, and Perl (or make?) treats them as part of a variable.

For example: The file /usr/local/lib/perl5/5.36/mach/Errno.pm contains the following lines:
Perl:
"$Config{'archname'}-$Config{'osvers'}" eq
"arm64-freebsd-thread-multi-"13.2-release-p10"" or
        die "Errno architecture (arm64-freebsd-thread-multi-"13.2-release-p10") does not match executable architecture ($Config{'archname'}-$Config{'osvers'})";

On the host system same strings looks like:
Perl:
"$Config{'archname'}-$Config{'osvers'}" eq
"arm64-freebsd-thread-multi-14.3-stable" or
        die "Errno architecture (arm64-freebsd-thread-multi-14.3-stable) does not match executable architecture ($Config{'archname'}-$Config{'osvers'})";

I'm stuck, googling this problem but can't find any clue about such behavior...
How can I remove quotes from variable or tell to perl (or make?) to ignore them...

I tried to install FreeBSD 13.2 to my Raspberry Pi 5, but this system can't detect nvme drive and i was forced to install freebsd 14... But I need to build ports exactly for 13.2, I use my Raspberry Pi 5 as build machine...

Thanks in advance!
 
jexec(8) into the jail, then build the ports.
Tried to run with "jexec 5 /bin/csh", and then build perl. Unfortunately, same result - in resulting files all variables with osrelease contains extra quotes. And when it's time to build autoconf, make fails because perl library functions contains extra quotes... Can't figure out why such happening... Never seen such things before.
:-/

P.S.
While my post is awaiting moderator confirmation, I finally found the reason! This is my unfortunate mistake.
Yesterday I tried to solve problem with different system versions on jail and on host. And I set variable UNAME_r in /etc/make.conf as UNAME_r="13.2-RELEASE-p10". Afterwards I re-read jail manual more carefully and found "osrelease" parameter, but completely forgot about make.conf.
Please forgive me for disturbing you unnecessarily.
 
Back
Top