SPECS: apache1.spec - use relative symlinks

Elan Ruusamäe glen at delfi.ee
Wed Jun 21 17:04:22 CEST 2006


On Wednesday 21 June 2006 16:49, Paweł Gołaszewski wrote:
> 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.
exactly


-- 
glen


More information about the pld-devel-en mailing list