On 12/09/2007, subhodip biswas <440volt.tux@xxxxxxxxx> wrote: > > > 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 > You should perhaps try building on your own machine first. It's easier to debug when you can actually poke into the files being installed in $RPM_BUILD_ROOT. Regards, -- Michel -- fedora-devel-list mailing list fedora-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-devel-list