]> git.proxmox.com Git - systemd.git/commitdiff
Add epoch to gudev packages when building on Ubuntu
authorMartin Pitt <martin.pitt@ubuntu.com>
Sun, 14 Dec 2014 12:40:52 +0000 (13:40 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Sun, 14 Dec 2014 12:47:32 +0000 (13:47 +0100)
Ubuntu packaged the standalone gudev before it got merged into udev.

debian/changelog
debian/rules

index d44600102ba74234b7a04083c83300855bb346c6..e588a0d605b339a52352f4de056d6732e47aecf7 100644 (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
 
index 0f659fe6817fcf0d23c9d15a91329e6b1fb5a013..2ebbf1bec80cbb0675df50327f1bc6f411b13c5e 100755 (executable)
@@ -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