public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "orbea" <orbea@riseup.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/libressl:master commit in: dev-lang/rust/files/
Date: Sun, 16 Jul 2023 16:42:41 +0000 (UTC)	[thread overview]
Message-ID: <1689525471.1cea73eae5768915086a7891628438865d7664df.orbea@gentoo> (raw)

commit:     1cea73eae5768915086a7891628438865d7664df
Author:     orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Sun Jul 16 16:37:51 2023 +0000
Commit:     orbea <orbea <AT> riseup <DOT> net>
CommitDate: Sun Jul 16 16:37:51 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=1cea73ea

dev-lang/rust: don't use grep -P

Closes: https://github.com/gentoo/libressl/issues/534
Signed-off-by: orbea <orbea <AT> riseup.net>

 dev-lang/rust/files/rehash-crate.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-lang/rust/files/rehash-crate.sh b/dev-lang/rust/files/rehash-crate.sh
index 8f738b7..1ffd775 100644
--- a/dev-lang/rust/files/rehash-crate.sh
+++ b/dev-lang/rust/files/rehash-crate.sh
@@ -7,8 +7,8 @@ cargo='.cargo-checksum.json'
 
 grep -- '+++' "${1:?}" | while read -r _ f; do
 	file="${f#*/}"
-	orig_sum="$(grep -Po "(?<=\"${file}\":\")[0-9a-fA-F]+(?=\")" \
-		"${cargo}")"
+	orig_sum="$(grep -Eo "\"${file}\":\"[0-9a-fA-F]+\"" "${cargo}" |
+		cut -d':' -f2 | tr -d '"')"
 	if [ -n "${orig_sum}" ]; then
 		sum="$(sha256sum "${file}")"
 		sed -i "s|${orig_sum}|${sum%% *}|" "${cargo}"


             reply	other threads:[~2023-07-16 16:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-16 16:42 orbea [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-02-25  2:42 [gentoo-commits] repo/proj/libressl:master commit in: dev-lang/rust/files/ orbea
2024-10-15 20:09 orbea
2024-11-09 20:40 orbea

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=1689525471.1cea73eae5768915086a7891628438865d7664df.orbea@gentoo \
    --to=orbea@riseup.net \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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