Re: [Spacewalk-devel] less.js development mode broken

2014-01-14 Thread Duncan Mac-Vicar P.
On 14/01/14 10:36, Silvio Moioli wrote:
 On 01/13/2014 03:18 PM, Michael Mraka wrote:
 Ok, I've changed the path back for you.
 
 JFI: I pushed a further small fix in
 27076678423180d1226f407bdd342e127cc5e017, namely using the absolute path
 instead of the relative one, otherwise the URL
 https://HOST_NAME/css/bootstrap/less/bootstrap.less would be used
 resulting in a 404 error.
 
 Regards,
 

I know I gave you the tip of the absolute path to you but there is
something I did not see: our lesscss-engine does not support search
paths, therefore in now looks in /. and spacewalk-branding does not build.

May be the combination that works for both is:

Upstream:
spacewalk.less
  import relative bootstrap/less...
apache alias: /css/bootstrap /usr/share/bootstrap
branding package: search path, /usr/share

Manager:
spacewalk.less same

apache alias: /css/bootstrap /usr/share/susemanager-frontend-libs/bootstrap
branding package: symlink bootstrap to
/usr/share/susemanager-frontend-libs/bootstrap



-- 
Duncan Mac-Vicar P. - http://www.suse.com/

SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix
Imendörffer, HRB 16746 (AG Nürnberg)
Maxfeldstraße 5, 90409 Nürnberg, Germany

___
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Re: [Spacewalk-devel] less.js development mode broken

2014-01-14 Thread Silvio Moioli
On 01/14/2014 01:56 PM, Duncan Mac-Vicar P. wrote:
 I know I gave you the tip of the absolute path to you but there is
 something I did not see: our lesscss-engine does not support search
 paths, therefore in now looks in /. and spacewalk-branding does not build.

Sorry for the confusion, fixed in b7e3621.

Regards,
-- 
Silvio Moioli
SUSE LINUX Products GmbH
Maxfeldstraße 5, 90409 Nürnberg Germany

___
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Re: [Spacewalk-devel] less.js development mode broken

2014-01-13 Thread Michael Mraka
Duncan Mac-Vicar P. wrote:
% Hi
% 
% As the .less files where moved to /usr/share/bootstrap/less and used
% only to compile spacewalk.less, in development mode the bootstrap.less
% files are not accessible from the web.
% 
% One could alias only bootstrap.less but this one include more files. I
% suggest:
% - Reverting  4fa8df9431dedbe4ada0c072697a5bd1a4ef5427
%  +@import url(bootstrap/less/bootstrap.less);
%  -@import url(bootstrap.less);

Ok, I've changed the path back for you.
 
% Adding to bootstrap a /etc/httpd/conf.d/bootstrap.conf
% 
% alias /bootstrap /usr/share/bootstrap
% IfVersion = 2.4
%   Directory /usr/share/bootstrap
% Require all granted
%   /Directory
% /IfVersion
% 
% or just to bootstrap-less /etc/httpd/conf.d/bootstrap-less.conf
% 
% alias /bootstrap/less /usr/share/bootstrap/less
% IfVersion = 2.4
%   Directory /usr/share/bootstrap/less
% Require all granted
%   /Directory
% /IfVersion
% 
% Changing the branding package so that lessc is called with the right
% include path, I think in this case it would be just /usr/share.

I've added bootstrap-less.conf to bootstrap-less and also updated koji
configuration so bootstrap-less will be in spacewalk-nightly repo.


Regards,

--
Michael Mráka
Satellite Engineering, Red Hat

___
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel