Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82871 - new package: asymptote - a script based vector graphics language
Summary: new package: asymptote - a script based vector graphics language
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
URL: http://asymptote.sourceforge.net
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2005-02-21 13:42 UTC by Qubax
Modified: 2007-03-02 14:15 UTC (History)
15 users (show)

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


Attachments
ebuild for asymptote 0.65 (asymptote-0.65.ebuild,1.39 KB, text/plain)
2005-02-21 16:51 UTC, Sebastian Blatt
Details
asymptote-0.71.ebuild (asymptote-0.71.ebuild,3.01 KB, text/plain)
2005-03-29 09:29 UTC, Fabio Rossi
Details
asymptote-0.75.ebuild (asymptote-0.75.ebuild,3.10 KB, text/plain)
2005-04-21 06:32 UTC, Fabio Rossi
Details
asymptote-0.76.ebuild (asymptote-0.76.ebuild,3.00 KB, text/plain)
2005-05-03 12:49 UTC, Fabio Rossi
Details
asymptote-0.78.ebuild (asymptote-0.78.ebuild,3.60 KB, text/plain)
2005-05-20 13:23 UTC, Fabio Rossi
Details
asymptote-0.78.ebuild (asymptote-0.78.ebuild,3.50 KB, text/plain)
2005-05-20 15:13 UTC, Fabio Rossi
Details
asymptote-0.78.ebuild (asymptote-0.78.ebuild,3.51 KB, text/plain)
2005-05-21 02:55 UTC, Fabio Rossi
Details
Output from emerge --info for my system (sysinfo,2.15 KB, text/plain)
2005-05-28 11:17 UTC, Craig Finch
Details
asymptote-0.80.ebuild (asymptote-0.80.ebuild,3.52 KB, text/plain)
2005-06-20 14:32 UTC, Fabio Rossi
Details
asymptote-0.83.ebuild (asymptote-0.83.ebuild,3.90 KB, text/plain)
2005-07-20 15:57 UTC, Fabio Rossi
Details
asymptote-0.87.ebuild (asymptote-0.87.ebuild,3.76 KB, text/plain)
2005-09-20 13:32 UTC, Fabio Rossi
Details
asymptote-0.92.ebuild (asymptote-0.92.ebuild,3.86 KB, text/plain)
2005-10-28 15:39 UTC, Fabio Rossi
Details
asymptote-0.95.ebuild (asymptote-0.95.ebuild,3.36 KB, text/plain)
2005-11-27 13:13 UTC, Fabio Rossi
Details
asymptote-1.03.ebuild (asymptote-1.03.ebuild,3.73 KB, text/plain)
2006-04-15 07:22 UTC, Andrey Grozin
Details
files/64asy-gentoo.el (64asy-gentoo.el,168 bytes, text/plain)
2006-04-15 07:24 UTC, Andrey Grozin
Details
asymptote-1.03.ebuild (asymptote-1.03.ebuild,3.17 KB, text/plain)
2006-04-15 09:16 UTC, Fabio Rossi
Details
asymptote-1.03.ebuild (asymptote-1.03.ebuild,3.22 KB, text/plain)
2006-04-20 14:27 UTC, Fabio Rossi
Details
asymptote-1.04.ebuild (asymptote-1.04.ebuild,3.75 KB, text/plain)
2006-05-01 08:54 UTC, Fabio Rossi
Details
asymptote-1.04.ebuild (asymptote-1.04.ebuild,3.83 KB, text/plain)
2006-05-14 14:36 UTC, Fabio Rossi
Details
pattern.patch (pattern.patch,897 bytes, patch)
2006-05-14 14:37 UTC, Fabio Rossi
Details | Diff
string.patch (string.patch,364 bytes, patch)
2006-05-14 14:37 UTC, Fabio Rossi
Details | Diff
asymptote-1.05.ebuild (asymptote-1.05.ebuild,3.71 KB, text/plain)
2006-05-20 11:29 UTC, Fabio Rossi
Details
asymptote-1.07.ebuild (asymptote-1.07.ebuild,3.64 KB, text/plain)
2006-06-21 12:52 UTC, Fabio Rossi
Details
asymptote-1.09.ebuild (asymptote-1.09.ebuild,3.61 KB, text/plain)
2006-06-23 12:37 UTC, Fabio Rossi
Details
dep.diff (dep.diff,949 bytes, patch)
2006-06-23 15:32 UTC, Colin Macdonald
Details | Diff
asymptote-1.09-r1.ebuild (asymptote-1.09.ebuild,3.61 KB, text/plain)
2006-06-24 05:35 UTC, Fabio Rossi
Details
asy.strace (asy.strace,33.73 KB, text/plain)
2006-06-27 10:57 UTC, Colin Macdonald
Details
asymptote-1.18.ebuild (asymptote-1.18.ebuild,3.74 KB, text/plain)
2006-11-06 05:45 UTC, Andrey Grozin
Details
configure.ac patch for enabling of --with-{fftw,gsl} (asymptote-1.20-configure-ac.patch,1.43 KB, patch)
2007-02-02 21:42 UTC, Emiliano Vavassori
Details | Diff
Various patches for Makefiles (asymptote-1.20-makefile.patch,1.91 KB, patch)
2007-02-02 21:44 UTC, Emiliano Vavassori
Details | Diff
asymptote-1.20.ebuild (asymptote-1.20.ebuild,2.67 KB, text/plain)
2007-02-02 21:47 UTC, Emiliano Vavassori
Details
Patch for warning for USE="-tk" dev-lang/python (asymptote-python-tk.patch,405 bytes, patch)
2007-02-25 22:02 UTC, Emiliano Vavassori
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Qubax 2005-02-21 13:42:43 UTC
homepage: asymptote.sourceforge.net

