Bug 152428 - [GTK] jquery.min.js violates DFSG
Summary: [GTK] jquery.min.js violates DFSG
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: Other
Hardware: PC All
: P2 Normal
Assignee: Michael Catanzaro
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-18 09:16 PST by Michael Catanzaro
Modified: 2015-12-21 01:05 PST (History)
11 users (show)

See Also:


Attachments
Patch (1.38 KB, patch)
2015-12-18 11:14 PST, Michael Catanzaro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Catanzaro 2015-12-18 09:16:24 PST
Debian is repackaging our tarballs with Source/WebInspectorUI/Tools/PrettyPrinting/populate/jquery.min.js removed, since it is a violation of the Debian Free Software Guidelines to distribute compressed code without the original source.

A straightforward solution for GTK would be to simply not distribute Source/WebInspectorUI/Tools. I doubt we need any of that for the build, anyway, right?
Comment 1 Joseph Pecoraro 2015-12-18 10:40:36 PST
Correct, Source/WebInspectorUI/Tools is not needed for the WebInspectorUI project to build. They are only debugging tools. Currently only one for pretty printing.

WebInspectorUI's pretty printing debugging tool just loads the jquery.min.js text for testing JavaScript pretty printing. It was chosen because jquery.min.js was already in the LayoutTests directory. We could probably replace it with any significantly complex and minified JavaScript.
Comment 2 Michael Catanzaro 2015-12-18 11:10:19 PST
Well the issue is that it is minified; Debian requires us to ship the original source, not the minified source, and build the minified source from the original source. I think Fedora requires this too; we just didn't notice.

Anyway, since it's just a debugging tool that has no value in tarballs, let's just not distribute it. Problem solved. :)
Comment 3 Michael Catanzaro 2015-12-18 11:14:49 PST
Created attachment 267644 [details]
Patch
Comment 4 Michael Catanzaro 2015-12-18 11:18:11 PST
Although arguably, we could say this is a false-positive, in that even though it is source code, it's not source code that's intended to be run....
Comment 5 Joseph Pecoraro 2015-12-18 11:29:40 PST
Comment on attachment 267644 [details]
Patch

r=me
Comment 6 Michael Catanzaro 2015-12-18 15:27:32 PST
Thanks for the review. I'll wait a few days for Carlos to make sure he's OK with this.
Comment 7 Carlos Garcia Campos 2015-12-21 00:17:08 PST
Comment on attachment 267644 [details]
Patch

Yes, we only build files under UserInterface directory (and Localizations), so we don't need those files in the tarball at all.
Comment 8 WebKit Commit Bot 2015-12-21 01:05:06 PST
Comment on attachment 267644 [details]
Patch

Clearing flags on attachment: 267644

Committed r194327: <http://trac.webkit.org/changeset/194327>
Comment 9 WebKit Commit Bot 2015-12-21 01:05:10 PST
All reviewed patches have been landed.  Closing bug.