Changes between Version 23 and Version 24 of WikiStart


Ignore:
Timestamp:
11/18/07 00:25:39 (6 years ago)
Author:
bruno
Comment:

end of cms2pkg

Legend:

Unmodified
Added
Removed
Modified
  • WikiStart

    v23 v24  
    4646$ mkdir -p $HOME/netperf/src 
    4747$ cd $HOME/netperf/src 
     48$ umask 022 
    4849$ tar xvfj /tmp/netperf-2.4.4.tar.bz2 
    4950$ rm -f /tmp/netperf-2.4.4.tar.bz2 
     
    446447So now, we can try to go to the next step and build a package. So issue: 
    447448{{{ 
    448 pb -p netperf -r `pwd` build2pkg 
     449$ pb -p netperf -r `pwd` build2pkg 
    449450Project: netperf 
    450451Action: build2pkg 
     
    528529Then it seems that the PBSUF macro isn't expanded correctly. Look for it using a Project-Builder tool: 
    529530{{{ 
    530 pbg PBSUF 
     531$ pbg PBSUF 
    531532./pbconf/pbfilter/rpm.pbf:# PBSUF is replaced by the package name ($pbpkg in code) 
    532533./pbconf/pbfilter/rpm.pbf:#filter PBSUF = $pbsuf 
     
    576577[... build process ...] 
    577578Checking validity of rpms with rpmlint... E: netperf no-changelogname-tag 
    578 E: netperf non-readable /usr/share/doc/netperf-2.4.4/README 0640 
    579 E: netperf non-readable /usr/share/doc/netperf-2.4.4/INSTALL 0640 
    580 E: netperf non-readable /usr/share/doc/netperf-2.4.4/AUTHORS 0640 
    581 E: netperf non-readable /usr/share/doc/netperf-2.4.4/NEWS 0640 
    582579E: netperf zero-length /usr/share/doc/netperf-2.4.4/NEWS 
    583 E: netperf non-readable /usr/share/doc/netperf-2.4.4/COPYING 0640 
    584 E: netperf non-readable /usr/share/doc/netperf-2.4.4/ChangeLog 0640 
    585580E: netperf info-files-without-install-info-postin /usr/share/info/netperf.info.bz2 
    586581E: netperf info-files-without-install-info-postun /usr/share/info/netperf.info.bz2 
     
    642637$  
    643638}}} 
    644 So 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. 
     639So 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 Project-Builder can will with those issues. 
    645640You'll have for that to create a new file under pbconf/netperf called pbcl which will be the changelog file for your project: 
    646641{{{ 
     
    672667EOF 
    673668}}} 
     669The format of the pbcl file is strict. It has 4 initital lines that you can use the way you want, the the 5th line should have 'Version (date)' wwith 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... 
     670 
    674671I 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: 
    675672{{{ 
    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 
    677673$ rm netperf-2.4.4/ChangeLog netperf-2.4.4/NEWS 
    678674}}} 
     
    699695+ exit 0 
    700696OK 
    701 Checking validity of rpms with rpmlint... E: netperf info-files-without-install-info-postin /usr/share/info/netperf.info.bz2 
     697Checking validity of rpms with rpmlint... E: netperf script-without-shellbang /usr/share/doc/netperf-2.4.4/examples/arr_script 
     698E: netperf info-files-without-install-info-postin /usr/share/info/netperf.info.bz2 
    702699E: netperf info-files-without-install-info-postun /usr/share/info/netperf.info.bz2 
     700W: netperf wrong-file-end-of-line-encoding /usr/share/doc/netperf-2.4.4/README.windows 
    703701E: netperf no-signature 
    704702E: netperf no-signature 
     
    708706So seems much better. More verifications: 
    709707{{{ 
     708$ sudo rpm -Uvh --force /users/bruno/netperf/build/RPMS/x86_64/netperf-2.4.4-1.mdv2007.1.x86_64.rpm 
     709Préparation...              ########################################### [100%] 
     710   1:netperf                ########################################### [100%] 
    710711$ rpm -ql netperf 
    711712/usr/bin/netperf 
     
    718719/usr/share/doc/netperf-2.4.4/NEWS 
    719720/usr/share/doc/netperf-2.4.4/README 
     721/usr/share/doc/netperf-2.4.4/README.aix 
     722/usr/share/doc/netperf-2.4.4/README.hpux 
     723/usr/share/doc/netperf-2.4.4/README.osx 
     724/usr/share/doc/netperf-2.4.4/README.ovms 
     725/usr/share/doc/netperf-2.4.4/README.solaris 
     726/usr/share/doc/netperf-2.4.4/README.windows 
     727/usr/share/doc/netperf-2.4.4/Release_Notes 
     728/usr/share/doc/netperf-2.4.4/examples 
     729/usr/share/doc/netperf-2.4.4/examples/Makefile 
     730/usr/share/doc/netperf-2.4.4/examples/Makefile.am 
     731/usr/share/doc/netperf-2.4.4/examples/Makefile.in 
     732/usr/share/doc/netperf-2.4.4/examples/arr_script 
     733/usr/share/doc/netperf-2.4.4/examples/packet_byte_script 
     734/usr/share/doc/netperf-2.4.4/examples/sctp_stream_script 
     735/usr/share/doc/netperf-2.4.4/examples/snapshot_script 
     736/usr/share/doc/netperf-2.4.4/examples/tcp_range_script 
     737/usr/share/doc/netperf-2.4.4/examples/tcp_rr_script 
     738/usr/share/doc/netperf-2.4.4/examples/tcp_stream_script 
     739/usr/share/doc/netperf-2.4.4/examples/udp_rr_script 
     740/usr/share/doc/netperf-2.4.4/examples/udp_stream_script 
    720741/usr/share/info/netperf.info.bz2 
    721742/usr/share/man/man1/netperf.1.bz2 
    722743/usr/share/man/man1/netserver.1.bz2 
    723 $ rpm -q --changelog netperf 
    724 }}} 
     744$ rpm -q --changelog netperf | head 
     745* ven nov 16 2007 Bruno Cornec <bruno@project-builder.org> 2.4.4-1.mdv2007.1 
     746- Updated to 2.4.4 
     747-  The LOC_CPU and REM_CPU tests will report their respective beliefs 
     748   as to the number of CPUs present when the verbosity is set to more 
     749   than one.  This can be used when trying to diagnose issues with CPU 
     750   utilization. 
     751-  A kind soul who wishes to remain anonymous provided a patch to 
     752   enable use of sendfile() on OSX. 
     753-  Fix a misplaced \n in a format string of send_tcp_maerts, courtesy 
     754   of Alexander Duyck. 
     755$  
     756}}} 
     757 
     758So we now have a much more correct rpm built, even if not everything is solve. 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. 
    725759 
    726760= Example of use on LinuxCOE (more complex example) =