Re: Faillure to autogenerate file on hpux

2013-04-01 Thread Nick Bowler
On 2013-03-31 11:01 +0100, Bastien ROUCARIES wrote:
> On Sat, Mar 30, 2013 at 5:01 PM, Bastien ROUCARIES 
>  wrote:
[...]
> > >No we have a automake rules that do:
> > >$(PERLMAGICK)/quantum/@MAGICK_ABI_SUFFIX@.pm: 
> > >$(PERLMAGICK)/quantum/quantum.pm
> > >$(AM_V_GEN) $(LN_S) $(notdir $^) $@
> > >
> > >And it is surelly not portable ...
> 
> Any idea to get portable basename shell command ?

Note also that $^ is not portable as it is also GNU make feature, along
with $(notdir ...).

But in this case it doesn't look like you need $^, or even basename.  I
think you can just replace the string (unfortunately, you'd need to see
the rest of the Makefile to be sure):

  $(notdir $^)
  
with:

  quantum.pm

and it will work just as well, and be portable.

Cheers,
-- 
Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)



Re: Faillure to autogenerate file on hpux

2013-03-31 Thread Bastien ROUCARIES
On Sun, Mar 31, 2013 at 6:33 PM, Russ Allbery  wrote:
> Bastien ROUCARIES  writes:
>
>> Any idea to get portable basename shell command ?
>
> Personally, I just use basename, but the Autoconf manual does say:
>
> `basename'
>  Not all hosts have a working `basename'.  You can use `expr'
>  instead.
>
> The manual didn't list an alternative, but some searching (I'm not
> horribly familiar with the regex syntax in expr) says:
>
> `expr "//$file" : '.*/\([^/]*\)'`

It does not work with windows unfortunatly...

> --
> Russ Allbery (r...@stanford.edu) 



Re: Faillure to autogenerate file on hpux

2013-03-31 Thread Russ Allbery
Bastien ROUCARIES  writes:

> Any idea to get portable basename shell command ?

Personally, I just use basename, but the Autoconf manual does say:

`basename'
 Not all hosts have a working `basename'.  You can use `expr'
 instead.

The manual didn't list an alternative, but some searching (I'm not
horribly familiar with the regex syntax in expr) says:

`expr "//$file" : '.*/\([^/]*\)'`

-- 
Russ Allbery (r...@stanford.edu) 



Re: Faillure to autogenerate file on hpux

2013-03-31 Thread Bastien ROUCARIES
On Sat, Mar 30, 2013 at 5:01 PM, Bastien ROUCARIES
 wrote:
>
> On Fri, Mar 29, 2013 at 10:56 PM, Russ Allbery  wrote:
> > Bastien ROUCARIES  writes:
> >
> >> Last version of imagemagick fail to build on hpux during build. We
> >> supsect  a autoconf bug.
> >
> >> Unfortunatly we have no access to hpux.
> >
> >> cd . && /bin/sh ./config.status config/delegates.xml
> >> config.status: creating config/delegates.xml
> >> cd . && /bin/sh ./config.status config/configure.xml
> >> config.status: creating config/configure.xml
> >> ln -s PerlMAgick/quantum/Q16.xs
> >> usage: ln [-f] [-I] [-s] f1 f2
> >> ln [-f] [-I] [-s] f1 ... fn d1
> >
> > That ln command looks like something that you're telling Autoconf to run
> > with AC_CONFIG_COMMANDS, and it's not portable.  Omitting the destination
> > argument to ln is a GNU extension.  Try changing that to:
> >
> > ln -s PerlMAgick/quantum/Q16.xs Q16.xs
>
> >No we have a automake rules that do:
> >$(PERLMAGICK)/quantum/@MAGICK_ABI_SUFFIX@.pm: 
> >$(PERLMAGICK)/quantum/quantum.pm
> >$(AM_V_GEN) $(LN_S) $(notdir $^) $@
> >
> >And it is surelly not portable ...

Any idea to get portable basename shell command ?

Bastien


>
>
> >
> > --
> > Russ Allbery (r...@stanford.edu) 



