Re: Dealing with embedded javascript libraries

2011-11-07 Thread Bastian Blank
On Mon, Nov 07, 2011 at 09:16:21PM +0100, Vincent Danjean wrote: > Le 07/11/2011 20:03, Bastian Blank a écrit : > >On Mon, Nov 07, 2011 at 06:12:42PM +, Ian Jackson wrote: > >> * JS library packages should be versioned in the name, like C runtime > >>library packages are, so that multiple

Re: Dealing with embedded javascript libraries

2011-11-07 Thread Vincent Danjean
Le 07/11/2011 20:03, Bastian Blank a écrit : On Mon, Nov 07, 2011 at 06:12:42PM +, Ian Jackson wrote: * JS library packages should be versioned in the name, like C runtime library packages are, so that multiple versions are coinstallable. Why not _one_ package per lib and multiple (a

Re: Dealing with embedded javascript libraries

2011-11-07 Thread Bastian Blank
On Mon, Nov 07, 2011 at 06:12:42PM +, Ian Jackson wrote: > * JS library packages should be versioned in the name, like C runtime >library packages are, so that multiple versions are coinstallable. Why not _one_ package per lib and multiple (a sane number of) versions in it? The security t

Re: Dealing with embedded javascript libraries

2011-11-07 Thread Ian Jackson
Pau Garcia i Quiles writes ("Re: Dealing with embedded javascript libraries"): > On Thu, Oct 27, 2011 at 1:28 AM, Ian Jackson > wrote: > > The difficulty is that if we end up with ten different versions of > > some random javascript library, when it turns out to have

Re: Dealing with embedded javascript libraries

2011-11-01 Thread Antonio Terceiro
Michael Gilbert escreveu isso aí: > On Wed, Oct 26, 2011 at 6:55 PM, Zygmunt Krynicki wrote: > > Is there anyone that would like to mentor me for a while to help me get > > started? I'm quite interested in solving this problem. > > You can certainly work on anything in Debian (including this) and

Re: Dealing with embedded javascript libraries

2011-10-31 Thread Zygmunt Krynicki
W dniu 31.10.2011 14:49, Pau Garcia i Quiles pisze: On Thu, Oct 27, 2011 at 1:28 AM, Ian Jackson wrote: The difficulty is that if we end up with ten different versions of some random javascript library, when it turns out to have a security vulnerability we need to somehow backport the patch t

Re: Dealing with embedded javascript libraries

2011-10-31 Thread Pau Garcia i Quiles
On Thu, Oct 27, 2011 at 1:28 AM, Ian Jackson wrote: > The difficulty is that if we end up with ten different versions of > some random javascript library, when it turns out to have a security > vulnerability we need to somehow backport the patch to each of those > ten versions. > > And here "we"

Re: Dealing with embedded javascript libraries

2011-10-31 Thread Jakub Wilk
* Raphael Hertzog , 2011-10-26, 18:47: For instance I just noticed that we can't install new widgets with the current wordpress package due to some javascript related problem. I'm not familiar enough with the codebase to investigate it easily. I can't ask upstream about it because it works wit

Re: Dealing with embedded javascript libraries

2011-10-26 Thread Paul Wise
On Thu, Oct 27, 2011 at 7:28 AM, Ian Jackson wrote: > The difficulty is that if we end up with ten different versions of > some random javascript library, when it turns out to have a security > vulnerability we need to somehow backport the patch to each of those > ten versions. > > And here "we" m

Re: Dealing with embedded javascript libraries

2011-10-26 Thread Michael Gilbert
On Wed, Oct 26, 2011 at 6:55 PM, Zygmunt Krynicki wrote: > Is there anyone that would like to mentor me for a while to help me get > started? I'm quite interested in solving this problem. You can certainly work on anything in Debian (including this) and present your work to mentors [0] and/or the

Re: Dealing with embedded javascript libraries

2011-10-26 Thread Ian Jackson
Michael Gilbert writes ("Re: Dealing with embedded javascript libraries"): > There isn't any real technical factor limiting the number of versions > to one. Theoretically, there could both jquery1.4 and jquery1.6 > source packages coexisting (as long as the binary f

Re: Dealing with embedded javascript libraries

2011-10-26 Thread Zygmunt Krynicki
W dniu 27.10.2011 00:29, Zygmunt Krynicki pisze: W dniu 24.10.2011 01:20, Ben Finney pisze: I would very much like that to change – that programmers should expect a single instance of a Javascript library to be useable across the OS, and that a Javascript library without a dependable ABI should

Re: Dealing with embedded javascript libraries

2011-10-26 Thread Zygmunt Krynicki
W dniu 27.10.2011 00:46, Michael Gilbert pisze: On Wed, Oct 26, 2011 at 6:29 PM, Zygmunt Krynicki wrote: If anything, having one version of a javascript library *hurts* Debian-as-a-platform. I would encourage a different approach altogether: explicit mutli-versioning (ideally for all upstream re

Re: Dealing with embedded javascript libraries

2011-10-26 Thread Michael Gilbert
On Wed, Oct 26, 2011 at 6:29 PM, Zygmunt Krynicki wrote: > If anything, having one version of a javascript library *hurts* > Debian-as-a-platform. I would encourage a different approach altogether: > explicit mutli-versioning (ideally for all upstream releases or for all > upstream releases that ar

Re: Dealing with embedded javascript libraries

2011-10-26 Thread Zygmunt Krynicki
W dniu 24.10.2011 01:20, Ben Finney pisze: I would very much like that to change – that programmers should expect a single instance of a Javascript library to be useable across the OS, and that a Javascript library without a dependable ABI should be shunned by most application writers, and for ap

Re: Dealing with embedded javascript libraries

2011-10-26 Thread Zygmunt Krynicki
W dniu 24.10.2011 01:20, Ben Finney pisze: I would very much like that to change – that programmers should expect a single instance of a Javascript library to be useable across the OS, and that a Javascript library without a dependable ABI should be shunned by most application writers, and for ap

Re: Dealing with embedded javascript libraries

2011-10-26 Thread Raphael Hertzog
Hi, On Wed, 26 Oct 2011, Jakub Wilk wrote: > * Raphael Hertzog , 2011-10-26, 16:31: > >For instance I just noticed that we can't install new widgets with > >the current wordpress package due to some javascript related > >problem. I'm not familiar enough with the codebase to investigate > >it easil

Re: Dealing with embedded javascript libraries

2011-10-26 Thread Jakub Wilk
* Raphael Hertzog , 2011-10-26, 16:31: Also hopefully maintainers are using the packages they maintain and will therefore notice when they are broken by newer JavaScript libraries. I do but I'm not using all the features all the time and I don't test them for each upload. For instance I jus

Re: Dealing with embedded javascript libraries

2011-10-26 Thread Raphael Hertzog
On Sun, 23 Oct 2011, Paul Wise wrote: > More automated and manual testing can help here I guess. Sure, but I don't expect Debian maintainers to write a test suite when upstream hasn't created one. And testing an interactive web application is a rather difficult problem. > Also hopefully maintaine

Re: Dealing with embedded javascript libraries

2011-10-23 Thread Ben Finney
Roland Mas writes: > I don't do much library packaging myself, but it was my understanding > that versions of libraries that break API/ABI are meant to go in > different binary packages, usually with a version number in the package > name. Javascript doesn't have an ABI, but libraries written

Re: Dealing with embedded javascript libraries

2011-10-23 Thread Pau Garcia i Quiles
On Sun, Oct 23, 2011 at 5:29 PM, Paul Wise wrote: > On Sun, Oct 23, 2011 at 11:13 PM, Raphael Hertzog wrote: > > > And with javascript libraries, there's no failure at build time, > > you only discover much later when something is not working... > > This is the crux of the issue and it is not spe

Re: Dealing with embedded javascript libraries

2011-10-23 Thread Yaroslav Halchenko
On Sun, 23 Oct 2011, Paul Wise wrote: > > And with javascript libraries, there's no failure at build time, > > you only discover much later when something is not working... > This is the crux of the issue and it is not specific to JavaScript > libraries, anything that is interpreted has this issue

Re: Dealing with embedded javascript libraries

2011-10-23 Thread Paul Wise
On Sun, Oct 23, 2011 at 11:13 PM, Raphael Hertzog wrote: > And with javascript libraries, there's no failure at build time, > you only discover much later when something is not working... This is the crux of the issue and it is not specific to JavaScript libraries, anything that is interpreted ha

Re: Dealing with embedded javascript libraries

2011-10-23 Thread Roland Mas
Raphael Hertzog, 2011-10-23 17:13:17 +0200 : [...] > Unfortunately, blindly replacing the file with a symlink can > create problems of its own. Upstream tested their application > with the version of the library that they ship. Using another > version might break things horribly, an example here:

Dealing with embedded javascript libraries

2011-10-23 Thread Raphael Hertzog
Hello, I would like to discuss our handling of embedded javascript libraries. In theory, like any other embedded library, they are to be avoided and we have a lintian warning catching many of the common cases: http://lintian.debian.org/tags/embedded-javascript-library.html Unfortunately, blindly