Line 139: |
Line 139: |
| | | |
| ==== Testing building environment ==== | | ==== Testing building environment ==== |
| + | =====Perform a Build for sme9 64 bits from an SRPM===== |
| You can then run a test by doing: | | You can then run a test by doing: |
| | | |
| # e.g. initialise a smeserver-9-x86_64-base chroot environment | | # e.g. initialise a smeserver-9-x86_64-base chroot environment |
− | $ CONFIG=smeserver-9-x86_64-base | + | [chris@build-system SRPMS] $ CONFIG=smeserver-9-x86_64-base |
− | $ mock -r $CONFIG --init | + | [chris@build-system SRPMS] $ mock -r $CONFIG --init |
− | # It might take a while to configure at the "Start: yum update"
| + | |
| + | It might take a while to configure at the "Start: yum update" |
| | | |
| which will setup an initial chroot environment using the given config. If that seemed to work (you weren't inundated with error messages), you can try a build: | | which will setup an initial chroot environment using the given config. If that seemed to work (you weren't inundated with error messages), you can try a build: |
Line 151: |
Line 153: |
| # Rebuild the given source RPM within the chroot environment | | # Rebuild the given source RPM within the chroot environment |
| # usage: mock -r <mock_config> --rebuild /path/to/SRPM e.g. | | # usage: mock -r <mock_config> --rebuild /path/to/SRPM e.g. |
− | $ mock -r $CONFIG --rebuild ~/rpmbuild/SRPMS/e-smith-runit-2.4.0-1.el6.sme.src.rpm
| + | [chris@build-system SRPMS] $ mock -r $CONFIG --rebuild ~/rpmbuild/SRPMS/e-smith-runit-2.4.0-1.el6.sme.src.rpm |
| | | |
| If the build succeeds, it drops your packages into the /var/lib/mock/$CONFIG/result directory. | | If the build succeeds, it drops your packages into the /var/lib/mock/$CONFIG/result directory. |
Line 163: |
Line 165: |
| root.log | | root.log |
| state.log | | state.log |
| + | |
| + | =====Perform a Build for sme9 32 bits from an SRPM===== |
| + | [chris@build-system SRPMS]$ CONFIG=smeserver-9-i386-base |
| + | |
| + | =====Perform a Build for sme8 64 bits from an SRPM===== |
| + | [chris@build-system SRPMS]$ wget http://mirror.canada.pialasse.com/releases/8.0/smeupdates-testing/SRPMS/perl-CGI-FormMagick-0.92-23.el5.sme.src.rpm |
| + | [chris@build-system SRPMS]$ CONFIG=smeserver-8-x86_64-base |
| + | [chris@build-system SRPMS] $ mock -r $CONFIG --rebuild ~/smeupdates-testing/SRPMS/perl-CGI-FormMagick-0.92-23.el5.sme.src.rpm |
| + | |
| + | =====Perform a Build for sme8 32 bits from an SRPM===== |
| + | [chris@build-system SRPMS]$ CONFIG=smeserver-8-i386-base |
| | | |
| ====INSTALL AND CONFIG CVS==== | | ====INSTALL AND CONFIG CVS==== |