• [gentoo-dev] [PATCH] gnome.org.eclass: Handle GNOME's .alpha/.beta/.rc

    From Matt Turner@21:1/5 to All on Tue Mar 14 00:50:01 2023
    Signed-off-by: Matt Turner <mattst88@gentoo.org>
    ---
    eclass/gnome.org.eclass | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    diff --git a/eclass/gnome.org.eclass b/eclass/gnome.org.eclass
    index 05025f5f58fa..215c9be3f043 100644
    --- a/eclass/gnome.org.eclass
    +++ b/eclass/gnome.org.eclass
    @@ -57,8 +57,8 @@ else
    : ${GNOME_ORG_PVP:=$(ver_cut 1-2)}
    fi

    -SRC_URI="mirror://gnome/sources/${GNOME_ORG_MODULE}/${GNOME_ORG_PVP}/${GNOME_ORG_MODULE}-${PV}.tar.${GNOME_TARBALL_SUFFIX}"
    +SRC_URI="mirror://gnome/sources/${GNOME_ORG_MODULE}/${GNOME_ORG_PVP}/${GNOME_ORG_MODULE}-${PV/_/.}.tar.${GNOME_TARBALL_SUFFIX}"

    -S="${WORKDIR}/${GNOME_ORG_MODULE}-${PV}" +S="${WORKDIR}/${GNOME_ORG_MODULE}-${PV/_/.}"

    fi
    --
    2.39.2

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ulrich Mueller@21:1/5 to All on Tue Mar 14 05:40:03 2023
    On Tue, 14 Mar 2023, Matt Turner wrote:

    -SRC_URI="mirror://gnome/sources/${GNOME_ORG_MODULE}/${GNOME_ORG_PVP}/${GNOME_ORG_MODULE}-${PV}.tar.${GNOME_TARBALL_SUFFIX}"
    +SRC_URI="mirror://gnome/sources/${GNOME_ORG_MODULE}/${GNOME_ORG_PVP}/${GNOME_ORG_MODULE}-${PV/_/.}.tar.${GNOME_TARBALL_SUFFIX}"

    -S="${WORKDIR}/${GNOME_ORG_MODULE}-${PV}" +S="${WORKDIR}/${GNOME_ORG_MODULE}-${PV/_/.}"

    I suppose there can be only a single suffix? Still, using ${PV//_/.}
    to replace all "_" won't harm and might be slightly more systematic.

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

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

    iQFDBAEBCAAtFiEEtDnZ1O9xIP68rzDbUYgzUIhBXi4FAmQP+cYPHHVsbUBnZW50 b28ub3JnAAoJEFGIM1CIQV4u6ksIANCntNYfpR7ejceqhvEoi1ckGbYyis8oxmak O1pJQaerwYayoNPgvPWKJ3flEI592AL8oKdHtZSVLBtHrkEZBoDln6cgo7V2ln1i gQiRF9uqCZoJUBr6an3M47L5QZCDmg/vBmtjSREZ5RvOIq7JTRdOJadEPFFlSH4c MHaMQq0S8CroQqCiGh0yp81IauN624Gkv3L8JV3uZLf+pB6kj/qmBucOjL5s/ueL 3AuuXSsSXfmtZef+aJNT3L6JhFflKe3iC93AXKhK6Xz7VKVFPDro18Mh6rAj9zrj 2qWtiQcS5PWgEaOkCbIFbtPDPS8ZFYEsUk9w/kOc9AnIa3zgmPE=NBkD
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mart Raudsepp@21:1/5 to All on Tue Mar 14 09:10:01 2023
    Ühel kenal päeval, T, 14.03.2023 kell 05:36, kirjutas Ulrich Mueller:
    On Tue, 14 Mar 2023, Matt Turner wrote:
     
    -
    SRC_URI="mirror://gnome/sources/${GNOME_ORG_MODULE}/${GNOME_ORG_PVP} /${GNOME_ORG_MODULE}-${PV}.tar.${GNOME_TARBALL_SUFFIX}" +SRC_URI="mirror://gnome/sources/${GNOME_ORG_MODULE}/${GNOME_ORG_PV P}/${GNOME_ORG_MODULE}-${PV/_/.}.tar.${GNOME_TARBALL_SUFFIX}"
     
    -S="${WORKDIR}/${GNOME_ORG_MODULE}-${PV}" +S="${WORKDIR}/${GNOME_ORG_MODULE}-${PV/_/.}"

    I suppose there can be only a single suffix? Still, using ${PV//_/.}
    to replace all "_" won't harm and might be slightly more systematic.

    GNOME alpha/beta/rc versions could also be like this:

    44.beta
    44.beta.1
    44.beta.2
    44.rc
    44.rc.1

    So might want to consider handling that too to work with the same
    metadata cache update, but the extra releases don't happen that often,
    so might not be too much of a burden to handle manually in those
    occasions for now.

    Mart

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)