from the homepage:

Asymptote is a powerful script-based vector graphics language that provides a natural coordinate-based framework for technical drawing. Labels and equations are typeset with LaTeX, for high-quality PostScript output. 

A major advantage of Asymptote over other graphics packages is that it is a programming language, as opposed to just a graphics program: it can therefore exploit the best features of script (command-driven) and graphical user interface (GUI) methods.

Features of Asymptote:

inspired by MetaPost, with much cleaner, powerful C++-like programming syntax and numerics;

mathematically oriented (e.g. rotation of vectors by complex multiplication);

LaTeX typesetting of labels (important for document consistency);

compiles figures into pseudo-machine code for speed without sacrificing portability;

uses simplex method and deferred drawing to solve overall size constraint issues between fixed-sized objects (labels and arrowheads) and objects that should scale with figure size;

high-level graphics commands are implemented in the Asymptote language itself, allowing them to be easily tailored to specific applications;

designed to become the de-facto standard for typesetting mathematical figures, just as TeX/LaTeX has become the standard for typesetting equations.

----

i tried out, several times, to write ebuilds, but in the end, the result was completly different to the ebuild that i started with. i think that someone who knows his job fits better for doing this from the beginning, then looking for someone afterwards to correct my errors.


many thanks, if you could make an ebuild for that piece of software
Comment 1 Luca Barbato gentoo-dev 2005-02-21 14:15:22 UTC
Looks like it should belong to the TeX like programs.
Comment 2 Sebastian Blatt 2005-02-21 16:51:39 UTC
Created attachment 51826 [details]
ebuild for asymptote 0.65

Preliminary ebuild for asymptote 0.65
Comment 3 Fabio Rossi 2005-03-29 09:29:52 UTC
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.
Comment 4 Fabio Rossi 2005-04-21 06:32:38 UTC
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)
Comment 5 Fabio Rossi 2005-05-03 12:49:49 UTC
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 6 Dominik Stadler (RETIRED) gentoo-dev 2005-05-12 13:32:20 UTC
Comment on attachment 51826 [details]
ebuild for asymptote 0.65

newer ebuild for 0.76 obsoletes this one.
Comment 7 Fabio Rossi 2005-05-20 13:23:12 UTC
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 :-)
Comment 8 Mamoru KOMACHI (RETIRED) gentoo-dev 2005-05-20 13:42:43 UTC
have you ever tried built_with_use() ? (from eutils.eclass)
Comment 9 Fabio Rossi 2005-05-20 15:13:27 UTC
Created attachment 59415 [details]
asymptote-0.78.ebuild

Mamoru, thanks for the tip :-)
Comment 10 Fabio Rossi 2005-05-21 02:55:44 UTC
Created attachment 59445 [details]
asymptote-0.78.ebuild

Moved the boehm-gc check into pkg_setup()
Comment 11 Craig Finch 2005-05-28 11:17:03 UTC
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!
Comment 12 Fabio Rossi 2005-06-20 14:32:40 UTC
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
Comment 13 Fabio Rossi 2005-07-20 15:57:39 UTC
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
Comment 14 Qubax 2005-09-12 15:34:37 UTC
just wanted to report: new version available: 0.87

