howto handle jquery embedding by build-depends
src:lxc contains documentation (*.sgml only) and build-depends on
docbook2x, no jquery is needed or installed as build-depends. the
resulting bin:lxc-dev then contains a *compressed* jquery.js put there
by docbook2x. lintian detects this and warns about it (W:
embedded-javascript-library).
i think we have the following possibilities to handle such embedding of
files by build-depends, where the embedded files were not part of the
original source (starting with least favourable one):
A: ignore it and overwrite the lintian warning
B: overwrite the lintian warning, use a built-using: relation in
control (in lxc case, against docbook2x which imports the
jquery.js)
C: post-process the binary package content at buildtime to replace
the embedded files through proper depends (e.g. for jquery,
replace the file with a symlink to /usr/share/javascript/jquery
/jquery.js and have a depends or recommends on libjs-jquery).
this could potentially have side effects if the copy of the
to-be-embedded file (jquery.js) inside the tool that imports it
(docbook2x) is not in sync with the standalone packaged version
(libjs-jquery), so that we end up with a newer/incompatible
version.
for lxc, i'd go with C.
did i miss anything? (yes, i haven't fully read the last thread about
jquery on debian-devel a couple of weeks ago, i think it only covered
the 'what to do with embedded js in source packages'-cases, not this
'what to do with embedded js in binary packages not being part of the
source package'-case).
--
Address: Daniel Baumann, Donnerbuehlweg 3, CH-3012 Bern
Email: daniel.baumann@progress-technologies.net
Internet: http://people.progress-technologies.net/~daniel.baumann/
Reply to: