Description
Qubax
2005-02-21 13:42:43 UTC
Looks like it should belong to the TeX like programs. Created attachment 51826 [details]
ebuild for asymptote 0.65
Preliminary ebuild for asymptote 0.65
Created attachment 54775 [details]
asymptote-0.71.ebuild
Version bump to 0.71. I have modified the previous ebuild making some changes:
* now it uses some virtual deps
* now the doc use-flag really permits to not make/install the docs
* added html doc
* added base doc
* moved examples to /usr/share/
* filtered -O3 compile flag
* added a postinst() note for some env variables
The category could be media-gfx.
Created attachment 56828 [details]
asymptote-0.75.ebuild
Version bump to 0.75.
Changes in the ebuild:
* removed double installation command
* asymptote.info is now installed in /usr/share/info (so it's gzipped)
* removed CFLAGS definition from configure.ac (otherwise that definition
overwrites user defined flags)
Created attachment 57954 [details]
asymptote-0.76.ebuild
Version bump to 0.76.
Changes to the ebuild:
* some cleanup
* removed dev-libs/boost dependency
Comment on attachment 51826 [details]
ebuild for asymptote 0.65
newer ebuild for 0.76 obsoletes this one.
Created attachment 59406 [details]
asymptote-0.78.ebuild
Version bump to 0.78.
Changes:
* added use flag 'boehm-gc' for Boehm garbage collector
* added info during patching
To use boehm-gc it's necessary to check that dev-libs/boehm-gc was compiled
with the use "c++" enabled. I don't know if there is a better way to do this
check instead of the method I have used in the ebuild :-)
have you ever tried built_with_use() ? (from eutils.eclass) Created attachment 59415 [details]
asymptote-0.78.ebuild
Mamoru, thanks for the tip :-)
Created attachment 59445 [details]
asymptote-0.78.ebuild
Moved the boehm-gc check into pkg_setup()
Created attachment 60021 [details]
Output from emerge --info for my system
For 0.78: I tested the basic functionality, LaTeX integration, and the
(rudimentary) GUI on my system. The installation encountered no problems and
everying is working fine. My system profile is attached. Thanks for making
this ebuild!
Created attachment 61596 [details]
asymptote-0.80.ebuild
Version bump to 0.80.
Changes:
* updated check for c++ support in boehm-gc (the latest version of boehm-gc
uses nocxx)
* updated dep on boehm-gc-6.5
Created attachment 63933 [details]
asymptote-0.83.ebuild
Version bump to 0.83
Changes:
* removed filtering of CFLAGS
* added contrib directory for asy-mode.el and asy.vim and added a note on these
files
just wanted to report: new version available: 0.87 may i ask, when/if this really nice program will make it into portage? Please fix the following and reopen: * autoconf needs to be a DEPEND. You should also use WANT_AUTOCONF to say which autoconf you need. * http://dev.gentoo.org/~ciaranm/docs/mw-faq/spacing.txt (src_compile, pkg_post*) * http://dev.gentoo.org/~ciaranm/docs/mw-faq/einstall.txt * http://dev.gentoo.org/~ciaranm/docs/mw-faq/docfiles.txt (LICENSE) You may wish to handle the vim and emacs syntax files properly too. Created attachment 68881 [details]
asymptote-0.87.ebuild
Updated to version 0.87.
Changes:
* removed LICENSE from documentation
* substituted spaces with tabs
* added autoconf as DEPEND and WANT_AUTOCONF
* added a note on using einstall
* fixed seding (latexdir, asymptote.ps)
You forgot to reopen... (In reply to comment #17) > You forgot to reopen... I'm not the owner :-) Created attachment 71655 [details]
asymptote-0.92.ebuild
Updated to 0.92.
Created attachment 73689 [details]
asymptote-0.95.ebuild
Updated to the version 0.95: some fixes and cleanup with the installation of
the documentation.
Created attachment 84715 [details]
asymptote-1.03.ebuild
Version bump
The hack used to fix latexdir did not work for me (it applied to a branch in configure that was not executed at all); I supplemented it by another hack which works in the correct branch
The new ebuild installs the emacs mode and the vim syntax file properly, if asked by use flags
Created attachment 84716 [details]
files/64asy-gentoo.el
This file goes with asymptote-1.03.ebuild
asymptote-1.03 successfully emerged on x86 (In reply to comment #23) > asymptote-1.03 successfully emerged on x86 Thanks for the fix but there is an error in your ebuild (it is missing a $ in front of datadir). I have removed my patches to latexdir and contribdir. I have also updated the dependencies with boehm-gc-6.7 as the author works with that version. Created attachment 84720 [details]
asymptote-1.03.ebuild
asymptote-1.03.ebuild works nicely in my i686 box. However, when typing 'help' inside asy, a wrong '/usr/share/doc/asymptote/asymptote.pdf' file launchs instead of '/usr/share/doc/asymptote-1.03/asymptote.pdf'. The problem looks like ASYMPTOTE_DOCDIR being set to /usr/share/doc/asymptote in config.h when running 'configure', but actual doc files are moved afterwards. Sorry for not sending a patch, but I don't fully understand the ebuild! This is not a tex package... Just because it uses latex to make labels and stuff doesn't make it a tex package. It is foremost a graphics package. I agree that this should be added to portage but not with text-markup as primary maintainer, again this is a graphics package. Well, it's closely related to tex and should be seen as an alternative to metapost, thus the text-markup Cc. I had planned to add it some time ago but there was a blocking issue with the stymied problem, which is now solved in the latest tetex. Created attachment 85068 [details]
asymptote-1.03.ebuild
Here is a fix for the problem with the documentation. Thanks Marc!
(In reply to comment #28) > Well, it's closely related to tex and should be seen as an alternative to > metapost, thus the text-markup Cc. Okay then :) > I had planned to add it some time ago but > there was a blocking issue with the stymied problem, which is now solved in > the latest tetex. Then I think text-markup should be second herd or something like that... Something along the lines: "Don't bother us unless it's tex related"? Yes, that was the idea. I had contacted graphics herd back then (a couple months ago) and they were ok with it. I've just renamed the latest asymptote-1.03.ebuild to asymptote-1.04.ebuild, and emerged asymptote-1.04. Everything seems fine, help works (thanks for the latest correction). Created attachment 85939 [details]
asymptote-1.04.ebuild
Updated to version 1.04:
* added dep (GNU Scientific Library)
* support for DESTDIR during `make install`
* better support to doc installation
The support to GLS is partial (on my system with gcc 3.4.5 the compilation fails) so install with USE="-gsl" emerge asymptote The error is the following: i686-pc-linux-gnu-g++ -Wall -ansi -DHAVE_CONFIG_H -DUSEGC -O2 -march=athlon-tbird -pipe -I . -I /usr/include/gc -o env.o -c env.cc In file included from runtime.in:81: fftw++.h: In function `Complex* FFTWComplex(size_t)': fftw++.h:51: error: `fftw_malloc' was not declared in this scope fftw++.h:51: warning: unused variable 'fftw_malloc' fftw++.h: In function `double* FFTWdouble(size_t)': fftw++.h:63: error: `fftw_malloc' was not declared in this scope fftw++.h:63: warning: unused variable 'fftw_malloc' make: *** [runtime.o] Error 1 make: *** Waiting for unfinished jobs.... I have discovered the compilation problem with +gsl USE flag enabled. In the next hours there will be another release of asymptote which solves that problem and a locale problem. So it's better to avoid the upgrade to the version 1.04 :-) (In reply to comment #35) > I have discovered the compilation problem with +gsl USE flag enabled. In the > next hours there will be another release of asymptote which solves that problem > and a locale problem. > > So it's better to avoid the upgrade to the version 1.04 :-) > Uhh, 1.04 with you ebuild compiles for me. And i not touched configure.ac. Is the magic solved? Because from the aymptote forum you need to mod configure.ac. But my asy is linked with gsl: $ ldd /usr/bin/asy |grep gsl libgsl.so.0 => /usr/lib/libgsl.so.0 (0x00002b0e44051000) libgslcblas.so.0 => /usr/lib/libgslcblas.so.0 (0x00002b0e442fd000) and i don't changed anything. I emerged with gsl useflag. Using gsl-1.8. Created attachment 86774 [details]
asymptote-1.04.ebuild
Fixed the problem with GSL and backported the fix with the locale support (which is fixed in the future 1.05 version)
Created attachment 86775 [details, diff]
pattern.patch
Created attachment 86777 [details, diff]
string.patch
Created attachment 87138 [details]
asymptote-1.05.ebuild
Update to 1.05 version
The latest ebuild builds asymptote-1.06 successfully The latest ebuild builds asymptote-1.07 successfully, but doesn't install the info file. Created attachment 89749 [details]
asymptote-1.07.ebuild
In all releases there are usually some changes in configure.ac/Makefile so please verify if the ebuild works 100% :-)
Updated to version 1.07
asymptote links against various things it doesn't depend on which causes problems for binary packages (which is how I noticed it). I haven't looked at it very carefully but I specifically noticed dev-libs/libsigsegv, see the log file: checking for stackoverflow_install_handler in -lsigsegv... yes whereas on my laptop which for some reason doesn't have libsigsegv: checking for stackoverflow_install_handler in -lsigsegv... no I guess we should either (a) add a dep on dev-libs/libsigsegv or (b) poke at the configure script to allow this to be controlled via a useflag. I think (a) would be easier. Created attachment 89944 [details]
asymptote-1.09.ebuild
Updated to version 1.09.
Fixed the dep on dev-libs/libsigsegv, thanks Colin!
1.09 dies with the doc use flag (works with -doc): >>> Source compiled. >>> Test phase [not enabled]: media-gfx/asymptote-1.09 >>> Install asymptote-1.09 into /var/tmp/portage/asymptote-1.09/image/ category media-gfx /bin/install -c -d /var/tmp/portage/asymptote-1.09/image//usr/bin /var/tmp/portage/asymptote-1.09/image//usr/share/asymptote /var/tmp/portage/asymptote-1.09/image//usr/share/asymptote/examples /var/tmp/portage/asymptote-1.09/image//usr/share/asymptote/examples/animations /bin/install -c -d /var/tmp/portage/asymptote-1.09/image//usr/share/texmf/tex/latex/asymptote /bin/install -c -p -m 755 asy xasy /var/tmp/portage/asymptote-1.09/image//usr/bin /bin/install -c -p -m 644 base/*.asy base/{asy-mode.el,asy-init.el,asy.vim,asymptote.py} /var/tmp/portage/asymptote-1.09/image//usr/share/asymptote /bin/install -c -p -m 644 examples/*.asy examples/piicon.eps \ doc/*.asy doc/*.csv doc/*.dat doc/latexusage.tex /var/tmp/portage/asymptote-1.09/image//usr/share/asymptote/examples /bin/install -c -p -m 644 examples/animations/*.asy /var/tmp/portage/asymptote-1.09/image//usr/share/asymptote/examples/animations /bin/install -c -p -m 644 doc/{asymptote.sty,asycolors.sty} /var/tmp/portage/asymptote-1.09/image//usr/share/texmf/tex/latex/asymptote if test -z "/var/tmp/portage/asymptote-1.09/image/"; then \ :; \ fi cd doc; make doc make[1]: Entering directory `/var/tmp/portage/asymptote-1.09/work/asymptote-1.09/doc' makeinfo asymptote asymptote.texi:647: warning: @image file `diagonal.txt' (for text) unreadable: No such file or directory. asymptote.texi:688: warning: @image file `square.txt' (for text) unreadable: No such file or directory. asymptote.texi:712: warning: @image file `bigsquare.txt' (for text) unreadable: No such file or directory. asymptote.texi:727: warning: @image file `labelsquare.txt' (for text) unreadable: No such file or directory. asymptote.texi:1226: warning: @image file `bezier.txt' (for text) unreadable: No such file or directory. asymptote.texi:1234: warning: @image file `quartercircle.txt' (for text) unreadable: No such file or directory. asymptote.texi:1287: warning: @image file `dots.txt' (for text) unreadable: No such file or directory. asymptote.texi:1290: warning: @image file `colons.txt' (for text) unreadable: No such file or directory. asymptote.texi:1298: warning: @image file `join.txt' (for text) unreadable: No such file or directory. asymptote.texi:1335: warning: @image file `superpath.txt' (for text) unreadable: No such file or directory. asymptote.texi:1351: warning: @image file `cube.txt' (for text) unreadable: No such file or directory. asymptote.texi:1611: warning: @image file `colors.txt' (for text) unreadable: No such file or directory. asymptote.texi:1665: warning: @image file `linetype.txt' (for text) unreadable: No such file or directory. asymptote.texi:1853: warning: @image file `tile.txt' (for text) unreadable: No such file or directory. asymptote.texi:1861: warning: @image file `hatch.txt' (for text) unreadable: No such file or directory. asymptote.texi:1880: warning: @image file `makepen.txt' (for text) unreadable: No such file or directory. asymptote.texi:2244: warning: @image file `subpictures.txt' (for text) unreadable: No such file or directory. asymptote.texi:4388: warning: @image file `advection.txt' (for text) unreadable: No such file or directory. asymptote.texi:4437: warning: @image file `latexusage.txt' (for text) unreadable: No such file or directory. asymptote.texi:5137: warning: @image file `exp.txt' (for text) unreadable: No such file or directory. asymptote.texi:5150: warning: @image file `lineargraph0.txt' (for text) unreadable: No such file or directory. asymptote.texi:5160: warning: @image file `datagraph.txt' (for text) unreadable: No such file or directory. asymptote.texi:5164: warning: @image file `monthaxis.txt' (for text) unreadable: No such file or directory. asymptote.texi:5211: warning: @image file `errorbars.txt' (for text) unreadable: No such file or directory. asymptote.texi:5237: warning: @image file `parametricgraph.txt' (for text) unreadable: No such file or directory. asymptote.texi:5282: warning: @image file `loggraph.txt' (for text) unreadable: No such file or directory. asymptote.texi:5287: warning: @image file `loggrid.txt' (for text) unreadable: No such file or directory. asymptote.texi:5291: warning: @image file `logticks.txt' (for text) unreadable: No such file or directory. asymptote.texi:5296: warning: @image file `log2graph.txt' (for text) unreadable: No such file or directory. asymptote.texi:5302: warning: @image file `brokenaxis.txt' (for text) unreadable: No such file or directory. asymptote.texi:5316: warning: @image file `Bode.txt' (for text) unreadable: No such file or directory. asymptote.texi:5320: warning: @image file `secondaryaxis.txt' (for text) unreadable: No such file or directory. asymptote.texi:5325: warning: @image file `histogram.txt' (for text) unreadable: No such file or directory. asymptote.texi:5331: warning: @image file `leastsquares.txt' (for text) unreadable: No such file or directory. asymptote.texi:5336: warning: @image file `generalaxis.txt' (for text) unreadable: No such file or directory. asymptote.texi:5351: warning: @image file `flow.txt' (for text) unreadable: No such file or directory. asymptote.texi:5359: warning: @image file `diatom.txt' (for text) unreadable: No such file or directory. asymptote.texi:5360: warning: @image file `westnile.txt' (for text) unreadable: No such file or directory. asymptote.texi:5458: warning: @image file `image.txt' (for text) unreadable: No such file or directory. asymptote.texi:5464: warning: @image file `logimage.txt' (for text) unreadable: No such file or directory. asymptote.texi:5489: warning: @image file `unitcircle3.txt' (for text) unreadable: No such file or directory. asymptote.texi:5493: warning: @image file `saddle.txt' (for text) unreadable: No such file or directory. asymptote.texi:5663: warning: @image file `planes.txt' (for text) unreadable: No such file or directory. asymptote.texi:5667: warning: @image file `join3.txt' (for text) unreadable: No such file or directory. asymptote.texi:5774: warning: @image file `helix.txt' (for text) unreadable: No such file or directory. asymptote.texi:5780: warning: @image file `axis3.txt' (for text) unreadable: No such file or directory. asymptote.texi:5785: warning: @image file `generalaxis3.txt' (for text) unreadable: No such file or directory. asymptote.texi:5809: warning: @image file `surface.txt' (for text) unreadable: No such file or directory. asymptote.texi:5820: warning: @image file `cylinderskeleton.txt' (for text) unreadable: No such file or directory. asymptote.texi:5952: warning: @image file `flowchartdemo.txt' (for text) unreadable: No such file or directory. asymptote.texi:6001: warning: @image file `contour1.txt' (for text) unreadable: No such file or directory. asymptote.texi:6007: warning: @image file `contour2.txt' (for text) unreadable: No such file or directory. asymptote.texi:6012: warning: @image file `imagecontour.txt' (for text) unreadable: No such file or directory. asymptote.texi:6023: warning: @image file `contour3.txt' (for text) unreadable: No such file or directory. asymptote.texi:6033: warning: @image file `triangulate.txt' (for text) unreadable: No such file or directory. ../asy -f png Bode.asy make[1]: *** [Bode.png] Error 1 make[1]: Leaving directory `/var/tmp/portage/asymptote-1.09/work/asymptote-1.09/doc' make: *** [doc] Error 2 !!! ERROR: media-gfx/asymptote-1.09 failed. Call stack: ebuild.sh, line 1540: Called dyn_install ebuild.sh, line 1014: Called src_install asymptote-1.09.ebuild, line 106: Called die !!! make install failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! This ebuild is from an overlay: '/usr/local/portage' Created attachment 89956 [details, diff]
dep.diff
This patch to the 1.09 ebuild moves many dependencies from DEPEND to RDEPEND (they are needed for run-time dependencies, not just at build time).
Created attachment 90003 [details]
asymptote-1.09-r1.ebuild
Updated the deps.
Colin, I have built asymptote with USE="boehm-gc doc fftw gsl vim -emacs" without problems. The warnings of the kind asymptote.texi:647: warning: @image file `diagonal.txt' (for text) unreadable: No such file or directory. you're seeing is normal behaviour (the .info files hasn't images). When the compilation breaks enter in /var/tmp/portage/asymptote-1.09/work/asymptote-1.09/doc and patch the Makefile with sed -i -e 's/asy -f/asy -v -f/' Makefile and then run make to continue. ../asy -f png Bode.asy make[1]: *** [Bode.png] Error 1 This doesn't look like an error with the ebuild or the makefiles. Versions >= 1.07 of asymptote will always exit with error 1 in my system at startup no matter whatever flags I put so there's no chance to know what's wrong without some gdb debugging. Colin, does your 1.09 -doc really work or it just compiles and fails at runtime? Comment #50 is right: my asy doesn't seem to do anything, it just returns right away when I type asy at the command prompt. "asy -v" also doesn't show anything either. Use flags: USE="boehm-gc emacs fftw gsl -doc -vim" gdb: Starting program: /usr/bin/asy (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread -1214526608 (LWP 15662)] Program exited with code 01. (gdb) I know thats pretty useless on a stripped binary. I may have time tomorrow to recompile without stripping and try again. Also, if I have time, I'll go look upstream. Colin, up to now I have found only a problem running asy in interactive mode: $ asy Segmentation fault Please report this programming error to http://sourceforge.net/projects/asymptote Aborted This happens when gv is not installed, so to avoid the segfault provide a PS viewer as $ ASYMPTOTE_PSVIEWER=kghostview asy I do have gv installed and I also tried "ASYMPTOTE_PSVIEWER=gv asy" and "ASYMPTOTE_PSVIEWER=evince asy". Both exit, like asy on its own, with exit code 1. I'm rebuilding with nostrip, maybe that will tell me something... re: Comment #49: I tried the -v patch to the doc makefile but it doesn't make any difference (this makes sense because running "asy -vvv" from the command line still just exits with code 1. I tried to make an unstripped binary but because it doesn't segfault, I don't know how to generate a backtrace... Not sure what else to try... Try to launch asy with the tool strace (dev-util/strace) $ strace asy Created attachment 90295 [details]
asy.strace
Here's an strace of asy, not sure what it means but I do wonder about all that GNUStep stuff...
Sorry, I can't see any useful information from strace :-( Try asymptote 1.10 as suggested on asymptote forums, just rename the ebuild. Asymptote 1.10 solves my segfault problem when started in interactive mode. 1.10 does not seem to fix the problem, it still exits with exit code 1. In main.cc there is a piece of code in the function setsignal() executed only when libsigsegv is installed. In that point there is some error checking and the program can exit with error code 1. Try to unmerge libsigsegv and then recompile asymptote. I just removed the exit(1) calls from setsignal in main.cc (in subversion and upcoming 1.11 release) to work around the broken libsigsegv-2.3 library. Better yet, simply upgrade to the latest version of libsegsigv: ftp://ftp.gnu.org/pub/gnu/libsigsegv/libsigsegv-2.4.tar.gz void setsignal(RETSIGTYPE (*handler)(int)) { #ifdef HAVE_LIBSIGSEGV char mystack[16384]; stackoverflow_install_handler(&stackoverflow_handler, mystack,sizeof (mystack)); sigsegv_install_handler(&sigsegv_handler); #endif signal(SIGBUS,handler); signal(SIGFPE,handler); } I locally bumped libsigsegv to 2.4 and now asymptote 1.10 works fine. Thanks for the help. I filed bug #138518 to get libsigsegv 2.4 in tree, but bugzilla won't let me add it as a dependency for this bug. Asymptote 1.11 fixes the bug with libsigsegv. The ebuild from 1.09-r1 works for me now (renamed). Should the dependency with bug #138518 be removed? Ok I agree it now doesn't depend on 138518 but to have a fully functional asymptote, libsigsegv 2.4 seems to be required, see: http://sourceforge.net/forum/forum.php?thread_id=1525503&forum_id=409349 I'll drop the block from my other bug... Created attachment 101332 [details] asymptote-1.18.ebuild I've used the previous version of this ebuild to emerge asymptote-1.18, and got a sandbox violation because, while building docs, LaTeX has called metafont to create some fonts which were not yet used in my computer, and metafont wanted to write them to /var/cache/fonts. This is, perhaps, 111-th time I have this problem. It would be very good to exclude all directories to which metafont writes something from the sandbox control globally, because the number of packages using LaTeX for docs is quite large. But since this is not done, here is a fixed ebuild. I've uploaded it to the Gentoo science overlay (http://gentooscience.org/), for wider and easier testing. But I do hope that it will be in portage before too many years :-) Compilation on ~amd64 fails with the error messages: [...] /bin/install -c -p -m 644 {asymptote.pdf,CAD.pdf} /small/tmp/portage/media-gfx/asymptote-1.18/image//usr/share/doc/asymptote-1.18 /bin/install: cannot stat `asymptote.pdf': No such file or directory make[1]: *** [install] Error 1 make[1]: Leaving directory `/small/tmp/portage/media-gfx/asymptote-1.18/work/asymptote-1.18/doc' make: *** [install-doc] Error 2 Running make asymptote.pdf on the doc subdir gives the error message: # make asymptote.pdf [...] ../asy -dir ../base -f pdf imagecontour.asy ../base/plain_shipout.asy: 81.10: runtime: Cannot fork process make: *** [imagecontour.pdf] Error 1 Any clue? Don't know. Here on x86 works OK, asymptote.pdf is produced (and installed). I just installed a version bump of the ebuild (1.20 is the latest stable version in sourceforge) and ran into two errors: 1) When boehm-gc is disabled I can reproduce the bug from comment #66: ---[snip]--- ../asy -dir ../base -f pdf imagecontour.asy ../base/plain_shipout.asy: 81.10: runtime: Cannot fork process ---[snip]--- 2) When the doc flag is disabled, the process dies towards the end with: ---[snip]--- /bin/install -c -p -m 644 asymptote.pdf CAD.pdf PDFAnim_temp_Guide.pdf /var/tmp/portage/asymptote-1.20/image//usr/share/doc/asymptote-1.20 /bin/install: cannot stat `asymptote.pdf': No such file or directory make[1]: *** [install] Error 1 make[1]: Leaving directory `/var/tmp/portage/asymptote-1.20/work/asymptote-1.20/doc' make: *** [install-doc] Error 2 !!! ERROR: sci-visualization/asymptote-1.20 failed. Call stack: ebuild.sh, line 1546: Called dyn_install ebuild.sh, line 1020: Called src_install asymptote-1.20.ebuild, line 108: Called die ---[snip]--- Apart from that everything seems fine. (In reply to comment #68) > 1) When boehm-gc is disabled I can reproduce the bug from comment #66: > > ---[snip]--- > ../asy -dir ../base -f pdf imagecontour.asy > ../base/plain_shipout.asy: 81.10: runtime: Cannot fork process > ---[snip]--- It seems to me that, without boehm-gc, asymptote simply won't work correctly and this problem shows that. Is there something else I didn't get to that can go against pushing boehm-gc as hard dependency? Also, there are some troubles with fftw and gsl libraries: I have both installed on my system but I disabled them with the useflags. Nonetheless, asymptote was compiled against that. I took my time and fixed this bad behaviour in configure.ac; if you are interested, I will post that patch and a (maybe working)version of the ebuild for asymptote-1.20. Let me know. Yes, please post your patches and current ebuild, I am thinking about taking over asymptote in order to finally get it into gentoo. Created attachment 108969 [details, diff]
configure.ac patch for enabling of --with-{fftw,gsl}
This file patches configure.ac and adds the --with-fftw and --with-gsl flags (and their --without counterpart).
Created attachment 108971 [details, diff]
Various patches for Makefiles
This file patches Makefile.in and doc/Makefile for errors and a more linear install phase.
Created attachment 108973 [details]
asymptote-1.20.ebuild
Here there is the ebuild which I used for compile 1.20.
I also mention that fftw seems not so optional: with the configure.ac patch which I have just posted, USE="-fftw" emerge asymptote will fail.
Instead, USE="-doc" emerge asymptote will install only the manpages and the classical distribution files (BUGS, README, LICENSE...).
HTH, please feedback.
Emiliano: maybe you should consider submitting your patches upstream? They are very prompt at making user requested changes. (In reply to comment #74) > Emiliano: maybe you should consider submitting your patches upstream? That's a good idea, but first I prefer that these patches can be tested a little: they worked for me but I am not so sure that they will do on any other system. Also, what 'makefile' patch does is something subjective: Gentoo users which don't use the flag 'doc' don't want more material installed, whereas Asymptote's author probably thinks that the FAQ or the info files are *required* for a minimal installation. I have checked this in now. It should appear on the mirrors soon. There may still be some glitches, please test it out and report anything that still remains in new bugs. files/64asy-gentoo.el is missing in the tree, emerge fails The binary xasy in asymptote-1.20 needs the tkinter module in python, and thus fails if python wasn't compiled with the "tk" use flag. Can this be added to the ebuild ? Created attachment 111237 [details, diff] Patch for warning for USE="-tk" dev-lang/python Here's a patch for fixing problem stated in comment #78. HTH. For me it does not compile: i686-pc-linux-gnu-g++ -Wall -ansi -DHAVE_CONFIG_H -O2 -march=prescott -mfpmath=sse -pipe -I . -o fileio.o -c fileio.cc i686-pc-linux-gnu-g++ -Wall -ansi -DHAVE_CONFIG_H -O2 -march=prescott -mfpmath=sse -pipe -I . -o builtin.o -c builtin.cc /usr/include/sys/types.h:100: error: multiple types in one declaration /usr/include/sys/types.h:100: error: declaration does not declare anything make: *** [builtin.o] Error 1 !!! ERROR: media-gfx/asymptote-1.20 failed. Call stack: ebuild.sh, line 1614: Called dyn_compile ebuild.sh, line 971: Called qa_call 'src_compile' environment, line 3087: Called src_compile asymptote-1.20.ebuild, line 76: Called die # emerge --info: Portage 2.1.2-r12 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.5-r0, 2.6.20-gentoo i686) ================================================================= System uname: 2.6.20-gentoo i686 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz Gentoo Base System version 1.12.9 Timestamp of tree: Thu, 01 Mar 2007 02:20:01 +0000 dev-java/java-config: 1.3.7, 2.0.31-r3 dev-lang/python: 2.4.4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.23b sys-libs/glibc: 2.5 virtual/os-headers: 2.6.20-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=prescott -mfpmath=sse -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/www/localhost/htdocs" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=prescott -mfpmath=sse -pipe" DISTDIR="/mnt/D/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo" LANG="de_DE@euro" LC_ALL="de_DE@euro" LDFLAGS="-Wl,-O1" LINGUAS="de en" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-* --prune-empty-dirs" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/vmware /usr/portage/local/layman/sunrise /usr/portage/local/layman/lila-theme" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aac acpi alsa arts bash-completion berkdb bitmap-fonts bzip2 cdinstall cdparanoia cdr cli cracklib crypt cups dbus doc dri dts dvd dvdr dvdread encode exif expat fbcon ffmpeg fuse gdbm gif glut gmp gphoto2 gpm hal iconv idn imagemagick ipv6 isdnlog java jikes jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility libg++ lm_sensors mad matroska midi mmx mng mp3 musepack mysql ncurses nls nptl nptlonly nvidia ogg opengl pam pcre pdf perl pertty png ppds pppd python qt3 qt4 readline reflection samba sasl scanner sdl session slang source spl sqlite sqlite3 sse sse2 ssl svga tcpd theora tiff truetype truetype-fonts type1-fonts usb vcd vim-syntax vorbis win32codecs x86 xine xml xorg xprint xv xvid xvmc zlib" ALSA_CARDS="emu10k1 hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="v4l nvidia nv" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK (In reply to comment #80) > For me it does not compile: > /usr/include/sys/types.h:100: error: multiple types in one declaration > /usr/include/sys/types.h:100: error: declaration does not declare anything > make: *** [builtin.o] Error 1 It is strange. /usr/include/sys/types.h belongs to glibc-2.5. Could you please re-emerge the packages below and see if asymptote does compile? # emerge -av1 linux-headers # emerge -av1 glibc # emerge -av1 asymptote HTH (In reply to comment #81) > It is strange. /usr/include/sys/types.h belongs to glibc-2.5. Yes, I know. I recompiled them but the errors are the same. At the given line in the header file stands: typedef __pid_t pid_t; I am in discussion with the asymptote people for the problem with types.h and pid_t, it seems to be caused by some recent upgrade, but I could not find out which. The discussion is here: http://sourceforge.net/forum/forum.php?thread_id=1683277&forum_id=409349 However I have a workaround that I will put into the ebuild to avoid this for now. I have now added the missing file, added the check for 'tk' in python, added a workaround for the problems with pid_t and also fixed the vim-use-flag, see Bug 167405. Please test and report fresh Bugs for anything that is still not working. With the workaround also asymptote 1.21 compiles without problems for me. |