On 11-08-23 at 05:42pm, Peter Pentchev wrote: > On Tue, Aug 23, 2011 at 11:18:44AM +0200, Jonas Smedegaard wrote: > > Package: s5 > > Version: 1.1.dfsg.2-5 > > Severity: normal > > > > S5 contains a Javascript part, which is reusable by other projects: > > Pandoc can generate S5 output and currently ships with a copy of the > > S5 Javascript. > > > > Please provide Javascript below /usr/share/javascript and have the > > binary package provide libjs-s5, to follow the Debian-javascript > > mini- policy (which, I must admit, possible isn't written down > > anywhere, maybe exist only as a concensus among Javascript package > > maintainers). > > Would a symlink in /usr/share/javascript/ be acceptable? Something > like /usr/share/javascript/s5/ui/default/slides.js -> > /usr/share/s5/ui/... ? > > Otherwise - if the actual file is in /usr/share/javascript/ and there > is a symlink in /usr/share/s5/ - we're looking at a kind of a > compromise with the idea of S5 that the generated presentations should > be self-contained, archivable, copyable, etc. - if somebody just > copies a presentation directory and transfers it to another computer, > it won't quite work. Of course, I could do it that way if you insist, > but IMHO it's a bit preferable to go with the symlink in > /usr/share/javascript.
The ideal would be to have it working both online (even using web servers not resolving symlinks) and offline (even disconnected from the development machine). Adding a symlink below /usr/share/javascript satisfies all but the corner case of web servers not resolving symlinks (due to strong security principles, very tight system contraints, etc). And it sure is the easiest approach :-) How about the opposite: moving the javascript file below /usr/share/javascript and symlinking from its current location? Perhaps if assisting tools use "cp" then those could be changed to "cp -L". And a note could be added to NEWS and README about that too. Or do you feel that is too hurtful for offline use cases, compared to the small benefit for online use? - Jonas -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private
signature.asc
Description: Digital signature

