Changes

Jump to navigation Jump to search
m
Line 33: Line 33:  
You can then run a test by doing:
 
You can then run a test by doing:
   −
  # e.g. initialise a smeserver-8-x86_64-base chroot environment
+
  # e.g. initialise a smeserver-9-x86_64-base chroot environment
  $ CONFIG=smeserver-8-x86_64-base
+
  $ CONFIG=smeserver-9-x86_64-base
 
  $ mock -r $CONFIG --init
 
  $ mock -r $CONFIG --init
 
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 40: Line 40:  
  # 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/clix-0.3.4-1.of.src.rpm
+
  $ 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:
   −
  $ ls -1 /var/lib/mock/$CONFIG/result
+
  ls -1 /var/lib/mock/smeserver-9-x86_64/result
 
  build.log
 
  build.log
  clix-0.3.4-1.of.noarch.rpm
+
  e-smith-runit-2.4.0-1.el6.sme.noarch.rpm
  clix-0.3.4-1.of.src.rpm
+
  e-smith-runit-2.4.0-1.el6.sme.src.rpm
 
  root.log
 
  root.log
 
  state.log
 
  state.log

Navigation menu