Le 25 Mar 2014 14:41, Zooko Wilcox-OHearn a écrit: > Yes, all files in src/allmydata/web/static ¹ get included into the > package built by "setup.py", because it is marked in setup.py as being > "package_data" ². > > Does that answer your question?
Oh, ok, I made a mess with my find invocation and missed the js files inside src/allmydata/web/static. So, a first solution would be to remove the .min.js upstream, add original .js and to do the minification at build time. Since the two js libraries are shipped in Debian the best would be to remove these js files completely (at least in the debian version of the sources) and to use the files provided by the debian packages. Creating a symlink between /usr/share/javascript/d3/d3.min.js (and others) and the static directory of tahoe-lafs (which seems to be /usr/lib/python2.7/dist-packages/allmydata/web/static/ right now) would do the job. Another solution (as found in the libjs-rickshaw package) would be to replace all the references to a local foobar.min.js file in html files by the absolute path of the debian-provided js file with a quick and dirty sed -i in the debian rules (I have no idea of why is file is publicly accessible through a web server). I don't know how the webserver part of tahoe works, but it may also be possible to the directory /usr/share/javascript/ to the search path. By the way, it's just some ideas, I do not have any experience with js in debian packages and I do not have any time to work precisely on it these days. Best, Olivier -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org