bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] mig: Drop the Perl runtime dependency


From: Guillem Jover
Subject: Re: [PATCH] mig: Drop the Perl runtime dependency
Date: Tue, 22 Jul 2014 16:17:17 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

Hi!

On Tue, 2014-07-22 at 15:12:55 +0200, Thomas Schwinge wrote:
> On Fri, 18 Jul 2014 19:29:07 -0400, David Michael <fedora.dm0@gmail.com> 
> wrote:
> > I tried running mig on a system without Perl ealier with bad results.
> > Perl seems to be used only for functionality that is also provided by
> > GNU coreutils (which is already required, e.g. for dirname).  Does it
> > make sense to drop the Perl command in favor of using realpath here?
> 
> > -libexecdir_rel=$(perl -MFile::Spec -e 'print 
> > File::Spec->abs2rel("'"$libexecdir"'","'"$bindir"'")')
> > +libexecdir_rel=$(realpath --relative-to="$bindir" "$libexecdir")
> 
> Thanks for the patch, and I'd be happy to apply that, however, on four
> arbitrary (Debian, Ubuntu, Trisquel) systems that I just tried, I either
> see: »realpath: unrecognized option '--relative-to'«, or »bash: realpath:
> command not found«, whereas the Perl variant works on all of these.

On Debian-based systems the tool is provided in the realpath package.
There's an experimental version switching to the coreutils version to
see what breaks, but it's not clear when and iff that will be switched
over to the coreutils version in unstable.

  
<http://metadata.ftp-master.debian.org/changelogs//main/r/realpath/realpath_1.19.coreutils.1_changelog>

Thanks,
Guillem



reply via email to

[Prev in Thread] Current Thread [Next in Thread]