Re: [Openstack] Packaging Horizon
On 09/17/2012 07:50 PM, Clint Byrum wrote: Seems to me that packaging LESS would be pretty easy though, so I don't think this will be an issue in the long term. Including the compiled one is just a short-term solution. It's not less.js, but dependent node.js causing the problems. But as Gabriel wrote, including compressed css or .js (and the manifest.json) should do the job. -- Matthias Runge mru...@matthias-runge.de mru...@fedoraproject.org ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Packaging Horizon
On 09/14/2012 08:19 PM, Adam Gandelman wrote: We faced the same issue in Ubuntu [1]. Ended up compiling and compressing the CSS and JS at packaging time, shipping those + the manifest.json with the package and enabling COMPRESS_OFFLINE=True by default. Users who might want to make use of lessc and node later can just install node-less and set COMPRESS_OFFLINE=False. Thank you for your suggestion! It seems, it still does not work for me. Running ./manage.py compress compresses some sources, obviously, some are not compiled: OfflineGenerationError at /syspanel/ You have offline compression enabled but key 6c3f4b40154653aaf8dd6e0393186d0a is missing from offline manifest. You may need to run python manage.py compress. How Do I debug this further? -- Matthias Runge mru...@matthias-runge.de mru...@fedoraproject.org ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Packaging Horizon
On 09/15/2012 05:25 AM, Thomas Goirand wrote: On Sat Sep 15 2012 03:55:09 AM CST, Gabriel Hurley gabriel.hur...@nebula.com wrote: Either way works, you just have to compile the file once and ship it in the distro package. For at least Debian, this would make the package non-free. Everything has to be compiled from source. If you can't compile it yourself then you could perhaps use the one from Adam/Ubuntu, or I can do it and send you the final output file. IMHO, it still should be usable for debian as well, sources are still shipped; the step you do is pre-compressing stylesheets, and javascript so this hasn't be done during delivering files through your web server. But of course, I'm totally neglecting that less.js and node.js may not be available in your distro, like they are unavailable from official fedora repositories -- Matthias Runge mru...@matthias-runge.de mru...@fedoraproject.org ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Packaging Horizon
Excerpts from Gabriel Hurley's message of 2012-09-14 20:40:25 -0700: Now I'm not well-versed in the legalese of all the distros, but that sounds like splitting hairs on the meaning of compiled from source. If I run it through LESS and commit the file to the repo does that make it from source? It'd solve your problem exactly the same. I'd be curious to know the definition here, but that seems like overkill to me. If its what you need I'll do it for Folsom, but... thoughts? The reason this is important is that one of Debian's main purposes for being is that you can solve your problems with nothing but the archive. If there is a problem in said CSS/JS generated by LESS, then a user cannot easily 'apt-get source horizon', edit the file, and be on their way. They really need the source code and a way to regenerate the compiled bits. Seems to me that packaging LESS would be pretty easy though, so I don't think this will be an issue in the long term. Including the compiled one is just a short-term solution. ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Packaging Horizon
Now I'm not well-versed in the legalese of all the distros, but that sounds like splitting hairs on the meaning of compiled from source. If I run it through LESS and commit the file to the repo does that make it from source? It'd solve your problem exactly the same. I'd be curious to know the definition here, but that seems like overkill to me. If its what you need I'll do it for Folsom, but... thoughts? - Gabriel On Sep 14, 2012, at 8:25 PM, Thomas Goirand tho...@goirand.fr wrote: On Sat Sep 15 2012 03:55:09 AM CST, Gabriel Hurley gabriel.hur...@nebula.com wrote: Either way works, you just have to compile the file once and ship it in the distro package. For at least Debian, this would make the package non-free. Everything has to be compiled from source. If you can't compile it yourself then you could perhaps use the one from Adam/Ubuntu, or I can do it and send you the final output file. That isn't the way. Thomas -Original Message- From: openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net [mailto:openstack- bounces+gabriel.hurley=nebula@lists.launchpad.net] On Behalf Of Adam Gandelman Sent: Friday, September 14, 2012 11:19 AM To: openstack@lists.launchpad.net Subject: Re: [Openstack] Packaging Horizon On 09/14/2012 05:06 AM, Matthias Runge wrote: Hi, currently, I'm trying to package horizon RC1 for Fedora. Since, Fedora does not have node.js included, and also doesn't have LESS included, it won't work per default. Do you have suggestions for me? Thanks We faced the same issue in Ubuntu [1]. Ended up compiling and compressing the CSS and JS at packaging time, shipping those + the manifest.json with the package and enabling COMPRESS_OFFLINE=True by default. Users who might want to make use of lessc and node later can just install node-less and set COMPRESS_OFFLINE=False. Adam [1] https://bugs.launchpad.net/horizon/+bug/1024326 ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Packaging Horizon
On Sat Sep 15 2012 03:55:09 AM CST, Gabriel Hurley gabriel.hur...@nebula.com wrote: Either way works, you just have to compile the file once and ship it in the distro package. For at least Debian, this would make the package non-free. Everything has to be compiled from source. If you can't compile it yourself then you could perhaps use the one from Adam/Ubuntu, or I can do it and send you the final output file. That isn't the way. Thomas -Original Message- From: openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net [mailto:openstack- bounces+gabriel.hurley=nebula@lists.launchpad.net] On Behalf Of Adam Gandelman Sent: Friday, September 14, 2012 11:19 AM To: openstack@lists.launchpad.net Subject: Re: [Openstack] Packaging Horizon On 09/14/2012 05:06 AM, Matthias Runge wrote: Hi, currently, I'm trying to package horizon RC1 for Fedora. Since, Fedora does not have node.js included, and also doesn't have LESS included, it won't work per default. Do you have suggestions for me? Thanks We faced the same issue in Ubuntu [1]. Ended up compiling and compressing the CSS and JS at packaging time, shipping those + the manifest.json with the package and enabling COMPRESS_OFFLINE=True by default. Users who might want to make use of lessc and node later can just install node-less and set COMPRESS_OFFLINE=False. Adam [1] https://bugs.launchpad.net/horizon/+bug/1024326 ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Packaging Horizon
Hi Matthias, Did you see official node.js guide( https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager) to install it via package manager? Regards, Ivan Kolodyazhny, Web Developer, http://blog.e0ne.info/, http://notacash.com/, http://kharkivpy.org.ua/ On Fri, Sep 14, 2012 at 3:06 PM, Matthias Runge mru...@matthias-runge.dewrote: Hi, currently, I'm trying to package horizon RC1 for Fedora. Since, Fedora does not have node.js included, and also doesn't have LESS included, it won't work per default. Do you have suggestions for me? Thanks -- Matthias Runge mru...@matthias-runge.de mru...@fedoraproject.org __**_ Mailing list: https://launchpad.net/~**openstackhttps://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~**openstackhttps://launchpad.net/~openstack More help : https://help.launchpad.net/**ListHelphttps://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Packaging Horizon
On 09/14/2012 02:29 PM, Ivan Kolodyazhny wrote: Hi Matthias, Did you see official node.js guide(https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager) to install it via package manager? Hi Ivan, thank you for your answer. yes, I saw that; sadly, those packages are built in a side repo, and thus not acceptable for me. Looking into node's source code, it seems to bundle several external libs. Bundling external libs is also not acceptable. I know, there's a way to compile less on client side via less-1.3.0.min.js IMHO that requires patching of several template files. How to proceed with js-files? Regards, Ivan Kolodyazhny, Web Developer, http://blog.e0ne.info/, http://notacash.com/, http://kharkivpy.org.ua/ -- Matthias Runge mru...@matthias-runge.de mru...@fedoraproject.org ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Packaging Horizon
On 09/14/2012 08:06 AM, Matthias Runge wrote: Hi, currently, I'm trying to package horizon RC1 for Fedora. Since, Fedora does not have node.js included, and also doesn't have LESS included, it won't work per default. Do you have suggestions for me? There was a lively debate about this back when the LESS support was merged. The compromise was that we would work with the Horizon developers on shipping a compiled stylesheet in our package. As for the detailed mechanics of doing so, I don't know. :-) https://lists.launchpad.net/openstack/msg12373.html -- Russell Bryant ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Packaging Horizon
On 09/14/2012 05:06 AM, Matthias Runge wrote: Hi, currently, I'm trying to package horizon RC1 for Fedora. Since, Fedora does not have node.js included, and also doesn't have LESS included, it won't work per default. Do you have suggestions for me? Thanks We faced the same issue in Ubuntu [1]. Ended up compiling and compressing the CSS and JS at packaging time, shipping those + the manifest.json with the package and enabling COMPRESS_OFFLINE=True by default. Users who might want to make use of lessc and node later can just install node-less and set COMPRESS_OFFLINE=False. Adam [1] https://bugs.launchpad.net/horizon/+bug/1024326 ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Packaging Horizon
Adam beat me to the punch. What he suggested is the least invasive solution (doesn't require changing any template files). The secondary solution which is simpler but less elegant is a simple patch to the stylesheet template file to point to a static pre-compiled copy of the CSS, and then removing/overriding the COMPRESS_PRECOMPILERS setting (making it an empty tuple) . Either way works, you just have to compile the file once and ship it in the distro package. If you can't compile it yourself then you could perhaps use the one from Adam/Ubuntu, or I can do it and send you the final output file. - Gabriel -Original Message- From: openstack-bounces+gabriel.hurley=nebula@lists.launchpad.net [mailto:openstack- bounces+gabriel.hurley=nebula@lists.launchpad.net] On Behalf Of Adam Gandelman Sent: Friday, September 14, 2012 11:19 AM To: openstack@lists.launchpad.net Subject: Re: [Openstack] Packaging Horizon On 09/14/2012 05:06 AM, Matthias Runge wrote: Hi, currently, I'm trying to package horizon RC1 for Fedora. Since, Fedora does not have node.js included, and also doesn't have LESS included, it won't work per default. Do you have suggestions for me? Thanks We faced the same issue in Ubuntu [1]. Ended up compiling and compressing the CSS and JS at packaging time, shipping those + the manifest.json with the package and enabling COMPRESS_OFFLINE=True by default. Users who might want to make use of lessc and node later can just install node-less and set COMPRESS_OFFLINE=False. Adam [1] https://bugs.launchpad.net/horizon/+bug/1024326 ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp