Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31785 - noweb-2.9-r3 needs notangle in configure
Summary: noweb-2.9-r3 needs notangle in configure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Highest normal (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-22 17:59 UTC by CBke -Left- bye
Modified: 2003-11-28 19:45 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge noweb | tee noweb.emerge.log (noweb.emerge.log,14.10 KB, text/plain)
2003-11-05 18:59 UTC, Scott Taylor (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description CBke -Left- bye 2003-10-22 17:59:12 UTC
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
Comment 1 schwaahed 2003-10-23 06:51:47 UTC
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'. 


Comment 2 schwaahed 2003-10-23 06:53:07 UTC
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'. 
Comment 3 Mike Gardiner (RETIRED) gentoo-dev 2003-10-28 18:30:50 UTC
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.
Comment 4 Mike Gardiner (RETIRED) gentoo-dev 2003-10-28 20:39:12 UTC
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.

Comment 5 Andrew Sayman 2003-10-29 13:56:33 UTC
I just ran emerge sync, deleted the distfile, and -r3 still fails with the
error that the person who reported this gave.
Comment 6 Scott Taylor (RETIRED) gentoo-dev 2003-11-04 16:15:10 UTC
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.
Comment 7 Cletus Lichte 2003-11-05 17:46:46 UTC
I just removed that line from the ebuild and it still fails to compile.
Comment 8 Mike Gardiner (RETIRED) gentoo-dev 2003-11-05 18:37:54 UTC
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.
Comment 9 Scott Taylor (RETIRED) gentoo-dev 2003-11-05 18:59:17 UTC
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.
Comment 10 Mike Gardiner (RETIRED) gentoo-dev 2003-11-14 01:29:35 UTC
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.
Comment 11 Cletus Lichte 2003-11-19 19:00:52 UTC
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
Comment 12 Cletus Lichte 2003-11-19 19:02:59 UTC
Oops!!!  I put that line in but didn't delete the other!  It is now compiling and emerging just fine, thanks!
Comment 13 Mike Gardiner (RETIRED) gentoo-dev 2003-11-28 19:45:00 UTC
Committed, please emerge sync and emerge noweb.