Adam Heath [Sun, 14 Jan 2001 08:40:57 +0000 (08:40 +0000)]
Removed duplicate code that was used to exec maintainer scripts, and moved
it to a single function. In the future, this single function could be used
for tracking script execution.
Adam Heath [Thu, 4 Jan 2001 07:35:21 +0000 (07:35 +0000)]
Add 'warn' parameter to waitsubproc and checksubprocerr, and also add a
return value. This fixes my last checkin, where
maintainer_script_alternative would run both the old and new script.
Adam Heath [Wed, 27 Dec 2000 20:57:54 +0000 (20:57 +0000)]
Removed use of getc(), and instead use pointers into a gigantic memory
buffer(either thru mmap, or by copying into a large buffer(#define
PARSE_MMAP)). Nice little speedup, and also had the added benefit of
removing varbuf* code from parsedb().
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