emerge app-office/lyx Calculating dependencies ...done! >>> emerge (1 of 2) app-text/noweb-2.9-r3 to / >>> md5 src_uri ;-) noweb-src-2.9.tar.gz >>> Unpacking source... >>> Unpacking noweb-src-2.9.tar.gz to /var/tmp/portage/noweb-2.9-r3/work * Applying noweb-2.9-security.patch... [ ok ] * Applying noweb-2.9-gentoo.diff... [ ok ] >>> Source unpacked. chmod +w Makefile notangle -R'script' Makefile.nw | sh > Makefile /bin/sh: line 1: notangle: command not found chmod -w Makefile make: *** No targets. Stop. noweb-2.9-r2 merges fine
from: http://www.eecs.harvard.edu/~nr/noweb/FAQ.html Problems Building Noweb Q. The build fails because it can't find notangle. What am I doing wrong? A. Your source files have the wrong timestamps. The noweb files are carefully distributed so that the C code is more recent than the literate source code. Retrieving that noweb distribution as a compressed tar file preserves these stamps. The CTAN sites will create a compressed tar file on the fly for any directory. Your best bet is to get the tar file, unpack it, and try again, because your abortive attempt will probably have stomped on a C file that you need. I have reports that the former CTAN site ftp.shsu.edu fouled the timestamps. Don't use the site! If you get bad timestamps, you can try `make touch' as soon as you unpack the distribution, which should touch all of the derived files. This trick won't work on NeXT systems, which have a strange idea of 'touch'.
This looks like an exact dupe of 24899. However, I dont believe that was marked correctly as a dupe, or that the resolution to solve the dupe'd problem was correct. I think the make touch solution is more correct in this instance.
hrmm, well it seems aliz's fix is probably more complete than 'make touch' even. have you sync'ed recently ? do you have a recent ebuild ? with find . -type f | xargs touch in it ? it works for me. another thing you could try is removing ${DISTFILES}/noweb-src-2.9.tar.gz and remerging, in case the timestamps in your archive are odd.
I just ran emerge sync, deleted the distfile, and -r3 still fails with the error that the person who reported this gave.
In the noweb-2.9-r3.ebuild file, comment out (or delete) the following line: find -type f | xargs touch That fixed it for me.
I just removed that line from the ebuild and it still fails to compile.
my build never executes this: chmod +w Makefile notangle -R'script' Makefile.nw | sh > Makefile /bin/sh: line 1: notangle: command not found chmod -w Makefile could someone please attach their full build log ? thanks.
Created attachment 20316 [details] emerge noweb | tee noweb.emerge.log After commenting out the touch command in the ebuild, I got this to compile on three different machines here.
Scott and Cletus, could you please try the following fix, and let me know how it goes, I need to get this tested before I put it into the stable profile. src_unpack() { [...] - find -type f | xargs touch + # make touch only touches the required files + # see bug #31785 <obz@gentoo.org> + make touch } so replace find . -type f | xargs touch with 'make touch'. Thanks, I need some feedback before I fix this.
Ok, I put the line in the ebuild and now I get the following error: gcc -ansi -pedantic -O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -c -o notangle.o notangle.c In file included from notangle.nw:30: modtrees.h:1: error: syntax error before "insert" modtrees.h:1: error: ISO C forbids data definition with no type or storage class modtrees.h:2: error: syntax error before "lookup" modtrees.h:2: error: ISO C forbids data definition with no type or storage class modtrees.h:3: warning: parameter names (without types) in function declaration notangle.nw: In function `emit_module_named': notangle.nw:38: error: `Module' undeclared (first use in this function) notangle.nw:38: error: (Each undeclared identifier is reported only once notangle.nw:38: error: for each function it appears in.) notangle.nw:38: error: syntax error before "root" notangle.nw:40: error: `root' undeclared (first use in this function) notangle.nw: In function `read_defs': notangle.nw:59: error: `Module' undeclared (first use in this function) notangle.nw:59: error: syntax error before "modptr" notangle.nw:61: error: `Location' undeclared (first use in this function) notangle.nw:61: error: syntax error before "loc" notangle.nw:102: error: `loc' undeclared (first use in this function) notangle.nw:70: error: `modptr' undeclared (first use in this function) make[1]: *** [notangle.o] Error 1 make[1]: Leaving directory `/tmp/portage/noweb-2.9-r3/work/src/c' make: *** [all] Error 2
Oops!!! I put that line in but didn't delete the other! It is now compiling and emerging just fine, thanks!
Committed, please emerge sync and emerge noweb.