Re: dbi-pm fails to compile

Kevin Horton <[email protected]>
Newsgroups gmane.os.apple.fink.devel
Message-ID <[email protected]>
On May 5, 2015 at 4:48:25 PM, Daniel Johnson ([email protected]) wrote:

> On May 5, 2015, at 5:03 AM, Kevin Horton <[email protected]> wrote:  
>  
> On May 5, 2015 at 1:07:15 AM, Daniel Macks ([email protected]) wrote:  
>> On Mon, 04 May 2015 10:22:26 -0400, Daniel Macks <[email protected]> wrote:  
>> On Mon, 4 May 2015 08:41:55 -0400, Kevin Horton <[email protected]> wrote:  
>> > I’m looking at taking over dbi-pm from Benjamin Reed, but I’ve  
>> > discovered a problem with the existing package that has me stumped. >  
>> > > dbi-pm5182-1:1.630-1 fails to compile on OS X 10.10.4 (beta) with:  
>> > >  
>> > > cp lib/DBI/Const/GetInfoType.pm blib/lib/DBI/Const/GetInfoType.pm  
>> > > "/usr/bin/arch" -x86_64 perl5.18 -x86_64 perl5.18 "-Iblib/arch" >  
>> > "-Iblib/lib" dbilogstrip.PL dbilogstrip  
>> > > "/usr/bin/arch" -x86_64 perl5.18 -x86_64 perl5.18 "-Iblib/arch" >  
>> > "-Iblib/lib" dbiprof.PL dbiprof  
>> > > "/usr/bin/arch" -x86_64 perl5.18 -x86_64 perl5.18 "-Iblib/arch" >  
>> > "-Iblib/lib" dbiproxy.PL dbiproxy  
>> > > Can't open perl script "perl5.18": No such file or directory  
>> > > Can't open perl script "perl5.18": No such file or directory  
>> > > make: *** [dbiproxy] Error 2  
>> > >  
>> > > Any hints would be greatly appreciated.  
>> >  
>> > It's double-passing "-x86_64 perl5.18". That's a bug in...some  
>> > version of some underlying perlmod used in the build toolchain, can't  
>> > remember which. Will look it up later today.  
>>  
>> It's a bug/regression in recent versions of ExtUtils::MakeMaker that  
>> affects several perlmod packages that supply scripts. Adding  
>> extutils-makemaker-pmXXX maintainer to CC. A few months ago I narrowed  
>> down what version introduced this problem...somewhere on #fink...can't  
>> find it.  
>>  
>> dan  
>>  
>  
> It builds correctly with extutils-makemaker-pm5182_6.98-1 installed. It fails with extutils-makemaker-pm5182_7.00-1 or 7.04-1 installed.  
>  
> I’ll rollback to extutils-makemaker-pm5182_6.98-1 pending a fix.  
>  
> Thanks for the detective work.  
>  
> —  
> Kevin Horton  

I figured out the issue. In extutils-makemaker > 6.98, $perlflags was getting added twice to perl calls in generated Makefiles thus the double “-x86_64 perl5.18 -x86_64 perl5.18”. Patching out the second $perlflags fixes it. dbi-pm5182 now builds with the newly committed extutils-makemaker-pm5182-7.05-0.20 (it’s a prerelease version, thus the -0.20).  




Thanks for the quick diagnosis and fix.  

extutils-makemaker-pm5182-7.05-0.20 builds with Fink’s sed, but it fails to build with the system sed:

sudo -u fink-bld [ENV] sh -c /tmp/fink.VxqQv
[ -r /sw/fink/dists/stable/main/finkinfo/libs/perlmods/extutils-makemaker-pm.patch ]
sudo -u fink-bld [ENV] sh -c /tmp/fink.BEoWo
/tmp/fink.s0Uhb
#!/bin/bash -ev
        sed 's|@PREFIX@|/sw|g' < /sw/fink/dists/stable/main/finkinfo/libs/perlmods/extutils-makemaker-pm.patch | patch -p1
patching file lib/ExtUtils/MakeMaker.pm
Hunk #1 succeeded at 228 (offset 19 lines).
Hunk #2 succeeded at 399 (offset 36 lines).

        sed -i "s/'\.\$perlflags\.'//" lib/ExtUtils/MM_Unix.pm
sed: 1: "lib/ExtUtils/MM_Unix.pm": extra characters at the end of l command
### execution of /tmp/fink.s0Uhb failed, exit code 1
### execution of /tmp/fink.BEoWo failed, exit code 1

===================
I’m on OS X 10.10.4 (beta).  I intend to get off the beta train as soon as the real 10.10.4 is out, but I’m stuck on it for the moment.  I don’t know if that is the explanation or not.

—
Kevin Horton

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y

_______________________________________________
Fink-devel mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.