I've found the nasty bug that marked the package as built while it wasn't.
the package was build from prepare_prereqs (build.cfg parsing), then it fails
during that step,
but if prepare prereqs fails, the build process continues (no next statement)
Then it trys a make rpm:
which does nothing and succeed.
Thus you end up in marking the package as built.
We progress ......:-)
----- Mail original -----
> De: "olivier lahaye1" <olivier.laha...@free.fr>
> À: oscar-devel@lists.sourceforge.net
> Envoyé: Mardi 9 Avril 2013 12:42:14
> Objet: [Oscar-devel] oscar-packager: code review in progress.
> DongInn,
> I'm currently cleaning oscar-packager code.
> - now Packager.pm uses the --verbose and --debug switches from main
> instead of hardcodding them.
> - now, if verbosity is 0, only main actions are printed.(skipping
> already built pkgs, building pkgs, installing deps,...)
> - added a extract_file function to OSCAR::FileUtils (avoid hardcoding
> tar xzf and fail on bz2 tarballs)
> Nothing yet committed, please wait a few hours, I need to crosscheck
> everything. This will require a oscar-base-libs upgrade.
> (As you can see there are errors, but the 100% success is
> reported......The failure is lost somewhere).
> Example of output:
> [root@is222272 ~]# oscar-packager --all unstable
> Verbosity: 0
> =============================================================================
> == OSCAR Packager Starting...
> =============================================================================
> [INFO] --> The package (c3) is already built.
> [INFO] --> The package (sc3) is already built.
> [INFO] --> The package (oscar) is already built.
> [INFO] --> The package (oscar-packager) is already built.
> [INFO] --> The package (orm) is already built.
> [INFO] --> The package (configurator) is already built.
> [INFO] --> The package (systemconfigurator) is already built.
> [INFO] --> The package (opkgc) is already built.
> [INFO] --> The package (oda) is already built.
> [INFO] --> The package (kernel_picker) is already built.
> [INFO] --> The package (selector) is already built.
> [INFO] --> The package (packman) is already built.
> [INFO] Packaging systemimager...
> [ requires: libuuid-devel device-mapper-devel binutils-devel
> pam-devel readline-devel openssl-devel ncurses-devel python-devel
> libuuid-devel glib2-devel glibc-static requires: gettext
> docbook-utils dos2unix flex libtool wget gcc gcc-c++ gperf bc rsync
> lzop desktop-file-utils python python-twisted-core PyXML requires:
> systemd-units common: flamethrower common: bittorrent common:
> systemimager ]
> Array: 6 element(s)
> Erreur : Aucun paquet correspondant à lister
> Erreur : Aucun paquet correspondant à lister
> Erreur : Aucun paquet correspondant à lister
> ERROR: Impossible to execute "yum -c /tmp/fileZh4cmD info
> systemd-units.noarch"; some packages are not available (-y, install,
> systemd-units) at /bin/yume line 313.
> ERROR during execution 6400
> Use of uninitialized value $output[0] in join or string at
> /usr/share/perl5/vendor_perl/OSCAR/PackMan.pm line 656.
> ERROR: Impossible to install systemd-units () at /usr/bin/packman
> line 150.
> Warning: failed to install requires: systemd-units
> Fichier «bittorrent-5.3-5.cf.rhel6.src.rpm» déjà présent; pas de
> récupération.
> Building only RPMs, passed arguments are interpreted as SRPMs
> Executing: mv ./*bittorrent*.rpm /tftpboot/oscar/fc-17-x86_64
> Fichier «systemimager-4.3.0-0.8.src.rpm» déjà présent; pas de
> récupération.
> Building only RPMs, passed arguments are interpreted as SRPMs
> Executing: mv ./*systemimager*.rpm /tftpboot/oscar/fc-17-x86_64
> Fichier «flamethrower-0.1.8-2.src.rpm» déjà présent; pas de
> récupération.
> Building only RPMs, passed arguments are interpreted as SRPMs
> Executing: mv ./*flamethrower*.rpm /tftpboot/oscar/fc-17-x86_64
> [INFO] --> The package (rapt) is already built.
> [INFO] --> The package (systeminstaller-oscar) is already built.
> [INFO] --> The package (sync_files) is already built.
> [INFO] --> The package (oscar-installer) is already built.
> [INFO] --> The package (yume) is already built.
> [INFO] --> The package (loghost) is already built.
> [INFO] --> The package (opium) is already built.
> =============================================================================
> == [INFO] Generated binary packages are in
> /tftpboot/oscar/fc-17-x86_64
> =============================================================================
> =============================================================================
> == Creating OPKG meta-packages...
> =============================================================================
> =============================================================================
> == [INFO] Generated binary packages are in
> /tftpboot/oscar/fc-17-x86_64
> =============================================================================
> [INFO] --> The package (blcr) is already built.
> [INFO] --> The package (jobmonarch) is already built.
> [INFO] --> The package (pvm) is already built.
> [INFO] --> The package (oscar-nat) is already built.
> [INFO] --> The package (modules-oscar) is already built.
> [INFO] --> The package (oscar-v) is already built.
> [INFO] --> The package (torque) is already built.
> [INFO] --> The package (ganglia) is already built.
> [INFO] --> The package (switcher) is already built.
> [INFO] --> The package (openmpi) is already built.
> [INFO] --> The package (netbootmgr) is already built.
> [INFO] --> The package (apitest) is already built.
> [INFO] --> The package (lam) is already built.
> [INFO] --> The package (oscar-udev) is already built.
> [INFO] --> The package (network-configurator) is already built.
> [INFO] --> The package (maui) is already built.
> [INFO] --> The package (system-update) is already built.
> [INFO] --> The package (pfilter) is already built.
> =============================================================================
> == [INFO] Generated binary packages are in
> /tftpboot/oscar/fc-17-x86_64
> =============================================================================
> =============================================================================
> == Creating OPKG meta-packages...
> =============================================================================
> =============================================================================
> == [INFO] Generated binary packages are in
> /tftpboot/oscar/fc-17-x86_64
> =============================================================================
> =============================================================================
> == OSCAR Packager compilation results:
> =============================================================================
> [INFO] --> Packaging was 100% successfull!
> =============================================================================
> == OSCAR Packager Ending
> =============================================================================
> Olivier.
> --
> 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