local / scratch builds with fedpkg

Adam Jackson ajax at redhat.com
Tue Aug 3 14:33:56 UTC 2010


On Tue, 2010-08-03 at 15:06 +0100, David Woodhouse wrote:

> $ i386 fedpkg local --arch=i686
>  ...
> + ./configure --build=x86_64-unknown-linux-gnu
> --host=x86_64-unknown-linux-gnu --program-prefix=
> --disable-dependency-tracking --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=/var/lib
> --mandir=/usr/share/man --infodir=/usr/share/info --disable-gtk-doc
> --enable-static --with-runtime-libdir=../../lib

'i386 fedpkg mockbuild' should work, although that's not what you asked
for.

> $ fedpkg scratch-build
> Traceback (most recent call last):
>   File "/usr/bin/fedpkg", line 959, in <module>
>     args.command(args)
>   File "/usr/bin/fedpkg", line 573, in scratchbuild
>     build(args)
>   File "/usr/bin/fedpkg", line 319, in build
>     url, chain)
>   File "/usr/lib/python2.6/site-packages/pyfedpkg/__init__.py", line
> 797, in build
>     raise FedpkgError('There are unpushed changes in your repo')
> pyfedpkg.FedpkgError: There are unpushed changes in your repo

% fedpkg scratch-build --help
usage: fedpkg scratch-build [-h] [--nowait] [--background]
                            [--arches [ARCHES [ARCHES ...]]] [--srpm SRPM]

optional arguments:
  -h, --help            show this help message and exit
  --nowait              Don't wait on build
  --background          Run the build at a lower priority
  --arches [ARCHES [ARCHES ...]]
                        Build for specific arches
  --srpm SRPM           Build from srpm

I suspect --srpm is what you're looking for.

- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20100803/2d383ed8/attachment.bin 


More information about the devel mailing list