[PATCH] libasn1c[master]: debian: set VERSION to fix version in .pc files

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

lynxis lazus gerrit-no-reply at lists.osmocom.org
Fri May 4 00:25:50 UTC 2018


Review at  https://gerrit.osmocom.org/8021

debian: set VERSION to fix version in .pc files

The pkgconf file contains an unknown version which result in failure
of other packages which depend on a minimum version (osmo-iuh)

Change-Id: I65401786cf9eb63d3445f548dc13c1d3f9f4c1ea
---
M debian/rules
1 file changed, 8 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/libasn1c refs/changes/21/8021/1

diff --git a/debian/rules b/debian/rules
index 267bea9..a1039b0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -32,7 +32,10 @@
 # Vendor-related variables such as DEB_VENDOR:
 #include /usr/share/dpkg/vendor.mk
 # Package-related variables such as DEB_DISTRIBUTION
-#include /usr/share/dpkg/pkg-info.mk
+include /usr/share/dpkg/pkg-info.mk
+
+VERSION := $(shell echo '$(DEB_VERSION)' | sed -e 's/[+-].*//' -e 's/~//g')
+
 #
 # You may alternatively set them susing a simple script such as:
 # DEB_VENDOR ?= $(shell dpkg-vendor --query  Vendor)
@@ -44,6 +47,10 @@
 %:
 	dh $@ --with autoreconf
 
+override_dh_autoreconf:
+	echo $(VERSION) > .tarball-version
+	dh_autoreconf
+
 # debmake generated override targets
 # Set options for ./configure
 #CONFIGURE_FLAGS = <options for ./configure>

-- 
To view, visit https://gerrit.osmocom.org/8021
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I65401786cf9eb63d3445f548dc13c1d3f9f4c1ea
Gerrit-PatchSet: 1
Gerrit-Project: libasn1c
Gerrit-Branch: master
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>



More information about the gerrit-log mailing list