Changes between Version 22 and Version 23 of WikiStart


Ignore:
Timestamp:
Nov 18, 2007, 12:08:38 AM (16 years ago)
Author:
Bruno Cornec
Comment:

pbcl explained

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v22 v23  
    626626/usr/share/man/man1/netperf.1.bz2
    627627/usr/share/man/man1/netserver.1.bz2
     628$ rpm -qi netperf
     629Name        : netperf                      Relocations: (not relocatable)
     630Version     : 2.4.4                             Vendor: (none)
     631Release     : 1.mdv2007.1                   Build Date: sam 17 nov 2007 00:40:33 CET
     632Install Date: sam 17 nov 2007 00:47:29 CET      Build Host: victoria2.home.musique-ancienne.org
     633Group       : Archiving/Backup              Source RPM: netperf-2.4.4-1.mdv2007.1.src.rpm
     634Size        : 263698                           License: GPL
     635Signature   : (none)
     636Packager    : Bruno Cornec <bruno@project-builder.org>
     637URL         : http://www.netperf.org
     638Summary     : netperf est un outil de benchmark réseau
     639Description :
     640netperf est un outil de benchmark réseau
    628641$ rpm -q --changelog netperf
    629642$
     643}}}
     644So we still have an issue with the Group used and the changelog which is empty. Also some modes are wrong and our NEWS file is empty. Again Projec-Builder can will with those issues.
     645You'll have for that to create a new file under pbconf/netperf called pbcl which will be the changelog file for your project:
     646{{{
     647$ cp netperf-2.4.4/Release_Notes pbconf/netperf/pbcl
     648$ vi pbconf/netperf/pbcl
     649[... format modifications ...]
     650$ head -20 pbconf/netperf/pbcl
     651# $Id$
     652
     653NETPERF CHANGES
     654
     6552.4.4 (2007-11-16)
     656-  The LOC_CPU and REM_CPU tests will report their respective beliefs
     657   as to the number of CPUs present when the verbosity is set to more
     658   than one.  This can be used when trying to diagnose issues with CPU
     659   utilization.
     660-  A kind soul who wishes to remain anonymous provided a patch to
     661   enable use of sendfile() on OSX.
     662-  Fix a misplaced \n in a format string of send_tcp_maerts, courtesy
     663   of Alexander Duyck.
     664-  There is an experimental global -r option which will allow one to
     665   include CPU utilization measurements, but make the decision about
     666   hitting confidence based on the result only.  The test banner will
     667   reflects this when -r is used.
     668-  It is no longer necessary to specify a file with the global -F
     669   option when running a _SENDFILE test.  Netperf will create a
     670   temporary file and populate it with random data and use that.  If
     671$
     672EOF
     673}}}
     674I also decide to remove the useless files in the distribution, and replace them  with those that Project-Builder will generate from the pbcl file we just created from Release_Notes:
     675{{{
     676$ chmod 644 netperf-2.4.4/README* netperf-2.4.4/Release_Notes netperf-2.4.4/AUTHORS netperf-2.4.4/COPYING netperf-2.4.4/INSTALL
     677$ rm netperf-2.4.4/ChangeLog netperf-2.4.4/NEWS
     678}}}
     679
     680Ready to check again:
     681{{{
     682$ pb -p netperf -r `pwd` cms2pkg
     683Project: netperf
     684Action: cms2pkg
     685Packages: netperf
     686
     687Management of netperf 2.4.4-1 (rev flat)
     688Exporting /users/bruno/netperf/src/netperf-2.4.4 from DIR to /users/bruno/netperf/delivery/netperf-2.4.4... OK
     689Generating NEWS file from /users/bruno/netperf/src/pbconf/netperf/pbcl
     690[... build continues ...]
     691Wrote: /users/bruno/netperf/build/SRPMS/netperf-2.4.4-1.mdv2007.1.src.rpm
     692Wrote: /users/bruno/netperf/build/RPMS/x86_64/netperf-2.4.4-1.mdv2007.1.x86_64.rpm
     693Wrote: /users/bruno/netperf/build/RPMS/x86_64/netperf-debug-2.4.4-1.mdv2007.1.x86_64.rpm
     694Executing(%clean): /bin/sh -e /users/bruno/netperf/build/tmp/rpm-tmp.76745
     695+ umask 022
     696+ cd /users/bruno/netperf/build/BUILD
     697+ cd netperf-2.4.4
     698+ /bin/rm -rf /users/bruno/netperf/build/tmp/netperf-2.4.4-1.mdv2007.1-root-bruno
     699+ exit 0
     700OK
     701Checking validity of rpms with rpmlint... E: netperf info-files-without-install-info-postin /usr/share/info/netperf.info.bz2
     702E: netperf info-files-without-install-info-postun /usr/share/info/netperf.info.bz2
     703E: netperf no-signature
     704E: netperf no-signature
     705OK
     706}}}
     707
     708So seems much better. More verifications:
     709{{{
     710$ rpm -ql netperf
     711/usr/bin/netperf
     712/usr/bin/netserver
     713/usr/share/doc/netperf-2.4.4
     714/usr/share/doc/netperf-2.4.4/AUTHORS
     715/usr/share/doc/netperf-2.4.4/COPYING
     716/usr/share/doc/netperf-2.4.4/ChangeLog
     717/usr/share/doc/netperf-2.4.4/INSTALL
     718/usr/share/doc/netperf-2.4.4/NEWS
     719/usr/share/doc/netperf-2.4.4/README
     720/usr/share/info/netperf.info.bz2
     721/usr/share/man/man1/netperf.1.bz2
     722/usr/share/man/man1/netserver.1.bz2
     723$ rpm -q --changelog netperf
     724}}}
    630725
    631726= Example of use on LinuxCOE (more complex example) =