]> git.proxmox.com Git - systemd.git/commitdiff
add stage1 bootstrap support to avoid Build-Depends cycles
authorMichael Stapelberg <stapelberg@debian.org>
Sun, 9 Feb 2014 10:18:49 +0000 (11:18 +0100)
committerMichael Stapelberg <stapelberg@debian.org>
Sun, 9 Feb 2014 10:19:52 +0000 (11:19 +0100)
Patch by Daniel Schepler

debian/changelog
debian/rules

index d5b4348a104cb1dac95bb15b8923da8c97e7e760..769f12878f0a4b2010bf4a58c968b4aa4c24e523 100644 (file)
@@ -2,6 +2,8 @@ systemd (204-7) unstable; urgency=low
 
   * fix systemctl enable/disable/… error message “Failed to issue method call:
     No such file or directory” (Closes: #734809)
+  * add stage1 bootstrap support to avoid Build-Depends cycles (Thanks Daniel
+    Schepler) (Closes: #738319)
   * cherry-pick:
     order remote mounts from mountinfo before remote-fs.target (77009452cfd)
     (Closes: #719945)
index 156695956a8e3982ba82617742a60501bd71e53c..42cd6c565c5ce15aa609fbf50d7fb6c859e1062f 100755 (executable)
@@ -5,6 +5,10 @@
 
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
+ifneq (,$(findstring stage1,$(DEB_BUILD_PROFILES)))
+BOOTSTRAP_DH_FLAGS := -Ngir1.2-gudev-1.0 -Nlibgudev-1.0-0 -Nlibgudev-1.0-dev
+endif
+
 CONFFLAGS = \
        --with-rootprefix= \
        --with-rootlibdir=/lib/$(DEB_HOST_MULTIARCH) \
@@ -12,13 +16,15 @@ CONFFLAGS = \
        --with-sysvrcnd-path=/etc \
        --with-firmware-path=/lib/firmware \
        --with-debug-shell=/bin/bash \
-       --enable-libcryptsetup \
        --enable-tcpwrap \
        --disable-coredump \
        --disable-efi \
        --disable-myhostname \
        --disable-vconsole \
        --disable-silent-rules
+ifeq (,$(findstring stage1,$(DEB_BUILD_PROFILES)))
+CONFFLAGS += --enable-libcryptsetup
+endif
 
 CONFFLAGS_deb = \
        --enable-selinux \
@@ -80,7 +86,7 @@ override_dh_install:
        rm -rf debian/install/*/etc/kernel/
        find debian/install/ -name '*.la' -delete
        dh_install -pudev-udeb -plibudev1-udeb --sourcedir=debian/install/udeb
-       dh_install -Nudev-udeb -Nlibudev1-udeb --sourcedir=debian/install/deb
+       dh_install $(BOOTSTRAP_DH_FLAGS) -Nudev-udeb -Nlibudev1-udeb --sourcedir=debian/install/deb
        # install some files manually, --sourcedir makes that necessary
        # udev-udeb
        install -D --mode=755 debian/extra/udev.startup \
@@ -169,7 +175,9 @@ override_dh_install:
        # files shipped by udev / bash-completion
        rm debian/systemd/usr/share/bash-completion/completions/udevadm
        # files systemd by cryptsetup
+ifeq (,$(findstring stage1,$(DEB_BUILD_PROFILES)))
        rm debian/systemd/usr/share/man/man5/crypttab.5
+endif
        # files shipped by systemd
        rm debian/udev/lib/udev/rules.d/70-uaccess.rules
        rm debian/udev/lib/udev/rules.d/73-seat-late.rules
@@ -202,4 +210,8 @@ override_dh_autoreconf:
        dh_autoreconf debian/rules -- autoreconf
 
 %:
+ifeq (,$(findstring stage1,$(DEB_BUILD_PROFILES)))
        dh $@ --with autoreconf,gir,python2
+else
+       dh $@ --with autoreconf,python2 $(BOOTSTRAP_DH_FLAGS)
+endif