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
$
--
Jan Pazdziora
Satellite Engineering, Red Hat
_______________________________________________
Spacewalk-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel