854 | | |
855 | | }}} |
856 | | |
| 854 | [...] |
| 855 | Updating : gnome-desktop-devel ##################### [ 68/138] |
| 856 | Updating : perl-devel ##################### [ 69/138] |
| 857 | Updating : perl-ExtUtils-MakeMaker ##################### [ 70/138] |
| 858 | Updating : perl-ExtUtils-Embed ##################### [ 71/138] |
| 859 | Cleanup : gnome-screensaver ##################### [ 72/138] |
| 860 | Cleanup : slrn ##################### [ 73/138] |
| 861 | Cleanup : perl-Test-Harness ##################### [ 74/138] |
| 862 | Cleanup : codeina ##################### [ 75/138] |
| 863 | Cleanup : libattr-devel ##################### [ 76/138] |
| 864 | [...] |
| 865 | ============================================================================= |
| 866 | Installing: |
| 867 | perl-AppConfig noarch 1.65-1.fc8 fedora 96 k |
| 868 | perl-DateManip noarch 5.44-4.fc8 fedora 162 k |
| 869 | |
| 870 | Transaction Summary |
| 871 | ============================================================================= |
| 872 | Install 2 Package(s) |
| 873 | Update 0 Package(s) |
| 874 | Remove 0 Package(s) |
| 875 | |
| 876 | Total download size: 258 k |
| 877 | Downloading Packages: |
| 878 | Running rpm_check_debug |
| 879 | Running Transaction Test |
| 880 | Finished Transaction Test |
| 881 | Transaction Test Succeeded |
| 882 | Running Transaction |
| 883 | Installing: perl-DateManip ######################### [1/2] |
| 884 | Installing: perl-AppConfig ######################### [2/2] |
| 885 | |
| 886 | Installed: perl-AppConfig.noarch 0:1.65-1.fc8 perl-DateManip.noarch 0:5.44-4.fc8 |
| 887 | Complete! |
| 888 | 20 Nov 01:45:43 ntpdate[5305]: step time server 192.168.8.55 offset 86478.362381 sec |
| 889 | --01:45:44-- ftp://ftp.mondorescue.org/src/project-builder-latest.tar.gz |
| 890 | => `project-builder-latest.tar.gz' |
| 891 | Resolving ftp.mondorescue.org... 213.30.161.23 |
| 892 | Connecting to ftp.mondorescue.org|213.30.161.23|:21... connected. |
| 893 | Logging in as anonymous ... Logged in! |
| 894 | ==> SYST ... done. ==> PWD ... done. |
| 895 | ==> TYPE I ... done. ==> CWD /src ... done. |
| 896 | ==> PASV ... done. ==> RETR project-builder-latest.tar.gz ... done. |
| 897 | Length: 52,296 (51K) (unauthoritative) |
| 898 | |
| 899 | 0K .......... .......... .......... .......... .......... 97% 165.62 KB/s |
| 900 | 50K . 100% 2.09 MB/s |
| 901 | |
| 902 | 01:45:45 (169.17 KB/s) - `project-builder-latest.tar.gz' saved [52296] |
| 903 | |
| 904 | project-builder-0.8.11/ |
| 905 | project-builder-0.8.11/pbconf/ |
| 906 | project-builder-0.8.11/pbconf/suse-10.0/ |
| 907 | project-builder-0.8.11/pbconf/suse-10.0/project-builder.spec |
| 908 | project-builder-0.8.11/pbconf/rhel-5/ |
| 909 | [...] |
| 910 | Writing Makefile for pb |
| 911 | cp lib/ProjectBuilder/Changelog.pm blib/lib/ProjectBuilder/Changelog.pm |
| 912 | cp lib/ProjectBuilder/Base.pm blib/lib/ProjectBuilder/Base.pm |
| 913 | cp lib/ProjectBuilder/Distribution.pm blib/lib/ProjectBuilder/Distribution.pm |
| 914 | cp lib/ProjectBuilder/Version.pm blib/lib/ProjectBuilder/Version.pm |
| 915 | cp bin/pbvi blib/bin/pbvi |
| 916 | /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/bin/pbvi |
| 917 | cp bin/pb blib/bin/pb |
| 918 | /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/bin/pb |
| 919 | cp bin/pbdistrocheck blib/bin/pbdistrocheck |
| 920 | /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/bin/pbdistrocheck |
| 921 | cp bin/pbg blib/bin/pbg |
| 922 | /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/bin/pbg |
| 923 | Installing /usr/bin/pbdistrocheck |
| 924 | Installing /usr/bin/pb |
| 925 | Installing /usr/bin/pbvi |
| 926 | Installing /usr/bin/pbg |
| 927 | Installing /usr/lib/perl5/vendor_perl/5.8.8/ProjectBuilder/Distribution.pm |
| 928 | Installing /usr/lib/perl5/vendor_perl/5.8.8/ProjectBuilder/Base.pm |
| 929 | Installing /usr/lib/perl5/vendor_perl/5.8.8/ProjectBuilder/Changelog.pm |
| 930 | Installing /usr/lib/perl5/vendor_perl/5.8.8/ProjectBuilder/Version.pm |
| 931 | Writing /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/pb/.packlist |
| 932 | Appending installation info to /usr/lib/perl5/5.8.8/i386-linux-thread-multi/perllocal.pod |
| 933 | OK |
| 934 | }}} |
| 935 | Now that Project-Builder is installed inside your VM, you may want to try to use it to build netperf packages for Fedora 8: |
| 936 | {{{ |
| 937 | $ pb -p netperf -r `pwd` -m fedora_8 build2vm |
| 938 | Project: netperf |
| 939 | Action: build2vm |
| 940 | VMs: fedora_8 |
| 941 | Found an existing VM /users/qemu/fedora_8.qemu (pid 28291) |
| 942 | Packages: netperf |
| 943 | 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 |
| 944 | Preparing netperf/delivery on pb@localhost... /usr/bin/xauth: creating new authority file /home/pb/.Xauthority |
| 945 | OK |
| 946 | netperf-2.4.4.tar.gz 100% 1159KB 1.1MB/s 00:01 |
| 947 | pbscript 100% 369 0.4KB/s 00:00 |
| 948 | netperf.pb 100% 2214 2.2KB/s 00:00 |
| 949 | 2.4.4-1.pb 100% 24 0.0KB/s 00:00 |
| 950 | .pbrc 100% 2216 2.2KB/s 00:00 |
| 951 | OK |
| 952 | Executing pbscript on pb@localhost if needed... ... Execution needed |
| 953 | Setting up date on pool.ntp.org... |
| 954 | Mon Nov 26 10:09:00 CET 2007 |
| 955 | Building packages on VM... |
| 956 | Project: netperf |
| 957 | Action: build2pkg |
| 958 | Packages: netperf |
| 959 | Source file: /home/pb/netperf/delivery/netperf-2.4.4.tar.gz |
| 960 | Working directory: /home/pb/netperf/build |
| 961 | Extracting build files... tar: netperf-2.4.4/pbconf/fedora-8: Not found in archive |
| 962 | tar: Error exit delayed from previous errors |
| 963 | Unable to open directory netperf-2.4.4/pbconf/fedora-8/ at /usr/bin/pb line 845. |
| 964 | child (tar xfpz /home/pb/netperf/delivery/netperf-2.4.4.tar.gz netperf-2.4.4/pbconf/fedora-8/) exited with value 2 |
| 965 | }}} |
| 966 | Project Builder didn't find in our tar file what is necessary to build an RPM on Fedora 8. This is because our configuration file doesn't indicate that we want to build on fedora 8 (of course it's a new VM). So fix your config file by adapting your vmlist entry to include also Fedora 8: |
| 967 | {{{ |
| 968 | vmlist netperf = 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 |
| 969 | }}} |
| 970 | and then relaunch the build, starting from the CMS: |
| 971 | {{{ |
| 972 | Project: netperf |
| 973 | Action: cms2vm |
| 974 | Packages: netperf |
| 975 | |
| 976 | Management of netperf 2.4.4-1 (rev flat) |
| 977 | Exporting /users/bruno/netperf/src/netperf-2.4.4 from DIR to /users/bruno/netperf/delivery/netperf-2.4.4... OK |
| 978 | Generating NEWS file from /users/bruno/netperf/src/pbconf/netperf/pbcl |
| 979 | Empty ChangeLog file created... OK |
| 980 | 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 |
| 981 | No Build files found for gentoo-nover |
| 982 | Files configure.ac have been filtered |
| 983 | Creating netperf tar files compressed... OK |
| 984 | Under /users/bruno/netperf/delivery/netperf-2.4.4.tar.gz |
| 985 | VMs: fedora_8 |
| 986 | Found an existing VM /users/qemu/fedora_8.qemu (pid 28291) |
| 987 | Packages: netperf |
| 988 | 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 |
| 989 | Preparing netperf/delivery on pb@localhost... OK |
| 990 | netperf-2.4.4.tar.gz 100% 1159KB 1.1MB/s 00:00 |
| 991 | pbscript 100% 369 0.4KB/s 00:00 |
| 992 | netperf.pb 100% 2223 2.2KB/s 00:00 |
| 993 | 2.4.4-1.pb 100% 24 0.0KB/s 00:00 |
| 994 | .pbrc 100% 2216 2.2KB/s 00:00 |
| 995 | OK |
| 996 | Executing pbscript on pb@localhost if needed... ... Execution needed |
| 997 | Setting up date on pool.ntp.org... |
| 998 | Mon Nov 26 10:12:00 CET 2007 |
| 999 | Building packages on VM... |
| 1000 | Project: netperf |
| 1001 | Action: build2pkg |
| 1002 | Packages: netperf |
| 1003 | Source file: /home/pb/netperf/delivery/netperf-2.4.4.tar.gz |
| 1004 | Working directory: /home/pb/netperf/build |
| 1005 | Extracting build files... OK |
| 1006 | Building package with /home/pb/netperf/build/SPECS/netperf.spec under /home/pb/netperf/build... Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.44284 |
| 1007 | + umask 022 |
| 1008 | + cd /home/pb/netperf/build/BUILD |
| 1009 | + LANG=C |
| 1010 | + export LANG |
| 1011 | + unset DISPLAY |
| 1012 | + cd /home/pb/netperf/build/BUILD |
| 1013 | + rm -rf netperf-2.4.4 |
| 1014 | + /bin/gzip -dc /home/pb/netperf/build/SOURCES/netperf-2.4.4.tar.gz |
| 1015 | + tar -xf - |
| 1016 | + STATUS=0 |
| 1017 | + '[' 0 -ne 0 ']' |
| 1018 | + cd netperf-2.4.4 |
| 1019 | ++ /usr/bin/id -u |
| 1020 | + '[' 500 = 0 ']' |
| 1021 | ++ /usr/bin/id -u |
| 1022 | + '[' 500 = 0 ']' |
| 1023 | + /bin/chmod -Rf a+rX,u+w,g-w,o-w . |
| 1024 | + exit 0 |
| 1025 | Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.10486 |
| 1026 | + umask 022 |
| 1027 | + cd /home/pb/netperf/build/BUILD |
| 1028 | + cd netperf-2.4.4 |
| 1029 | + LANG=C |
| 1030 | + export LANG |
| 1031 | + unset DISPLAY |
| 1032 | + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables' |
| 1033 | + export CFLAGS |
| 1034 | + CXXFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables' |
| 1035 | + export CXXFLAGS |
| 1036 | + FFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables' |
| 1037 | + export FFLAGS |
| 1038 | ++ find . -name config.guess -o -name config.sub |
| 1039 | + for i in '$(find . -name config.guess -o -name config.sub)' |
| 1040 | ++ basename ./config.sub |
| 1041 | + '[' -f /usr/lib/rpm/redhat/config.sub ']' |
| 1042 | + /bin/rm -f ./config.sub |
| 1043 | ++ basename ./config.sub |
| 1044 | + /bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub |
| 1045 | `/usr/lib/rpm/redhat/config.sub' -> `./config.sub' |
| 1046 | + for i in '$(find . -name config.guess -o -name config.sub)' |
| 1047 | ++ basename ./config.guess |
| 1048 | + '[' -f /usr/lib/rpm/redhat/config.guess ']' |
| 1049 | + /bin/rm -f ./config.guess |
| 1050 | ++ basename ./config.guess |
| 1051 | + /bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess |
| 1052 | `/usr/lib/rpm/redhat/config.guess' -> `./config.guess' |
| 1053 | + ./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info |
| 1054 | checking build system type... i686-redhat-linux-gnu |
| 1055 | checking host system type... i686-redhat-linux-gnu |
| 1056 | checking target system type... i386-redhat-linux-gnu |
| 1057 | [...] |
| 1058 | netlib.o: In function `bind_to_specific_processor': |
| 1059 | netlib.c:(.text+0x1d4a): undefined reference to `__CPU_ZERO' |
| 1060 | netlib.c:(.text+0x1d56): undefined reference to `__CPU_SET' |
| 1061 | collect2: ld returned 1 exit status |
| 1062 | }}} |
| 1063 | So we're not lucky as the application doesn't build natively on Fedora 8 due to the lack of some defines. |