I've found this tricky bug.
Change are not yet commited and correcting the bug has a big impact.
In fact, if dir /tmp/oscar-packager didn't exist, it was created and a chdir
was issued to this place. BUT if it existed no chdir was done.
The bug ,is in prepare_rpm_env (last argument: place to chdir).
=> The the /tmp argument was ignored.
when building from tar or svn sepc file, there was a chdir, but in the case of
src.rpm, no chdir and thus the build_rpm --only_rpm was moving the result into
".".
As we started oscar-packager from /tftpboot/oscar/<distro_ref>, the package was
moved from the %_rpmdir/RPMS/<arch> to .
Then a mv ./*${name}*rpm to /tftpboot/oscar/<distro_ref> was done trying to
move files on themself.
More over, in the case of flamethrower, it was also trying to move the
systemimager-flametrhower package.....(moving rpms that do not belong to the
package being built)
Moving the chdir to the correct place is the solution, but then it overrides
the other method chdir which is done before prepare_rpm_env. the argument to
chedir to is /tmp. Then from the current directory (now /tmp) the build process
trys to find a Makefile or a spec file which cannot be found of course.
Thus I must check carefully each parameters of prepare_rpm_env.
I'll post when it is fixed and tested.
Regards,
Olivier.
----- Mail original -----
> De: "olivier lahaye1" <olivier.laha...@free.fr>
> À: oscar-devel@lists.sourceforge.net
> Envoyé: Vendredi 12 Avril 2013 15:05:03
> Objet: [Oscar-devel] mv fail bug identified
> Hi,
> I've been able to reproduce the mv files are identical bug in
> oscar-packager.
> if you run the oscar-packager from the $PKGDEST (the repo), then 2
> packages fail to build with this problem.
> The packages are: systemimager, blcr
> I'm looking at the problem...
> --
> Olivier LAHAYE
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for
> building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free
> account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> Oscar-devel mailing list
> Oscar-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oscar-devel
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Oscar-devel mailing list
Oscar-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-devel