Adam Heath [Tue, 26 Dec 2000 10:37:27 +0000 (10:37 +0000)]
Increased the speed of convert_string() by a factor of 2, by storing the
length of each string inside the struct(this function is used to convert
strings into integer values).
This is the first speedup discovered by using gprof.
Wichert Akkerman [Sun, 24 Dec 2000 16:59:21 +0000 (16:59 +0000)]
Undo earlier changes from Adam to handle -W options for the compiler
and do things much simpler instead based on the old working but not
correctly used code.
Adam Heath [Sun, 24 Dec 2000 03:27:43 +0000 (03:27 +0000)]
Clean up a few gcc warnings. Note that the warning:
"deprecated conversion from string constant to `char *'"
is actually a bug in ncurses-dev(which has been filed as 80410) not setting
the fmt argument as const.
Adam Heath [Wed, 20 Dec 2000 08:21:27 +0000 (08:21 +0000)]
Move -D_GNU_SOURCE from configure.in to Makefile, and from CFLAGS to DEFS.
This macro was getting lost if someone was setting CFLAGS on the cmdline.
Perhaps this should be moved into config.h.in?
Adam Heath [Wed, 20 Dec 2000 07:42:03 +0000 (07:42 +0000)]
* main/processarc.c: Don't copy trailing zeros from dpkg-deb pipe.
* main/archives.c: Fix some i8ln.
* dpkg-deb/extract.c: Remove skipmember(), and use the buffer copy code.
Wichert Akkerman [Sun, 17 Dec 2000 16:37:04 +0000 (16:37 +0000)]
More Adam stuff:
+ lib/mlib.c, include/dpkg.h.in: make do_fd_copy even more modular
+ dpkg-deb/{build.c,extract.c,info.c}, lib/showcright.c,
main/{enquiry.c,filesdb.c}: updated for new do_fd_copy routines
+ main/{archives,[ch],main/processarc.c}: use fds instead of streams
so we don't mix fd and stream-based IO which can cause havoc
Wichert Akkerman [Wed, 13 Dec 2000 16:08:18 +0000 (16:08 +0000)]
main/archives.c: create files, fifos, devices and directories with mode 0
too close a small window when they are readable before we apply the correct
permissions.
main/archives.c: newtarobject_allmodes() updated to handle statoverrides
scripts/dpkg-statoverride.pl, main/filesdb.c: merge patch from
Robert Luberda <robert@pingu.ii.uj.edu.pl> to fix statoverrides
using numerical [ug]ids
Merge updats from the v17 branch:
+ scripts/dpkg-buildpackage.sh: Quote test options for usepause
+ scripts/dpkg-shlibdeps.pl: resolve library paths using a combination
of the libc major version, and ldconfig -p output. Solves problems
with errant libc5 deps.
+ scripts/dpkg-shlibdeps.pl: Make it parse soname's in the format of
"libfoo-X.X.so" (e.g. libdb-3.1.so) and use it. Also make it give a
warning if there is a NEEDED line in the objdump output that we cannot
grok.
+ scripts/update-rc.d.pl: fix typo in regexp for scripts
+ debian/rules: remove final occurance of emacs
include/dpkg.h.in: remove defines for cat and dpkg-safelist since they are no longer used
lib/mlib.c: split up do_fd_copy
lib/varbuf.c: add varbufvprintf
lib/parse.c: use memset to initialize fieldencountered
main/filesdb.c: use new read_fd_into_buf
Wichert Akkerman [Fri, 24 Nov 2000 16:01:12 +0000 (16:01 +0000)]
scripts/dpkg-scansources.pl: Fix getopt usage since perl5.6 complains about it.
doc/deb-old.5,doc/deb.5,main/dpkg.8,scripts/dpkg-name.1, split/dpkg-split.8 : update to reflect that dpkg-deb is in section 1
Wichert Akkerman [Thu, 23 Nov 2000 17:54:19 +0000 (17:54 +0000)]
lib/mlib.c: fix error reporting for reading data in do_fd_copy
optlib/Makefile.am: remove (can't believe this still existed!)
utils/Makefile.in: link md5sum with our own libintl if needed
archtable, scripts/dpkg-architecture.pl: add freebsd-i386
acconfig.h, configure.in, doc/Makefile.in: make building documentation and start-stop-daemon optional
main/help.c: only check for start-stop-daemon in checkpatch() if we build it
scripts/dpkg-statoverride.8: fix typos
scripts/dpkg-statoverride.pl: replace dpkglibdir with admindir (oops)
scripts/update-alternatives.pl: handle the fact that the Makefile
changes our $admindir assignment so we have to manually add
"/alternatives" to the path
scripts/dpkg-buildpackage.sh: fix logic error in source-only building
scripts/dpkg-source.pl: handle Bugs and Origin tags
po/*: updated for current sources
debian/rules, debian/origin: add new origin file
scripts/dpkg-gencontrol.pl: rename Bugs-Submit-To to Bugs
debian/control: add Bugs and Origin entries
lib/database.c, parse.c: add Origin and Bugs to fieldinfos table
include/dpkg-db.h: add Origin and Bugs to pkginfoperfile struct
dpkg-deb/main.c, dpkg-deb/dpkg-deb.h: fix type for compression
Makefile.in: install origin file