summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Noll <maan@tuebingen.mpg.de>2026-05-05 14:40:05 +0000
committerAndre Noll <maan@tuebingen.mpg.de>2026-05-05 14:41:34 +0000
commit64d7371b5b17b97708c72eacc04258b93206891e (patch)
tree7fc4d2bf406315a87885ddd257697e26ea679925
parent06752e8fd1d0c0dea93e1d9675959404758b2fbe (diff)
parent1f3164588b32b381e6b185418658daf2d68733dc (diff)
Merge branch 't/nmu' into t/nmu-debianpu
This brings in the commit which improves version-gen.sh to use $DEB_VERSION, fixing an issue that was reported by Sebastian Ramacher in 2024 as bug #1086623. This change was applied independently by Adrian Bunk, who then NMUed the package to close the bug. Thus, this merge commit also modifies debian/changelog and debian/rules to reflect these changes.
-rw-r--r--debian/changelog8
-rwxr-xr-xdebian/rules5
-rwxr-xr-xversion-gen.sh5
3 files changed, 14 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog
index 1ed7ba2..3af6695 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,14 @@ liblopsub (1.0.6-1) experimental; urgency=medium
-- Andre Noll <maan@tuebingen.mpg.de> Mon, 02 Mar 2026 21:19:39 +0100
+liblopsub (1.0.5-3.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Upload to unstable.
+ * Add changelog parsing fix from Andre Noll. (Closes: #1086623)
+
+ -- Adrian Bunk <bunk@debian.org> Fri, 11 Apr 2025 15:55:08 +0300
+
liblopsub (1.0.5-3) experimental; urgency=low
* Support rootless builds. Closes: #1089365
diff --git a/debian/rules b/debian/rules
index 7624646..59a864f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -19,6 +19,8 @@ DOCS_DIR := $(DESTDIR)/usr/share/doc/$(package)
DEVDOCS_DIR := $(DEVDIR)/usr/share/doc/$(devpackage)
TRIPLET := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+include /usr/share/dpkg/pkg-info.mk
+export DEB_VERSION
# activate the dh sequencer
%:
dh "$@"
@@ -26,7 +28,8 @@ TRIPLET := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
build-arch:
$(checkdir)
$(MAKE) $(shell DEB_BUILD_MAINT_OPTIONS=hardening=+all \
- dpkg-buildflags --export=cmdline)
+ dpkg-buildflags --export=cmdline) \
+ DEB_VERSION=$(DEB_VERSION)
build-indep:
build: build-indep build-arch
diff --git a/version-gen.sh b/version-gen.sh
index bdeeca2..3ec367f 100755
--- a/version-gen.sh
+++ b/version-gen.sh
@@ -2,7 +2,6 @@
version_file='version.c'
ver='unnamed_version'
-# First try git, then gitweb, then default.
if [ -e '.git' -o -e '../.git' ]; then
git_ver=$(git describe --abbrev=4 HEAD 2>/dev/null)
[ -z "$git_ver" ] && git_ver="$ver"
@@ -11,8 +10,8 @@ if [ -e '.git' -o -e '../.git' ]; then
# if there are differences (exit code 1), the working tree is dirty
git diff-index --quiet HEAD || git_ver=$git_ver-dirty
ver=$git_ver
-elif [ -f debian/changelog ]; then
- ver="$(sed -ne '1s/.*(\(.*\)-.*/\1/1; tx; d; :x; p' debian/changelog)"
+elif [ -n "$DEB_VERSION" ]; then
+ ver=$DEB_VERSION
elif [ "${PWD%%-*}" = 'lopsub-' ]; then
ver=${PWD##*/lopsub-}
fi