[Openstack-devel] Current state of the Folsom packaging -- horizon

Tim Spriggs tims at uahirise.org
Fri Nov 2 08:16:02 UTC 2012


On Fri, Nov 2, 2012 at 12:46 AM, Thomas Goirand <zigo at debian.org> wrote:
> On 10/31/2012 03:46 PM, Tim Spriggs wrote:
>> Admittedly, my patch is a hack but it might save someone a little time
>> in searching.
>>
>> Horizon calls a script named lessc which is placed in
>> /usr/share/openstack-dashboard/bin/less/lessc (which is where BIN_DIR
>> resolves to)
>>
>> The first line of the dashboard-included lessc script is:
>>
>> #!/usr/bin/env node
>>
>> Looking at the system lessc:
>>
>> % which lessc
>> /usr/bin/lessc
>>
>> % dpkg-query -S /usr/bin/lessc
>> node-less: /usr/bin/lessc
>>
>> % head -1 /usr/bin/lessc
>> #!/usr/bin/nodejs
>>
>> % dpkg-query -S /usr/bin/nodejs
>> nodejs: /usr/bin/nodejs
>>
>> Cheers,
>> -Tim
>
> Hi Tim,
>
> I could use Horizon without your patch. I've turned COMPRESS_OFFLINE to
> False by default in the /etc/openstack-dashboard/local_settings.py file,
> and it's working well. Note that I removed the very ugly chown -R
> www-data:www-data /usr/share/openstack-dashboard/<whatever> and that I
> do that on /var/lib/openstack-dashboard, plus some symlinks to it for
> the css and js folders. This seemed to work well, and that's Debian
> policy and FSH compliant!
>
> Thomas

That's great news! Something must have changed then because the
packaged lessc broke on the minimal testing system I have setup for
horizon. I think it couldn't find "node" via the "#!/usr/bin/env node"
invocation.

-Tim



More information about the Openstack-devel mailing list