]> granicus.if.org Git - strace/commitdiff
2005-02-02 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Thu, 3 Feb 2005 03:19:34 +0000 (03:19 +0000)
committerRoland McGrath <roland@redhat.com>
Thu, 3 Feb 2005 03:19:34 +0000 (03:19 +0000)
* debian/control: Add strace-udeb package for installer debugging.
* debian/rules (binary-arch): Build it.
From Joshua Kwan <joshk@triplehelix.org>.
Fixes Debian bug #268294.

debian/control
debian/rules

index 037d8daee379de21df0d5a34feffac4c6d7cfd87..6be5def84fc01fd71fdbb56b8d89347b2a7c97f0 100644 (file)
@@ -18,3 +18,21 @@ Description: A system call tracer
  System calls and signals are events that happen at the user/kernel
  interface. A close examination of this boundary is very useful for bug
  isolation, sanity checking and attempting to capture race conditions.
+
+Package: strace-udeb
+Section: debian-installer
+Priority: extra
+Architecture: alpha amd64 arm hppa i386 ia64 m68k mips mipsel powerpc s390 sh sparc
+Depends: ${shlibs:Depends}
+Description: A system call tracer
+ strace is a system call tracer, i.e. a debugging tool which prints out
+ a trace of all the system calls made by a another process/program.
+ The program to be traced need not be recompiled for this, so you can
+ use it on binaries for which you don't have source.
+ .
+ System calls and signals are events that happen at the user/kernel
+ interface. A close examination of this boundary is very useful for bug
+ isolation, sanity checking and attempting to capture race conditions.
+ .
+ This is a stripped down package intended for debugging use in the Debian
+ installer.
index 746ce457e27fe83e56d31c93ebf84ddb13480217..e17c612453ba5d6f348af19f2cb0d1cfb7a62d03 100755 (executable)
@@ -5,6 +5,10 @@ package                = strace
 
 DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
+
+VERSION := $(shell dpkg-parsechangelog | awk '/^Version: / { print $$2 }')
+UDEB := strace-udeb_$(VERSION)_$(DEB_HOST_ARCH).udeb
 
 ifeq ($(DEB_HOST_GNU_TYPE),sparc-linux)
   build64 = yes
@@ -43,7 +47,7 @@ build64/Makefile:
        cd $(@D); CC="$(CC64)" sh ../configure --prefix=/usr --build=$(DEB_BUILD_GNU_TYPE) --host=$(HOST64)
 
 clean:
-       rm -rf debian/tmp debian/substvars debian/files
+       rm -rf debian/tmp debian/substvars debian/files debian/files~
        rm -rf build64 stamp-build64
        rm -rf build stamp-build
 
@@ -60,8 +64,17 @@ binary-arch: $(extra_build_targets) build checkroot
        chown 755 debian/tmp
        install -d -m 755 -o root -g root debian/tmp/DEBIAN
 
+# Install strace
+       install -d -o root -g root -m 755 debian/tmp/usr/bin
+       install -s -o root -g root -m 755 build/strace debian/tmp/usr/bin/strace
+
+       dpkg-gencontrol -is -pstrace-udeb -fdebian/files~
+       dpkg-deb --build debian/tmp ../$(UDEB)
+       dpkg-distaddfile $(UDEB) debian-installer extra
+       
 # Install documentation
        install -d -o root -g root -m 755 debian/tmp/usr/share/doc/$(package)
+       install -d -o root -g root -m 755 debian/tmp/usr/share/man/man1
        install -p -o root -g root -m 644 debian/changelog \
                        debian/tmp/usr/share/doc/$(package)/changelog.Debian
        install -p -o root -g root -m 644 TODO \
@@ -71,10 +84,6 @@ binary-arch: $(extra_build_targets) build checkroot
        gzip -9 debian/tmp/usr/share/doc/$(package)/*
        install -p -o root -g root -m 644 debian/copyright \
                        debian/tmp/usr/share/doc/$(package)/copyright
-
-# Install strace
-       install -d -o root -g root -m 755 debian/tmp/usr/bin debian/tmp/usr/share/man/man1
-       install -s -o root -g root -m 755 build/strace debian/tmp/usr/bin/strace
        install -p -o root -g root -m 644 strace.1 debian/tmp/usr/share/man/man1/strace.1
        gzip -9 debian/tmp/usr/share/man/man1/strace.1
 
@@ -85,8 +94,8 @@ endif
 
        dpkg-shlibdeps build/strace $(patsubst yes,build64/strace,$(build64))
 
-       dpkg-gencontrol -isp
-       dpkg --build debian/tmp ..
+       dpkg-gencontrol -is -pstrace
+       dpkg-deb --build debian/tmp ..
 
 checkroot:
        test root = "`whoami`"