-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 18 Dec 2008 09:11:00 +0100
Jan Pazdziora <[email protected]> wrote:
> On Wed, Dec 17, 2008 at 07:26:46PM -0400, Devan Goodwin wrote:
> > > I get
> > >
> > > ERROR: Unable to locate a spec file
> > > in /mnt/data/project/spacewalk
> > >
> > > What is the correct way of building a package from a particular
> > > tag, without chdirring to package's directory (which might not
> > > even exist by now)?
> > >
> >
> > This should be working now.
> >
> > % build.py --tag=spacewalk-setup-0.4.2-1 --srpm
> > Building version: 0.4.2
> > Creating spacewalk-setup-0.4.2.tar.gz from git tag:
> > 1faab1f475408ddf07a94accf029e2a212995d23...
> > Wrote: /tmp/spacewalk-build/spacewalk-setup-0.4.2.tar.gz
> > Wrote: /tmp/spacewalk-build/spacewalk-setup-0.4.2-1.fc9.src.rpm
> >
> > I ran into an issue with packages that need
> > build.py.props (basically those that use NO_TAR_GZ previously)
> > particularly when building a tag that was created prior to
> > build.py.props. If anyone needs to build such a package version (and
> > creating a new tag is out of the question) then I can add a
> > - --properties-file option to build.py to force it, or we can just
> > use make. (could use git-checkout some-past-revision if Makefiles
> > were deleted at that point in time)
> >
> > Cheers,
>
> We seem to have a problem with (for example)
>
> $ rel-eng/bin/build.py --tag=perl-Crypt-RIPEMD160-0.04-15 --srpm
> Building version: 0.04
> Creating perl-Crypt-RIPEMD160-0.04.tar.gz from git tag:
> 8a7ceb5c1fe383d6cd2a4a96bdfcbdb99cecb390...
> Wrote: /tmp/spacewalk-build/perl-Crypt-RIPEMD160-0.04.tar.gz
>
> ########## ERROR ############
> Error running command: rpmbuild --define
> "_sourcedir
> /tmp/spacewalk-build/rpmbuild-perl-Crypt-RIPEMD160-8a7ceb5c1fe383d6cd2a4a96bdfcbdb99cecb390/SOURCES"
> --define
> "_builddir
> /tmp/spacewalk-build/rpmbuild-perl-Crypt-RIPEMD160-8a7ceb5c1fe383d6cd2a4a96bdfcbdb99cecb390/BUILD"
> --define "_srcrpmdir /tmp/spacewalk-build" --define
> "_rpmdir /tmp/spacewalk-build" --nodeps
> -bs
> /tmp/spacewalk-build/rpmbuild-perl-Crypt-RIPEMD160-8a7ceb5c1fe383d6cd2a4a96bdfcbdb99cecb390/SOURCES/perl-Crypt-RIPEMD160-0.04/perl-Crypt-RIPEMD160.spec
> Status code: 256 Command output: error:
> File
> /tmp/spacewalk-build/rpmbuild-perl-Crypt-RIPEMD160-8a7ceb5c1fe383d6cd2a4a96bdfcbdb99cecb390/SOURCES/Crypt-RIPEMD160-0.04.tar.gz:
> No such file or directory Traceback (most recent call last): File
> "rel-eng/bin/build.py", line 26, in <module> CLI().main() File
> "rel-eng/bin/../lib/spacewalk/releng/cli.py", line 165, in main
> builder.run(options) File
> "rel-eng/bin/../lib/spacewalk/releng/builder.py", line 102, in run
> self._srpm() File "rel-eng/bin/../lib/spacewalk/releng/builder.py",
> line 139, in _srpm output = run_command(cmd) File
> "rel-eng/bin/../lib/spacewalk/releng/common.py", line 68, in
> run_command raise Exception("Error running command") Exception: Error
> running command $
>
Had an idea this morning for dealing with these old packages tagged
prior to the existence of build.py.props, should build ok now.
Cheers,
Devan
- --
Devan Goodwin <[email protected]>
Software Engineer - Spacewalk / RHN Satellite
Halifax, Canada 650.567.9039x79267
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
iEYEARECAAYFAklKbDMACgkQAyHWaPV9my7XmQCgs0ltIGnZYWvcyekg7kcam2sy
Wo4AoNkFeFZ7at8fB+cBHnDxiM2CPQkE
=9d3H
-----END PGP SIGNATURE-----
_______________________________________________
Spacewalk-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel