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

Re: Minified javascripts in packages



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Den 13. april 2015 14:05, skrev Wookey:
> +++ Ben Finney [2015-04-13 14:59 +1000]:
>> Paul Wise <pabs@debian.org> writes:
>> 
>>> On Mon, Apr 13, 2015 at 11:37 AM, Ben Finney wrote:
>>> 
>>>> Can we agree, in the context of the original post of this
>>>> thread:
>>>> 
>>>> Rebuilding from source *is* a reasonable requirement,
>>>> attainable with what we have today in Debian, for JavaScript
>>>> works.
> 
>> Right, I wasn't clear enough: I'm saying that despite all the
>> other non-JavaScript cases brought up later in the thread, the
>> requirement (build from source form, with only build dependencies
>> also in Debian) applies just fine to JavaScript libraries.
>> 
>> Can we agree on that?
> 
> That seems eminently reasonable to me, yes.
> 
> Wookey
> 
Well then my question would be: Would the concatenated but un-minified
javascript files be approved as source code?
What I have done so far in my package is to include the concatenated
but unminified js from the upstream (that would be my upstream's
upstream) source tarball in debian/missing-sources. During package
build i use uglifyjs (which is already in Debian) to place minified
copies where the app I'm building expects them to be.
As mentioned above, what constitutes preferred form of modification
really is a question of who is doing the modification. Upstream uses
the un-concatenated files, but personally, I would find it easier to
modify one big file, at least for something interpreted like javascript.

Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJVLWUSAAoJELRG7qgympRaF/0QAIONDrBE54kVamgiIEcJDwaO
YdsXV9C1lz01/PC7yTu7qEam0YIsWScHkI/ltPuWzPCKgTrcGjJ8LAOT3fK9yyYL
Dn7o8sBconHURHB1V9UAQ39IK2mEMVusYWC/W+4n0ZFQxG7gcje/umnmiftXgKfU
Ds4nBm9l4CkIhoxA+3Y5yMnPlccph4GvHCVgBftbeopkRwsA4v0dPivxYGg4ZJ44
pFgdG6h0x5qO1E40bvX/GocOU9bKkKi+p26Tx1Pxz0oZJKYGv/5GFf4MkFf4BH9k
zR3hg5m9NAYLKhEEdS5OqvCm/tsp7CI585L9HAtwXigEBHXoocEjHN6OEEqNJHIH
9fqsOdeBVBVkFKq2CrzNHAcRPo5NaLgIbTS3yBJm9F9YJVBuITeFtEl832aoZ8Wy
BL8Fp22PlF2PTAuGSrZCYHh2RyLPWsevCHeBeR0Y9yH/q46BuuP+TxhQ1aD29GdT
0K5ebv0rZworZH1JXiaGk9fpXhHPUaTygxoYyMnUu60dKFQ5zbYkvPvhft8L5I97
1E/fxNPDSgNzAaREsOiM61IcLXajgrhowi9S8Tg/dSVaptSnKyHqE8L5ixiF1LH+
vP2KzwSwa4EBsLNEP39FWJ0XKs08jofKMUnNWa3VCP+hFGkVYjPhQhdJdMF4f21h
oHtBOKlcyg/0Yjl++dW/
=xDcA
-----END PGP SIGNATURE-----


Reply to: