Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Dec 2020 11:10:57 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: armv7 chroot on aarch64 (at least): various packages report lua script failure but seemed to install
Message-ID:  <384D1B07-A1C7-4912-8043-25B3F4528880@yahoo.com>
In-Reply-To: <C68837D4-004D-4752-BD2F-EC254A6B72EF@yahoo.com>
References:  <C68837D4-004D-4752-BD2F-EC254A6B72EF@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On 2020-Dec-14, at 13:09, Mark Millard <marklmi@yahoo.com> wrote:

> On a aarch64 system but chroot'ed to a armv7 directory tree I got the =
following going from pkg 1.14.5 to 1.15.10 :
>=20
> # chroot /usr/obj/DESTDIRs/clang-armv7-on-aarch64/
> . . .
> [1/1] Installing pkg-1.15.10...
> Extracting pkg-1.15.10: 100%
> pkg: Failed to execute lua script: [string "args =3D {}..."]:11: =
attempt to call a nil value (field 'stat')
> pkg: lua script failed
>=20
> The context has the likes of:
>=20
> # ls -ldT /dev/null
> crw-rw-rw-  1 root  wheel  0x19 Dec 14 20:20:03 2020 /dev/null
>=20
> Despite the "failed" notices, afterwards pkg reported:
>=20
> # pkg -v
> 1.15.10
>=20
> I'm unsure what to make of this combination of things. I do not know =
what other types of contexts get similar results.
>=20
>=20
> Context details . . .
>=20
> I had used:
>=20
> # pkg install -f =
/usr/local/poudriere/data/packages/FBSDFSSDjailArmV7-default/.latest/All/p=
kg-1.15.10.txz
>=20
> to do the above because the earlier pkg upgrade silently did not try =
to upgrade pkg (but did upgrade everything else, 126 packages).
>=20
> For reference (in the chroot context):
>=20
> # uname -apKU
> FreeBSD FBSDmacch 13.0-CURRENT FreeBSD 13.0-CURRENT #47 r368500M: Thu =
Dec 10 03:15:10 PST 2020     =
root@FBSDFHUGE:/usr/obj/cortexA72_clang/arm64.aarch64/usr/src/arm64.aarch6=
4/sys/GENERIC-NODBG  arm armv7 1300131 1300131
>=20
> The aarch64 context is also at -r368500 and 13000131.
>=20
> The armv7 ports were built from:
>=20
> # svnlite info /usr/ports/
> Path: /usr/ports
> Working Copy Root Path: /usr/ports
> URL: svn://svn.freebsd.org/ports/head
> Relative URL: ^/head
> Repository Root: svn://svn.freebsd.org/ports
> Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5
> Revision: 557893
> Node Kind: directory
> Schedule: normal
> Last Changed Author: manu
> Last Changed Rev: 557893
> Last Changed Date: 2020-12-13 03:53:57 -0800 (Sun, 13 Dec 2020)
>=20
> via use of:
>=20
> # poudriere jail -jFBSDFSSDjailArmV7 -i
> Jail name:         FBSDFSSDjailArmV7
> Jail version:      13.0-CURRENT
> Jail arch:         arm.armv7
> Jail method:       null
> Jail mount:        /usr/obj/DESTDIRs/clang-armv7-installworld-poud
> Jail fs:          =20
> Jail updated:      2020-04-21 22:39:35
>=20
> /usr/local/poudriere/data/packages/FBSDFSSDjailArmV7-default/.latest/ =
in the chroot is a copy of the one from the poudriere run:
>=20
> # rsync -axHh --info=3Dprogress2 --delete -r =
/usr/local/poudriere/data/packages/FBSDFSSDjailArmV7-default/.latest/* =
/usr/local/poudriere/data/packages/FBSDFSSDjailArmV7-default/.latest/.buil=
dname =
/usr/obj/DESTDIRs/clang-armv7-on-aarch64/usr/local/poudriere/data/packages=
/FBSDFSSDjailArmV7-default/.latest/

The lua script issue is not limited to pkg installing itself. For =
example:

[29/124] Extracting dbus-1.12.20_3: 100%
pkg: Failed to execute lua script: [string "args =3D {}..."]:11: attempt =
to call a nil value (field 'stat')
pkg: lua script failed
[30/124] Upgrading ca_root_nss from 3.55 to 3.58...
[30/124] Extracting ca_root_nss-3.58: 100%
pkg: Failed to execute lua script: [string "args =3D {}..."]:11: attempt =
to call a nil value (field 'stat')
pkg: lua script failed

=3D=3D=3D
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?384D1B07-A1C7-4912-8043-25B3F4528880>