perfsonar-dev - perfsonar: r3702 - branches/rpm
Subject: perfsonar development work
List archive
- From:
- To:
- Subject: perfsonar: r3702 - branches/rpm
- Date: Wed, 16 Apr 2008 09:11:08 -0400
Author: fernandes
Date: 2008-04-16 09:11:07 -0400 (Wed, 16 Apr 2008)
New Revision: 3702
Modified:
branches/rpm/package_maker.pl
Log:
Bug Fix: It seems Ubuntu (or maybe the perl version that was compiled)
doesn't expands ~/.rpmmacros right, Maciej spotted and suggested the
workaround for it.
Modified: branches/rpm/package_maker.pl
===================================================================
--- branches/rpm/package_maker.pl 2008-04-16 13:02:20 UTC (rev 3701)
+++ branches/rpm/package_maker.pl 2008-04-16 13:11:07 UTC (rev 3702)
@@ -449,8 +449,10 @@
sub createRpmBuildTree(){
my $currdir = `pwd`;
chomp($currdir);
-
- open( RPMMACROS, "> ~/.rpmmacros") or die "There was a problem opening
the file ~/.rpmmacros for writing.";
+ my $homedir = `echo ~`; # workaround for Ubuntu (and maybe others)
~/.rpmmacros bug
+ chomp($homedir);
+
+ open( RPMMACROS, "> $homedir/.rpmmacros") or die "There was a problem
opening the file ~/.rpmmacros for writing.";
print RPMMACROS "\%_topdir $currdir/rpmbuild\n";
print RPMMACROS "\%_tmppath $currdir/rpmbuild/TMP";
close RPMMACROS;
- perfsonar: r3702 - branches/rpm, svnlog, 04/16/2008
- Re: [pS-dev] perfsonar: r3702 - branches/rpm, Ralf Kleineisel, 04/16/2008
- Re: [pS-dev] perfsonar: r3702 - branches/rpm, Guilherme Fernandes, 04/16/2008
- Re: [pS-dev] perfsonar: r3702 - branches/rpm, Ralf Kleineisel, 04/16/2008
Archive powered by MHonArc 2.6.16.