Le Fri, Jan 30, 2009 at 09:00:46AM -0800, Russ Allbery a écrit : > > What this is saying is that substvars will be expanded by those three > programs when generating the *.dsc, the *.changes, and the binary control > files. However, while build dependency information is copied into the > *.dsc file, my understanding is that it's not read from that file for > package builds. Build dependency information is read directly from > debian/control and hence cannot get the benefit of any pre-processing of > debian/control. See dpkg-source(1) under the description of the -c > option.
Hi Russ, I am not sure I understand. From reading the man page of dpkg-source, it seems to me that: - The 'control' file is used to generate the .dsc file. - The location of the 'control' file is debian/control by default, but this can be changed with the -c option. I have not found evidence in the documentation nor in the source that the building of the .dsc file is a two-step process as you describe. aqwa『~』$ grep -A1 -B1 dsc /usr/bin/dpkg-source # Write the .dsc my $dscname = $srcpkg->get_basename(1) . ".dsc"; info(_g("building %s in %s"), $sourcepackage, $dscname); $substvars->parse($varlistfile) if $varlistfile && -e $varlistfile; $srcpkg->write_dsc(filename => $dscname, remove => \%remove, -- unless (scalar(@ARGV)) { usageerr(_g("-x needs at least one argument, the .dsc")); } -- } my $dsc = shift(@ARGV); if (-d $dsc) { usageerr(_g("-x needs the .dsc file as first argument, not a directory")); } -- # Create the object that does everything my $srcpkg = Dpkg::Source::Package->new(filename => $dsc, options => \%options); -- } else { warning(_g("extracting unsigned source package (%s)"), $dsc); } -- Commands: -x <filename>.dsc [<output-dir>] extract source package. -- -T<varlistfile> read variables here, not debian/substvars. -D<field>=<value> override or add a .dsc field and value. -U<field> remove a field. I still do not understand what makes it "nonsense" to use substvars for the generation of the .dsc and .changes file. Have a nice day, -- Charles Plessy Tsurumi, Kanagawa, Japan -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org