<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Sans Serif'; font-size:12pt; font-weight:400; font-style:normal;">Op vrijdag 04 december 2009 20:47:59 schreef Richard Bos:<br>
> It goes wrong file executing 'perl Makefile.PL'.  I added a check to it,<br>
> being:<br>
> sub MY::postamble {<br>
>     if (-e "../Base.mk")<br>
>     {<br>
>         copy("../Base.mk", "./") or die "Could not copy ../Base.mk";<br>
>     } else {<br>
>         die "../Base.mk does not exist";  <<<<<<<<<<<br>
>     }<br>
>     my $add = "include Base.mk<br>
><br>
> Now when I run 'perl Makefile.PL', it fails with:<br>
> perl-kolab-2.2.2.90_cvs20091204> perl Makefile.PL<br>
> ../Base.mk does not exist at Makefile.PL line 103.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>When I use the original Makefile.PL and remove "include Base.mk", 'make install' complains:<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>chmod 755 /usr/src/packages/BUILD/perl-kolab-2.2.2.90_cvs20091204/ME//kolab/sbin/*                                                                   <br>
/bin/sh: -q: invalid option                                                                                                                          <br>
I think it fails at:<br>
ifeq \"x\$(PLATTAG)\" \"x\"<br>
        PLATTAG = \$(shell /usr/bin/rpm -q --qf=\"%{ARCH}-%{OS}\" openpkg)-\$(HOME:/%=%)<br>
endif<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Ain't possible to use a perl function for it:<br>
 perl -V<br>
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:<br>
  Platform:                                                            <br>
    osname=linux, osvers=2.6.27, archname=i586-linux-thread-multi      <br>
........<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Perhaps something like:<br>
perl-kolab> perl -V:vendorlib<br>
vendorlib='/usr/lib/perl5/vendor_perl/5.10.0';<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>/perl-kolab> perl -V:sitelib<br>
sitelib='/usr/lib/perl5/site_perl/5.10.0';<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>or<br>
5.10.0> perl -V:myarchname<br>
myarchname='i686-linux';<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>/usr/lib/perl5/5.10.0> perl -V:archname<br>
archname='i586-linux-thread-multi';<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Don't know what you're looking for.  More info in 'perldoc perltoc'<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p><p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p><p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>-- <br>
Richard</p></body></html>