Просмотр исходного кода

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.

Adam Heath лет назад: 25
Родитель
Сommit
31c06eb9ec
2 измененных файлов с 16 добавлено и 7 удалено
  1. 8 0
      ChangeLog
  2. 8 7
      debian/rules

+ 8 - 0
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>
 Wed Sep 12 17:28:57 CEST 2001 Wichert Akkerman <wakkerma@debian.org>
 
 
   * dpkg-deb/main.c: Fix unterminated line in usage text
   * dpkg-deb/main.c: Fix unterminated line in usage text

+ 8 - 7
debian/rules

@@ -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/lib/dpkg
 	install -d -m 755 -o root -g root $(TMP_DPKG)/usr/bin
 	install -d -m 755 -o root -g root $(TMP_DPKG)/usr/bin
 	install -d -m 755 -o root -g root $(TMP_DPKG)/sbin
 	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)/var $(TMP_DPKG)/
 	cp -a $(INSTALL_TMP)/usr/sbin/start-stop-daemon $(TMP_DPKG)/sbin/
 	cp -a $(INSTALL_TMP)/usr/sbin/start-stop-daemon $(TMP_DPKG)/sbin/
 	cp -a $(INSTALL_TMP)/usr/sbin $(TMP_DPKG)/usr/
 	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 \
 		$(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`
 		`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 \
 	perl -I `pwd`/scripts scripts/dpkg-gencontrol.pl -isp \
 		-Tdebian/dpkg$(static).substvars -pdpkg$(static) -P$(TMP_DPKG)
 		-Tdebian/dpkg$(static).substvars -pdpkg$(static) -P$(TMP_DPKG)
-
-binary-dpkg binary-dpkg-static: %: %-most
 	dpkg --build $(TMP_DPKG) ..
 	dpkg --build $(TMP_DPKG) ..
 
 
 binary-dpkg-dev: stamp-binary
 binary-dpkg-dev: stamp-binary
@@ -283,10 +282,12 @@ binary-arch: binary-dpkg binary-dpkg-static-most binary-dselect
 	set -e ; \
 	set -e ; \
 	v=`sed -n 's/^Version: //p' $(TMP_DPKG)/DEBIAN/control`; \
 	v=`sed -n 's/^Version: //p' $(TMP_DPKG)/DEBIAN/control`; \
 	for type in "" -static; do\
 	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
 	done
 
 
 binary-indep: binary-dpkg-dev binary-dpkg-doc
 binary-indep: binary-dpkg-dev binary-dpkg-doc