2014-04-24 21:31 Jonas Smedegaard:
Quoting Manuel A. Fernandez Montecelo (2014-04-24 21:48:47)
a) the minified .js is still source code, by definition.

Which definition?

https://en.wikipedia.org/wiki/Source_code
https://en.wikipedia.org/wiki/Minified

Basically, no matter how much you contort a script in a scripting language
(bash, python, etc), if it can be interpreted by the interpreter of the language
(not bytecode or so), it is source code, right?  Mildly obfuscated perhaps (but
not malicious in this case), but still source.  Am I missing something?

So the lintian error saying that the source code of a source code file is
missing, is a bit... mmm, not the same as a .swf file, or a compiled binary, or
firmware blobs without source.

BTW, I don't know JS (other than for similarity with other languages), but out
of curiosity I tried this from node-uglify package and it looks prettier and
more readable than some Python code (not to speak about Fortran) that I see
everyday, or 30K line 'configure' scripts.  Basically it's missing comments and
most original object/variable names, but member/method names of common libraries
make the code more or less easy to follow -- if you somehow cannot go to grab
the unminified jquery version for whatever reason.

 $ uglifyjs --beautify jquery.js


The points are:

- what is the difference between minified JS and 'configure' scripts in source
 packages (random example), when the .in/.ac that generated it is not in the
 source package, or the autotools versions which generated it are not present
 in the package, possibly never packaged in Debian, or not shipped in the same
 release?  Users also lack the source code of those files in that case.

- and more importantly, what is the benefit (freedom-wise, or other) for our
 users if we maintainers spend time repackaging the source in cases of well
 known files like JQuery, which are:

  a) present in Debian,

  b) that we don't ship in our binary packages(if we depend+dh_link, as we did
     with sdlgfx),

  c) when it's clear for users who could possibly want to modify the jquery
     script where they can go if they want to modified the minified jquery.js
     that they pick from our source packages?


For reference, for those who are not aware, these are the current numbers:

 http://lintian.debian.org/tags/source-is-missing.html
 Emitted (non-overridden): 7988, overridden: 763, total: 8751

A sizeable part of which is because of minified JS, and JQuery in particular.

I really think that we can make better use of our time that fixing this JQuery
thing.


Cheers.
--
Manuel


--
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140424222333.ga5...@lugh.itsari.org

Reply via email to