Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jan 2025 23:29:28 +0100
From:      ft <ml@ft-c.de>
To:        freebsd-stable@freebsd.org
Subject:   Re: jail portupgrade different OS Version? --- solved
Message-ID:  <ec1f92f2c64e10255bef33b6ccb3c91031d1c284.camel@ft-c.de>
In-Reply-To: <1885815318.14331.1737283790527@localhost>
References:  <1885815318.14331.1737283790527@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,=20

the solution is:
export UNAME_r=3D13.1-RELEASE-p3
before portupgrade

Franz

On Sun, 2025-01-19 at 11:49 +0100, Ronald Klop wrote:
> The jail sees the version of the real kernel.
>=20
> You can fake this version by doing:
> export UNAME_r=3D13.1
> before running portupgrade
>=20
> You can also set OSRELEASE=3D13 in jail.conf.=C2=A0
>=20
> From the top of my head, so exact syntax might be different.=C2=A0
>=20
> Regards,
> Ronald.=C2=A0
>=20
> Van: ft <ml@ft-c.de>
> Datum: 18 januari 2025 19:33
> Aan: freebsd-stable@freebsd.org
> Onderwerp: jail portupgrade different OS Version?
> > Hello,=20
> >=20
> > last week I created new jails.=C2=A0
> >=20
> > $ pkg update ; pkg install=C2=A0...
> > works fine inside jails.
> >=20
> > Now it is not possible to start portupgrade inside jails.=C2=A0
> > Before I have done: portsnap fetch update
> >=20
> > Here are the error-message:
> >=20
> > on host:
> > $=C2=A0 freebsd-version
> > 14.1-RELEASE-p3
> >=20
> > $=C2=A0 uname -a
> > FreeBSD ftc 14.1-RELEASE-p3 FreeBSD 14.1-RELEASE-p3 GENERIC amd64
> >=20
> > in jail:
> > $=C2=A0 freebsd-version
> > 13.1-RELEASE
> >=20
> > $=C2=A0 uname -a
> > FreeBSD jail_pg01 14.1-RELEASE FreeBSD 14.1-RELEASE-p3 GENERIC amd64
> >=20
> > in jail I get an error:=20
> > $=C2=A0 portupgrade -h
> > make: "/usr/ports/Mk/bsd.port.mk" line 1191: UNAME_r (14.1-RELEASE) and
> > OSVERSION (1301000) do not agree on major version number.
> > /usr/local/lib/ruby/site_ruby/3.2/pkgtools/portsdb.rb:237:in `join': no
> > implicit
> > conversion of nil into String (TypeError)
> > @index_file =3D ENV['PORTS_INDEX'] || File.join(indexdir, indexfile ||
> > 'INDEX')
> > from /usr/local/lib/ruby/site_ruby/3.2/pkgtools/portsdb.rb:237:in
> > `index_file'
> > from /usr/local/lib/ruby/site_ruby/3.2/pkgtools/portsdb.rb:247:in `db_d=
ir=3D'
> > from /usr/local/lib/ruby/site_ruby/3.2/pkgtools/portsdb.rb:167:in `setu=
p'
> > from /usr/local/lib/ruby/site_ruby/3.2/pkgtools/pkgtools.rb:242:in
> > `init_pkgtools_global'
> > from /usr/local/sbin/portupgrade:531:in `block in main'
> > from /usr/local/lib/ruby/3.2/optparse.rb:1153:in `initialize'
> > from /usr/local/sbin/portupgrade:238:in `new'
> > from /usr/local/sbin/portupgrade:238:in `main'
> > from /usr/local/sbin/portupgrade:2380:in `'
> >=20
> > What should I do?
> >=20
> > Franz
> >=20
> >=20
> >=20
> >=20
>=20
>=20
>=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ec1f92f2c64e10255bef33b6ccb3c91031d1c284.camel>