]> err.no Git - dpkg/commitdiff
Small fixups to prepare for 1.4.1.15 release
authorWichert Akkerman <wakkerma@debian.org>
Wed, 13 Oct 1999 19:57:23 +0000 (19:57 +0000)
committerWichert Akkerman <wakkerma@debian.org>
Wed, 13 Oct 1999 19:57:23 +0000 (19:57 +0000)
debian/control
debian/rules
main/filesdb.c
main/processarc.c

index b052fcead9a3ea50c87d30c39f64348031f93547..5b6f438d4fb2518b6dd1f4ba74dad99a9d295019 100644 (file)
@@ -38,13 +38,3 @@ Description: Package building tools for Debian
  .
  Most Debian source packages will require additional tools to build -
  for example, most packages need the `make' and the C compiler `gcc'.
-
-Package: dselect
-Architecture: any
-Priority: important
-Depends: ${shlibs:Depends}
-Replaces: dpkg (<< 1.4.1.15)
-Description: a user tool to manage Debian GNU/Linux packages
- dselect is the primary user interface for installing, removing and
- managing Debian GNU/Linux packages. It is an front-end to dpkg.
-
index f6ca5b9c1b3a818ee1807d018560ce935adb4242..ed8257a08ef406ca1441f33680b82e7a5a98f6da 100755 (executable)
@@ -58,16 +58,23 @@ binary: binary-arch binary-indep
 
 binary-trees: build
        $(checkdir)
-       -$(RM) -r debian/tmp-{main,dev,dselect}
-       install -d debian/tmp-{main,dev,dselect}/{DEBIAN,etc/dpkg,usr/share/doc/dpkg}
+       -$(RM) -r debian/tmp-{main,dev}
+       install -d debian/tmp-{main,dev}/{DEBIAN,etc/dpkg,usr/share/doc/dpkg}
        install -d debian/tmp-dev/usr/{lib/dpkg,share/doc/dpkg-dev,sbin,bin}
        install -d debian/tmp-dev/usr/share/man/{ja/man1,man1,ja/man8,man8}
        install -d debian/tmp-dev/usr/share/emacs/site-lisp/dpkg-dev
        install -d debian/tmp-main/sbin
-       install -d debian/tmp-dselect/usr/share/man/{ja/man1,man1,ja/man8,man8}
-       install -d debian/tmp-dselect/usr/{bin,lib/dpkg}
-       install -d debian/tmp-dselect/var/lib/dpkg
-
+       set -e; if [ $(arch) = i386 ]; then \
+               sed -e 's/^# i386elf: //' <debian/preinst >$(mcidir)/preinst ; \
+       else \
+               sed -e '/^# i386elf: /d' debian/preinst >$(mcidir)/preinst ; \
+       fi
+       set -e; if [ -f debian/shlibs.default.$(arch) ]; then \
+               echo /etc/dpkg/shlibs.default >debian/tmp-dev/DEBIAN/conffiles ; \
+               cp debian/shlibs.default.$(arch) \
+                       debian/tmp-dev/etc/dpkg/shlibs.default ; \
+       fi
+       cp debian/{prerm,postinst} $(mcidir)/.
        $(MAKE) -C $(BUILD) top_distdir=. dist 
        $(MAKE) -C $(BUILD) \
                prefix=$(DIR)/debian/tmp-main/usr \
@@ -78,34 +85,19 @@ binary-trees: build
                sharedstatedir=$(DIR)/debian/tmp-main/var/lib \
                localstatedir=$(DIR)/debian/tmp-main/var/lib \
                install
-# Setup the dpkg-dev tree
-       set -e; if [ -f debian/shlibs.default.$(arch) ]; then \
-               echo /etc/dpkg/shlibs.default >debian/tmp-dev/DEBIAN/conffiles ; \
-               cp debian/shlibs.default.$(arch) \
-                       debian/tmp-dev/etc/dpkg/shlibs.default ; \
-       fi
-       install -p -m 755 debian/dev-postinst debian/tmp-dev/DEBIAN/postinst
-       install -p -m 755 debian/dev-prerm debian/tmp-dev/DEBIAN/prerm
+       install -m 755 debian/dev-postinst debian/tmp-dev/DEBIAN/postinst
+       install -m 755 debian/dev-prerm debian/tmp-dev/DEBIAN/prerm
        install -d debian/tmp-dev/etc/emacs/site-start.d
-       install -p -m 644 debian/50dpkg-dev.el debian/tmp-dev/etc/emacs/site-start.d/.
+       install -m 644 debian/50dpkg-dev.el debian/tmp-dev/etc/emacs/site-start.d/.
        install -d debian/tmp-dev/usr/lib/emacsen-common/packages/{install,remove}
-       install -p -m 755 debian/emacsen-common-remove \
-           debian/tmp-dev/usr/lib/emacsen-common/packages/remove/dpkg-dev
-       install -p -m 755 debian/emacsen-common-install \
+       install -m 755 debian/emacsen-common-remove \
+       debian/tmp-dev/usr/lib/emacsen-common/packages/remove/dpkg-dev
+       install -m 755 debian/emacsen-common-install \
        debian/tmp-dev/usr/lib/emacsen-common/packages/install/dpkg-dev
        cp scripts/debian-changelog-mode.el \
-           debian/tmp-dev/usr/share/emacs/site-lisp/dpkg-dev
+       debian/tmp-dev/usr/share/emacs/site-lisp/dpkg-dev
        rm -f debian/tmp-main/usr/share/{x,}emacs/site-lisp/debian-changelog-mode.el*