may i ask, when/if this really nice program will make it into portage?
Comment 15 Ciaran McCreesh 2005-09-12 15:55:42 UTC
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.
Comment 16 Fabio Rossi 2005-09-20 13:32:52 UTC
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)
Comment 17 Jakub Moc (RETIRED) gentoo-dev 2005-09-20 13:56:38 UTC
You forgot to reopen...
Comment 18 Fabio Rossi 2005-09-20 14:12:25 UTC
(In reply to comment #17)
> You forgot to reopen...

I'm not the owner :-)
Comment 19 Fabio Rossi 2005-10-28 15:39:17 UTC
Created attachment 71655 [details]
asymptote-0.92.ebuild

Updated to 0.92.
Comment 20 Fabio Rossi 2005-11-27 13:13:55 UTC
Created attachment 73689 [details]
asymptote-0.95.ebuild

Updated to the version 0.95: some fixes and cleanup with the installation of
the documentation.
Comment 21 Andrey Grozin gentoo-dev 2006-04-15 07:22:38 UTC
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
Comment 22 Andrey Grozin gentoo-dev 2006-04-15 07:24:13 UTC
Created attachment 84716 [details]
files/64asy-gentoo.el

This file goes with asymptote-1.03.ebuild
Comment 23 Andrey Grozin gentoo-dev 2006-04-15 07:25:26 UTC
asymptote-1.03 successfully emerged on x86
Comment 24 Fabio Rossi 2006-04-15 09:15:34 UTC
(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.
Comment 25 Fabio Rossi 2006-04-15 09:16:18 UTC
Created attachment 84720 [details]
asymptote-1.03.ebuild
Comment 26 Marc Vinyals 2006-04-20 12:00:50 UTC
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!
Comment 27 Martin Ehmsen (RETIRED) gentoo-dev 2006-04-20 12:10:00 UTC
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.
Comment 28 Alexandre Buisse (RETIRED) gentoo-dev 2006-04-20 14:04:56 UTC
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.
Comment 29 Fabio Rossi 2006-04-20 14:27:29 UTC
Created attachment 85068 [details]
asymptote-1.03.ebuild

Here is a fix for the problem with the documentation. Thanks Marc!
Comment 30 Martin Ehmsen (RETIRED) gentoo-dev 2006-04-20 15:06:43 UTC
(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"?
Comment 31 Alexandre Buisse (RETIRED) gentoo-dev 2006-04-20 15:23:33 UTC
Yes, that was the idea. I had contacted graphics herd back then (a couple months ago) and they were ok with it.
Comment 32 Andrey Grozin gentoo-dev 2006-04-28 05:11:59 UTC
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).
Comment 33 Fabio Rossi 2006-05-01 08:54:28 UTC
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
Comment 34 Fabio Rossi 2006-05-01 08:56:26 UTC
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....
Comment 35 Fabio Rossi 2006-05-03 12:11:03 UTC
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 :-)
Comment 36 Kazuo Teramoto 2006-05-06 17:00:36 UTC
(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.
Comment 37 Fabio Rossi 2006-05-14 14:36:28 UTC
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)
Comment 38 Fabio Rossi 2006-05-14 14:37:07 UTC
Created attachment 86775 [details, diff]
pattern.patch
Comment 39 Fabio Rossi 2006-05-14 14:37:29 UTC
Created attachment 86777 [details, diff]
string.patch
Comment 40 Fabio Rossi 2006-05-20 11:29:01 UTC
Created attachment 87138 [details]
asymptote-1.05.ebuild

Update to 1.05 version
Comment 41 Andrey Grozin gentoo-dev 2006-05-24 01:12:06 UTC
The latest ebuild builds asymptote-1.06 successfully
Comment 42 Jay Belanger 2006-06-20 13:03:18 UTC
The latest ebuild builds asymptote-1.07 successfully, but doesn't install the info file.
Comment 43 Fabio Rossi 2006-06-21 12:52:52 UTC
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
Comment 44 Colin Macdonald 2006-06-21 22:42:06 UTC
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.
Comment 45 Fabio Rossi 2006-06-23 12:37:55 UTC
Created attachment 89944 [details]
asymptote-1.09.ebuild

Updated to version 1.09.

Fixed the dep on dev-libs/libsigsegv, thanks Colin!
Comment 46 Colin Macdonald 2006-06-23 15:27:35 UTC
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'
Comment 47 Colin Macdonald 2006-06-23 15:32:08 UTC
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).
Comment 48 Fabio Rossi 2006-06-24 05:35:43 UTC
Created attachment 90003 [details]
asymptote-1.09-r1.ebuild

