| 1064 | So we can try with another existing VM to see if we are more lucky, after stoping our running VM: |
| 1065 | {{{ |
| 1066 | $ ssh -p 2225 root@localhost halt |
| 1067 | $ pb -p netperf -r `pwd` -m rhel_4 build2vm |
| 1068 | Project: netperf |
| 1069 | Action: build2vm |
| 1070 | VMs: rhel_4 |
| 1071 | Launching the VM /users/qemu/rhel_4.qemu... OK |
| 1072 | Waiting for VM rhel_4 to come up... |
| 1073 | Packages: netperf |
| 1074 | Sources handled (VMs): /users/bruno/netperf/delivery/netperf-2.4.4.tar.gz /users/bruno/netperf/delivery/pbscript /users/bruno/netperf/src/pbconf/netperf.pb /users/bruno/netperf/delivery/2.4.4-1.pb /users/bruno/.pbrc |
| 1075 | Preparing netperf/delivery on pb@localhost... OK |
| 1076 | netperf-2.4.4.tar.gz 100% 1159KB 1.1MB/s 00:00 |
| 1077 | pbscript 100% 369 0.4KB/s 00:00 |
| 1078 | netperf.pb 100% 2223 2.2KB/s 00:00 |
| 1079 | 2.4.4-1.pb 100% 24 0.0KB/s 00:00 |
| 1080 | .pbrc 100% 2216 2.2KB/s 00:00 |
| 1081 | OK |
| 1082 | Executing pbscript on pb@localhost if needed... ... Execution needed |
| 1083 | Setting up date on pool.ntp.org... |
| 1084 | lun nov 26 10:23:00 CET 2007 |
| 1085 | Building packages on VM... |
| 1086 | Project: netperf |
| 1087 | Action: build2pkg |
| 1088 | Packages: netperf |
| 1089 | Source file: /home/pb/netperf/delivery/netperf-2.4.4.tar.gz |
| 1090 | Working directory: /home/pb/netperf/build |
| 1091 | Extracting build files... OK |
| 1092 | Building package with /home/pb/netperf/build/SPECS/netperf.spec under /home/pb/netperf/build... Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.90577 |
| 1093 | + umask 022 |
| 1094 | + cd /home/pb/netperf/build/BUILD |
| 1095 | + cd /home/pb/netperf/build/BUILD |
| 1096 | + rm -rf netperf-2.4.4 |
| 1097 | + /usr/bin/gzip -dc /home/pb/netperf/build/SOURCES/netperf-2.4.4.tar.gz |
| 1098 | [...] |
| 1099 | gcc -O2 -g -march=i386 -mcpu=i686 -o netperf netperf.o netlib.o netsh.o nettest_bsd.o nettest_dlpi.o nettest_unix.o nettest_xti.o nettest_sctp.o nettest_sdp.o netcpu_procstat.o -lm |
| 1100 | netlib.o(.text+0xbb1): In function `alloc_sendfile_buf_ring': |
| 1101 | /home/pb/netperf/build/BUILD/netperf-2.4.4/src/netlib.c:1545: warning: the use of `tmpnam' is dangerous, better use `mkstemp' |
| 1102 | if gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -march=i386 -mcpu=i686 -MT netserver.o -MD -MP -MF ".deps/netserver.Tpo" \ |
| 1103 | -c -o netserver.o `test -f 'netserver.c' || echo './'`netserver.c; \ |
| 1104 | then mv -f ".deps/netserver.Tpo" ".deps/netserver.Po"; \ |
| 1105 | else rm -f ".deps/netserver.Tpo"; exit 1; \ |
| 1106 | fi |
| 1107 | gcc -O2 -g -march=i386 -mcpu=i686 -o netserver netserver.o netlib.o netsh.o nettest_bsd.o nettest_dlpi.o nettest_unix.o nettest_xti.o nettest_sctp.o nettest_sdp.o netcpu_procstat.o -lm |
| 1108 | netlib.o(.text+0xbb1): In function `alloc_sendfile_buf_ring': |
| 1109 | /home/pb/netperf/build/BUILD/netperf-2.4.4/src/netlib.c:1545: warning: the use of `tmpnam' is dangerous, better use `mkstemp' |
| 1110 | make[3]: Entering directory `/home/pb/netperf/build/BUILD/netperf-2.4.4/src' |
| 1111 | /bin/sh ../mkinstalldirs /var/tmp/netperf-2.4.4-1.rhel4-root-pb/usr/bin |
| 1112 | mkdir -p -- /var/tmp/netperf-2.4.4-1.rhel4-root-pb/usr/bin |
| 1113 | /usr/bin/install -c netperf /var/tmp/netperf-2.4.4-1.rhel4-root-pb/usr/bin/netperf |
| 1114 | /usr/bin/install -c netserver /var/tmp/netperf-2.4.4-1.rhel4-root-pb/usr/bin/netserver |
| 1115 | make[3]: Nothing to be done for `install-data-am'. |
| 1116 | [...] |
| 1117 | + /bin/mkdir -p /var/tmp/netperf-2.4.4-1.rhel4-root-pb/usr/share/doc/netperf-2.4.4 |
| 1118 | + cp -pr ChangeLog /var/tmp/netperf-2.4.4-1.rhel4-root-pb/usr/share/doc/netperf-2.4.4 |
| 1119 | + cp -pr INSTALL COPYING README AUTHORS NEWS /var/tmp/netperf-2.4.4-1.rhel4-root-pb/usr/share/doc/netperf-2.4.4 |
| 1120 | + cp -pr README.aix README.hpux README.osx README.ovms README.solaris README.windows Release_Notes doc/examples /var/tmp/netperf-2.4.4-1.rhel4-root-pb/usr/share/doc/netperf-2.4.4 |
| 1121 | + exit 0 |
| 1122 | Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 |
| 1123 | Requires: /bin/sh libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1) libc.so.6(GLIBC_2.3) libc.so.6(GLIBC_2.3.4) libm.so.6 libm.so.6(GLIBC_2.0) |
| 1124 | Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/netperf-2.4.4-1.rhel4-root-pb |
| 1125 | Wrote: /home/pb/netperf/build/SRPMS/netperf-2.4.4-1.rhel4.src.rpm |
| 1126 | Wrote: /home/pb/netperf/build/RPMS/i386/netperf-2.4.4-1.rhel4.i386.rpm |
| 1127 | Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.25314 |
| 1128 | + umask 022 |
| 1129 | + cd /home/pb/netperf/build/BUILD |
| 1130 | + cd netperf-2.4.4 |
| 1131 | + /bin/rm -rf /var/tmp/netperf-2.4.4-1.rhel4-root-pb |
| 1132 | + exit 0 |
| 1133 | OK |
| 1134 | OK |
| 1135 | pbgen-2.4.4-1 100% 72 0.1KB/s 00:00 |
| 1136 | OK |
| 1137 | netperf-2.4.4-1.rhel4.i386.rpm 100% 174KB 173.9KB/s 00:00 |
| 1138 | OK |
| 1139 | netperf-2.4.4-1.rhel4.src.rpm 100% 1171KB 1.1MB/s 00:00 |
| 1140 | OK |
| 1141 | VM cleanup on pb@localhost... OK |
| 1142 | VM rhel_4 halt (pid 2119)... OK |
| 1143 | Packages: netperf |
| 1144 | Sources handled (Packages): rhel/4/netperf-2.4.4-1.rhel4.*.rpm |
| 1145 | Preparing /mondo/ftp/rhel/4 on bruno@www.project-builder.org... OK |
| 1146 | netperf-2.4.4-1.rhel4.i386.rpm 100% 174KB 173.9KB/s 00:00 |
| 1147 | netperf-2.4.4-1.rhel4.src.rpm 100% 1171KB 33.5KB/s 00:35 |
| 1148 | OK |
| 1149 | Executing pbscript on bruno@www.project-builder.org if needed... OK |
| 1150 | }}} |
| 1151 | This time we've been able to build our packages on RHEL 4 and at the end, as the build was successful they were automatically copied on our ftp server for public availability. |