[debhelper-devel] Bug#781131: Bug#781131: dh_compress: please improve "--exclude" (-X) option

Maximiliano Curia maxy at gnuservers.com.ar
Wed Oct 14 19:50:59 UTC 2015


¡Hola Dmitry y Niels!

El 2015-03-25 a las 17:11 +1100, Dmitry Smirnov escribió:
> On Wed, 25 Mar 2015 07:03:37 Niels Thykier wrote:
>> A new argument is a much safer choice from my PoV.

> True but since old "--exclude" argument is somewhat broken, perhaps it could 
> be fixed with next compatibility level bump? Just a thought...

I'm not really sure whether to retitle this bug or to submit a new one, but 
the issue is about the same, it would be nice to have some improvements in
debhelper's exclude option.

The current implementation ends up using the values in a find -regex after 
escaping some shell chars. Making it unnecessarily hard to exclude a file in a 
multiarch path (for example, excluding plugins in dh_makeshlibs).

Just to make the behaviour more bizarre, if the item contains a space then the 
list of chars that are escaped are much shorter, thus it's possible but quite 
awful to use exclude values such as:
 -X' ?usr/lib/[^/]*/?plugins/'

(Which is close to what I ended up using, because of the lintian's 
pkg-has-shlibs-control-file-but-no-actual-shared-libs check that now produces 
an error on signon-kwallet-extension if not.)

Happy hacking,
-- 
"The best way to predict the future is to invent it."
-- Alan Kay
Saludos /\/\ /\ >< `/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20151014/0bf2e4ad/attachment-0001.sig>


More information about the debhelper-devel mailing list