[debhelper-devel] Bug#498383: Add tag support for debhelper files

Niels Thykier niels at thykier.net
Sun Mar 6 11:07:59 UTC 2016


Control: reassign -1 dh-exec
Control: tags -1 -patch

Hi,

I am reassigning this feature request to dh-exec, because it is the
primary interface for fancy filtering the debhelper config files at the
moment.   I am not aware if dh-exec already supports particular filter.

The original request is quoted in full beyond for the convenience of the
dh-exec maintainer (excl. the original patch, which will not apply to
dh-exec).

Thanks,
~Niels

On Tue, 09 Sep 2008 17:22:21 +0200 Goswin von Brederlow
<goswin-v-b at web.de> wrote:
> Package: debhelper
> Version: 8.0.0~mrvn.1
> Severity: wishlist
> Tags: patch
> 
> Hi,
> 
> during the recent emDebian work session in Extremadura we talked about
> how to reduce the amount of patching emDebian has to do on debhelper
> files due to using special DEB_BUILD_OPTIONS (specifically nodoc). The
> problem is that depending on DEB_BUILD_OPTIONS the amount of files
> debhelper should act upon varies.
> 
> The solution we came up with is to tag lines and let debhelper match
> those tags against DEB_BUILD_OPTIONS and some DEB_HOST_*. That way
> lines can be made conditional.
> 
> The syntax is fairly simple. Tags are single words that can be
> prefixed by ! to negate the match. A list of tags is tags seperated by
> space. A line can be tagged by prefixing it with a list of tags
> enclosed in []:
> 
> [tag1 !tag2 tag3] source [<dest>]
> 
> A list of tags matches if all tags are present in DEB_BUILD_OPTIONS
> (or not for !) and then the source [<dest>] pair is used. Otherwise
> the line is ignored. Lines without tag are always used.
> 
> 
> Using the tags the same debhelper files can be used for normal builds
> and builds with DEB_BUILD_OPTIONS=nodoc once the respective doc files
> have been tagged [!nodoc].
> 
> MfG
> 	Goswin
> 
> [...]

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20160306/17297bac/attachment-0002.sig>


More information about the debhelper-devel mailing list