Changes between Version 19 and Version 20 of NetPerfExample


Ignore:
Timestamp:
Jul 12, 2009, 3:37:24 PM (15 years ago)
Author:
Bruno Cornec
Comment:

update doc for 0.9.7.1

Legend:

Unmodified
Added
Removed
Modified
  • NetPerfExample

    v19 v20  
    11= Example of use on netperf (simple example) =
    22
    3 As an example of how easy (or not :-) Project-Builder is to use, I decided to write that tutorial as a gift for another project which deserves it, the [http://www.netperf.org NetPerf] project.
     3As an example of how easy (or not :-) Project-Builder is to use, I decided to write that tutorial as a gift for another project which deserves it, the [http://www.netperf.org NetPerf] project. This documentation corresponds to Project-Builder version 0.9.7.1.
    44
    55You first have to create a .pbrc configuration file in your home directory, which will setup things globally:
     
    100100pbpackager netperf = Bruno Cornec <bruno@project-builder.org>
    101101#
    102 
    103 # For delivery to a machine by SSH (potentially the FTP server)
    104 # Needs hostname, account and directory
    105 #
    106 sshhost netperf = www.project-builder.org
    107 sshlogin netperf = pb
    108 sshdir netperf = /mondo/ftp
    109 sshport netperf = 22
    110 
    111 #
    112 # For Virtual machines management
    113 # Naming convention to follow: distribution name (as per ProjectBuilder::Distribution)
    114 # followed by '-' and by release number
    115 # followed by '-' and by architecture
    116 # a .vmtype extension will be added to the resulting string
    117 # a QEMU rhel-3-i286 here means that the VM will be named rhel-3-i386.qemu
    118 #
    119 vmlist netperf = mandrake-10.1-i386,mandrake-10.2-i386,mandriva-2006.0-i386,mandriva-2007.0-i386,mandriva-2007.1-i386,mandriva-2008.0-i386,redhat-7.3-i386,redhat-9-i386,fedora-4-i386,fedora-5-i386,fedora-6-i386,fedora-7-i386,fedora-8-i386,rhel-3-i386,rhel-4-i386,rhel-5-i386,suse-10.0-i386,suse-10.1-i386,suse-10.2-i386,suse-10.3-i386,sles-9-i386,sles-10-i386,gentoo-nover-i386,debian-3.1-i386,debian-4.0-i386,ubuntu-6.06-i386,ubuntu-7.04-i386,ubuntu-7.10-i386,mandriva-2007.0-x86_64,mandriva-2007.1-x86_64,mandriva-2008.0-x86_64,fedora-6-x86_64,fedora-7-x86_64,fedora-8-x86_64,rhel-4-x86_64,rhel-5-x86_64,suse-10.2-x86_64,suse-10.3-x86_64,sles-10-x86_64,gentoo-nover-x86_64,debian-4.0-x86_64,ubuntu-7.04-x86_64,ubuntu-7.10-x86_64
    120 
    121 #
    122 # Valid values for vmtype are
    123 # qemu, (vmware, xen, ... TBD)
    124 vmtype netperf = qemu
    125 
    126 # Hash for VM stuff on vmtype
    127 #vmntp default = pool.ntp.org
    128 
    129 # We suppose we can commmunicate with the VM through SSH
    130 vmhost netperf = localhost
    131 vmlogin netperf = pb
    132 vmport netperf = 2222
    133 
    134 # Timeout to wait when VM is launched/stopped
    135 vmtmout default = 120
    136 
    137 # per VMs needed paramaters
    138 vmopt netperf = -m 384 -daemonize
    139 vmpath netperf = /home/qemu
    140 vmsize netperf = 5G
    141 
    142 #
    143 # For Virtual environment management
    144 # Naming convention to follow: distribution name (as per ProjectBuilder::Distribution)
    145 # followed by '-' and by release number
    146 # followed by '-' and by architecture
    147 # a .vetype extension will be added to the resulting string
    148 # a chroot rhel-3-i286 here means that the VE will be named rhel-3-i386.chroot
    149 #
    150 #velist netperf = fedora-7-i386
    151 
    152 # VE params
    153 #vetype netperf = chroot
    154 #ventp default = pool.ntp.org
    155 #velogin netperf = pb
    156 #vepath netperf = /var/lib/mock
    157 #veconf netperf = /etc/mock
    158 #verebuild netperf = false
     102vmlist netperf = mandriva-2009.1-i386
     103pbrepo netperf = ftp://ftp.project-builder.org
    159104
    160105#
     
    183128}}}
    184129
    185 I skip the parameters begining with vm and ssh for the moment. I inform pb that I will produce packages with a version-tag of 2.4.5-1, that no local package should have a different version than the project version (pkgver/pkgtag), that my default package will be netperf (pb will work on it by default all the time) and that no additional packages will be produced. In addition to standard version with numbers, pb will accept the version devel.
     130I inform pb that I will produce packages with a version-tag of 2.4.5-1, that no local package should have a different version than the project version (pkgver/pkgtag), that my default package will be netperf (pb will work on it by default all the time) and that no additional packages will be produced. In addition to standard version with numbers, pb will accept the version devel.
    186131Once this is done, you may commit your changes in your repository and already try to see if pb can make something useful for you. Check the result of:
    187132
     
    209154
    210155Management of netperf 2.4.5-1 (rev flat)
    211  ... 23:16:09 URL: ftp://ftp.netperf.org/netperf/netperf-2.4.5.tar.bz2 [912615] -> "/users/bruno/tmp/pb.yE9sNZXV0A/netperf-2.4.5.tar.bz2" [1]
    212 OK
    213 Extracting /users/bruno/tmp/pb.yE9sNZXV0A/netperf-2.4.5.tar.bz2 in /users/bruno/project-builder/netperf/delivery... OK
    214 Build files generated for mandriva-2006.0,sles-9,mandrake-10.2,mandriva-2007.0,rhel-3,mandriva-2007.1,redhat-9,ubuntu-6.06,suse-10.3,rhel-5,fedora-8,ubuntu-7.10,suse-10.2,mandrake-10.1,mandriva-2008.0,sles-10,fedora-6,suse-10.1,fedora-5,fedora-4,ubuntu-7.04,suse-10.0,fedora-7,debian-4.0,rhel-4,debian-3.1,redhat-7.3
    215 No Build files found for gentoo-nover
    216 Creating netperf tar files compressed... OK
    217 Under /users/bruno/project-builder/netperf/delivery/netperf-2.4.5.tar.gz
     156Downloading ftp://ftp.netperf.org/netperf/netperf-2.4.5.tar.bz2 with /usr/bin/wget -nv -O  to /home/bruno/tmp/pb.SEaHx3hxvu/netperf-2.4.5.tar.bz2
     157... OK
     158Extracting /home/bruno/tmp/pb.SEaHx3hxvu/netperf-2.4.5.tar.bz2 in /home/bruno/local/pb/projects/netperf/delivery ... OK
     159Build files generated for asianux-2-i386,asianux-2-x86_64,asianux-3-i386,asianux-3-x86_64,debian-3.1-i386,debian-4.0-i386,debian-4.0-x86_64,debian-5.0-i386,debian-5.0-x86_64,fedora-10-i386,fedora-10-x86_64,fedora-4-i386,fedora-5-i386,fedora-6-i386,fedora-6-x86_64,fedora-7-i386,fedora-7-x86_64,fedora-8-i386,fedora-8-x86_64,fedora-9-i386,fedora-9-x86_64,mandrake-10.1-i386,mandrake-10.2-i386,mandriva-2006.0-i386,mandriva-2007.0-i386,mandriva-2007.0-x86_64,mandriva-2007.1-i386,mandriva-2007.1-x86_64,mandriva-2008.0-i386,mandriva-2008.0-x86_64,mandriva-2008.1-i386,mandriva-2008.1-x86_64,mandriva-2009.0-i386,mandriva-2009.0-x86_64,mandriva-2009.1-i386,mandriva-2009.1-x86_64,redhat-7.3-i386,redhat-9-i386,rhel-2.1-i386,rhel-3-i386,rhel-4-i386,rhel-4-x86_64,rhel-5-i386,rhel-5-x86_64,sles-10-i386,sles-10-x86_64,sles-9-i386,suse-10.0-i386,suse-10.1-i386,suse-10.2-i386,suse-10.2-x86_64,suse-10.3-i386,suse-10.3-x86_64,suse-11.0-i386,suse-11.0-x86_64,suse-11.1-i386,suse-11.1-x86_64,ubuntu-6.06-i386,ubuntu-7.04-i386,ubuntu-7.04-x86_64,ubuntu-7.10-i386,ubuntu-7.10-x86_64,ubuntu-8.04-i386,ubuntu-8.04-x86_64,ubuntu-8.10-i386,ubuntu-8.10-x86_64,ubuntu-9.04-i386,ubuntu-9.04-x86_64
     160No Build files found for gentoo-nover-i386,gentoo-nover-x86_64
     161Delivering and compressing patches
     162Preserving original tar file Under /home/bruno/local/pb/projects/netperf/delivery/netperf-2.4.5.tar.gz
     163Creating pbconf tar files compressed... OK
     164Under /home/bruno/local/pb/projects/netperf/delivery/netperf-2.4.5.pbconf.tar.gz
    218165}}}
    219166
     
    286233filter PBSRC = ftp://ftp.netperf.org/netperf/%{name}-%{version}.tar.gz
    287234
    288 # PBVER is replaced by the version ($pbver in code)
    289 filter PBVER = $pbver
    290 
    291 # PBDATE is replaced by the date ($pbdate in code)
    292 filter PBDATE = $pbdate
     235# PBVER is replaced by the version ($pb->{'ver'} in code)
     236filter PBVER = $pb->{'ver'}
     237
     238# PBDATE is replaced by the date ($pb->{'date'} in code)
     239filter PBDATE = $pb->{'date'}
    293240
    294241# PBLOG is replaced by the changelog if value is yes
    295242filter PBLOG = yes
    296243
    297 # PBTAG is replaced by the tag ($pbtag in code)
    298 filter PBTAG = $pbtag
    299 
    300 # PBREV is replaced by the revision ($pbrev in code)
    301 filter PBREV = $pbrev
    302 
    303 # PBPKG is replaced by the package name ($pbpkg in code)
    304 filter PBPKG = $pbpkg
    305 
    306 # PBPACKAGER is replaced by the packager name ($pbpackager in code)
    307 filter PBPACKAGER = $pbpackager
     244# PBTAG is replaced by the tag ($pb->{'tag'} in code)
     245filter PBTAG = $pb->{'tag'}
     246
     247# PBREV is replaced by the revision ($pb->{'rev'} in code)
     248filter PBREV = $pb->{'rev'}
     249
     250# PBPKG is replaced by the package name ($pb->{'pkg'} in code)
     251filter PBPKG = $pb->{'pkg'}
     252
     253# PBPACKAGER is replaced by the packager name ($pb->{'packager'} in code)
     254filter PBPACKAGER = $pb->{'packager'}
    308255
    309256# PBDESC contains the description of the package
     
    322269Management of netperf 2.4.5-1 (rev flat)
    323270[... same output as previously...]
    324 Under /users/bruno/project-builder/netperf/delivery/netperf-2.4.5.tar.gz
     271Under /home/bruno/project-builder/netperf/delivery/netperf-2.4.5.pbconf.tar.gz
    325272}}}
    326273
    327274You have now your first useful result from pb :-) Congrats !
    328 Well wait ! It's not really useful because we started exactly from a tar file. Well it's not exactly the same tar file. This one adds Project-Builder support:
    329 {{{
    330 tar tvfz /users/bruno/project-builder/netperf/delivery/netperf-2.4.5.tar.gz
    331 drwxr-xr-x bruno/users       0 2008-03-30 23:30 netperf-2.4.5/
    332 -rw-r--r-- bruno/users      30 2007-10-16 20:00 netperf-2.4.5/inet_ntop.c
    333 -rwxr-xr-x bruno/users   31743 2007-06-02 00:06 netperf-2.4.5/config.sub
    334 drwxr-xr-x bruno/users       0 2008-03-30 23:30 netperf-2.4.5/pbconf/
    335 drwxr-xr-x bruno/users       0 2008-03-30 23:30 netperf-2.4.5/pbconf/suse-10.0/
    336 -rw-r--r-- bruno/users     885 2008-03-30 23:30 netperf-2.4.5/pbconf/suse-10.0/netperf.spec
    337 drwxr-xr-x bruno/users       0 2008-03-30 23:30 netperf-2.4.5/pbconf/rhel-5/
    338 -rw-r--r-- bruno/users     861 2008-03-30 23:30 netperf-2.4.5/pbconf/rhel-5/netperf.spec
    339 drwxr-xr-x bruno/users       0 2008-03-30 23:30 netperf-2.4.5/pbconf/fedora-4/
    340 -rw-r--r-- bruno/users     861 2008-03-30 23:30 netperf-2.4.5/pbconf/fedora-4/netperf.spec
    341 [...]
    342 drwxr-xr-x bruno/users       0 2008-03-30 23:30 netperf-2.4.5/pbconf/ubuntu-7.04/
    343 -rw-r--r-- bruno/users       2 2008-03-30 23:30 netperf-2.4.5/pbconf/ubuntu-7.04/changelog
    344 -rw-r--r-- bruno/users     435 2008-03-30 23:30 netperf-2.4.5/pbconf/ubuntu-7.04/control
    345 -rw-r--r-- bruno/users      36 2008-03-30 23:30 netperf-2.4.5/pbconf/ubuntu-7.04/netperf.docs
    346 -rw-r--r-- bruno/users       0 2008-03-30 23:30 netperf-2.4.5/pbconf/ubuntu-7.04/pkg1.dirs
    347 -rw-r--r-- bruno/users       2 2008-03-30 23:30 netperf-2.4.5/pbconf/ubuntu-7.04/compat
    348 -rw-r--r-- bruno/users    3632 2008-03-30 23:30 netperf-2.4.5/pbconf/ubuntu-7.04/rules
    349 -rw-r--r-- bruno/users     996 2008-03-30 23:30 netperf-2.4.5/pbconf/ubuntu-7.04/copyright
    350 drwxr-xr-x bruno/users       0 2008-03-30 23:30 netperf-2.4.5/pbconf/ubuntu-6.06/
    351 [...]
    352 -rw-r--r-- bruno/users    2382 2007-06-02 00:06 netperf-2.4.5/README.ovms
    353 -rwxr-xr-x bruno/users    1988 2007-06-02 00:06 netperf-2.4.5/mkinstalldirs
    354 -rw-r--r-- bruno/users   14022 2007-06-05 03:08 netperf-2.4.5/acinclude.m4
    355 [...]
    356 -rw-r--r-- bruno/users   17464 2007-10-17 18:55 netperf-2.4.5/Makefile.in
    357 -rw-r--r-- bruno/users    9240 2007-06-02 00:06 netperf-2.4.5/INSTALL
     275Well wait ! It's not really useful because we started exactly from a tar file. Well now we have 2 ! This last one adds Project-Builder support:
     276{{{
     277$ tar tvfz /home/bruno/project-builder/netperf/delivery/netperf-2.4.5.pbconf.tar.gz
     278drwxr-xr-x bruno/bruno       0 2009-07-12 14:20 netperf-2.4.5/pbconf/                                                                         
     279drwxr-xr-x bruno/bruno       0 2009-07-12 14:20 netperf-2.4.5/pbconf/debian-4.0-x86_64/                                                       
     280-rw-r--r-- bruno/bruno       0 2009-07-12 14:20 netperf-2.4.5/pbconf/debian-4.0-x86_64/netperf.dirs                                           
     281-rw-r--r-- bruno/bruno       2 2009-07-12 14:20 netperf-2.4.5/pbconf/debian-4.0-x86_64/compat                                                 
     282-rw-r--r-- bruno/bruno    3945 2009-07-12 14:20 netperf-2.4.5/pbconf/debian-4.0-x86_64/changelog                                               
     283-rw-r--r-- bruno/bruno    3632 2009-07-12 14:20 netperf-2.4.5/pbconf/debian-4.0-x86_64/rules                                                   
     284-rw-r--r-- bruno/bruno      36 2009-07-12 14:20 netperf-2.4.5/pbconf/debian-4.0-x86_64/netperf.docs                                           
     285-rw-r--r-- bruno/bruno     433 2009-07-12 14:20 netperf-2.4.5/pbconf/debian-4.0-x86_64/control                                                 
     286-rw-r--r-- bruno/bruno     994 2009-07-12 14:20 netperf-2.4.5/pbconf/debian-4.0-x86_64/copyright                                               
     287drwxr-xr-x bruno/bruno       0 2009-07-12 14:20 netperf-2.4.5/pbconf/mandriva-2007.1-i386/                                                     
     288-rw-r--r-- bruno/bruno    4614 2009-07-12 14:20 netperf-2.4.5/pbconf/mandriva-2007.1-i386/netperf.spec                                         
     289[...]
     290drwxr-xr-x bruno/bruno       0 2009-07-12 14:20 netperf-2.4.5/pbconf/ubuntu-8.04-i386/
     291-rw-r--r-- bruno/bruno       0 2009-07-12 14:20 netperf-2.4.5/pbconf/ubuntu-8.04-i386/netperf.dirs
     292-rw-r--r-- bruno/bruno       2 2009-07-12 14:20 netperf-2.4.5/pbconf/ubuntu-8.04-i386/compat
     293-rw-r--r-- bruno/bruno    3945 2009-07-12 14:20 netperf-2.4.5/pbconf/ubuntu-8.04-i386/changelog
     294-rw-r--r-- bruno/bruno    3632 2009-07-12 14:20 netperf-2.4.5/pbconf/ubuntu-8.04-i386/rules
     295-rw-r--r-- bruno/bruno      36 2009-07-12 14:20 netperf-2.4.5/pbconf/ubuntu-8.04-i386/netperf.docs
     296-rw-r--r-- bruno/bruno     433 2009-07-12 14:20 netperf-2.4.5/pbconf/ubuntu-8.04-i386/control
     297-rw-r--r-- bruno/bruno     994 2009-07-12 14:20 netperf-2.4.5/pbconf/ubuntu-8.04-i386/copyright
     298drwxr-xr-x bruno/bruno       0 2009-07-12 14:20 netperf-2.4.5/pbconf/fedora-5-i386/
     299-rw-r--r-- bruno/bruno    4608 2009-07-12 14:20 netperf-2.4.5/pbconf/fedora-5-i386/netperf.spec
    358300}}}
    359301As you can see a lot of directories and files have been created under pbconf. They correspond to all the required build files for all the distributions supported and will later be used to really create the packages.
     
    365307Action: build2pkg
    366308Packages: netperf
    367 Extracting build files... OK
    368 Building package with /users/bruno/project-builder/netperf/build/SPECS/netperf.spec under /users/bruno/project-builder/netperf/build... Executing(%prep): /bin/sh -e /users/bruno/project-builder/netperf/build/tmp/rpm-tmp.70387
     309Extracting spec files from /home/bruno/local/pb/projects/netperf/delivery/netperf-2.4.5.pbconf.tar.gz... OK                                   
     310Extracting patch files from /home/bruno/local/pb/projects/netperf/delivery/netperf-2.4.5.pbconf.tar.gz... N/A                                 
     311Building package with /home/bruno/local/pb/projects/netperf/build/SPECS/netperf.spec under /home/bruno/local/pb/projects/netperf/build... child (rpmbuild  --define 'packager Bruno Cornec <bruno@project-builder.org>' --define "_topdir /home/bruno/local/pb/projects/netperf/build" -ba /home/bruno/local/pb/projects/netperf/build/SPECS/netperf.spec) exited with value 1                       
     312Executing(%prep): /bin/sh -e /home/bruno/project-builder/netperf/build/tmp/rpm-tmp.70387
    369313+ umask 022
    370 + cd /users/bruno/project-builder/netperf/build/BUILD
     314+ cd /home/bruno/project-builder/netperf/build/BUILD
    371315+ '[' 1 -eq 1 ']'
    372316+ '[' 1 -eq 1 ']'
    373317+ '[' 1 -eq 1 ']'
    374 + cd /users/bruno/project-builder/netperf/build/BUILD
     318+ cd /home/bruno/project-builder/netperf/build/BUILD
    375319+ rm -rf netperf-2.4.5
    376 + /usr/bin/gzip -dc /users/bruno/project-builder/netperf/build/SOURCES/netperf-2.4.5.tar.gz
     320+ /usr/bin/gzip -dc /home/bruno/project-builder/netperf/build/SOURCES/netperf-2.4.5.tar.gz
    377321+ tar -xf -
    378322+ STATUS=0
     
    380324+ cd netperf-2.4.5
    381325+ exit 0
    382 Executing(%build): /bin/sh -e /users/bruno/project-builder/netperf/build/tmp/rpm-tmp.70387
     326Executing(%build): /bin/sh -e /home/bruno/project-builder/netperf/build/tmp/rpm-tmp.70387
    383327+ umask 022
    384 + cd /users/bruno/project-builder/netperf/build/BUILD
     328+ cd /home/bruno/project-builder/netperf/build/BUILD
    385329+ cd netperf-2.4.5
    386330+ '[' 1 -eq 1 ']'
     
    406350+ make -j4 VERSION=2.4.5
    407351make  all-recursive
    408 make[1]: Entering directory `/users/bruno/project-builder/netperf/build/BUILD/netperf-2.4.5'
     352make[1]: Entering directory `/home/bruno/project-builder/netperf/build/BUILD/netperf-2.4.5'
    409353Making all in src
    410 make[2]: Entering directory `/users/bruno/project-builder/netperf/build/BUILD/netperf-2.4.4/src'
    411 Making all in missing
    412 make[3]: Entering directory `/users/bruno/project-builder/netperf/build/BUILD/netperf-2.4.4/src/missing'
    413 Making all in m4
    414 make[4]: Entering directory `/users/bruno/project-builder/netperf/build/BUILD/netperf-2.4.4/src/missing/m4'
    415 make[4]: Nothing to be done for `all'.
    416 make[4]: Leaving directory `/users/bruno/project-builder/netperf/build/BUILD/netperf-2.4.4/src/missing/m4'
    417 make[4]: Entering directory `/users/bruno/project-builder/netperf/build/BUILD/netperf-2.4.4/src/missing'
    418 make[4]: Nothing to be done for `all-am'.
    419 make[4]: Leaving directory `/users/bruno/project-builder/netperf/build/BUILD/netperf-2.4.4/src/missing'
    420 make[3]: Leaving directory `/users/bruno/project-builder/netperf/build/BUILD/netperf-2.4.4/src/missing'
    421 make[3]: Entering directory `/users/bruno/project-builder/netperf/build/BUILD/netperf-2.4.4/src'
     354make[2]: Entering directory `/home/bruno/project-builder/netperf/build/BUILD/netperf-2.4.5/src'
     355[...]
    422356if x86_64-mandriva-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..     -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fexceptions -MT netperf.o -MD -MP -MF ".deps/netperf.Tpo" \
    423357          -c -o netperf.o `test -f 'netperf.c' || echo './'`netperf.c; \
     
    426360        fi
    427361[...]
    428 Executing(%doc): /bin/sh -e /users/bruno/project-builder/netperf/build/tmp/rpm-tmp.67195
    429 + umask 022
    430 + cd /users/bruno/project-builder/netperf/build/BUILD
    431 + cd netperf-2.4.4
    432 + DOCDIR=/users/bruno/project-builder/netperf/build/tmp/netperf-2.4.4-1PBSUF-buildroot/usr/share/doc/netperf
    433 + export DOCDIR
    434 + rm -rf /users/bruno/project-builder/netperf/build/tmp/netperf-2.4.4-1PBSUF-buildroot/usr/share/doc/netperf
    435 + /bin/mkdir -p /users/bruno/project-builder/netperf/build/tmp/netperf-2.4.4-1PBSUF-buildroot/usr/share/doc/netperf
    436 + cp -pr ChangeLog /users/bruno/project-builder/netperf/build/tmp/netperf-2.4.4-1PBSUF-buildroot/usr/share/doc/netperf
    437 + cp -pr INSTALL COPYING README AUTHORS NEWS /users/bruno/project-builder/netperf/build/tmp/netperf-2.4.4-1PBSUF-buildroot/usr/share/doc/netperf
    438 + exit 0
    439 Finding  Provides: /usr/lib/rpm/mandriva/filter.sh ' ' ' ' '/users/bruno/project-builder/netperf/build/tmp/netperf-2.4.4-1PBSUF-buildroot' /usr/lib/rpm/mandriva/find-provides
    440 Finding  Requires: /usr/lib/rpm/mandriva/filter.sh ' ' ' ' '/users/bruno/project-builder/netperf/build/tmp/netperf-2.4.4-1PBSUF-buildroot' /usr/lib/rpm/mandriva/find-requires /users/bruno/project-builder/netperf/build/tmp/netperf-2.4.4-1PBSUF-buildroot x86_64
    441 Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
    442 Processing files: netperf-debug-2.4.4-1PBSUF
    443 Checking for unpackaged file(s): /usr/lib/rpm/check-files /users/bruno/project-builder/netperf/build/tmp/netperf-2.4.4-1PBSUF-buildroot
     362Checking for unpackaged file(s): /usr/lib/rpm/check-files /users/bruno/project-builder/netperf/build/tmp/netperf-2.4.5-1PBSUF-buildroot
    444363error: Installed (but unpackaged) file(s) found:
    445364   /usr/bin/netperf
     
    457376   /usr/share/man/man1/netperf.1.lzma
    458377   /usr/share/man/man1/netserver.1.lzma
    459 child (rpmbuild --define 'packager "Bruno Cornec <bruno@project-builder.org>"' --define "_topdir /users/bruno/project-builder/netperf/build" -ba /users/bruno/project-builder/netperf/build/SPECS/netperf.spec) exited with value 1
    460 Checking validity of rpms with rpmlint... Error: no installed packages by name RPMS/*/netperf-2.4.4-1.mdv2008.0.*.rpm
    461 Error: no installed packages by name SRPMS/netperf-2.4.4-1.mdv2008.0.src.rpm
     378child (rpmbuild --define 'packager "Bruno Cornec <bruno@project-builder.org>"' --define "_topdir /home/bruno/project-builder/netperf/build" -ba /home/bruno/project-builder/netperf/build/SPECS/netperf.spec) exited with value 1
     379Checking validity of rpms with rpmlint... Error: no installed packages by name RPMS/*/netperf-2.4.5-1.mdv2009.1.*.rpm
     380Error: no installed packages by name SRPMS/netperf-2.4.5-1.mdv2009.1.src.rpm
    462381OK
    463382}}}
     
    467386{{{
    468387$ (cd netperf/pbconf ; pbg PBSUF)
    469 ./2.4.4/pbfilter/rpm.pbf:# PBSUF is replaced by the package name ($pbpkg in code)
    470 ./2.4.4/pbfilter/rpm.pbf:#filter PBSUF = $pbsuf
    471 ./2.4.4/netperf/rpm/netperf.spec:Release:        PBTAGPBSUF
     388./2.4.5/pbfilter/rpm.pbf:# PBSUF is replaced by the package name ($pbpkg in code)
     389./2.4.5/pbfilter/rpm.pbf:#filter PBSUF = $pb->{'suf'}
     390./2.4.5/netperf/rpm/netperf.spec:Release:        PBTAGPBSUF
    472391}}}
    473392So indeed that macro is used in our spec file, but is only declared for rpm types of build in the rpm filter file. However it's currently commented. So edit that file to validate it, as well as the other variables needed:
    474393{{{
    475 $ cat netperf/pbconf/2.4.4/pbfilter/rpm.pbf
     394$ cat netperf/pbconf/2.4.5/pbfilter/rpm.pbf
    476395#
    477396# $Id$
     
    492411
    493412# PBSUF is replaced by the package suffix ($pbsuf in code)
    494 filter PBSUF = $pbsuf
     413filter PBSUF = $pb->{'suf'}
    495414
    496415# PBOBS is replaced by the Obsolete line
     
    509428}}}
    510429
    511 Now you're ready for your second run ! This time chain the 2 steos by generating from CMS to a package with cms2pkg (as you need to reparse the conf files):
    512 {{{
    513 $ pb -p netperf -r 2.4.4 cms2pkg
     430Now you're ready for your second run ! This time chain the 2 steps by generating from CMS to a package with cms2pkg (as you need to reparse the conf files):
     431{{{
     432$ pb -p netperf -r 2.4.5 cms2pkg
    514433[... build process ...]
    515 Wrote: /users/bruno/project-builder/netperf/build/SRPMS/netperf-2.4.4-1.mdv2008.0.src.rpm
    516 Wrote: /users/bruno/project-builder/netperf/build/RPMS/x86_64/netperf-2.4.4-1.mdv2008.0.x86_64.rpm
    517 Wrote: /users/bruno/project-builder/netperf/build/RPMS/x86_64/netperf-debug-2.4.4-1.mdv2008.0.x86_64.rpm
     434Wrote: /home/bruno/project-builder/netperf/build/SRPMS/netperf-2.4.5-1.mdv2009.1.src.rpm
     435Wrote: /home/bruno/project-builder/netperf/build/RPMS/x86_64/netperf-2.4.5-1.mdv2009.1.x86_64.rpm
     436Wrote: /home/bruno/project-builder/netperf/build/RPMS/x86_64/netperf-debug-2.4.5-1.mdv2009.1.x86_64.rpm
    518437[... build process ...]
    519438Checking validity of rpms with rpmlint... W: netperf manpage-not-bzipped /usr/share/man/man1/netperf.1.lzma
     
    567486-rw-r--r--    1 root    root             2702 mar 31 00:06 /usr/share/man/man1/netperf.1.lzma
    568487-rw-r--r--    1 root    root              696 mar 31 00:06 /usr/share/man/man1/netserver.1.lzma
    569 $ rpm -qi netperf
    570 Name        : netperf                      Relocations: (not relocatable)
    571 Version     : 2.4.4                             Vendor: (none)
    572 Release     : 1.mdv2008.0                   Build Date: lun 31 mar 2008 00:06:37 CEST
    573 Install Date: lun 31 mar 2008 00:07:36 CEST      Build Host: victoria2.home.musique-ancienne.org
    574 Group       : Applications/Networking       Source RPM: netperf-2.4.4-1.mdv2008.0.src.rpm
    575 Size        : 368064                           License: GPL
     488$ rpm -qi netperfName        : netperf                      Relocations: (not relocatable)
     489Version     : 2.4.5                             Vendor: (none)
     490Release     : 1mdv2009.1                    Build Date: dim. 12 juil. 2009 11:26:24 CEST
     491Install Date: dim. 12 juil. 2009 11:26:42 CEST      Build Host: localhost
     492Group       : Networking/Other              Source RPM: netperf-2.4.5-1mdv2009.1.src.rpm
     493Size        : 432811                           License: BSD
    576494Signature   : (none)
    577 Packager    : "Bruno Cornec <bruno@project-builder.org>"
    578 URL         : http://www.netperf.org
    579 Summary     : netperf est un outil de benchmark rĂ©seau
     495URL         : http://www.netperf.org/netperf/NetperfPage.html
     496Summary     : Performance testing tool for TCP/UDP
    580497Description :
    581 netperf est un outil de benchmark rĂ©seau
     498Netperf is a benchmark that can be used to measure the performance
     499of many different types of networking. It provides tests for both
     500unidirecitonal throughput, and end-to-end latency.
     501
     502The environments currently measureable by netperf include:
     503
     504* TCP and UDP via BSD Sockets for both IPv4 and IPv6
     505* DLPI
     506* Unix Domain Sockets
     507* SCTP for both IPv4 and IPv6
    582508$ rpm -q --changelog netperf
    583509$
     
    586512You'll have for that to create a new file under pbconf/netperf called pbcl which will be the changelog file for your project:
    587513{{{
    588 $ cp netperf/build/BUILD/netperf-2.4.4/Release_Notes netperf/pbconf/2.4.4/netperf/pbcl
    589 $ vi netperf/pbconf/2.4.4/netperf/pbcl
     514$ cp netperf/build/BUILD/netperf-2.4.5/Release_Notes netperf/pbconf/2.4.5/netperf/pbcl
     515$ vi netperf/pbconf/2.4.5/netperf/pbcl
    590516[... format modifications ...]
    591 $ head -20 netperf/pbconf/2.4.4/netperf/pbcl
     517$ head -20 netperf/pbconf/2.4.5/netperf/pbcl
    592518# $Id$
    593519
    594520NETPERF CHANGES
    595521
    596 2.4.4 (2008-03-30)
    597 -  The LOC_CPU and REM_CPU tests will report their respective beliefs
    598    as to the number of CPUs present when the verbosity is set to more
    599    than one.  This can be used when trying to diagnose issues with CPU
    600    utilization.
    601 -  A kind soul who wishes to remain anonymous provided a patch to
    602    enable use of sendfile() on OSX.
    603 -  Fix a misplaced \n in a format string of send_tcp_maerts, courtesy
    604    of Alexander Duyck.
    605 -  There is an experimental global -r option which will allow one to
    606    include CPU utilization measurements, but make the decision about
    607    hitting confidence based on the result only.  The test banner will
    608    reflects this when -r is used.
    609 -  It is no longer necessary to specify a file with the global -F
    610    option when running a _SENDFILE test.  Netperf will create a
    611    temporary file and populate it with random data and use that.
     5222.4.5 (2009-07-12)
     523-  Update to upstream 2.4.5
    612524}}}
    613525The format of the pbcl file is strict. It has 4 initital lines that you can use the way you want, the 5th line should have 'Version (date)' with date using ISO format, then the following lines are the changelog content of that version. Then after a blank line, again a 'Version (date)' and the changelog, etc...
     
    615527Ready to check again:
    616528{{{
    617 $ pb -p netperf -r 2.4.4 cms2pkg
     529$ pb -p netperf -r 2.4.5 cms2pkg
    618530[... build continues ...]
    619531}}}
     
    621533More verifications:
    622534{{{
    623 $ sudo rpm -Uvh --force /users/bruno/project-builder/netperf/build/RPMS/x86_64/netperf-2.4.4-1.mdv2008.0.x86_64.rpm
     535$ sudo rpm -Uvh --force /home/bruno/project-builder/netperf/build/RPMS/x86_64/netperf-2.4.5-1.mdv2009.1.x86_64.rpm
    624536
    625537PrĂ©paration...              ########################################### [100%]
    626538   1:netperf                ########################################### [100%]
    627 $ rpm -q --changelog netperf | head
    628 * dim mar 30 2008 Bruno Cornec <bruno@project-builder.org> 2.4.4-1.mdv2008.0
     539$ rpm -qp --changelog /home/bruno/project-builder/netperf/build/RPMS/i586/netperf-2.4.5-1.mdv2009.1.x86_64.rpm | head
     540* dim. juil. 12 2009 Bruno Cornec <bruno@project-builder.org> 2.4.5-1
     541- Updated to 2.4.5
     542- Update to upstream 2.4.5
     543
     544* dim. mars 30 2008 Bruno Cornec <bruno@project-builder.org> 2.4.4-1
    629545- Updated to 2.4.4
    630546-  The LOC_CPU and REM_CPU tests will report their respective beliefs
     
    632548   than one.  This can be used when trying to diagnose issues with CPU
    633549   utilization.
    634 -  A kind soul who wishes to remain anonymous provided a patch to
    635    enable use of sendfile() on OSX.
    636 -  Fix a misplaced \n in a format string of send_tcp_maerts, courtesy
    637    of Alexander Duyck.
    638550$
    639551}}}
    640552
    641 So we now have a much more correct rpm built, even if not everything is solved (In order to get a good NEWS file, we whould remove the empty one part of netperf). The beauty of Project-Builder will now appear, as it's as easy to generate more RPMs for other distributions than it is for your native distribution.
    642 
    643 Imagine you want to build the same RPMs for Fedora 6, instead of your native distribution. First download the ISO image of this distribution and put it where you have space on your disk. Then call pb to help you create a new virtual machine for that distribution:
    644 {{{
    645 $ pb -p netperf -r 2.4.4 -m fedora-6-i386 -i ~/Download/Fedora-6-i386-DVD.iso newvm
     553So we now have a much more correct rpm built, even if not everything is solved (In order to get a good NEWS file, we should remove the empty one part of netperf). The beauty of Project-Builder will now appear, as it's as easy to generate more RPMs for other distributions than it is for your native distribution.
     554
     555Imagine you want to build the same RPMs for Fedora 6, instead of your native distribution. First download the ISO image of this distribution and put it where you have space on your disk. Then create a new configuration file for your build environment:
     556{{{
     557cat > /users/qemu/.pbrc << 'EOF'
     558#                                                               
     559# Valid values for vmtype are                                   
     560# qemu, kvm, (xen, ... TBD)                                     
     561vmtype default =qemu                                           
     562
     563# Hash for VM stuff on vmtype
     564vmntp default = ntp.home.musique-ancienne.org
     565vmntpcmd default = /usr/sbin/ntpdate
     566vmntpcmd suse-11.0-i386 = sntp -P no -r
     567vmntpcmd suse-11.0-x86_64 = sntp -P no -r
     568
     569# We suppose we can commmunicate with the VM through SSH
     570vmhost default = localhost
     571vmlogin default = pb
     572vmport default = 2222
     573vmmonport default = 4444
     574
     575# Timeout to wait when VM is launched/stopped
     576vmtmout default = 180
     577vmtmout suse-10.2-i386 = 500
     578vmtmout mandriva-2009.0-i386 = 500
     579vmtmout mandriva-2009.0-x86_64 = 500
     580
     581# per VMs needed paramaters
     582vmopt default = -m 384 -daemonize
     583vmopt suse-10.2-i386 = -m 384 -daemonize -no-kvm
     584vmopt suse-10.2-x86_64 = -m 384 -daemonize -no-kvm
     585vmopt mandriva-2009.0-i386 = -m 384 -daemonize -no-kvm
     586vmopt mandriva-2009.0-x86_64 = -m 384 -daemonize -no-kvm
     587#-no-kvm
     588#vmopt suse-10.2-i386 = -m 384 -daemonize -no-kqemu
     589#vmopt rhel-2.1-i386 = -m 384 -daemonize -no-kqemu
     590#vmopt mandriva-2007.0-x86_64 = -m 384 -daemonize -no-kqemu
     591vmsize default = 7G
     592
     593# Do we use snapshot mode for VMs ?
     594# In which case all modifs in the VM are lost at the end
     595#vmsnap default = true
     596
     597#
     598# For Virtual machines management
     599# Naming convention to follow: distribution name (as per ProjectBuilder::Distribution)
     600# followed by '-' and by release number
     601# followed by '-' and by architecture
     602# a .qemu extension will be added to the resulting string for those vmtype using that format
     603# a QEMU rhel-3-i386 here means that the VM will be named rhel-3-i386.qemu
     604# a XEN rhel-5-x86_64 here means that the VM will be named rhel-5-x86_64.qemu
     605#
     606vmlist default = asianux-2-i386,asianux-3-i386,mandrake-10.1-i386,mandrake-10.2-i386,mandriva-2006.0-i386,mandriva-2007.0-i386,mandriva-2007.1-i386,mandriva-2008.0-i386,mandriva-2008.1-i386,mandriva-2009.0-i386,mandriva-2009.1-i386,redhat-7.3-i386,redhat-9-i386,fedora-4-i386,fedora-5-i386,fedora-6-i386,fedora-7-i386,fedora-8-i386,fedora-9-i386,fedora-10-i386,rhel-2.1-i386,rhel-3-i386,rhel-4-i386,rhel-5-i386,suse-10.0-i386,suse-10.1-i386,suse-10.2-i386,suse-10.3-i386,suse-11.0-i386,suse-11.1-i386,sles-9-i386,sles-10-i386,gentoo-nover-i386,debian-3.1-i386,debian-4.0-i386,debian-5.0-i386,ubuntu-6.06-i386,ubuntu-7.04-i386,ubuntu-7.10-i386,ubuntu-8.04-i386,ubuntu-8.10-i386,,ubuntu-9.04-i386,asianux-2-x86_64,asianux-3-x86_64,mandriva-2007.0-x86_64,mandriva-2007.1-x86_64,mandriva-2008.0-x86_64,mandriva-2008.1-x86_64,mandriva-2009.0-x86_64,mandriva-2009.1-x86_64,fedora-6-x86_64,fedora-7-x86_64,fedora-8-x86_64,fedora-9-x86_64,fedora-10-x86_64,rhel-4-x86_64,rhel-5-x86_64,suse-10.2-x86_64,suse-10.3-x86_64,suse-11.0-x86_64,suse-11.1-x86_64,sles-10-x86_64,gentoo-nover-x86_64,debian-4.0-x86_64,debian-5.0-x86_64,ubuntu-7.04-x86_64,ubuntu-7.10-x86_64,ubuntu-8.04-x86_64,ubuntu-8.10-x86_64,ubuntu-9.04-x86_64
     607EOF
     608}}}
     609
     610It contains all the info around your QEMU/KVM usage, from the type of virtualisation (qemu here), to the list of VMs we need to support (you need now to remove the vmlist entry from the netperf.pb conf file BTW), and some specificities per VM if needed.
     611
     612Then call pb to help you create a new virtual machine for that distribution:
     613{{{
     614$ pb -p netperf -m fedora-6-i386 -i ~/Download/Fedora-6-i386-DVD.iso newvm
    646615Project: nerperf
    647616Action: newvm
     
    651620Waiting for VM fedora-6-i386 to come up...
    652621}}}
    653 Then the Virtual Machine is launched booting on your CD, and the rest is just a classical installation of a Linux distribution. Just check that you've installed a sshd package (generally OpenSSH) and that you're allowed to login as root via ssh. This will be used in the next step. I also especially disable firewall and SElinux on the VM.
     622Then the Virtual Machine is launched booting on your CD, and the rest is just a classical installation of a Linux distribution. Just check that you've installed a sshd package (generally OpenSSH) and that you're allowed to login as root via ssh. This will be used in the next step. I also especially disable firewall and SElinux on the VM (you don't need security in that private build environement).
    654623Once your distribution is installed, stop the VM and relaunch it to finish the setup with:
    655624{{{
    656 $ pb -p netperf -r 2.4.4 -m fedora-6-i386 launchvm
     625$ pb -p netperf -m fedora-6-i386 launchvm
    657626Project: netperf
    658627Action: launchvm
     
    665634So now you can finish to set up the VM by installing and configuring all what is necessary for pb to work flawlessly. There is an option to pb to exactly do that:
    666635{{{
    667 $ pb -p netperf -r 2.4.4 -m fedora-6-i386 setupvm
     636$ pb -p netperf -m fedora-6-i386 setupvm
    668637Project: netperf
    669638Action: setupvm
     
    766735OK
    767736$ pb | head
    768 pb (aka project-builder.org) Version devel-352M
     737pb (aka project-builder.org) Version 0.9.7.1-818
    769738
    770739Usage:
     
    780749Now that Project-Builder is installed inside your VM, you may want to try to use it to build netperf packages for Fedora 6:
    781750{{{
    782 $ pb -p netperf -r 2.4.4 -m fedora-6-i386 build2vm
     751$ pb -p netperf -r 2.4.5 -m fedora-6-i386 build2vm
    783752Project: netperf
    784753Action: build2vm
     
    786755Found an existing VM /users/qemu/fedora-6-i386.qemu (pid 31466)
    787756Packages: netperf
    788 Sources handled (vm): /users/bruno/project-builder/netperf/delivery/netperf-2.4.4.tar.gz /users/bruno/project-builder/netperf/delivery/pbscript /users/bruno/project-builder/netperf/pbconf/2.4.4/netperf.pb /users/bruno/project-builder/netperf/delivery/2.4.4-1.pb /users/bruno/.pbrc /users/bruno/project-builder/netperf/delivery/pbrc
     757Sources handled (vm): /home/bruno/project-builder/netperf/delivery/netperf-2.4.5.tar.gz /home/bruno/project-builder/netperf/delivery/pbscript /home/bruno/project-builder/netperf/pbconf/2.4.4/netperf.pb /home/bruno/project-builder/netperf/delivery/2.4.5-1.pb /home/bruno/.pbrc /home/bruno/project-builder/netperf/delivery/pbrc
    789758Preparing project-builder/netperf/delivery on pb@localhost:project-builder/netperf/delivery... OK
    790 netperf-2.4.4.tar.gz                                                       100% 1149KB   1.1MB/s   00:00
    791 pbscript                                                                   100%  376     0.4KB/s   00:00
    792 netperf.pb                                                                 100% 3644     3.6KB/s   00:00
    793 2.4.4-1.pb                                                                 100%   24     0.0KB/s   00:00
    794 .pbrc                                                                      100% 1435     1.4KB/s   00:00
    795 pbrc                                                                       100% 3821     3.7KB/s   00:00
    796 OK
    797 Executing pbscript on pb@localhost:project-builder/netperf/delivery if needed... ... Execution needed
    798 Sun Apr  6 02:08:00 CEST 2008
    799 Building packages on vm...
    800 Project: netperf
    801 Action: build2pkg
    802 Packages: netperf
    803 Extracting build files... OK
    804 Building package with /home/pb/project-builder/netperf/build/SPECS/netperf.spec under /home/pb/project-builder/netperf/build... Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.36949
     759VMbuild delivery in pb@localhost:local/pb/projects/netperf/delivery... OK                                                                                       
     760Executing pbscript on pb@localhost:local/pb/projects/netperf/delivery if needed... OK                                                                           
     761... Execution needed                                                                                                                                           
     762setting up date with echo sudo /usr/sbin/ntpdate ntp.home.musique-ancienne.org                                                                                 
     763[...]
     764building packages on vm...                                   
     765Project: netperf                                             
     766Action: build2pkg                                             
     767Packages: netperf                                             
     768Extracting spec files from /home/pb/local/pb/projects/netperf/delivery/netperf-2.4.5.pbconf.tar.gz... OK
     769Extracting patch files from /home/pb/local/pb/projects/netperf/delivery/netperf-2.4.5.pbconf.tar.gz... OK
     770Building package with /home/pb/local/pb/projects/netperf/build/SPECS/netperf.spec under /home/pb/local/pb/projects/netperf/build... OK
     771Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.87737                                                                                   
    805772+ umask 022
    806773+ cd /home/pb/project-builder/netperf/build/BUILD
    807 [... build goes on ...]
    808 Wrote: /home/pb/project-builder/netperf/build/SRPMS/netperf-2.4.4-1.fc6.src.rpm
    809 Wrote: /home/pb/project-builder/netperf/build/RPMS/i386/netperf-2.4.4-1.fc6.i386.rpm
    810 Wrote: /home/pb/project-builder/netperf/build/RPMS/i386/netperf-debuginfo-2.4.4-1.fc6.i386.rpm
    811 [... build goes on ...]
    812 OK
    813 OK
    814 pbgen-2.4.4-1                                                              100%   68     0.1KB/s   00:00
    815 OK
    816 netperf-2.4.4-1.fc6.i386.rpm                                               100%  163KB 163.2KB/s   00:01
    817 OK
    818 netperf-2.4.4-1.fc6.src.rpm                                                100% 1156KB   1.1MB/s   00:00
    819 OK
    820 vm cleanup... OK
     774[... build goes on ...]Wrote: /home/pb/local/pb/projects/netperf/build/SRPMS/netperf-2.4.5-1.fc6.src.rpm
     775Wrote: /home/pb/local/pb/projects/netperf/build/RPMS/i386/netperf-2.4.5-1.fc6.i386.rpm
     776Wrote: /home/pb/local/pb/projects/netperf/build/RPMS/i386/netperf-debuginfo-2.4.5-1.fc6.i386.rpm
     777Checking validity of rpms with rpmlint... OK
     778[... build goes on ...]Get package names in pb@localhost:local/pb/projects/netperf/build... OK
     779Package recovery of netperf-2.4.5-1.fc6.src.rpm in pb@localhost:local/pb/projects/netperf/build... OK
     780Package recovery of netperf-2.4.5-1.fc6.i386.rpm in pb@localhost:local/pb/projects/netperf/build... OK
     781Package recovery of netperf-debuginfo-2.4.5-1.fc6.i386.rpm in pb@localhost:local/pb/projects/netperf/build... OK
     782VMbuild cleanup... OK
    821783Packages: netperf
    822 Sources handled (Packages): fedora/6/netperf-2.4.4-1.fc6.*.rpm
     784Sources handled (Packages): fedora/6/netperf-2.4.5-1.fc6.src.rpm fedora/6/netperf-2.4.5-1.fc6.i386.rpm fedora/6/netperf-debuginfo-2.4.5-1.fc6.i386.rpm /home/bruno/local/pb/projects/netperf/build/pbscript
    823785Preparing /mondo/ftp/fedora/6 on pb@www.project-builder.org:/mondo/ftp/fedora/6... OK
    824 netperf-2.4.4-1.fc6.i386.rpm                                               100%  163KB 163.2KB/s   00:00
    825 netperf-2.4.4-1.fc6.src.rpm                                                100% 1156KB  31.2KB/s   00:37
     786netperf-2.4.5-1.fc6.i386.rpm                                               100%  163KB 163.2KB/s   00:00
     787netperf-2.4.5-1.fc6.src.rpm                                                100% 1156KB  31.2KB/s   00:37
    826788OK
    827789Executing pbscript on pb@www.project-builder.org:/mondo/ftp/fedora/6 if needed... OK
     
    836798We can now try to generate packages for all the distributions supported:
    837799{{{
    838 $ pb -p netperf -r `pwd` build2vm
     800$ pb -p netperf build2vm
    839801Project: netperf
    840802Action: build2vm
    841 VMs: mandrake_10.1,mandrake_10.2,mandriva_2006.0,mandriva_2007.0,mandriva_2007.1,mandriva_2008.0,redhat_7.3,redhat_9,fedora_4,fedora_5,fedora_6,fedora_7,fedora_8,rhel_3,rhel_4,rhel_5,suse_10.0,suse_10.1,suse_10.2,suse_10.3,sles_9,sles_10,gentoo_nover,debian_3.1,debian_4.0,ubuntu_6.06,ubuntu_7.04,ubuntu_7.10,mandrake_10.1_64,mandrake_10.2_64,mandriva_2006.0_64,mandriva_2007.0_64,mandriva_2007.1_64,mandriva_2008.0_64,redhat_7.3_64,redhat_9_64,fedora_4_64,fedora_5_64,fedora_6_64,fedora_7_64,fedora_8_64,rhel_3_64,rhel_4_64,rhel_5_64,suse_10.0_64,suse_10.1_64,suse_10.2_64,suse_10.3_64,sles_9_64,sles_10_64,gentoo_nover_64,debian_3.1_64,debian_4.0_64,ubuntu_6.06_64,ubuntu_7.04_64,ubuntu_7.10_64
     803VMs: asianux-2-i386,asianux-3-i386,mandrake-10.1-i386,mandrake-10.2-i386,mandriva-2006.0-i386,mandriva-2007.0-i386,mandriva-2007.1-i386,mandriva-2008.0-i386,mandriva-2008.1-i386,mandriva-2009.0-i386,mandriva-2009.1-i386,redhat-7.3-i386,redhat-9-i386,fedora-4-i386,fedora-5-i386,fedora-6-i386,fedora-7-i386,fedora-8-i386,fedora-9-i386,fedora-10-i386,rhel-2.1-i386,rhel-3-i386,rhel-4-i386,rhel-5-i386,suse-10.0-i386,suse-10.1-i386,suse-10.2-i386,suse-10.3-i386,suse-11.0-i386,suse-11.1-i386,sles-9-i386,sles-10-i386,gentoo-nover-i386,debian-3.1-i386,debian-4.0-i386,debian-5.0-i386,ubuntu-6.06-i386,ubuntu-7.04-i386,ubuntu-7.10-i386,ubuntu-8.04-i386,ubuntu-8.10-i386,,ubuntu-9.04-i386,asianux-2-x86_64,asianux-3-x86_64,mandriva-2007.0-x86_64,mandriva-2007.1-x86_64,mandriva-2008.0-x86_64,mandriva-2008.1-x86_64,mandriva-2009.0-x86_64,mandriva-2009.1-x86_64,fedora-6-x86_64,fedora-7-x86_64,fedora-8-x86_64,fedora-9-x86_64,fedora-10-x86_64,rhel-4-x86_64,rhel-5-x86_64,suse-10.2-x86_64,suse-10.3-x86_64,suse-11.0-x86_64,suse-11.1-x86_64,sles-10-x86_64,gentoo-nover-x86_64,debian-4.0-x86_64,debian-5.0-x86_64,ubuntu-7.04-x86_64,ubuntu-7.10-x86_64,ubuntu-8.04-x86_64,ubuntu-8.10-x86_64,ubuntu-9.04-x86_64
    842804Packages: netperf
    843805[...]
    844806$ find . -name netperf'*'
    845 ./fedora/4/netperf-2.4.4-1.fc4.i386.rpm
    846 ./fedora/4/netperf-2.4.4-1.fc4.src.rpm
    847 ./fedora/5/netperf-2.4.4-1.fc5.i386.rpm
    848 ./fedora/5/netperf-2.4.4-1.fc5.src.rpm
    849 ./fedora/6/netperf-2.4.4-1.fc6.i386.rpm
    850 ./fedora/6/netperf-2.4.4-1.fc6.src.rpm
    851 ./fedora/6/netperf-2.4.4-1.fc6.x86_64.rpm
    852 ./fedora/7/netperf-2.4.4-1.fc7.i386.rpm
    853 ./fedora/7/netperf-2.4.4-1.fc7.src.rpm
    854 ./fedora/7/netperf-2.4.4-1.fc7.x86_64.rpm
    855 ./mandrake/10.2/netperf-2.4.4-1.mdk102.i586.rpm
    856 ./mandrake/10.2/netperf-2.4.4-1.mdk102.src.rpm
    857 ./mandrake/10.1/netperf-2.4.4-1.mdk101.i586.rpm
    858 ./mandrake/10.1/netperf-2.4.4-1.mdk101.src.rpm
    859 ./mandriva/2006.0/netperf-2.4.4-1.mdv2006.0.i586.rpm
    860 ./mandriva/2006.0/netperf-2.4.4-1.mdv2006.0.src.rpm
    861 ./mandriva/2007.0/netperf-2.4.4-1.mdv2007.0.i586.rpm
    862 ./mandriva/2007.0/netperf-2.4.4-1.mdv2007.0.src.rpm
    863 ./mandriva/2007.0/netperf-2.4.4-1.mdv2007.0.x86_64.rpm
    864 ./mandriva/2007.1/netperf-2.4.4-1.mdv2007.1.i586.rpm
    865 ./mandriva/2007.1/netperf-2.4.4-1.mdv2007.1.src.rpm
    866 ./mandriva/2007.1/netperf-2.4.4-1.mdv2007.1.x86_64.rpm
    867 ./mandriva/2008.0/netperf-2.4.4-1.mdv2008.0.i586.rpm
    868 ./mandriva/2008.0/netperf-2.4.4-1.mdv2008.0.src.rpm
    869 ./mandriva/2008.0/netperf-2.4.4-1.mdv2008.0.x86_64.rpm
    870 ./redhat/7.3/netperf-2.4.4-1.rh73.i386.rpm
    871 ./redhat/7.3/netperf-2.4.4-1.rh73.src.rpm
    872 ./redhat/9/netperf-2.4.4-1.rh9.i386.rpm
    873 ./redhat/9/netperf-2.4.4-1.rh9.src.rpm
    874 ./rhel/3/netperf-2.4.4-1.rhel3.i386.rpm
    875 ./rhel/3/netperf-2.4.4-1.rhel3.src.rpm
    876 ./rhel/4/netperf-2.4.4-1.rhel4.i386.rpm
    877 ./rhel/4/netperf-2.4.4-1.rhel4.src.rpm
    878 ./rhel/4/netperf-2.4.4-1.rhel4.x86_64.rpm
    879 ./rhel/5/netperf-2.4.4-1.rhel5.i386.rpm
    880 ./rhel/5/netperf-2.4.4-1.rhel5.src.rpm
    881 ./rhel/5/netperf-2.4.4-1.rhel5.x86_64.rpm
    882 ./sles/9/netperf-2.4.4-1.sles9.i586.rpm
    883 ./sles/9/netperf-2.4.4-1.sles9.src.rpm
    884 ./sles/10/netperf-2.4.4-1.sles10.i586.rpm
    885 ./sles/10/netperf-2.4.4-1.sles10.src.rpm
     807./fedora/4/netperf-2.4.5-1.fc4.i386.rpm
     808./fedora/4/netperf-2.4.5-1.fc4.src.rpm
     809[...]
     810./mandrake/10.2/netperf-2.4.5-1.mdk102.i586.rpm
     811./mandrake/10.2/netperf-2.4.5-1.mdk102.src.rpm
     812[...]
     813./redhat/7.3/netperf-2.4.5-1.rh73.i386.rpm
     814./redhat/7.3/netperf-2.4.5-1.rh73.src.rpm
     815[...]
     816./rhel/5/netperf-2.4.5-1.rhel5.i386.rpm
     817./rhel/5/netperf-2.4.5-1.rhel5.src.rpm
     818./rhel/5/netperf-2.4.5-1.rhel5.x86_64.rpm
     819[...]
    886820./src/netperf-latest.tar.gz
    887 ./src/netperf-2.4.4.tar.gz
    888 ./suse/10.0/netperf-2.4.4-1.suse10.0.i586.rpm
    889 ./suse/10.0/netperf-2.4.4-1.suse10.0.src.rpm
    890 ./suse/10.1/netperf-2.4.4-1.suse10.1.i586.rpm
    891 ./suse/10.1/netperf-2.4.4-1.suse10.1.src.rpm
    892 ./suse/10.2/netperf-2.4.4-1.suse10.2.i586.rpm
    893 ./suse/10.2/netperf-2.4.4-1.suse10.2.src.rpm
    894 ./suse/10.2/netperf-2.4.4-1.suse10.2.x86_64.rpm
    895 ./suse/10.3/netperf-2.4.4-1.suse10.3.i586.rpm
    896 ./suse/10.3/netperf-2.4.4-1.suse10.3.src.rpm
    897 ./suse/10.3/netperf-2.4.4-1.suse10.3.x86_64.rpm
    898 }}}
    899 So we now have rpms built for all the distributions support (but fedora 8 !).
     821./src/netperf-2.4.5.tar.gz
     822[...]
     823./suse/10.3/netperf-2.4.5-1.suse10.3.i586.rpm
     824./suse/10.3/netperf-2.4.5-1.suse10.3.src.rpm
     825./suse/10.3/netperf-2.4.5-1.suse10.3.x86_64.rpm
     826}}}
     827So we now have rpms built for all the distributions supported.