Subject: bug#78190: closed ([PATCH go-team] gnu: lyrebird: Add version info.)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 14 May 2025 18:56:02 +0000

Your bug report

#78190: [PATCH go-team] gnu: lyrebird: Add version info.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
78190: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78190
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: [PATCH go-team] gnu: lyrebird: Add version info.
From: Sharlatan Hellseher <[email-masked]>
To: [email-masked]
Date: Wed, 14 May 2025 19:54:52 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Thanks for the patch.

Pushed to go-team branch, which is about to be merged soon.

https://issues.guix.gnu.org/76654

--
Oleg

Subject: [PATCH go-team] gnu: lyrebird: Add version info.
From: André Batista <[email-masked]>
To: [email-masked]
Cc: André Batista <[email-masked]>
Date: Thu, 1 May 2025 11:54:03 -0300
List-Id: <debbugs-submit.debbugs.gnu.org>

See the project's Makefile.  Without this flag, version info defaults
to 'devel'.

* gnu/packages/golang-web.scm (lyrebird)[arguments]<#:build-flags>: Add
ldflag required for building with version information; append default
ldflags in case they are shadowed.

Change-Id: Iaa94c205244b3028b7e935b5ff83cf16b67f1b95
---
 gnu/packages/golang-web.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm
index 892bd25fd67..20ba7e663b1 100644
--- a/gnu/packages/golang-web.scm
+++ b/gnu/packages/golang-web.scm
@@ -10756,6 +10756,9 @@ (define-public lyrebird
     (arguments
      (list
       #:go go-1.22
+      #:build-flags #~(list (string-append "-ldflags="
+                                           "-X main.lyrebirdVersion="
+                                           #$version " -s -w"))
       #:install-source? #f
       #:unpack-path "gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/lyrebird"
       #:import-path "gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/lyrebird/cmd/lyrebird"))

base-commit: f58462958d29e0fa1e391790385a929f26702b7b
-- 
2.49.0