public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Roman" <davidroman96@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: x11-misc/i3status-rust/files/
Date: Sun, 14 Jul 2024 00:34:43 +0000 (UTC)	[thread overview]
Message-ID: <1720780069.056e2f988c23c1563d87c9642f02b4bf63f884b7.davidroman@gentoo> (raw)

commit:     056e2f988c23c1563d87c9642f02b4bf63f884b7
Author:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Fri Jul 12 10:27:49 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Fri Jul 12 10:27:49 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=056e2f98

x11-misc/i3status-rust: remove unexpected Result<T,E> handling in patch

Closes: https://bugs.gentoo.org/935882
Fixes: 13c4e705268820984b5f4a8a326df8fc7b583f2a
Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>

 .../files/gitless-hash-and-date.patch              | 24 ++++++++++++++++++----
 1 file changed, 20 insertions(+), 4 deletions(-)

diff --git a/x11-misc/i3status-rust/files/gitless-hash-and-date.patch b/x11-misc/i3status-rust/files/gitless-hash-and-date.patch
index db16c8a3a..5efefaaa4 100644
--- a/x11-misc/i3status-rust/files/gitless-hash-and-date.patch
+++ b/x11-misc/i3status-rust/files/gitless-hash-and-date.patch
@@ -4,7 +4,7 @@ placeholder values within the ebuild.
 Author: Lucio Sauer <watermanpaint@posteo.net>
 --- a/build.rs
 +++ b/build.rs
-@@ -1,16 +1,6 @@
+@@ -1,25 +1,11 @@
 -use std::process::Command;
 -
  fn main() {
@@ -18,8 +18,24 @@ Author: Lucio Sauer <watermanpaint@posteo.net>
 -        .env("GIT_CONFIG_GLOBAL", "/dev/null")
 -        .output()
 -        .map(|o| String::from_utf8(o.stdout).unwrap());
+-    if let (Ok(hash), Ok(date)) = (hash, date) {
+-        let ver = format!(
+-            "{} (commit {} {})",
+-            env!("CARGO_PKG_VERSION"),
+-            hash.trim(),
+-            date.trim_matches('\'')
+-        );
+-        println!("cargo:rustc-env=VERSION={ver}");
+-    } else {
+-        println!("cargo:rustc-env=VERSION={}", env!("CARGO_PKG_VERSION"));
+-    }
 +    let hash = String::from("%COMMIT%");
 +    let date = String::from("%DATE%");
-     if let (Ok(hash), Ok(date)) = (hash, date) {
-         let ver = format!(
-             "{} (commit {} {})",
++    let ver = format!(
++        "{} (commit {} {})",
++        env!("CARGO_PKG_VERSION"),
++        hash.trim(),
++        date.trim_matches('\'')
++    );
++    println!("cargo:rustc-env=VERSION={ver}");
+ }


                 reply	other threads:[~2024-07-14  0:34 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=1720780069.056e2f988c23c1563d87c9642f02b4bf63f884b7.davidroman@gentoo \
    --to=davidroman96@gmail.com \
    --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