Following up on my own post...<br><br><div class="gmail_quote">On Fri, Dec 4, 2009 at 10:15 AM, Fulko Hew <span dir="ltr"><<a href="mailto:fulko.hew@gmail.com">fulko.hew@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I now, all of a sudden :-) I seem to be getting this error message when I build my package.<br><br>I don't recall changing my spec file since the last time it worked properly,<br>only adding some files 'inside' my package.<br>
<br>I'm using a simple scenario, probably not the best/correct approach, but it basically is:<br><br>a) develop the app in its target (installed) directory,<br>b) when rpm-build'ing, copy the necessary files into the 'build' directory and continue.<br>
<br>So I don't know what I'm doing wrong, the error message isn't helping me to understand<br>what is going wrong, and I don't think I changed anything since the last time it worked. :-)<br>Can someone shed some light please.<br>
<br>TIA<br>Fulko<br><br>PS. I'm building on a Fedora 8 box using RPM version 4.4.2.2<br></blockquote><div><br>... snip ...<br><br> I read all the related search-able stuff on the web that I could find, and I found one<br>
and I found one link that gave a clue, that said:<br><br>"Well, the problem is that a file in the package has the buildroot location in it. This needs to be fixed."<br><br></div></div>So I thought what file do I have that has the string '/usr/src/redhat/BUILD/NetWatch-root' in it?<br>
My spec file doesn't, only the macro that would expand to it!<br>So I grep'ed everything and I found a 'typescript' log file lying around that contained<br>the log of a previous build. I guess I wanted to see all the steps that were occuring during<br>
the packaging. Obviously this file didn't need to be part of my package, so I deleted it.<br>Re-packaging now works fine.<br><br>Like other people before me, I was bewildered by what the error message was trying to tell me...<br>
<br> Found '/usr/src/redhat/BUILD/NetWatch-root' in installed files; aborting<br><br>Perhaps if it had hit me over the head with the following phrase instead, I would have solved it faster:<br><br> Found the not-allowed string '/usr/src/redhat/BUILD/NetWatch-root' in a file in the package being created; aborting<br>
<br>Thanks for listening<br>Fulko<br><br><br>