Package: devscripts
Version: 2.10.61
Severity: normal
Tags: patch
My /etc/apt/sources.list contains only component 'main' in deb-src line,
and when I run build-rdeps, it shows error messages "No such file or
directory" about missing Sources for components 'contrib' and
'non-free':
$ LANG=C build-rdeps xqilla
Reverse Build-depends in main:
------------------------------
No reverse build-depends found for xqilla.
Reverse Build-depends in contrib:
---------------------------------
/usr/bin/grep-dctrl:
/var/lib/apt/lists//ftp.se.debian.org_debian_dists_sid_contrib_source_Sources:
No such file or directory
No reverse build-depends found for xqilla.
Reverse Build-depends in non-free:
----------------------------------
/usr/bin/grep-dctrl:
/var/lib/apt/lists//ftp.se.debian.org_debian_dists_sid_non-free_source_Sources:
No such file or directory
No reverse build-depends found for xqilla.
Here is a patch that adds simple check for existance of Sources files
for each component.
The latter part of patch changes conditions in such way that it works
also for unknown components if any.
Index: scripts/build-rdeps.pl
===================================================================
--- scripts/build-rdeps.pl (revision 2077)
+++ scripts/build-rdeps.pl (working copy)
@@ -188,7 +188,8 @@
$filename =~ s/\//_/g;
# -> ftp.debian.org_..._main_source_Sources
$filename = "${base}_${filename}";
- if (test_for_valid_component($filename) == 0) {
+ if (test_for_valid_component($filename) == 0
+ and -e "$sources_path/$filename") {
push(@source_files, $filename);
print STDERR "DEBUG: Added source file: $_\n" if ($opt_debug);
}
@@ -305,17 +306,23 @@
findreversebuilddeps($package, "$sources_path/$source_file");
}
- if ($source_file =~ /contrib/) {
+ elsif ($source_file =~ /contrib/) {
print "Reverse Build-depends in contrib:\n";
print "---------------------------------\n\n";
findreversebuilddeps($package, "$sources_path/$source_file");
}
- if ($source_file =~ /non-free/) {
+ elsif ($source_file =~ /non-free/) {
print "Reverse Build-depends in non-free:\n";
print "----------------------------------\n\n";
findreversebuilddeps($package, "$sources_path/$source_file");
}
+
+ else {
+ print "Reverse Build-depends in UNKNOWN:\n";
+ print "----------------------------------\n\n";
+ findreversebuilddeps($package, "$sources_path/$source_file");
+ }
}
=head1 LICENSE
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.31-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages devscripts depends on:
ii dpkg-dev 1.15.5.6 Debian package development tools
ii libc6 2.10.2-5 Embedded GNU C Library: Shared lib
ii perl 5.10.1-8 Larry Wall's Practical Extraction
Versions of packages devscripts recommends:
ii at 3.1.12-1 Delayed job execution and batch pr
ii bsd-mailx [mailx] 8.1.2-0.20090911cvs-2 simple mail user agent
ii bzr 2.0.3-1 easy to use distributed version co
ii curl 7.19.7-1 Get a file from an HTTP, HTTPS or
ii cvs 1:1.12.13-12 Concurrent Versions System
ii dctrl-tools 2.14 Command-line tools to process Debi
ii debian-keyring [de 2009.11.04 GnuPG (and obsolete PGP) keys of D
ii dput 0.9.5.1 Debian package upload tool
ii epiphany-gecko [ww 2.26.3-2 Intuitive GNOME web browser - Geck
ii equivs 2.0.7-0.1 Circumvent Debian package dependen
ii fakeroot 1.14.4-1 Gives a fake root environment
ii git-core 1:1.6.6-1 fast, scalable, distributed revisi
ii gnupg 1.4.10-2 GNU privacy guard - a free PGP rep
ii libauthen-sasl-per 2.13-1 Authen::SASL - SASL Authentication
ii libcrypt-ssleay-pe 0.57-2 Support for https protocol in LWP
ii libparse-debcontro 2.005-2 Easy OO parsing of Debian control-
ii libsoap-lite-perl 0.710.10-1 Perl implementation of a SOAP clie
ii libterm-size-perl 0.2-4+b1 Perl extension for retrieving term
ii libtimedate-perl 1.1900-1 Time and date functions for Perl
ii liburi-perl 1.50-1 module to manipulate and access UR
ii libwww-perl 5.834-1 Perl HTTP/WWW client/server librar
ii libyaml-syck-perl 1.07-1 fast, lightweight YAML loader and
ii lintian 2.3.1 Debian package checker
ii lsb-release 3.2-23 Linux Standard Base version report
ii lynx-cur [www-brow 2.8.8dev.2-1 Text-mode WWW Browser with NLS sup
ii lzma 4.43-14 Compression method of 7z format in
ii man-db 2.5.6-5 on-line manual pager
ii openssh-client [ss 1:5.2p1-1 secure shell (SSH) client, for sec
ii patch 2.6-2 Apply a diff file to an original
ii patchutils 0.3.1-2 Utilities to work with patches
ii sensible-utils 0.0.2 Utilities for sensible alternative
ii strace 4.5.19-1 A system call tracer
ii subversion 1.6.6dfsg-2 Advanced version control system
ii unzip 6.0-1 De-archiver for .zip files
ii w3m [www-browser] 0.5.2-2.1 WWW browsable pager with excellent
ii wdiff 0.5-19 Compares two files word by word
ii wget 1.12-1.1 retrieves files from the web
Versions of packages devscripts suggests:
ii build-essential 11.4 Informational list of build-essent
pn cvs-buildpackage <none> (no description available)
ii devscripts-el 31.4 Emacs wrappers for the commands in
pn gnuplot <none> (no description available)
pn libfile-desktopentry-perl <none> (no description available)
pn libnet-smtp-ssl-perl <none> (no description available)
pn mutt <none> (no description available)
ii svn-buildpackage 0.7.1 helper programs to maintain Debian
ii w3m 0.5.2-2.1 WWW browsable pager with excellent
-- no debconf information