Package: libjs-jsxc Version: 1.0.0~dfsg-1 Severity: important -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
Dear Maintainer, Currently, the files in libjs-jsxc package are split into two areas: /usr/share/javascript/jsxc and /usr/share/libjs-jsxc. This leads to problems: 1) /usr/share/javascript directory is served by javascript-common package under /javascript on the web server. Files placed in /usr/shared/javascript/jsxc are available by default, at least with Apache2, while the remaining files outside the directory are not available. This requires a simple page that is using this library to create symlinks into the /usr/share/libjs-jsxc directory and serve them instead of simply adding <script> tags with "/javascript/jsxc/" URLs. 2) Splitting causes problems. When using this JS library, one needs to specify in settings parameter a single 'root' directory from which this library will end up loading images and support libraries. These files are now split among the two directories leading to hacks when using the package. As a workaround I had create a dummy directory and link files from both the directories and serve this directory using web server to use the library. This solution will not work when the package is upgraded and more files need to be symlinked. On the other hand, if all the files are available from a single directory it would be possible to write a single page HTML file (depending on javascript-common package) that can use this library properly without symlink hacks. I suggest placing all the files in the /usr/share/javascript/jsxc directory. Note that the Javascript packaging policy does not state that the CSS and image files have to be outside this directory. All the other Javascript libraries seem to follow the approach of placing related CSS and image files in the same directory as Javascript files, to not break the folder structure. See libjs- jquery-ui for example. Symlinks may need to be created for backward compatibility if this is done. In case this is not done for some reason, symlinks at least need to created so that all files appear to be available from a single directory in /usr/share/javascript/jsxc. Thank you, - -- Sunil - -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386, armhf Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages libjs-jsxc depends on: ii libjs-jquery 1.12.4-1 ii libjs-jquery-colorbox 1.6.3-1 ii libjs-jquery-fullscreen 11-3 ii libjs-jquery-slimscroll 1.3.6+dfsg-1 ii libjs-jquery-ui 1.10.1+dfsg-1 ii libjs-strophe 1.1.3+dfsg-0.1 libjs-jsxc recommends no packages. libjs-jsxc suggests no packages. -----BEGIN PGP SIGNATURE----- iQIuBAEBCgAYBQJX3kSrERxzdW5pbEBtZWRoYXMub3JnAAoJEEPqHP8Kp8XyvrEQ AJzcvcW5WgitBZ+AZW43QM8mntwdxhDlHx2nFXNDO3JRTgc0fHVglgPfhlO8pGe4 YQj2MmD7yKURbOPVXmAoF8wL6DCtCvE6pcooobIB/0DLVlmWW+EpndDYXMkXAhAm 1Ko6jB7ByL5XdLLQGDKNcaoNeCPRY8S5R73QkKyZK7ggIDwQ2YyNNQWznvUhDQiW ghLVb5ctMLJ1kfBXEPuJmR/QfoxV5GZv2BR3RpRhROvWoh47HcqqWfREMu6nZVzE 5EaFei7GzuB5tJxuQzvlN9eYcJnWAUQOIbh52cfSq/SFTiQAZ2PsCEVrsMV/dVIk F93x9/Fm52CW7RwdAAhLf4QVCsix7XKxeaG8hZ299RPmfoVRAn+03CqzQp03qID+ 4rOl+bZxFfifikYYNk6tCRWv/tAhIu0P5+Kqawm1dnCjRkSNCH41eT9kRaeV/LtN 2vZFCBINpHDaJ85CLfZKDj+MYbyD/2CaIvhZ1NW5j54hebXo/2hExuaosDyYD8uU hEAlW4q1jyX4jArYbw1QbRxK2qLdH8W3QUyD4ZjICfNOjeWUVYGy2DdErE0tif8E iup94qaplRBMaFqjy+urrsreCOjc06z9WSY02P9No3gnXYtzLQ0djzy7znsaFrJD qDAmtHLPhzZqul3VOpfasjTaF/eGdnI3LTsKfa4ZAEVK =q6vI -----END PGP SIGNATURE-----