severity 760414 serious
thanks

Wouter Verhelst writes:
> First of all, I wouldn't call minified javascript a "binary". I agree
> that it's not source, but that doesn't imply it's a binary (that is
> orthogonal to my point, but I want to point that out).

We misuse "binary" a bit in this context to refer to any form that is
not the preferred form of modification (source).  In some cases the
source might be "binary" too after all (for example images).

> Obviously what is in main needs to be DFSG-free; that implies it needs
> to have source available.

Yes, and source packages are distributed as part of "main".  So
everything inside a source package needs to have source provided as
well.  See also Scott's mail to d-d-a@ linked earlier.

> But nowhere in the DFSG do I see a strict requirement that the said
> source is part of the same source package. The fact that we have
> "Built-Using" would suggest the same; it shows that there are other
> cases where a source package does not contain the full source to a
> program.

Even in the case of "Built-Using" the source package should contain
sources for everything in the source package.  Only the corresponding
source for generated binary package is then more than just the implicit
default.

However there is no "Built-Using" for source packages.

> This case is the same as when we deal with a convenience copy of a
> library that ships with a program: you don't need to remove the
> convenience copy, but you do need to ensure it isn't used.

If the convenience copy comes without source, it should be removed as
well (or source provided, either way is fine).

In addition:

> - The relevant libjs-* packages are what is in fact being used by the
>   ola package.

That doesn't seem to be the case.  ola doesn't (build-)depend on them,
but includes minified JS:

+---
| % dpkg-deb -c ola_0.10.3-1_amd64.deb | grep .min.js
| -rw-r--r-- root/root     12705 2017-01-18 18:25 
./usr/share/olad/www/new/js/app.min.js
| -rw-r--r-- root/root     15768 2017-01-18 18:25 
./usr/share/olad/www/new/js/app.min.js.map
| -rw-r--r-- root/root    125551 2017-01-18 18:25 
./usr/share/olad/www/new/libs/angular/js/angular.min.js
| -rw-r--r-- root/root      4464 2017-01-18 18:25 
./usr/share/olad/www/new/libs/angular-route/js/angular-route.min.js
| -rw-r--r-- root/root     35452 2017-01-18 18:25 
./usr/share/olad/www/new/libs/bootstrap/js/bootstrap.min.js
| -rw-r--r-- root/root     84320 2017-01-18 18:25 
./usr/share/olad/www/new/libs/jquery/js/jquery.min.js
+---

Ansgar

Reply via email to