Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Apr 2023 12:06:49 +0200
From:      Felix Palmen <zirias@FreeBSD.org>
To:        ports@freebsd.org
Subject:   Re: Get ${OSREL} at install time
Message-ID:  <u63xrowzduvvulh2ih3onaisgxcwzcwhe3whk27vfwt6fnknzj@gatbtitiw34m>
In-Reply-To: <e5929fa9-a3a6-9260-0d53-6c5256945b7f@grosbein.net>
References:  <CAFDf7UKJ%2BSy0f9xJZ8oc8fcaejhT1LFgjspVTHDt4E99z2sz3w@mail.gmail.com> <ff0dc458-76f6-0bc2-8560-0eea00744226@grosbein.net> <vzkhiyn7tlkmiltx5nlzwfssdn7zwg55sqyfwdmbjkicei3f6s@gsrxpc2g62dz> <fbff43f7-f90f-e36d-aa17-b81dcd9eecfa@grosbein.net> <ak37anl42jqbsi2dwyzou2y2j5kskq5z32dqmhl7whoe2kke72@7nxmswengrmh> <e5929fa9-a3a6-9260-0d53-6c5256945b7f@grosbein.net>

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

--kyobbivn2ijrvjuz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Eugene Grosbein <eugen@grosbein.net> [20230418 17:03]:
> 18.04.2023 16:51, Felix Palmen wrote:
>=20
> > With lua scripts, you can't even use freebsd-version because execution
> > is very restricted for them in pkg. And for some features (like e.g.
> > dynamically creating a pkg-message output), you need lua...
>=20
> You don't need lua to create pkg-message dynamically or do many other thi=
ngs.
> It was possible long before invention of lua itself :-)

Maybe some context got lost here. You *do* need lua to dynamically
generate "pkg-message" output at install time. The pkg lua API for that
is pkg.print_msg(). It isn't available from shell scripts.

--=20
 Felix Palmen <zirias@FreeBSD.org>     {private}   felix@palmen-it.de
 -- ports committer (mentee) --            {web}  http://palmen-it.de
 {pgp public key}  http://palmen-it.de/pub.txt
 {pgp fingerprint} 6936 13D5 5BBF 4837 B212  3ACC 54AD E006 9879 F231

--kyobbivn2ijrvjuz
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iNUEABYKAH0WIQRpNhPVW79IN7ISOsxUreAGmHnyMQUCZD5ruV8UgAAAAAAuAChp
c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0Njkz
NjEzRDU1QkJGNDgzN0IyMTIzQUNDNTRBREUwMDY5ODc5RjIzMQAKCRBUreAGmHny
MYbkAQCQm2vGA5PNXoL6g4/8TG4t9MOOdrOxTsjkWmRonAPpygEAyFBS0b6iEsP0
JsfCRJ+QECp56qedWBcadLJit6HAyA4=
=Q8Js
-----END PGP SIGNATURE-----

--kyobbivn2ijrvjuz--



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