Hi,
There is a problem in build_package and Packager.pm that prevents moving all
generated rpms into $PKGDEST
In fact the cp and mv command are doing $cmd $pkg*rpm $dest
this means that all generated rpms that have a name that does not start with
$pkg are ignored.
I felt into that trying to upgrade rrdtool and ganglia. I noticed that:
libganglia and all *-rrdtool* rpms were left over.
those 2 patches will fix this issue.
Note that if spec file generates a packages with a name that does not include
the basename the problem will raise again.
Best regards.
--
Olivier LAHAYE
CEAEA Saclay
DRT-LIST-DCSI-DIR
Index: Packager.pm
===================================================================
--- Packager.pm (révision 9198)
+++ Packager.pm (copie de travail)
@@ -347,7 +347,7 @@
return -1;
}
}
- $cmd = "mv $name*.rpm $output";
+ $cmd = "mv *$name*.rpm $output";
print "Executing: $cmd\n";
if (system ($cmd)) {
carp "ERROR: Impossible to execute $cmd";
Index: build_package
===================================================================
--- build_package (révision 9198)
+++ build_package (copie de travail)
@@ -165,11 +165,11 @@
carp "ERROR: Impossible to execute $cmd";
return -1;
}
- @rpms = glob ("$rpm_dir/noarch/$pkg*.rpm");
+ @rpms = glob ("$rpm_dir/noarch/*$pkg*.rpm");
if (scalar (@rpms) > 0) {
copy_files (\...@rpms, $output);
}
- @rpms = glob ("$rpm_dir/$rpm_arch/$pkg*.rpm");
+ @rpms = glob ("$rpm_dir/$rpm_arch/*$pkg*.rpm");
if (scalar (@rpms) > 0) {
copy_files (\...@rpms, $output);
}
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Oscar-devel mailing list
Oscar-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-devel