]> err.no Git - dpkg/commitdiff
Fixes for building of dpkg-static.deb.
authorAdam Heath <doogie@debian.org>
Wed, 12 Sep 2001 23:46:26 +0000 (23:46 +0000)
committerAdam Heath <doogie@debian.org>
Wed, 12 Sep 2001 23:46:26 +0000 (23:46 +0000)
  * Can't build both dpkg.deb and dpkg-static.deb in single run, because
    /etc is moved from $(INSTALL_TMP), instead of copied.
  * dpkg-static.deb is added to debian/files, even if it isn't created.
  * dpkg-static.tar.gz is added to debian/files, even if it doesn't exist.

ChangeLog
debian/rules

index ed8535192a495f5014feecd687ca5084e6bc3b43..5a64a1fcd03f2fb0747d4412c2385a3c8963019f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+Wed Sep 12 18:45:57 CDT 2001 Adam Heath <doogie@debian.org>
+
+  Fixes for building of dpkg-static.deb.
+    * Can't build both dpkg.deb and dpkg-static.deb in single run, because
+      /etc is moved from $(INSTALL_TMP), instead of copied.
+    * dpkg-static.deb is added to debian/files, even if it isn't created.
+    * dpkg-static.tar.gz is added to debian/files, even if it doesn't exist.
+
 Wed Sep 12 17:28:57 CEST 2001 Wichert Akkerman <wakkerma@debian.org>
 
   * dpkg-deb/main.c: Fix unterminated line in usage text
index 484c1126161efe64ba5557948029c37742432146..1eed8c7dc2ab8c248032dd85d99702a2e4433c4e 100755 (executable)
@@ -81,7 +81,7 @@ binary-dpkg-most binary-dpkg-static-most: binary-dpkg%-most: stamp-binary%
        install -d -m 755 -o root -g root $(TMP_DPKG)/usr/lib/dpkg
        install -d -m 755 -o root -g root $(TMP_DPKG)/usr/bin
        install -d -m 755 -o root -g root $(TMP_DPKG)/sbin
-       -test -d $(INSTALL_TMP)/etc && mv $(INSTALL_TMP)/etc $(TMP_DPKG)/
+       -test -d $(INSTALL_TMP)/etc && cp -a $(INSTALL_TMP)/etc $(TMP_DPKG)/
        cp -a $(INSTALL_TMP)/var $(TMP_DPKG)/
        cp -a $(INSTALL_TMP)/usr/sbin/start-stop-daemon $(TMP_DPKG)/sbin/
        cp -a $(INSTALL_TMP)/usr/sbin $(TMP_DPKG)/usr/
@@ -145,10 +145,9 @@ binary-dpkg-most binary-dpkg-static-most: binary-dpkg%-most: stamp-binary%
                $(TMP_DPKG)/sbin/start-stop-daemon \
                `test -z "$(static)" && echo $(TMP_DPKG)/usr/bin/dpkg $(TMP_DPKG)/usr/bin/md5sum $(TMP_DPKG)/usr/bin/dpkg-deb`
 
+binary-dpkg binary-dpkg-static: %: %-most
        perl -I `pwd`/scripts scripts/dpkg-gencontrol.pl -isp \
                -Tdebian/dpkg$(static).substvars -pdpkg$(static) -P$(TMP_DPKG)
-
-binary-dpkg binary-dpkg-static: %: %-most
        dpkg --build $(TMP_DPKG) ..
 
 binary-dpkg-dev: stamp-binary
@@ -283,10 +282,12 @@ binary-arch: binary-dpkg binary-dpkg-static-most binary-dselect
        set -e ; \
        v=`sed -n 's/^Version: //p' $(TMP_DPKG)/DEBIAN/control`; \
        for type in "" -static; do\
-               f=dpkg-$${v}_$(arch)$$type.nondebbin.tar ; \
-               tar -C $(TMP_DPKG)$$type -cf $(DIR)/../$$f usr var ; \
-               gzip -9f ../$$f ; \
-               dpkg-distaddfile -fdebian/files $$f.gz byhand -; \
+               if [ -d $(TMP_DPKG)$$type ]; then\
+                       f=dpkg-$${v}_$(arch)$$type.nondebbin.tar ; \
+                       tar -C $(TMP_DPKG)$$type -cf $(DIR)/../$$f usr var ; \
+                       gzip -9f ../$$f ; \
+                       dpkg-distaddfile -fdebian/files $$f.gz byhand -; \
+               fi;\
        done
 
 binary-indep: binary-dpkg-dev binary-dpkg-doc