A more (OS) portable way to accomplish this
XSUBPP = $(firstword $(wildcard /usr/bin/xsubpp $(EXTUTILS)/xsubpp))
On 12/01/2014 05:43 AM, Torsten Bögershausen wrote:
> Hi,
>
> I tried to compile EPICS under "Scientific Linux release 7.0 (Nitrogen)"
>
> It failed, because xsubpp is no longer here:
> /usr/share/perl5/Extutils/xsubpp
> but found here:
> /usr/bin/xsubpp
>
> Thanks to Götz, who helped me debugging the error and finding a fix.
>
> For now I added a shell script to see where xsubpp is.
> The following applies to base-3.15.1-rc1 (but the problem is in older
> bases as well)
>
> Does this sound reasonable, or are there better ways ?
>
>
>
> diff --git a/src/ca/client/perl/Makefile b/src/ca/client/perl/Makefile
> index 6ae32dd..516e494 100644
> --- a/src/ca/client/perl/Makefile
> +++ b/src/ca/client/perl/Makefile
> @@ -54,10 +54,11 @@ include $(TOP)/configure/RULES
>
> ifdef T_A
> EXTUTILS = $(shell $(PERL) ../perlConfig.pl privlib)/ExtUtils
> + XSUBPP = $(shell if test -x /usr/bin/xsubpp ; then echo
> /usr/bin/xsubpp ; else echo $(EXTUTILS)/xsubpp ; fi)
>
> %.c: ../%.xs
> $(RM) $@ $@_new
> - $(PERL) $(EXTUTILS)/xsubpp -typemap $(EXTUTILS)/typemap $< >
> $@_new && $(MV) $@_new $@
> + $(PERL) $(XSUBPP) -typemap $(EXTUTILS)/typemap $< > $@_new &&
> $(MV) $@_new $@
>
> $(INSTALL_PERL_MODULES)/$(PERL_ARCHPATH)/%: %
>
>
>
>
>
- Replies:
- Re: xsubpp moved under Sscientif Linux 7.0 Andrew Johnson
- References:
- catools (caget/caput/camonitor) and locale settings from the environment Goetz Pfeiffer
- Re: catools (caget/caput/camonitor) and locale settings from the environment Torsten Bögershausen
- xsubpp moved under Sscientif Linux 7.0 Torsten Bögershausen
- Navigate by Date:
- Prev:
xsubpp moved under Sscientif Linux 7.0 Torsten Bögershausen
- Next:
RE: Is it possible for an Asyn output record to be, also, an (I/OIntr - driven) input? Heesterman, Peter J
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
<2014>
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
xsubpp moved under Sscientif Linux 7.0 Torsten Bögershausen
- Next:
Re: xsubpp moved under Sscientif Linux 7.0 Andrew Johnson
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
<2014>
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|