Adam Heath [Sat, 20 Sep 2003 00:57:39 +0000 (00:57 +0000)]
* lib/varbuf.c, configure.in: Fix va_copy detection.
* scripts/dpkg-buildpackage.sh: Back out debian/rules build-arch detection.
It is *not* possible *at all* to detect available targets in a rules
file. Period.
Adam Heath [Fri, 19 Sep 2003 17:29:08 +0000 (17:29 +0000)]
* scripts/{controllib,dpkg-{source,checkbuilddeps,control}}.pl:
* Rewrote the parsedep stuff, so that it wasn't done during control file
parsing. Scripts that need the internal parsed format should call
parsedep on the field's value.
* Split the substvars parsing into a separate function.
* No longer validate dependency fields when reading the control file.
Some fields may have vars in them, which breaks the validation.
* dpkg-gencontrol calls substvars after parsing the control file, and
then validates the substituted depends lines. Originally,
substitution occured only during writing of the final output file.
* Andreas Barth <aba@not.so.argh.org>:
Fix bad regex that didn't allow spaces in dependency field parsing.
It now directly matches what the c code expects. It previously was
allowing all of \S, which matched on '('. Closes: #211660.
* debian/control: Remove stale debug that would have broken installation on
s390.
* debian/rules: We were calling our own local copy of dpkg-gencontrol, but
the system-installed copy of dpkg-shlibdeps. Now, both are called from
the build directory.
Adam Heath [Wed, 17 Sep 2003 18:25:50 +0000 (18:25 +0000)]
* scripts/controllib.pl: Fix parsing of deps when both () and [] are
specified.
* scripts/controllib.pl: Set $host_arch in controllib.pl:parsedep.
* scripts/dpkg-checkbuilddeps.pl: Don't output the [] stuff when finding
invalid deps.
Adam Heath [Mon, 15 Sep 2003 23:49:28 +0000 (23:49 +0000)]
In dpkg-buildpackage, call debian/rules -qn build-arch, and if it's
available, modify -B handling appropriately. If build-arch is not
available, then when -B was called, do *not* pass -B on to
dpkg-checkbuilddeps.
Adam Heath [Mon, 15 Sep 2003 02:17:44 +0000 (02:17 +0000)]
* scripts/controllib.pl, scripts/dpkg-checkbuilddeps.pl: Moved dependency
parsing logic from dpkg-checkbuilddeps. The dpkg-checkbuilddeps parser
didn't support empty fields, while the controllib parser did.
* scripts/controllib.pl:
* Dependency fields are now parsed into a nested list structure.
* All dependency fields now support [arch] constructs. Those that don't
apply for the current host_arch are removed during parsing.
* Comment lines(those that start with '#') are ignored during parsing.
* Store the original field's casing with 'o:' prepended in %fi.
* scripts/dpkg-checkbuilddeps.pl: Because of the above controllib.pl
changes, this script is much simpler now.
* scripts/dpkg-gencontrol.pl:
* Use the original casing of field names when reporting unknown fields.
* scripts/dpkg-gencontrol.pl, scripts/controllib.pl: After opening files,
Adam Heath [Sun, 14 Sep 2003 21:54:41 +0000 (21:54 +0000)]
* scripts/update-alternatives.{pl,8}:
* Apply patch that provides --set and --remove-all commands.
* --all calls --config on all alternatives.
* scripts/update-alternatives.pl:
* Alter --config prompt, to be more clear, that one must 'press' enter to
accept the default.
* Fix some -w issues.
* Check whether the target path exists when removing.
Adam Heath [Sun, 14 Sep 2003 01:49:08 +0000 (01:49 +0000)]
* scripts/update-alternatives.8: Add --config to action section, and add
as EXAMPLES section.
* scripts/install-info.pl: install-info --version and --help now display
on stdout.
* main/dpkg{,-query}.8: Mention what -S will not find.
* main/dpkg.8: Mention that downgrading a package can have serious
consequences.
* scripts/dpkg-scanpackages.8: Include small note that other tools might
use the generated Packages file.
* scripts/dpkg-source.1: Fix some typos.
* dselect/dselect.8: dselect is not the only interface for installing
packages nowadays.
* utils/start-stop-daemon.8: Note that --nicelevel takes an argument.
* man/en/deb-control.8: Remove duplicate 'can'.
* scripts/dpkg-scansources.pl: Fix short description.
* main/dpkg.8: Move dpkg-query options to their own subsection, like
dpkg-deb.
* main/main.c, main/dpkg.8: Add --dry-run and --simulate as synonyms to
--no-act.
* scripts/dpkg-architecture.pl: Fix wrong reference to
DEB_BUILD_GNU_SYSTEM on --host
* man/en/deb-control.5: s/Usuaully/Usually/
* dselect/dselect.8: Removed reference in dselect(8) about recommends not
being handled well.
* scripts/dpkg-parsechangelog.pl: s/dpkg-source/dpkg-parsechangelog/ in
-h
* scripts/dpkg-source.1: Unhighlight "May be repeated multiple times."
* dpkg-deb/main.c: Make all actions in -h lower case.
* utils/start-stop-daemon.[c8]: Add -g|--group.
* main/dpkg.8: s/THANKS/THANKS.gz/
* main/dpkg.8: Mention running dselect, install after --set-selections.
* main/main.c: Remove disabled --command-fd from help.
Adam Heath [Thu, 5 Sep 2002 21:31:54 +0000 (21:31 +0000)]
Make the multiline regex have an upper bound, instead of being unbounded,
as newer perls have a larger stack frame, which cause them to segfault
quicker with larger inputs.
Adam Heath [Sun, 1 Sep 2002 04:47:03 +0000 (04:47 +0000)]
Don't call nffreeall, in any of the c/c++ programs. It appears dselect
slightly corrupts it's memory enough that it can't be freed without
segfaulting.
Adam Heath [Sat, 24 Aug 2002 20:43:08 +0000 (20:43 +0000)]
Previous install-infos(before 1.10) handled multiple dir file entries,
because they would copy the entire stanza unmodified. The newest version
does not do this, as it reformats the options, and thereby only takes the
first line. So, we now split all the lines from the stanza, and process
them all.