File: configure-parse-changelog.patch

package info (click to toggle)
pdsh 2.35-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,996 kB
  • sloc: ansic: 12,431; sh: 6,838; makefile: 400; perl: 163
file content (17 lines) | stat: -rw-r--r-- 586 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Detect upstream version from debian/changelog.
 Removes assumption that we're building in a git repo.
Forwarded: not-needed
Author: dann frazier <dannf@debian.org>
Last-Update: 2022-10-11

--- a/configure.ac
+++ b/configure.ac
@@ -7,7 +7,7 @@
 # This file is to be processed with autoconf to generate a configure script.
 
 AC_INIT([pdsh],
-        m4_esyscmd([git describe --always |  awk '/.*/ {sub(/^pdsh-/, ""); printf "%s",$1; exit}']))
+        m4_esyscmd([dpkg-parsechangelog -SVersion | sed 's/-[^-]*$//']))
 
 AC_CONFIG_SRCDIR([pdsh])
 AC_CONFIG_AUX_DIR([config])