Re: Faillure to autogenerate file on hpux

2013-03-30 Thread Bastien ROUCARIES
On Fri, Mar 29, 2013 at 10:56 PM, Russ Allbery  wrote:
> Bastien ROUCARIES  writes:
>
>> Last version of imagemagick fail to build on hpux during build. We
>> supsect  a autoconf bug.
>
>> Unfortunatly we have no access to hpux.
>
>> cd . && /bin/sh ./config.status config/delegates.xml
>> config.status: creating config/delegates.xml
>> cd . && /bin/sh ./config.status config/configure.xml
>> config.status: creating config/configure.xml
>> ln -s PerlMAgick/quantum/Q16.xs
>> usage: ln [-f] [-I] [-s] f1 f2
>> ln [-f] [-I] [-s] f1 ... fn d1
>
> That ln command looks like something that you're telling Autoconf to run
> with AC_CONFIG_COMMANDS, and it's not portable.  Omitting the destination
> argument to ln is a GNU extension.  Try changing that to:
>
> ln -s PerlMAgick/quantum/Q16.xs Q16.xs

No we have a automake rules that do:
$(PERLMAGICK)/quantum/@MAGICK_ABI_SUFFIX@.pm: $(PERLMAGICK)/quantum/quantum.pm
$(AM_V_GEN) $(LN_S) $(notdir $^) $@

And it is surelly not portable ...

>
> --
> Russ Allbery (r...@stanford.edu) 



Re: Faillure to autogenerate file on hpux

2013-03-29 Thread Russ Allbery
Bastien ROUCARIES  writes:

> Last version of imagemagick fail to build on hpux during build. We
> supsect  a autoconf bug.

> Unfortunatly we have no access to hpux.

> cd . && /bin/sh ./config.status config/delegates.xml
> config.status: creating config/delegates.xml
> cd . && /bin/sh ./config.status config/configure.xml
> config.status: creating config/configure.xml
> ln -s PerlMAgick/quantum/Q16.xs
> usage: ln [-f] [-I] [-s] f1 f2
> ln [-f] [-I] [-s] f1 ... fn d1

That ln command looks like something that you're telling Autoconf to run
with AC_CONFIG_COMMANDS, and it's not portable.  Omitting the destination
argument to ln is a GNU extension.  Try changing that to:

ln -s PerlMAgick/quantum/Q16.xs Q16.xs

-- 
Russ Allbery (r...@stanford.edu) 



Re: Faillure to autogenerate file on hpux

2013-03-29 Thread Eric Blake
On 03/29/2013 02:55 PM, Bastien ROUCARIES wrote:
> Last version of imagemagick fail to build on hpux during build. We
> supsect  a autoconf bug.
> 
> Unfortunatly we have no access to hpux.
> 
> cd . && /bin/sh ./config.status config/delegates.xml
> config.status: creating config/delegates.xml
> cd . && /bin/sh ./config.status config/configure.xml
> config.status: creating config/configure.xml
> ln -s PerlMAgick/quantum/Q16.xs

So this is calling ln with too few arguments.  Can you find the portion
of config.status that is calling ln, and figure out what variables it is
referencing, in order to trace backwards and figure out why one of the
variables is not getting set properly?  Can you get the person that
reported the bug to you (and therefore who DOES have access to hpux)
more involved in debugging this?

-- 
Eric Blake   eblake redhat com+1-919-301-3266
Libvirt virtualization library http://libvirt.org



signature.asc
Description: OpenPGP digital signature


Faillure to autogenerate file on hpux

2013-03-29 Thread Bastien ROUCARIES
Last version of imagemagick fail to build on hpux during build. We
supsect  a autoconf bug.

Unfortunatly we have no access to hpux.

cd . && /bin/sh ./config.status config/delegates.xml
config.status: creating config/delegates.xml
cd . && /bin/sh ./config.status config/configure.xml
config.status: creating config/configure.xml
ln -s PerlMAgick/quantum/Q16.xs
usage: ln [-f] [-I] [-s] f1 f2
ln [-f] [-I] [-s] f1 ... fn d1

Bastien