Improve processing of disappearing conffiles (Ian Jackson).
This is part of the fix for #108587.
* lib/dpkg-db.h (conffile): Add `obsolete' field.
* lib/dump.c (w_conffiles): Write "obsolete" at the
end of conffile entry if obsolete is set.
* lib/fields.c (f_conffiles): Parse entries for
obsolete conffiles correctly.
* src/filesdb.h (filenamenode.flags): Add new
flag for obsolete conffiles.
* src/remove.c (removal_bulk_remove_configfiles):
Handle obsolete conffiles.
* src/archives.c (newconff_append): New function
to append a filenamenode to a fileinlist.
(addfiletolist): New function to add a filenamenode
to a tarcontext.
(tarobject): Use new addfiletolist function.
Handle case where a new package takes over
an obsolete conffile from another package.
* src/archives.h: Add declaration of the
addfiletolist function.
* src/processarc.c (process_archive): Use new
newconff_append function from archives.c.
Detect obsoleted conffiles and mark them as such.
* src/help.c (chmodsafe_unlink): Make it possible
to differentiate between failed chmod and failed
unlink by adding a new `failed' argument which
will be set to the name of the failed command.
(chmodsafe_unlink_statted): New function that
can be called if we already have a stat result for
the file/directory to be removed.
(ensure_pathname_nonexisting): Give better error
messages by utilizing the changes to
chmodsafe_unlink.
* src/main.h: Reflect changes in archives.c
and help.c (add declarations for newconff_append
and chmodsafe_unlink_statted and change the
one of chmodsafe_unlink).
(conffopt): Add new isold flag.
Guillem Jover [Fri, 10 Feb 2006 03:52:11 +0000 (03:52 +0000)]
Document about the default log file, the behaviour in case of multple
--log options and add a reference to dpkg.cfg manpage in the dpkg manpage.
Thanks to James R. Van Zandt. Closes: #350440
Guillem Jover [Fri, 10 Feb 2006 02:58:04 +0000 (02:58 +0000)]
Add command descriptions in the synopis, and add a usage example for
-f in the dpkg-query manpage. Thanks for the initial patch to
Philippe Batailler. Closes: #352091
Guillem Jover [Wed, 8 Feb 2006 04:16:41 +0000 (04:16 +0000)]
Use pkg-config to get the proper flags to link against libselinux.
Add a Build-Dependency on pkg-config, thighten libselinux1-dev to
at least version 1.28-4 which provides a .pc file, and remove
libsepol1-dev as libselinux1-dev is Depending on it.
Guillem Jover [Mon, 6 Feb 2006 21:28:52 +0000 (21:28 +0000)]
Cleanup and unify program usage and version output, make it more i18n
friendly. Fix wrong gettext usage with interparsed macros.
Thanks to Changwoo Ryu for noticing. Closes: #23791
Re-run po4a-gettextize
Correct accented letters problems in German man pages
Remove accidental English "translations" in some PO files
Thanks to Nicolas François for the patch
Make dpkg-source -b more robust
regarding to existing symlinks by creating all files
in secure temporary files and renaming them afterwards.
This fixes problems with packages retrieved with
apt-get source from local repositories. Closes: #178839, #338591
* man/C/dpkg-source.1: Document that the -sX switches for
dpkg-source are mutually exclusive and only one can be in
effect.
* scripts/dpkg-source.pl: Warn if more than one -sX switch
is specified on the command line. Closes: #246637
* man/C/dpkg-scanpackages.1: Document new dpkg-scanpackages
-m option.
* scripts/dpkg-scanpackages.pl: Rewrite the script to support
multiple versions of packages in a single Packages file;
use Getopt::Long instead of attempting to parse the command line
ourselves and doing it badly;
get rid of unecessary hashes and arrays that aren't used at all;
output help when given the --help/-h/-? options Closes: #229589, #319541
Let dpkg-buildpackage create a .changes file even if signing the
.dsc file failed. This makes it easier to just sign the package
later (Julian Gilbey). Closes: #217963
Guillem Jover [Sat, 28 Jan 2006 04:29:10 +0000 (04:29 +0000)]
Make dpkg-architecture not print the warning about a missmatch between
gcc target machine type and GNU target system type if the actions are
'-e' or '-i'.
* Honor LD_LIBRARY_PATH in dpkg-shlibdeps. Fixes a regression
from 1.13.11 to .12.
* Don't recurse into package directories to search for local
shlibs files since it is obviously a waste of time. Based
on a suggestion by Steve Langasek. Closes: #338725
Guillem Jover [Thu, 26 Jan 2006 21:07:16 +0000 (21:07 +0000)]
Document the correct format string for dpkg-query --showformat option.
Update -l example and lower case the program name in the title header.
Thanks to Zefram <zefram@fysh.org>. Closes: #174976
* AUTHORS: Updated for new maintainance team
* debian/copyright: Add myself as copyright holder since
I also added a note to that effect with my dpkg-shlibdeps
patch.
Guillem Jover [Mon, 23 Jan 2006 18:38:09 +0000 (18:38 +0000)]
Change start-stop-daemon's --exec option behaviour on GNU/Linux to
compare the filename pointed by '/proc/<pid>/exe' instead of the inode
and device numbers. Thanks to Vasilis Vasaitis <v.vasaitis@sms.ed.ac.uk>. Closes: #337942
Change version number to 1.13.12 and target suite to experimental.
Also add a warning to the changelog about the experimental nature
of some of the changes.
dpkg-source: Don't use \b to match the end
of the version in filenames, use (?=[.-]) and (?=\.) instead.
\b doesn't work in case the version ends with ~.
Don't use the ldd output in dpkg-shlibdeps. Search for the
matching libraries ourself. This fixes problems with both
symlinked directories Closes: #103024, #145714, #164020, #285857
and biarch builds Closes: #317082
Guillem Jover [Mon, 23 Jan 2006 04:50:40 +0000 (04:50 +0000)]
Add support for architecture wildcards, but for now they will only be
exposed in debian/control files, not in binary nor source packages. Closes: #291939
Guillem Jover [Sun, 22 Jan 2006 23:21:50 +0000 (23:21 +0000)]
When linking statically, explicitly add libsepol, even if its only a
transitive library. The proper fix should come with a pkg-config file.
Based on a patch by Bart Martens <bart.martens@advalvas.be>.
Add support "package types" to dpkg-shlibdeps. Patch by
Joey Hess. Closes: #345475
* scripts/dpkg-shlibdeps: Add possibility to
specify a package type in the shlibs file
and add a -t switch to dpkg-shlibdeps to
specify the wanted type. Entries without
package type will have type 'deb' and will
serve as fallback if no entry with the
correct type is found
* man/C/dpkg-source.1: Document new -t
switch for dpkg-shlibdeps
Check for illegal architecture strings in dpkg-gencontrol and
dpkg-source. dpkg-gencontrol will only issue a warning while
dpkg-source will error out. Closes: #96920
Let dpkg-source ensure (as good as possible) that all
build source packages can also be unpacked. Closes: #6820, #7014
* scripts/controllib.pl:
(checkversion) add generic check for valid version numbers
(checkpackagename) add generic check for valid package
names
(readmd5sum) add generic function to extract md5sum from
md5sum program output
(setsourcepackage) call checkpackagename on new value
* scripts/dpkg-source.pl: Use the new checks added to
controllib to ensure validity of version and packagename
on build, too. Previously this was only done on
unpack.
Test on build if directories added by diff already exist with
other type in the original source since we already tested that
on unpack.
(addfile): Test if files are added
twice. Should not happen but as we error out on unpack
better make sure it doesn't.
Check the gpg signatures of .dsc files before unpacking. See
the upstream changelog for a full description of the semantics.
Based on a patch by Matt Zimmerman. Closes: #48711