Re: How to suppress "source-is-missing" lintian error?

2020-08-14 Thread Sergio Durigan Junior
On Thursday, August 13 2020, Ángel wrote:

> On 2020-08-13 at 12:47 -0700, A. Lewenberg wrote:
>> I am trying to suppress some lintian errors in my package build. I see 
>> this error when running lintian:
>> --
>> E: stanford-spdb source: source-is-missing 
>> usr/share/spdb/vendor/assets/javascripts/bootstrap-4.4.1.min.js
>> (...)
>> How do I get lintian to be quiet about this?
>
> Add a depends on libjs-bootstrap and remove this minified file from your
> package?

This is the right way to go, except that he will want libjs-bootstrap4
instead, based on the lintian error.

If you have other JavaScript dependencies that are not package yet, you
need to either (a) package them (this is the preferred way, but not
always feasible), or (b) remove any minified JS and regenerate them.

For (b), you will need to tweak d/copyright's Excluded-Files directive
and remove the *.min.js (note that you may also need to remove the
*.min.css files) that are not package in Debian, and then use
yui-compressor to generate them from the unminified files that should be
present in the source package.

Thanks,

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
https://sergiodj.net/



Re: How to suppress "source-is-missing" lintian error?

2020-08-14 Thread Andrey Rahmatullin
On Thu, Aug 13, 2020 at 12:47:16PM -0700, A. Lewenberg wrote:
> I am trying to suppress some lintian errors in my package build. I see this
> error when running lintian:
> --
> E: stanford-spdb source: source-is-missing
> usr/share/spdb/vendor/assets/javascripts/bootstrap-4.4.1.min.js
> --
This is a valid error, please don't suppress it.

-- 
WBR, wRAR


signature.asc
Description: PGP signature


Re: How to suppress "source-is-missing" lintian error?

2020-08-13 Thread Ángel
On 2020-08-13 at 12:47 -0700, A. Lewenberg wrote:
> I am trying to suppress some lintian errors in my package build. I see 
> this error when running lintian:
> --
> E: stanford-spdb source: source-is-missing 
> usr/share/spdb/vendor/assets/javascripts/bootstrap-4.4.1.min.js
> (...)
> How do I get lintian to be quiet about this?

Add a depends on libjs-bootstrap and remove this minified file from your
package?



Re: How to suppress "source-is-missing" lintian error?

2020-08-13 Thread Eriberto
Hi A. Lewenberg,

Em qui., 13 de ago. de 2020 às 17:49, A. Lewenberg
 escreveu:
>
> I am trying to suppress some lintian errors in my package build. I see
> this error when running lintian:
> --
> E: stanford-spdb source: source-is-missing
> usr/share/spdb/vendor/assets/javascripts/bootstrap-4.4.1.min.js
> --
>
> I attempt to override this by adding to debian/lintian-overrides the line
> --
> stanford-spdb source: source-is-missing
> usr/share/spdb/vendor/assets/javascripts/bootstrap-4.4.1.min.js


I will consider that you know what you are doing overriding this lintian.

This lintian is for a source, not for a binary. See:

E: stanford-spdb source: <

So you need to create an override at debian/source/lintian-overrides,
not in debian/lintian-overrides.

Regards,

Eriberto



How to suppress "source-is-missing" lintian error?

2020-08-13 Thread A. Lewenberg
I am trying to suppress some lintian errors in my package build. I see 
this error when running lintian:

--
E: stanford-spdb source: source-is-missing 
usr/share/spdb/vendor/assets/javascripts/bootstrap-4.4.1.min.js

--

I attempt to override this by adding to debian/lintian-overrides the line
--
stanford-spdb source: source-is-missing 
usr/share/spdb/vendor/assets/javascripts/bootstrap-4.4.1.min.js

--

I rebuild and run lintian again, but then I see this error:
--
E: stanford-spdb: malformed-override Override of source-is-missing for 
package type source (expecting binary)

--

So I try changing the line in lintian-overrides to
--
stanford-spdb binary: source-is-missing 
usr/share/spdb/vendor/assets/javascripts/bootstrap-4.4.1.min.js

--

Rebuilding the pcakge and running lintian now results in the error
--
E: stanford-spdb source: source-is-missing 
usr/share/spdb/vendor/assets/javascripts/bootstrap-4.4.1.min.js

--

Also, the line gets flagged as an unused override.

How do I get lintian to be quiet about this?