[systemd-devel] [RFC PATCH] Fix so install will work without 'ln --relative' support

Lennart Poettering lennart at poettering.net
Fri May 16 07:14:20 PDT 2014


On Fri, 16.05.14 13:15, Harald Hoyer (harald.hoyer at gmail.com) wrote:

> 
> On 16.05.2014 13:00, Kay Sievers wrote:
> > I do not think we should do such hacks in upstream systemd.
> > 
> > It is a commonly available feature since quite some years, and
> > building without chroot on old systems is a bit too exotic to justify
> > carrying this rather large work around upstream.
> > 
> > We do not accept distro-specific, not commonly needed things in the
> > upstream code base because we do not want to maintain them, the same
> > seems to apply to this.
> > 
> > Thanks,
> > Kay
> 
> Then we should probably check, if "ln" supports "--relative" and does it right
> in configure.

Yeah, thinking about this I agree with Kay and Harald.

If it is desirable to cross-build systemd on such an old distribution
I'd recommend sticking an alternative "ln" implementation into $PATH and
making sure it is preferred when building systemd. This could just be
the shell script that was posted and it could handle --relative
invocations, and for everything else defer immediately to the real ln...

I have now added a configure check that makes sure that ln supports
--relative, so that this is detected early on.

Hope that makes sense...

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list