summaryrefslogtreecommitdiff
path: root/libc/debian/rules
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2015-10-19 13:23:52 +0300
committerIgor Pashev <pashev.igor@gmail.com>2015-10-19 13:23:52 +0300
commitf57e4dc537cc669be2c91dce7464731786909780 (patch)
treeb5eb810a7d6821b66f9fd0cfb5a2a1c3a6a5d427 /libc/debian/rules
parent6395513c7598b0a8be21f8ec710a8d36bfddd53c (diff)
downloadillumos-packaging-f57e4dc537cc669be2c91dce7464731786909780.tar.gz
libc (4.3.1.git.35107df-1)
Diffstat (limited to 'libc/debian/rules')
-rwxr-xr-xlibc/debian/rules3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/debian/rules b/libc/debian/rules
index b40353d..90f19b2 100755
--- a/libc/debian/rules
+++ b/libc/debian/rules
@@ -9,6 +9,7 @@ include /usr/share/dpkg/buildflags.mk
export DH_VERBOSE = 1
CC = gcc
+VERSION := $(shell dpkg-parsechangelog | perl -ne '/Version:\s+(.+)-[^-]+/ && print $1')
# We must have this libraries so packages can be compiled,
# but if we just use filters provided by illumos gate, it causes
@@ -147,7 +148,7 @@ create-orig: $(ILLUMOS_GATE)
test-orig: create-orig
./debian/rules clean
rm -rf usr .pc
- tar xf ../libc_4.3.1.git.35107df.orig.tar.xz --strip=1
+ tar xf ../libc_$(VERSION).orig.tar.xz --strip=1
quilt push -a
./debian/rules build
fakeroot ./debian/rules binary