On 2011-02-28 12:03 +0100, Raphael Hertzog wrote:

> On Mon, 28 Feb 2011, Peter Eisentraut wrote:
>> The 3.0 source formats by default ignore what dpkg-source -I would exclude.  
>> It appears that as soon as you explicitly use -Isomething, this effect is 
>> canceled and you need to use -I to get it back.
>
> Yes.
>
>> In my test case, a directory has .svn directories lying around and uses 
>> source 
>> format 3.0 (native).  Building a source package with dpkg-buildpackage -S 
>> excludes the .svn directories from the .tar.gz, as one would expect.  But 
>> running dpkg-buildpackage -S -Ifoo causes the .svn directories to appear in 
>> ..tar.gz.  You have to use dpkg-buildpackage -S -I -Ifoo to get the desired 
>> outcome.
>> 
>> This effect is a bit questionable in my mind, but even it is intentional, it 
>> would be good to document it explicitly.  (simple addition of "Note: When 
>> using an -I option, the default ignores of the 3.0 formats are canceled.  
>> You 
>> would need to use -I without argument to get them back.)
>
> It was completely intentional. It might not have been the best choice.
>
> I wanted to keep a way to cancel the defaults by giving your own list of
> what you want to ignore. 
>
>> Better yet might be to keep the default ignores always and add an explicit 
>> unignore option.
>
> I wanted to keep some similarity with the behaviour of -i but that might
> not be a good idea. After all -I was always allowed to be used multiple
> times while -i was not.
>
> Not sure what the best interface is. unignore doesn't allow to drop all
> the defaults ignore but only those that you know of. OTOH, you're more
> likely to want to not ignore a specific file type rather than all.

I think this (unignoring certain files) would be most useful.  For
instance, in ncurses I would like to ship a few linker scripts in
debian/, and for that it is necessary to unignore *.so or at least
debian/*.so.  I'm fine with the other defaults, but right now it is
necessary to copy the whole lot to debian/source/options.  And it will
get out of sync with dpkg-source's defaults sooner or later.

Cheers,
       Sven



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to