[opensuse-buildservice] [Patch] Display average building time
Hi ! The attached patches display the average time needed to build a package per arch below the "Blocked Queue". It uses exponential smoothing (smoothing factor 0.3) to calculate the average. Have phun! Jan-Simon
When building the rpms for suse 11.1 and factory I'm getting a failed message, eventhough the build went OK. Does anybody have a guess on what's going on? Thanks! The complete listing is in: https://build.opensuse.org/package/live_build_log?arch=x86_64&package=cb2bib&project=home%3Apereconstans&repository=openSUSE_11.1 The final piece is: Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.86431 + umask 022 + cd /usr/src/packages/BUILD + cd cb2bib-1.1.0 + rm -rf /var/tmp/build-root-cb2bib + rm -rf /usr/src/packages/BUILD/file.list.cb2bib + rm -rf /usr/src/packages/BUILD/file.list.cb2bib.libs + rm -rf /usr/src/packages/BUILD/file.list.cb2bib.files + rm -rf /usr/src/packages/BUILD/file.list.cb2bib.files.tmp + rm -rf /usr/src/packages/BUILD/file.list.cb2bib.dirs + exit 0 ... checking for files with abuild user/group ... running 00-check-install-rpms ... installing all built rpms Preparing packages for installation... cb2bib-1.1.0-3.1 ... running 01-check-debuginfo ... testing for empty debuginfo packages ... running 02-check-gcc-output ... testing for serious compiler warnings (using /usr/lib/build/checks-data/check_gcc_output) (using //.build.log) ... running 03-check-binary-kernel-log ... running 04-check-filelist ... checking filelist The following directories from cb2bib-1.1.0-3.1.x86_64.rpm are already part of the filesystem RPM: /usr/bin /usr/share /usr/share/applications /usr/share/pixmaps System halted. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2008-12-18 01:43:46 +0100, Pere Constans wrote:
When building the rpms for suse 11.1 and factory I'm getting a failed message, eventhough the build went OK.
Does anybody have a guess on what's going on?
... checking filelist The following directories from cb2bib-1.1.0-3.1.x86_64.rpm are already part of the filesystem RPM: /usr/bin /usr/share /usr/share/applications /usr/share/pixmaps
This is due to your spec file: find . -type d -fprint $RPM_BUILD_DIR/file.list.%{name}.dirs so your package will own dirs like /usr/bin etc. which are already owned by the filesystem rpm. I would suggest to list the files manually in the %files section instead of using such find commands. Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
A Dijous 18 Desembre 2008, Marcus Hüwe va escriure:
This is due to your spec file:
find . -type d -fprint $RPM_BUILD_DIR/file.list.%{name}.dirs
so your package will own dirs like /usr/bin etc. which are already owned by the filesystem rpm. I would suggest to list the files manually in the %files section instead of using such find commands.
Marcus, thank you. The syntax for that, would it be: ==================================== %clean rm -rf $RPM_BUILD_ROOT %files <--------------- NOT SURE HERE %defattr(-,root,root) /usr/bin/cb2bib /usr/bin/dl_cb2bib /usr/share/applications/cb2bib.desktop /usr/share/applications/dl_cb2bib.desktop /usr/share/pixmaps/cb2bib.png /usr/share/cb2bib /usr/share/cb2bib/* <---------- NOT SURE HERE (it should take the whole dir and subdirs) ==================================== Now I have: ==================================== cd $RPM_BUILD_ROOT find . -type d -fprint $RPM_BUILD_DIR/file.list.%{name}.dirs find . -type f -fprint $RPM_BUILD_DIR/file.list.%{name}.files.tmp sed '/\/man\//s/$/.gz/g' $RPM_BUILD_DIR/file.list.%{name}.files.tmp > $RPM_BUILD_DIR/file.list.%{name}.files find . -type l -fprint $RPM_BUILD_DIR/file.list.%{name}.libs sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' $RPM_BUILD_DIR/file.list. %{name}.dirs > $RPM_BUILD_DIR/file.list.%{name} sed 's,^\.,\%attr(-\,root\,root) ,' $RPM_BUILD_DIR/file.list.%{name}.files >> $RPM_BUILD_DIR/file.list.%{name} sed 's,^\.,\%attr(-\,root\,root) ,' $RPM_BUILD_DIR/file.list.%{name}.libs >> $RPM_BUILD_DIR/file.list.%{name} %clean rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_DIR/file.list.%{name} rm -rf $RPM_BUILD_DIR/file.list.%{name}.libs rm -rf $RPM_BUILD_DIR/file.list.%{name}.files rm -rf $RPM_BUILD_DIR/file.list.%{name}.files.tmp rm -rf $RPM_BUILD_DIR/file.list.%{name}.dirs %files -f ../file.list.%{name} ==================================== -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Fixed version ... Best, Jan-Simon Am Wednesday 17 December 2008 21:47:30 schrieb Jan-Simon Möller:
Hi !
The attached patches display the average time needed to build a package per arch below the "Blocked Queue". It uses exponential smoothing (smoothing factor 0.3) to calculate the average.
Have phun! Jan-Simon
participants (3)
-
Jan-Simon Möller
-
Marcus Hüwe
-
Pere Constans