From: Evgeny Pisemsky <mail@pisemsky.site>
To: 72541@debbugs.gnu.org
Cc: "Ludovic Courtès" <ludo@gnu.org>
Subject: [bug#72541] [PATCH] gnu: gerbv: Fix missing version.
Date: Fri, 03 Jan 2025 22:04:30 +0300 [thread overview]
Message-ID: <874j2fhg75.fsf@pisemsky.site> (raw)
In-Reply-To: <87sevdoqh8.fsf@pisemsky.site>
[-- Attachment #1: Type: text/plain, Size: 311 bytes --]
I tried to contact upstream, but they don't accept pull requests:
- https://github.com/gerbv/gerbv/issues/244
- https://github.com/gerbv/gerbv/pull/226#issuecomment-2566103734
So it can only be done here. I updated initial patch with suggested
configure flags and commented why git is added to native inputs.
[-- Attachment #2: 0001-gnu-gerbv-Fix-missing-version.patch --]
[-- Type: text/x-patch, Size: 3217 bytes --]
From f85ab2e24f0da292f639c07f4d66430896b18d13 Mon Sep 17 00:00:00 2001
Message-ID: <f85ab2e24f0da292f639c07f4d66430896b18d13.1735929709.git.mail@pisemsky.site>
From: Evgeny Pisemsky <mail@pisemsky.site>
Date: Fri, 3 Jan 2025 21:40:01 +0300
Subject: [PATCH] gnu: gerbv: Fix missing version.
* gnu/packages/engineering.scm (gerbv): Fix missing version.
[source]: Change indentation.
[arguments]: Set correct configure flags, patch version generator shebang.
Change-Id: I29a38fff03127d9ce2b5e04ca638dacfc3720125
---
gnu/packages/engineering.scm | 32 +++++++++++++++++++++-----------
1 file changed, 21 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/engineering.scm b/gnu/packages/engineering.scm
index a5a91e62e9..5b43f8787e 100644
--- a/gnu/packages/engineering.scm
+++ b/gnu/packages/engineering.scm
@@ -27,7 +27,7 @@
;;; Copyright © 2021 Ivan Gankevich <i.gankevich@spbu.ru>
;;; Copyright © 2021, 2022 Petr Hodina <phodina@protonmail.com>
;;; Copyright © 2021 Foo Chuan Wei <chuanwei.foo@hotmail.com>
-;;; Copyright © 2022 Evgeny Pisemsky <mail@pisemsky.site>
+;;; Copyright © 2022, 2025 Evgeny Pisemsky <mail@pisemsky.site>
;;; Copyright © 2022 Olivier Dion <olivier.dion@polymtl.ca>
;;; Copyright © 2022 Peter Polidoro <peter@polidoro.io>
;;; Copyright © 2022 Malte Frank Gerdes <malte.f.gerdes@gmail.com>
@@ -837,22 +837,32 @@ (define-public gerbv
(package
(name "gerbv")
(version "2.10.0")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/gerbv/gerbv")
- (commit (string-append "v" version))))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "06bcm5zw7whsnnmfld3gl2j907lxc68gnsbzr2pc4w6qc923rgmj"))))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/gerbv/gerbv")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "06bcm5zw7whsnnmfld3gl2j907lxc68gnsbzr2pc4w6qc923rgmj"))))
(build-system gnu-build-system)
(arguments
- '(#:configure-flags '("CFLAGS=-fcommon")))
+ (list
+ #:configure-flags #~(list "CFLAGS=-O2 -g -fcommon")
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-version-generator
+ (lambda _
+ (substitute* "utils/git-version-gen.sh"
+ (("/bin/bash")
+ (which "bash"))))))))
(native-inputs (list autoconf
automake
desktop-file-utils
gettext-minimal
+ ;; Version generator needs git to work properly:
+ ;; https://github.com/gerbv/gerbv/issues/244
+ git
`(,glib "bin")
libtool
pkg-config))
base-commit: ce3ffac5d366ebf20e0d95779f2fe1ea6dde0202
--
2.47.1
next prev parent reply other threads:[~2025-01-03 19:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-09 12:00 [bug#72541] [PATCH] gnu: gerbv: Fix missing version Evgeny Pisemsky
2024-09-06 21:51 ` Ludovic Courtès
2024-09-07 16:30 ` Evgeny Pisemsky
2024-09-08 16:00 ` Evgeny Pisemsky
2024-09-16 6:35 ` Evgeny Pisemsky
2024-10-16 19:22 ` [bug#72541] Any feedback? Evgeny Pisemsky
2025-01-03 19:04 ` Evgeny Pisemsky [this message]
2025-01-04 18:43 ` bug#72541: [PATCH] gnu: gerbv: Fix missing version Ludovic Courtès
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874j2fhg75.fsf@pisemsky.site \
--to=mail@pisemsky.site \
--cc=72541@debbugs.gnu.org \
--cc=ludo@gnu.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).