Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 1239ee4650f3eea1960330bfb2ca5abb > files > 74

mach-0.9.6-1.fc14.x86_64.rpm

/etc/hosts
----------
To fake the buildhost, this file should contain
127.0.0.1 (buildhost) (actual hostname)

where actual hostname would be the output of "hostname" inside the build root,
and (buildhost) the name you want to turn up in the buildhost

quoting and arguments
---------------------
* the shell strips quotes from arguments, but collects stuff between quotes
  as one argument
  This means, mach build --target i686 --define "kernel 2.4.22" gets parsed as
  ['--target', 'i686', '--define', 'kernel 2.4.22']
* the shell doesn't distinguish between single or double quotes AFAICT
* this is also how python's opt parsing gets the remaining arguments
* it is safe to overquote in the shell; ie it's ok to run
  rpmbuild '--target' 'i686' '--define' 'kernel 2.4.22'
  this is what we use to execute rpmbuild calls