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

Re: Moving to multiarch-compatible XS paths



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, May 14, 2014 at 06:07:02PM +0200, Axel Beckert wrote:
> Hi,
> 
> Niko Tyni wrote:
> > Attached, both without and with Uploaders.
> 
> Thanks. A fix for eperl has been committed to git and will be pushed
> soon.
> 
> > As I said, the changes look mostly trivial (usually just replace
> > /usr/lib/perl5 with $(shell perl -V::vendorarch:) in debian/rules
> > or something like that.)
> 
> Heads up! "perl -V::vendorarch:" seems to always add a blank at the
> end of the output, hence the code
> 
>   mv $(TMP)$(shell perl -V::vendorarch:)/Apache $(TMP)/usr/share/perl5/
> 
> fails as follows:
> 
>   mv debian/eperl'/usr/lib/perl5' /Apache debian/eperl/usr/share/perl5/
>   mv: cannot stat ‘/Apache’: No such file or directory
> 
> Workaround: Strip the blank, e.g. with sed:
> 
>   mv $(TMP)$(shell perl -V::vendorarch: | sed -e 's/ //')/Apache $(TMP)/usr/share/perl5/
> 
> Ugly, but does the job.

Hmm. But then, you still have the single quotes around it, no?

On my box (pretty plain-ish wheezy)

  tomas@rasputin:~$ perl -V::vendorarch:
  '/usr/lib/perl5' tomas@rasputin:~$ 

quotes, trailing space and all (no newline, that's why the prompt ends up
appended to the output). The output seems built for eval, as in

  tomas@rasputin:~$ eval arch=$(perl -V::vendorarch:)
  tomas@rasputin:~$ echo $arch
  /usr/lib/perl5

(which might be argued to be even uglier as sed, whatever).

regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlN0cmQACgkQBcgs9XrR2kb+JACfSh+DJhpZnPv+5aukDwYHA9n3
s/EAnRkMoI3C994Pothvs7C8qDRHhUgR
=iJgi
-----END PGP SIGNATURE-----


Reply to: