Bug#634397: Proposed removal of libjavascript-perl

Jonathan Yu jawnsy at cpan.org
Tue Jul 19 01:59:53 UTC 2011


Hi all,

I propose that we consider removing libjavascript-perl. It looks like
it has been failing to build for quite some time, but we have not
known because there have not been any new versions of
libjavascript-perl.

Thanks to Lucas Nussbaum, we have discovered that the package doesn't
build today. Even when it did build (where it was built against
libmozjs-dev 1.9.1.19), it emitted a bunch of warnings during built.
Looking at the historic build logs, it seems to have a spotty history
of frequently failing to build from source (presumably due to changes
in the API/ABI of SpiderMonkey).

I investigated the issue and it appears to be related to the version
of the SpiderMonkey library that this package is built against,
libmozjs-dev. By installing snapshots, I have been able to determine
that these package versions:

libmozjs-dev 1.9.2.13-2 (source: iceweasel 3.6.13-2)
libmozjs3d 1.9.2.13-2 (source: iceweasel 3.6.13-2)

cause libjavascript-perl to fail to build. Note that the last time
libmozjs-dev *DID* build against libjavascript-perl (version 1.9.1.19
of libmozjs-dev), it was against libmozjs2d, where it still emitted a
bunch of warnings during build [0].

So my reasons FOR a removal of this package are thus:

1. It is not used by many packages (its only reverse dependency is
debian-edu-config)

2. It looks like it has been broken for a long time (many outstanding
bug reports upstream, as well as test failures)

3. It is now several versions behind the latest libmozjs -- there is
currently a libmozjs6d, and the last time this package built was
against libmozjs2d.

4. It may be too difficult to figure out how to get this package to
build, and is probably not worth it considering that it appears pretty
dead upstream

Cheers,

Jonathan

[0] https://buildd.debian.org/status/fetch.php?pkg=libjavascript-perl&arch=mipsel&ver=1.16-3%2Bb1&stamp=1304478428

---------- Forwarded message ----------
From: Lucas Nussbaum <lucas at lucas-nussbaum.net>
Date: Mon, Jul 18, 2011 at 6:02 PM
Subject: Bug#634397: libjavascript-perl: FTBFS: jslock.h:221:1: error:
unknown type name 'namespace'
To: submit at bugs.debian.org


Source: libjavascript-perl
Version: 1.16-3
Severity: serious
Tags: wheezy sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20110718 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part:
> cc -c  -I/usr/include/nspr/ -I/usr/include/mozjs/ -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -DMOZILLA_1_8_BRANCH=1   -DVERSION=\"1.16\" -DXS_VERSION=\"1.16\" -fPIC "-I/usr/lib/perl/5.12/CORE"   JavaScript.c
> In file included from /usr/include/mozjs/jsapi.h:48:0,
>                  from JavaScript_Env.h:12,
>                  from JavaScript.h:19,
>                  from JavaScript.xs:5:
> /usr/include/mozjs/js-config.h:50:0: warning: "JS_THREADSAFE" redefined [enabled by default]
> JavaScript_Env.h:8:0: note: this is the location of the previous definition
> In file included from /usr/include/mozjs/jsobj.h:56:0,
>                  from /usr/include/mozjs/jsfun.h:47,
>                  from /usr/include/mozjs/jsinterp.h:48,
>                  from JavaScript_Env.h:14,
>                  from JavaScript.h:19,
>                  from JavaScript.xs:5:
> /usr/include/mozjs/jslock.h:221:1: error: unknown type name 'namespace'
> /usr/include/mozjs/jslock.h:221:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
> In file included from /usr/include/mozjs/jsobj.h:57:0,
>                  from /usr/include/mozjs/jsfun.h:47,
>                  from /usr/include/mozjs/jsinterp.h:48,
>                  from JavaScript_Env.h:14,
>                  from JavaScript.h:19,
>                  from JavaScript.xs:5:
> /usr/include/mozjs/jsvalue.h: In function 'JSDOUBLE_IS_INT32':
> /usr/include/mozjs/jsvalue.h:111:16: error: 'false' undeclared (first use in this function)
> /usr/include/mozjs/jsvalue.h:111:16: note: each undeclared identifier is reported only once for each function it appears in
> /usr/include/mozjs/jsvalue.h:112:24: error: expected expression before 'int32_t'
> /usr/include/mozjs/jsvalue.h: At top level:
> /usr/include/mozjs/jsvalue.h:241:1: error: conflicting types for 'MAGIC_TO_JSVAL_IMPL'
> /usr/include/mozjs/jsvalue.h:233:1: note: previous definition of 'MAGIC_TO_JSVAL_IMPL' was here
> /usr/include/mozjs/jsvalue.h:324:1: error: unknown type name 'namespace'
> /usr/include/mozjs/jsvalue.h:324:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
> In file included from /usr/include/mozjs/jstl.h:43:0,
>                  from /usr/include/mozjs/jsvector.h:44,
>                  from /usr/include/mozjs/jsobj.h:58,
>                  from /usr/include/mozjs/jsfun.h:47,
>                  from /usr/include/mozjs/jsinterp.h:48,
>                  from JavaScript_Env.h:14,
>                  from JavaScript.h:19,
>                  from JavaScript.xs:5:
> /usr/include/mozjs/jsbit.h:255:1: error: unknown type name 'namespace'
> /usr/include/mozjs/jsbit.h:255:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
> In file included from /usr/include/mozjs/jsvector.h:44:0,
>                  from /usr/include/mozjs/jsobj.h:58,
>                  from /usr/include/mozjs/jsfun.h:47,
>                  from /usr/include/mozjs/jsinterp.h:48,
>                  from JavaScript_Env.h:14,
>                  from JavaScript.h:19,
>                  from JavaScript.xs:5:
> /usr/include/mozjs/jstl.h:47:15: fatal error: new: No such file or directory
> compilation terminated.
> make[2]: *** [JavaScript.o] Error 1

The full build log is available from:
  http://people.debian.org/~lucas/logs/2011/07/18/libjavascript-perl_1.16-3_lsid64.buildlog

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
of the Grid'5000 platform, using a clean chroot.  Internet was not
accessible from the build systems.

--
| Lucas Nussbaum
| lucas at lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
| jabber: lucas at nussbaum.fr             GPG: 1024D/023B3F4F |



_______________________________________________
pkg-perl-maintainers mailing list
pkg-perl-maintainers at lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-maintainers





More information about the pkg-perl-maintainers mailing list