Updated the deps.
Comment 49 Fabio Rossi 2006-06-24 05:40:17 UTC
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.
Comment 50 Marc Vinyals 2006-06-24 10:06:01 UTC
../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 51 Colin Macdonald 2006-06-25 23:15:09 UTC
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.
Comment 52 Fabio Rossi 2006-06-26 12:46:46 UTC
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
Comment 53 Colin Macdonald 2006-06-26 15:58:07 UTC
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...
Comment 54 Colin Macdonald 2006-06-26 16:15:54 UTC
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...
Comment 55 Fabio Rossi 2006-06-27 01:07:56 UTC
Try to launch asy with the tool strace (dev-util/strace)

$ strace asy
Comment 56 Colin Macdonald 2006-06-27 10:57:01 UTC
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...
Comment 57 Fabio Rossi 2006-06-28 14:12:46 UTC
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.
Comment 58 Colin Macdonald 2006-06-28 16:40:58 UTC
1.10 does not seem to fix the problem, it still exits with exit code 1.
Comment 59 Fabio Rossi 2006-06-29 00:48:23 UTC
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.
Comment 60 John Bowman 2006-06-29 06:51:00 UTC
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);
}
Comment 61 Colin Macdonald 2006-06-29 12:24:22 UTC
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.
Comment 62 Marc Vinyals 2006-07-06 07:07:09 UTC
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?
Comment 63 Colin Macdonald 2006-07-06 14:45:51 UTC
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...
Comment 64 Andrey Grozin gentoo-dev 2006-11-06 05:45:57 UTC
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 :-)
Comment 65 José Romildo Malaquias 2006-11-06 13:11:16 UTC
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
Comment 66 José Romildo Malaquias 2006-11-06 13:14:13 UTC
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?
Comment 67 Andrey Grozin gentoo-dev 2006-11-06 14:23:14 UTC
Don't know. Here on x86 works OK, asymptote.pdf is produced (and installed).
Comment 68 Markus Luisser 2007-01-20 13:48:10 UTC
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.
Comment 69 Emiliano Vavassori 2007-02-02 18:38:29 UTC
(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.
Comment 70 Dominik Stadler (RETIRED) gentoo-dev 2007-02-02 21:02:12 UTC
Yes, please post your patches and current ebuild, I am thinking about taking over asymptote in order to finally get it into gentoo.
Comment 71 Emiliano Vavassori 2007-02-02 21:42:43 UTC
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).
Comment 72 Emiliano Vavassori 2007-02-02 21:44:22 UTC
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.
Comment 73 Emiliano Vavassori 2007-02-02 21:47:52 UTC
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.
Comment 74 Colin Macdonald 2007-02-03 07:59:11 UTC
Emiliano: maybe you should consider submitting your patches upstream?  They are very prompt at making user requested changes.
Comment 75 Emiliano Vavassori 2007-02-03 12:01:27 UTC
(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.
Comment 76 Dominik Stadler (RETIRED) gentoo-dev 2007-02-17 21:47:16 UTC
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.
Comment 77 Andrey Grozin gentoo-dev 2007-02-19 08:03:28 UTC
files/64asy-gentoo.el is missing in the tree, emerge fails
Comment 78 Romain Iehl 2007-02-20 15:30:33 UTC
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 ?
Comment 79 Emiliano Vavassori 2007-02-25 22:02:45 UTC
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.
Comment 80 Christian Lemke 2007-03-01 17:39:14 UTC
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
Comment 81 Emiliano Vavassori 2007-03-01 18:38:15 UTC
(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
Comment 82 Christian Lemke 2007-03-01 19:07:13 UTC
(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;
Comment 83 Dominik Stadler (RETIRED) gentoo-dev 2007-03-02 12:13:36 UTC
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.
Comment 84 Dominik Stadler (RETIRED) gentoo-dev 2007-03-02 13:09:57 UTC
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.
Comment 85 Christian Lemke 2007-03-02 14:15:31 UTC
With the workaround also asymptote 1.21 compiles without problems for me.