public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/mesa] rawhide: Make "ver" variable compatible with CentOS 9
Date: Mon, 23 Nov 2026 08:22:50 GMT	[thread overview]
Message-ID: <179542217050.1.1599840679465410954.rpms-mesa-bf36e460ee16@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/mesa
            Branch : rawhide
            Commit : bf36e460ee169bb6b528d84f58785bc335b88267
            Author : José Expósito <jexposit@redhat.com>
            Date   : 2026-11-19T11:39:47+01:00
            Stats  : +1/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/mesa/c/bf36e460ee169bb6b528d84f58785bc335b88267?branch=rawhide

            Log:
            Make "ver" variable compatible with CentOS 9

CentOS 9 does not support `gsub`. Use `echo + tr` instead.

---
diff --git a/mesa.spec b/mesa.spec
index ceb7bb0..c56aadf 100644
--- a/mesa.spec
+++ b/mesa.spec
@@ -89,7 +89,7 @@ URL:            https://mesa3d.org
 # The "Version" field for release candidates has the format: A.B.C~rcX
 # However, the tarball has the format: A.B.C-rcX.
 # The "ver" variable contains the version in the second format.
-%global ver %{gsub %version ~ -}
+%global ver %(echo %{version} | tr '~' '-')
 
 Source0:        https://archive.mesa3d.org/mesa-%{ver}.tar.xz
 # src/gallium/auxiliary/postprocess/pp_mlaa* have an ... interestingly worded license.

                 reply	other threads:[~2026-11-23  8:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179542217050.1.1599840679465410954.rpms-mesa-bf36e460ee16@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox