Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jun 2019 12:32:03 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        =?utf-8?Q?T=C4=B3l?= Coosemans <tijl@FreeBSD.org>
Cc:        Mathieu Arnold <mat@FreeBSD.org>, ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r503385 - head/Mk/Scripts
Message-ID:  <20190618103203.n3v4qcghpqe5holn@ivaldir.net>
In-Reply-To: <20190618122504.791b3fcd@kalimero.tijl.coosemans.org>
References:  <201906031257.x53Cvi9P092541@repo.freebsd.org> <20190615170158.489616a4@kalimero.tijl.coosemans.org> <20190618122504.791b3fcd@kalimero.tijl.coosemans.org>

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

--t4jtfgqg4hpovqhl
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jun 18, 2019 at 12:25:04PM +0200, T=C4=B3l Coosemans wrote:
> On Sat, 15 Jun 2019 17:01:58 +0200 T=C4=B3l Coosemans <tijl@FreeBSD.org>
> wrote:
> > On Mon, 3 Jun 2019 12:57:44 +0000 (UTC) Mathieu Arnold <mat@FreeBSD.org>
> > wrote:
> >> Author: mat
> >> Date: Mon Jun  3 12:57:44 2019
> >> New Revision: 503385
> >> URL: https://svnweb.freebsd.org/changeset/ports/503385
> >>=20
> >> Log:
> >>   Use UCL for pkg-message
> >>  =20
> >>   Remain backward compatible but use ucl for the pkg-messages, which a=
llows to:
> >>   - append messages one after the other
> >>   - only print message on delete, install, upgrade from a version to a=
nother
> >>  =20
> >>   If pkg-message starts with a [ we consider it should be a valid ucl =
file
> >>  =20
> >>   The format is the following:
> >>   [
> >>   { message: "Always print" },
> >>   { message: "package being removed", type: remove },
> >>   { message: "package being installed", type: install },
> >>   { message: "package is being upgraded", type: upgrade },
> >>   { message: "Upgrading from lower than 1.0", maximum_version: "1.0", =
type: upgrade },
> >>   { message: "Upgrading from higher than 1.0", minimum_version: "1.0",=
 type: upgrade  },
> >>   { message: "Upgrading from >1.0 < 3.0", maximum_version: "3.0", mini=
mum_version: "1.0",
> >>   ]
> >>  =20
> >>   Because it is ucl one can use some sugar like:
> >>   [
> >>   { message =3D <<EOD
> >>   formatted
> >>   message 'with fancy things'
> >>   EOD
> >>   },
> >>   } =20
> >=20
> > Can this be extended to include these fields:
> > opsys: <operating system this message applies to>
> > osversion: <list of os version ranges this message applies to>
> > arch: <list of architectures this message applies to>
> > options: <list of options that need to be on or off>
>=20
> Or should pkg-message just be created dynamically at package build time
> in these cases?

For now it is pretty simple on how it works.

Yes we could imagine those extension easily, I will see what I can do. but =
in
the mean time one can create pkg-message based on the option.

The only non easy one for me to add is the one based on options.

Best regards,
Bapt

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

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

iQIzBAABCAAdFiEEgOTj3suS2urGXVU3Y4mL3PG3PloFAl0IvaAACgkQY4mL3PG3
Plpcxw//Uii8tmc/epIXf0+16JgNP0THRqJW0M4zWEc0KJQVlKHJ3t18vOWszrAK
+qyu/391rKl85L3sXMABCOkwAq2d5hFo1v3FNn7HPjOQK0oUVmKC3ExVHYKVyhBq
kbvfXpZXV7fnWpZ5k54Bh0li0fWJED3JattB9pqoDOUrws7eEe4fCmiBPOjHnQxW
5kkdieFKU1tWFdBWDy92IreAjZhWGz3SPOTxN8RSrDIw3uzswyrDA7tDnBiqnXQf
Ql+r6CvXbyczmm17r/de38fnQG/ZE+7D1Mg1F5ktNZMh2TAFnwHScrybXvv5PSS6
FKz7aGMw16Tbj4XqJzQ0u1Z/I4Tc2BNcd0QQv0DRctlJC39p32LE+aJt0TxRidq+
SqmMBsoU7ysIVB5iNImZlEu/QCzAYHR6+YNIJ47nUaQYDyG1P2pUhE99FtkGmpxf
vmK8nDlseKRfdXAMlwGFYMfA4w8dlOWrpfOkjUOjEfdwn0D0ZJG5V3aypPZJrDXn
X4vq+8xPZJeF7ElX7NuvgfZ9/9qHdsBFN6ZPpjBkiCM9TMH7lbr7mwLfaBrG1baP
bIdhUHpjcN5IkSMOk+95GMnF64+YnTfMY75/GP3xgiqjtyX5qSeyWSWxJMLaBESU
Xo5T4pzS7hj/va2k9X26WhAHEW9pILGPxwrvecM2hN5jrhvb3nk=
=XETl
-----END PGP SIGNATURE-----

--t4jtfgqg4hpovqhl--



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