Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12312 - texmacs ebuild
Summary: texmacs ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Matthew Turk (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-17 10:24 UTC by Pierre-Henri Jondot
Modified: 2003-02-04 19:42 UTC (History)
0 users

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


Attachments
ebuild for texmacs-1.0.0.25 (texmacs-1.0.0.25.ebuild,1.17 KB, text/plain)
2002-12-17 10:29 UTC, Pierre-Henri Jondot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre-Henri Jondot 2002-12-17 10:24:02 UTC
It has been known for a long time that texmacs when built with gcc >= 3.2 and
some optimisation does segfault a lot... The gcc 3.2 optimizer is the cause of
these segfaults (don't know if the problem is solved with gcc 3.2.1, suppose not...)

The bug has been tracked down by the texmacs developpers and comes from inlining
optimisation and the solution lies in disabling those with
 -fno-default-inline -fno-inline flags...

The configure script takes care of this and add these flags but the texmacs
ebuilds overrule these choices to replace them with the gentoo CFLAGS...

So I suggest : either stick to texmacs flags (they are for example for my
configuration : 
 -O3 -fexpensive-optimizations -fno-default-inline -fno-inline -fno-rtti
-fno-exceptions
) (IMO : the most sensible approach)

or

add the necessary flags to disable inlining optimisations...

Btw, the version of texmacs is now 1.0.0.25 (soon 1.0.1 stable)

Please find a ebuild for texmacs-1.0.0.25...
Comment 1 Pierre-Henri Jondot 2002-12-17 10:29:06 UTC
Created attachment 6565 [details]
ebuild for texmacs-1.0.0.25
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2002-12-17 10:31:22 UTC
use filter-flags to take them out, I suppose
Comment 3 Matthew Turk (RETIRED) gentoo-dev 2003-01-01 23:57:47 UTC
Ok.  I've filtered out all maybe-unsafe ones with strip-flags, and followed 
this up by appending the -fno-inline and -fno-default-inline flags.  Also 
bumped version to 1.0.1.