On 6 Jun., 12:27, Willem Jan Palenstijn <w...@usecode.org> wrote: > On Sun, Jun 06, 2010 at 09:14:09AM +0100, Dr. David Kirkby wrote: > > I've tried twice to build Sage on a machine in which 'flex' was not in > > the path. It has both times failed with: > > > make install in Singular > > make[4]: Entering directory > > `/export/home/drkirkby/32/sage-4.4.3/spkg/build/singular-3-1-0-4-20100214/src/Singular' > > sh flexer.sh -I -Pyylp -t libparse.l >libparse.cc.lmp > > flexer.sh: flex: not found > > flexer.sh: test: argument expected > > make[4]: *** [libparse.cc] Error 1 > > > So is flex a requirement to build Sage? If it is, then I'll add to the > > 'prereq' script a test for flex. If, which I doubt, it is only needed on > > Solaris, then I'll make the test specific to Solaris. > > The way this usually works is that packages are shipped with the output of > flex, so that flex doesn't have to be run again if the user doesn't have it.
This is a more general problem ([f]lex and yacc/bison are just examples; the auto-tools are another one). Anyone who includes/updates an spkg should make sure that no "developer tools" are required to perform a conventional "user" build/ install, i.e.: - the pregenerated files are included in the source tarball, - file modification times do not cause unintended dependencies/ rebuild of provided files. Unfortunately the sections on spkgs in the Developer's Guide have been split into creation of new and update/patching of existing spkgs ("Producing New Sage Packages" [2], "Patching a Sage Package" [3]); I'm not sure if everybody will read the introductory "Disseminating Code for Sage" [1]. Perhaps a hint in potentially affected spkgs' SPKG.txt wouldn't be bad, too. (The file permissions/ownership issue could also be mentioned in these sections.) -Leif [1] http://www.sagemath.org/doc/developer/disseminating_code.html#disseminating-code-for-sage [2] http://www.sagemath.org/doc/developer/producing_spkgs.html#producing-new-sage-packages [3] http://www.sagemath.org/doc/developer/patching_spkgs.html#patching-a-sage-package -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org