Add epoch to gudev packages when building on Ubuntu

Ubuntu packaged the standalone gudev before it got merged into udev.
This commit is contained in:
Martin Pitt 2014-12-14 13:40:52 +01:00
parent 4f13c3718f
commit f73debca49
2 changed files with 10 additions and 0 deletions

2
debian/changelog vendored
View File

@ -7,6 +7,8 @@ systemd (218-1) UNRELEASED; urgency=medium
* Configure with --enable-split-usr.
* Merge some permanent Ubuntu changes, using dpkg-vendor:
- Don't symlink udev doc directories.
- Add epoch to gudev packages; Ubuntu packaged the standalone gudev before
it got merged into udev.
-- Martin Pitt <mpitt@debian.org> Fri, 12 Dec 2014 20:32:32 +0200

8
debian/rules vendored
View File

@ -4,6 +4,7 @@
#export DEB_BUILD_OPTIONS="nostrip"
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
VERSION = $(shell dpkg-parsechangelog | sed -n -e '/^Version:/s/.*: //p')
ifneq (,$(findstring stage1,$(DEB_BUILD_PROFILES)))
BOOTSTRAP_DH_FLAGS := -Ngir1.2-gudev-1.0 -Nlibgudev-1.0-0 -Nlibgudev-1.0-dev
@ -297,3 +298,10 @@ ifeq (,$(findstring stage1,$(DEB_BUILD_PROFILES)))
else
dh $@ --with autoreconf,python3 $(BOOTSTRAP_DH_FLAGS)
endif
override_dh_gencontrol:
# Ubuntu has an epoch on gudev
if dpkg-vendor --is ubuntu; then \
dh_gencontrol -plibgudev-1.0-0 -plibgudev-1.0-dev -pgir1.2-gudev-1.0 -- "-v1:$(VERSION)"; \
fi
dh_gencontrol --remaining-packages