[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#839086: lintian: invalid-restriction-formula-in-build-profiles-field seems to be buggy



Hi,

Quoting Jakub Wilk (2016-09-29 14:05:37)
> * Ximin Luo <infinity0@debian.org>, 2016-09-28, 19:53:
> >$ lintian -i -I --pedantic --color auto ../cysignals_1.1.1+ds-1_source.changes
> >E: cysignals source: invalid-restriction-formula-in-build-profiles-field <pkg.cysignals.pari> python-cysignals-pari
> >
> >but I am doing exactly as https://wiki.debian.org/BuildProfileSpec says
> 
> The regexp we use for Build-Profiles validation allows only for lowercase 
> letters and numbers in the profile name. Not sure why.
> 
> Johannes, can you have a look at it?

Niels already pinged me in #debian-qa about that. It seems that we failed to
update Lintian with the pkg.$name.$something syntax.

A regex that would work with that in mind could be:

/^(?:[a-z0-9]+|pkg\.[a-z0-9][-+\.a-z0-9]+\.[a-z0-9])$/

So either just alphanumeric or the "pkg." prefix followed by a valid source
package name, followed by a dot and again only alphanumeric.

Indeed the only place where we restrict build profile names to only allow
alphanumeric characters is in lintian. Nothing like that is mentioned in the
spec. Maybe it should...

Sorry, for not having updated this bug after talking on IRC!

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature


Reply to: