mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 06:53:03 +00:00
debian: fix dpkg tool invocations to work on Ubuntu 12.04
dpkg-parsechangelog and dpkg-source were both using flags not yet available in the versions available on 12.04. Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
This commit is contained in:
parent
a8247b210f
commit
79c81c2651
2
debian/backports/rules
vendored
2
debian/backports/rules
vendored
@ -76,7 +76,7 @@ $(TARBALLDIR)/$(SRCPKG)_$$(DEBIAN_VERSION_$(1)).dsc:
|
|||||||
-c$$(CONTROL_$(1)) \
|
-c$$(CONTROL_$(1)) \
|
||||||
--format='3.0 (custom)' \
|
--format='3.0 (custom)' \
|
||||||
--target-format='$$(SOURCEFORMAT_$(1))' \
|
--target-format='$$(SOURCEFORMAT_$(1))' \
|
||||||
--build . $$^
|
-b . $$^
|
||||||
|
|
||||||
ifeq ($$(SOURCEFORMAT_$(1)),3.0 (quilt))
|
ifeq ($$(SOURCEFORMAT_$(1)),3.0 (quilt))
|
||||||
# this target depends on the orig.tar.gz file, for which there is no target in
|
# this target depends on the orig.tar.gz file, for which there is no target in
|
||||||
|
5
debian/rules
vendored
5
debian/rules
vendored
@ -106,13 +106,14 @@ KNOWN_BACKPORTS = ubuntu12.04 ubuntu14.04 ubuntu16.04
|
|||||||
ORIG_VERSION := $(shell dh_testdir && grep -E < configure.ac '^AC_INIT\(.*\)' \
|
ORIG_VERSION := $(shell dh_testdir && grep -E < configure.ac '^AC_INIT\(.*\)' \
|
||||||
| cut -d, -f2 | xargs echo)
|
| cut -d, -f2 | xargs echo)
|
||||||
DEBIAN_VERSION := $(shell dh_testdir && \
|
DEBIAN_VERSION := $(shell dh_testdir && \
|
||||||
dpkg-parsechangelog -c1 -Sversion < debian/changelog)
|
dpkg-parsechangelog -c1 < debian/changelog | \
|
||||||
|
sed -rn 's/^Version: ?//p')
|
||||||
-include debian/backports/rules
|
-include debian/backports/rules
|
||||||
|
|
||||||
ifneq ($(TARBALLDIR),)
|
ifneq ($(TARBALLDIR),)
|
||||||
# better error message on missing .orig.tar.gz
|
# better error message on missing .orig.tar.gz
|
||||||
$(TARBALLDIR)/$(SRCPKG)_$(ORIG_VERSION).orig.tar.gz:
|
$(TARBALLDIR)/$(SRCPKG)_$(ORIG_VERSION).orig.tar.gz:
|
||||||
@ echo "\`$(TARBALLDIR)/$(SRCPKG)_$(ORIG_VERSION).orig.tar.gz'" not
|
@ echo "\`$(TARBALLDIR)/$(SRCPKG)_$(ORIG_VERSION).orig.tar.gz'" not \
|
||||||
found and not generated by debian/rules. Provided you have the \
|
found and not generated by debian/rules. Provided you have the \
|
||||||
necessary packages installed, you can generate it yourself via \
|
necessary packages installed, you can generate it yourself via \
|
||||||
"\"./bootstrap.sh && ./configure && make dist\"" \
|
"\"./bootstrap.sh && ./configure && make dist\"" \
|
||||||
|
19
debian/rules.orig
vendored
19
debian/rules.orig
vendored
@ -96,3 +96,22 @@ override_dh_systemd_start:
|
|||||||
override_dh_systemd_enable:
|
override_dh_systemd_enable:
|
||||||
dh_systemd_enable frr.service
|
dh_systemd_enable frr.service
|
||||||
|
|
||||||
|
# backports
|
||||||
|
SRCPKG = frr
|
||||||
|
KNOWN_BACKPORTS = ubuntu12.04 ubuntu14.04 ubuntu16.04
|
||||||
|
ORIG_VERSION := $(shell dh_testdir && grep -E < configure.ac '^AC_INIT\(.*\)' \
|
||||||
|
| cut -d, -f2 | xargs echo)
|
||||||
|
DEBIAN_VERSION := $(shell dh_testdir && \
|
||||||
|
dpkg-parsechangelog -c1 -Sversion < debian/changelog)
|
||||||
|
-include debian/backports/rules
|
||||||
|
|
||||||
|
ifneq ($(TARBALLDIR),)
|
||||||
|
# better error message on missing .orig.tar.gz
|
||||||
|
$(TARBALLDIR)/$(SRCPKG)_$(ORIG_VERSION).orig.tar.gz:
|
||||||
|
@ echo "\`$(TARBALLDIR)/$(SRCPKG)_$(ORIG_VERSION).orig.tar.gz'" not
|
||||||
|
found and not generated by debian/rules. Provided you have the \
|
||||||
|
necessary packages installed, you can generate it yourself via \
|
||||||
|
"\"./bootstrap.sh && ./configure && make dist\"" \
|
||||||
|
and renaming the resulting file.
|
||||||
|
exit 1
|
||||||
|
endif # def TARBALLDIR
|
||||||
|
Loading…
Reference in New Issue
Block a user