-       ln -s dpkg debian/tmp-dev/usr/share/doc/dpkg-dev
-# Setup the dpkg tree
-       install -p -m 755 debian/{prerm,postinst} $(mcidir)/
-       set -e; if [ $(arch) = i386 ]; then \
-               sed -e 's/^# i386elf: //' <debian/preinst >$(mcidir)/preinst ; \
-       else \
-               sed -e '/^# i386elf: /d' debian/preinst >$(mcidir)/preinst ; \
-       fi
-       chmod +x $(mcidir)/preinst
-
+       chmod +x $(mcidir)/{postinst,prerm,preinst}
        find debian/tmp-main/usr/share/man -type f | xargs gzip -9vf
        set -e; for f in dpkg-buildpackage dpkg-gencontrol dpkg-distaddfile \
                  dpkg-parsechangelog dpkg-genchanges dpkg-shlibdeps; do \
@@ -114,20 +106,8 @@ binary-trees: build
        done
        ln -s ../man7/undocumented.7.gz debian/tmp-main/usr/share/man/man1/dpkg-divert.1.gz
        gzip -9vf debian/tmp-main/usr/share/doc/dpkg/changelog*
-       install -p -m 644 debian/copyright debian/tmp-main/usr/share/doc/dpkg/copyright
-# Setup the dselect tree
-       install -p -m 755 debian/dselect-postinst debian/tmp-dselect/DEBIAN/postinst
-       install -p -m 755 debian/dselect-prerm debian/tmp-dselect/DEBIAN/prerm
-       set -e; for f in \
- usr/share/man/{ja,.}/man8/dselect.8.gz \
- usr/lib/dpkg/methods \
- var/lib/dpkg/methods \
- usr/bin/dselect \
-               ; do if [ -e debian/tmp-main/$$f -o -L debian/tmp-main/$$f ] ; \
-                       then mv -v debian/tmp-main/$$f debian/tmp-dselect/$$f; \
-               fi done
-       ln -s dpkg debian/tmp-dev/usr/share/doc/dselect
-# Move stuff from the dpkg tree to the other trees
+       cp debian/copyright debian/tmp-main/usr/share/doc/dpkg/copyright
+       ln -s dpkg debian/tmp-dev/usr/share/doc/dpkg-dev
        set -e; for f in \
  usr/share/doc/dpkg/{internals.html,changelog.manuals.gz} \
  usr/bin/dpkg-{source,genchanges,gencontrol,shlibdeps,buildpackage,parsechangelog} \
@@ -173,7 +153,7 @@ binary-indep: binary-trees
 
 binary-arch: binary-trees
        $(checkdir)
-#      mv debian/tmp-main/usr/sbin/start-stop-daemon debian/tmp-main/sbin/start-stop-daemon
+       mv debian/tmp-main/usr/sbin/start-stop-daemon debian/tmp-main/sbin/start-stop-daemon
        -strip debian/tmp-main/usr/{bin,sbin}/* debian/tmp-main/sbin/*
        -strip --strip-unneeded debian/tmp-main/usr/lib/libdpkg.so.*
        -strip --strip-debug debian/tmp-main/usr/lib/libdpkg.a
@@ -189,13 +169,6 @@ binary-arch: binary-trees
                dpkg-distaddfile -f$(DIR)/debian/files $${file}.gz byhand -
        dpkg-deb --build debian/tmp-main ..
 
-       -strip debian/tmp-dselect/usr/{bin,sbin}/*      
-       dpkg-shlibdeps -dDepends debian/tmp-dselect/usr/bin/*
-       dpkg-gencontrol -pdselect -Pdebian/tmp-dselect
-       chown -R root.root debian/tmp-main
-       chmod -R g-ws,a+r,u+w debian/tmp-main
-       dpkg-deb --build debian/tmp-dselect ..
-
 define checkdir
        test -f include/dpkg.h.in
 endef
index 996817346fafa0f304f4dd3caf003a7bacd3ab07..bc4e1b1fdf4216bc8ee581671fdf4a1f32ea5010 100644 (file)
@@ -515,7 +515,6 @@ void filesdbinit(void) {
       for (fnn= bins[i]; fnn; fnn= fnn->next) {
         fnn->flags= 0;
         fnn->oldhash= 0;
-       fnn->stat= 0;
       }
     break;
   case -1:
@@ -524,7 +523,6 @@ void filesdbinit(void) {
          fnn= fnn->next) {
       fnn->flags= 0;
       fnn->oldhash= 0;
-      fnn->stat= 0;
     }
     break;
   default:
index 828f7253b016c29fe8fb26af9107c16a9a5fa0b1..e09c03ad7ebe5cb060777a6edb1a390987fde43e 100644 (file)
@@ -83,7 +83,6 @@ void process_archive(const char *filename) {
   struct dirent *de;
   struct stat stab;
   struct packageinlist *deconpil, *deconpiltemp;
-  enum versiondisplayepochwhen needepochs;
   
   cleanup_pkg_failed= cleanup_conflictor_failed= 0;
   admindirlen= strlen(admindir);
@@ -600,7 +599,7 @@ void process_archive(const char *filename) {
        * the process a little leaner. We are only worried about new ones
        * since ones that stayed the same don't really apply here.
        */
-      struct stat oldfs, *newfs;
+      struct stat oldfs, newfs;
       int donotrm = 0;
       /* If we can't stat the old or new file, or it's a directory,
        * we leave it up to the normal code