Changes between Version 23 and Version 24 of WikiStart
- Timestamp:
- Nov 18, 2007, 12:25:39 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiStart
v23 v24 46 46 $ mkdir -p $HOME/netperf/src 47 47 $ cd $HOME/netperf/src 48 $ umask 022 48 49 $ tar xvfj /tmp/netperf-2.4.4.tar.bz2 49 50 $ rm -f /tmp/netperf-2.4.4.tar.bz2 … … 446 447 So now, we can try to go to the next step and build a package. So issue: 447 448 {{{ 448 pb -p netperf -r `pwd` build2pkg449 $ pb -p netperf -r `pwd` build2pkg 449 450 Project: netperf 450 451 Action: build2pkg … … 528 529 Then it seems that the PBSUF macro isn't expanded correctly. Look for it using a Project-Builder tool: 529 530 {{{ 530 pbg PBSUF531 $ pbg PBSUF 531 532 ./pbconf/pbfilter/rpm.pbf:# PBSUF is replaced by the package name ($pbpkg in code) 532 533 ./pbconf/pbfilter/rpm.pbf:#filter PBSUF = $pbsuf … … 576 577 [... build process ...] 577 578 Checking validity of rpms with rpmlint... E: netperf no-changelogname-tag 578 E: netperf non-readable /usr/share/doc/netperf-2.4.4/README 0640579 E: netperf non-readable /usr/share/doc/netperf-2.4.4/INSTALL 0640580 E: netperf non-readable /usr/share/doc/netperf-2.4.4/AUTHORS 0640581 E: netperf non-readable /usr/share/doc/netperf-2.4.4/NEWS 0640582 579 E: netperf zero-length /usr/share/doc/netperf-2.4.4/NEWS 583 E: netperf non-readable /usr/share/doc/netperf-2.4.4/COPYING 0640584 E: netperf non-readable /usr/share/doc/netperf-2.4.4/ChangeLog 0640585 580 E: netperf info-files-without-install-info-postin /usr/share/info/netperf.info.bz2 586 581 E: netperf info-files-without-install-info-postun /usr/share/info/netperf.info.bz2 … … 642 637 $ 643 638 }}} 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.639 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 Project-Builder can will with those issues. 645 640 You'll have for that to create a new file under pbconf/netperf called pbcl which will be the changelog file for your project: 646 641 {{{ … … 672 667 EOF 673 668 }}} 669 The 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 674 671 I 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 672 {{{ 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/INSTALL677 673 $ rm netperf-2.4.4/ChangeLog netperf-2.4.4/NEWS 678 674 }}} … … 699 695 + exit 0 700 696 OK 701 Checking validity of rpms with rpmlint... E: netperf info-files-without-install-info-postin /usr/share/info/netperf.info.bz2 697 Checking validity of rpms with rpmlint... E: netperf script-without-shellbang /usr/share/doc/netperf-2.4.4/examples/arr_script 698 E: netperf info-files-without-install-info-postin /usr/share/info/netperf.info.bz2 702 699 E: netperf info-files-without-install-info-postun /usr/share/info/netperf.info.bz2 700 W: netperf wrong-file-end-of-line-encoding /usr/share/doc/netperf-2.4.4/README.windows 703 701 E: netperf no-signature 704 702 E: netperf no-signature … … 708 706 So seems much better. More verifications: 709 707 {{{ 708 $ sudo rpm -Uvh --force /users/bruno/netperf/build/RPMS/x86_64/netperf-2.4.4-1.mdv2007.1.x86_64.rpm 709 PrĂ©paration... ########################################### [100%] 710 1:netperf ########################################### [100%] 710 711 $ rpm -ql netperf 711 712 /usr/bin/netperf … … 718 719 /usr/share/doc/netperf-2.4.4/NEWS 719 720 /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 720 741 /usr/share/info/netperf.info.bz2 721 742 /usr/share/man/man1/netperf.1.bz2 722 743 /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 758 So 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. 725 759 726 760 = Example of use on LinuxCOE (more complex example) =