pcp
[Top] [All Lists]

Mac OS X build failure in PCP::PMDA

To: mgoodwin <mgoodwin@xxxxxxxxxx>
Subject: Mac OS X build failure in PCP::PMDA
From: Nathan Scott <nscott@xxxxxxxxxx>
Date: Wed, 7 Oct 2009 06:04:18 +1100 (EST)
Cc: pcp <pcp@xxxxxxxxxxx>
In-reply-to: <1856781336.21551254855715480.JavaMail.root@xxxxxxxxxxxxxxxxxx>
Hi Mark,

I'm hitting this on Mac OS X in a top of tree dev branch build...

find $DIST_ROOT -name .packlist -exec mv '{}' ../../../perl-pcp-pmda.list ';'
sed -e s@$DIST_ROOT@@ -e 's/\.[0-9]pm$/&.gz/' -i ../../../perl-pcp-pmda.list
sed: -i may not be used with stdin
make[4]: *** [install] Error 1
make[3]: *** [install] Error 2
make[2]: *** [install_pcp] Error 2
make[1]: *** [install_pcp] Error 2
make: *** [pack_pcp] Error 2

Doesn't really make sense to me, since its not being asked to use stdin.
Oh, wait, there's the problem - on Mac (and I assume *BSD) the -i option
has a mandatory argument (while with GNU tools it seems its optional).

Something like this works on Mac:
sed -e s@$DIST_ROOT@@ -e 's/\.[0-9]pm$/&.gz/' -itmp ../../../perl-pcp-pmda.list

With that and the strndup change, builds & packaging look OK on Mac & Windows.

cheers.

-- 
Nathan

<Prev in Thread] Current Thread [Next in Thread>
  • Mac OS X build failure in PCP::PMDA, Nathan Scott <=