SPECS: apache1.spec - use relative symlinks

Paweł Gołaszewski blues at pld-linux.org
Wed Jun 21 15:49:57 CEST 2006


On Wed, 21 Jun 2006, Jakub Bogusz wrote:
> > Author: glen                         Date: Wed Jun 21 12:19:47 2006 GMT
> > Module: SPECS                         Tag: HEAD
> > ---- Log message:
> > - use relative symlinks
> 
> >  mv $RPM_BUILD_ROOT%{_sysconfdir}/modules/* $RPM_BUILD_ROOT%{_libexecdir}
> >  rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/modules
> > -ln -s %{_libexecdir} $RPM_BUILD_ROOT%{_sysconfdir}/modules
> > -ln -s /var/log/apache $RPM_BUILD_ROOT%{_sysconfdir}/logs
> > +ln -s ../..%{_libexecdir} $RPM_BUILD_ROOT%{_sysconfdir}/modules
> > +ln -s ../../var/log/apache $RPM_BUILD_ROOT%{_sysconfdir}/logs
> 
> Symlinks across / used to be absolute.
> Other distros (e.g. Debian) have similar policy.

But...
when you're trying to use vservers or some chroots it's better to have 
them relative. These links are pointing correct place, not host-systems.

-- 
pozdr.  Paweł Gołaszewski          jid:blues<at>jabber<dot>gda<dot>pl
--------------------------------------------------------------------------
If you think of MS-DOS as mono, and Windows as stereo, then Linux is Dolby
Pro-Logic Surround Sound with Bass Boost and all the music is free.


More information about the pld-devel-en mailing list