koji build failed

subhodip biswas 440volt.tux at gmail.com
Wed Sep 12 19:25:23 UTC 2007


Hi !
> >

> > However dist-f8 fails with following error :-
> >  var/tmp/straw-0.27-4-F13608/usr/lib/python2.5/site-packages/straw/constants.py:libdir
> > =
> > os.path.normpath('/var/tmp/straw-0.27-4-F13608/usr/lib/python2.5/site-packages/straw')
> > Found '/var/tmp/straw-0.27-4-F13608' in installed files; aborting
> > error: Bad exit status from /var/tmp/rpm-tmp.65277 (%install)
> >
> >
> >
> > Tried to fix it with the following
> >
> > sed -i -e "s@${RPM_BUILD_ROOT}@@" constants.py.in
> >
>
>
> You need to find out why and when constants.py (not constants.py.in)
> is created with $RPM_BUILD_ROOT filled into it. Then replacing the
> buildroot string in the %install section would very likely work. Also
> note that the %build section should not do anything with $RPM_BUILD_ROOT
> unless it cannot be avoided.
>
constant.py is used to constants.py is there so that the program knows
its version and the location of its data files

Placed in straw_distutils.py (attached)

here it is pointing to tmp which causes an error in check build root

how can i prevent constants.py from pinting to tmp?? please help
-------------- next part --------------
A non-text attachment was scrubbed...
Name: straw_distutils.py
Type: text/x-python
Size: 19797 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20070913/d0f6d91e/attachment.py>


More information about the fedora-devel-list mailing list