Thomas Kahle | 1 Oct 2010 09:09
Picon
Picon
Gravatar

Re: RFC sci-mathematics/axiom

Hi Francois and everyone,

> Have you tried to contact upstream (Tim Daly) to see if being packaged in
> a distro is something they are interested in.
> I personally would last rite it and possibly revisit the situation every so 
> often. If it doesn't even build I am not sure there is a point in keeping it
> in the tree.

I'm in contact with Tim Daly now, who seems very interested in getting
axiom to work on Gentoo. The main problem that I see here, and also with
the developers of Macaulay 2, is that upstream often does not feel any
urge to unsplit their build systems. They just build internal copies of
whatever they need.  So here with axiom it is that the already internal
gcl builds an internal gmp and upstream would like it better to apply
our gentoo patches to that internal gmp instead of making it work with
system wide gmp.  I find it hard to communicate that internal copies are
evil(TM).  How do you guys handle that ?

Cheers,
Thomas

--

-- 
Thomas Kahle
Sébastien Fabbro | 1 Oct 2010 18:47
Picon
Favicon

Re: RFC sci-mathematics/axiom

Thomas Kahle wrote:

> I'm in contact with Tim Daly now, who seems very interested in getting
> axiom to work on Gentoo. The main problem that I see here, and also with
> the developers of Macaulay 2, is that upstream often does not feel any
> urge to unsplit their build systems. They just build internal copies of
> whatever they need.  So here with axiom it is that the already internal
> gcl builds an internal gmp and upstream would like it better to apply
> our gentoo patches to that internal gmp instead of making it work with
> system wide gmp.  I find it hard to communicate that internal copies are
> evil(TM).  How do you guys handle that ?

You can always point to one of the numerous flameeyes blog post [1]
against bundled libraries, but I'm sure you can come up with a more
concise explanation.

[1] http://blog.flameeyes.eu/2009/03/23/bundling-libraries-the-curse-of-the-ancients

--

-- 
Sébastien

Donnie Berkholz | 2 Oct 2010 05:05
Picon
Favicon
Gravatar

Re: RFC sci-mathematics/axiom

On 09:09 Fri 01 Oct     , Thomas Kahle wrote:
> Hi Francois and everyone,
> 
> > Have you tried to contact upstream (Tim Daly) to see if being packaged in
> > a distro is something they are interested in.
> > I personally would last rite it and possibly revisit the situation every so 
> > often. If it doesn't even build I am not sure there is a point in keeping it
> > in the tree.
> 
> I'm in contact with Tim Daly now, who seems very interested in getting
> axiom to work on Gentoo. The main problem that I see here, and also with
> the developers of Macaulay 2, is that upstream often does not feel any
> urge to unsplit their build systems. They just build internal copies of
> whatever they need.  So here with axiom it is that the already internal
> gcl builds an internal gmp and upstream would like it better to apply
> our gentoo patches to that internal gmp instead of making it work with
> system wide gmp.  I find it hard to communicate that internal copies are
> evil(TM).  How do you guys handle that ?

You may communicate that they are simply a requirement for many Linux 
distributions, and leave it at that. One way to satisfy both sides might 
be to have the bundled libraries optionally built. Many developers of 
packages with specialized dependencies want to make it easier to install 
their code, so they want to have the option available (and likely on by 
default). What I recommend the package should do is:

- probe the system to autodetect whether the dependency is installed
- allow manual overrides via configure flags
- if not found, then build/install the bundled version

(Continue reading)

Jean-Francis Roy | 5 Oct 2010 18:12
Picon
Gravatar

sci-mathematics/maxima fails to build


Hi group!

I've got some problems installing sci-mathematics/maxima in both my Funtoo boxes.


The issue seems to be similar to : http://github.com/cschwan/sage-on-gentoo/issues/issue/14, and the work-around to redefining LDFLAGS works as well. However, something is wrong with the way maxima deals with the LDFLAGS.

# emerge --info
Portage 2.2_rc67-r2 (default/linux/amd64/2008.0/desktop, gcc-4.4.3, glibc-2.10.1-r1, 2.6.35-gentoo-r8 x86_64)
=================================================================
System uname: Linux-2.6.35-gentoo-r8-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6550_ <at> _2.33GHz-with-gentoo-2.1.8
Timestamp of tree: Fri, 01 Oct 2010 05:30:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r103
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.1.8
sys-apps/openrc:     0.6.1-r3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.67
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.32
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=2 --load-average=2.0 --with-bdeps y"
FEATURES="assume-digests distlocks fixpackages mini-manifest news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
LANG="fr_CA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j2 -l2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/science /var/lib/layman/sage-on-gentoo /usr/local/portage/local_overlay"
USE="64bit X a52 aac acl acpi alac alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr dvdread emboss encode esd exif fam firefox flac fortran gdbm gif gpm gsl gtk iconv ipv6 jpeg kde lame lapack latex lcms ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg msn mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png ppds pppd python qt3 qt3support qt4 readline reflection samba sdl session spell sse sse2 ssl startup-notification subversion svg sysfs tcpd tiff truetype unicode usb vorbis wavpack x264 xcb xcomposite xml xorg xulrunner xv xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Thanks!


~JF
François Bissey | 6 Oct 2010 01:57
Picon
Picon

Re: sci-mathematics/maxima fails to build

> Hi group!
> 
> I've got some problems installing sci-mathematics/maxima in both my Funtoo
> boxes.
> 
> http://paste.pocoo.org/show/271383/
> 
> The issue seems to be similar to :
> http://github.com/cschwan/sage-on-gentoo/issues/issue/14, and the
> work-around to redefining LDFLAGS works as well. However, something is
> wrong with the way maxima deals with the LDFLAGS.
> 
OK I will have a look, it may be something I overlooked in my patches, it used 
to work here, so it may be caused by a slight change somewhere in the system
since then.

If you want maxima for sage you don't have to use the version located in the 
science overlay. It was a proof of concept for some patches. The version in 
portage will work just as well.

Francois

Steven Trogdon | 6 Oct 2010 02:24
Picon

Re: sci-mathematics/maxima fails to build

On   10/05/10 - 18:57:56, François Bissey wrote:
> > Hi group!
> >
> > I've got some problems installing sci-mathematics/maxima in both my  
> Funtoo
> > boxes.
> >
> > http://paste.pocoo.org/show/271383/
> >
> > The issue seems to be similar to :
> > http://github.com/cschwan/sage-on-gentoo/issues/issue/14, and the
> > work-around to redefining LDFLAGS works as well. However, something  
> is
> > wrong with the way maxima deals with the LDFLAGS.
> >
> OK I will have a look, it may be something I overlooked in my  
> patches, it used
> to work here, so it may be caused by a slight change somewhere in the  
> system
> since then.
> 
> If you want maxima for sage you don't have to use the version located  
> in the
> science overlay. It was a proof of concept for some patches. The  
> version in
> portage will work just as well.
> 5.20.1-r2
> Francois
> 
For what it's worth, on my amd64 I'm unable to build the portage  
maxima-5.20.1-r2 either with

LDFLAGS="-Wl,-01 -Wl,--sort-common -Wl,--as-needed"

There is the same

make[1]: *** [binary-ecl/maxima] Error 1

In fact ecls will not even configure with the indicated LDFLAGS.  
Deleting "-Wl,--sort-common" allows ecls as well as maxima to be built.

Steve
François Bissey | 6 Oct 2010 05:08
Picon
Picon

Re: sci-mathematics/maxima fails to build

> On   10/05/10 - 18:57:56, François Bissey wrote:
> > > Hi group!
> > > 
> > > I've got some problems installing sci-mathematics/maxima in both my
> > 
> > Funtoo
> > 
> > > boxes.
> > > 
> > > http://paste.pocoo.org/show/271383/
> > > 
> > > The issue seems to be similar to :
> > > http://github.com/cschwan/sage-on-gentoo/issues/issue/14, and the
> > > work-around to redefining LDFLAGS works as well. However, something
> > 
> > is
> > 
> > > wrong with the way maxima deals with the LDFLAGS.
> > 
> > OK I will have a look, it may be something I overlooked in my
> > patches, it used
> > to work here, so it may be caused by a slight change somewhere in the
> > system
> > since then.
> > 
> > If you want maxima for sage you don't have to use the version located
> > in the
> > science overlay. It was a proof of concept for some patches. The
> > version in
> > portage will work just as well.
> > 5.20.1-r2
> > Francois
> 
> For what it's worth, on my amd64 I'm unable to build the portage
> maxima-5.20.1-r2 either with
> 
> LDFLAGS="-Wl,-01 -Wl,--sort-common -Wl,--as-needed"
> 
> There is the same
> 
> make[1]: *** [binary-ecl/maxima] Error 1
> 
> In fact ecls will not even configure with the indicated LDFLAGS.
> Deleting "-Wl,--sort-common" allows ecls as well as maxima to be built.
> 
OK I tested both:
LDFLAGS="-Wl,-01 -Wl,--sort-common -Wl,--as-needed" emerge -1v --nodeps maxima
LDFLAGS="-Wl,-01 -Wl,--sort-common -Wl,--as-needed" emerge -1v --nodeps ecls
which build respectively maxima-5.20.1-r3 and ecls-10.4.1, on my x86 system 
and it merged fine.
Does it work in your 32bits chroot Steve?

Francois

François Bissey | 6 Oct 2010 05:25
Picon
Picon

Re: sci-mathematics/maxima fails to build

Hey, what do I know!

On x86 maxima doesn't respect LDFLAGS! And I remember talking with David Kirby 
on sage-devel that actually ecls doesn't either.
But from the logs from JF, on amd64 the LDFLAGS are duplicated and the problem
is that in the failing call one of them is still in double quotes which I 
think is the problem.

Francois

Steven Trogdon | 6 Oct 2010 05:28
Picon

Re: sci-mathematics/maxima fails to build

On   10/05/10 - 22:08:59, François Bissey wrote:
> > On   10/05/10 - 18:57:56, François Bissey wrote:
> > > > Hi group!
> > > >
> > > > I've got some problems installing sci-mathematics/maxima in  
> both my
> > >
> > > Funtoo
> > >
> > > > boxes.
> > > >
> > > > http://paste.pocoo.org/show/271383/
> > > >
> > > > The issue seems to be similar to :
> > > > http://github.com/cschwan/sage-on-gentoo/issues/issue/14, and  
> the
> > > > work-around to redefining LDFLAGS works as well. However,  
> something
> > >
> > > is
> > >
> > > > wrong with the way maxima deals with the LDFLAGS.
> > >
> > > OK I will have a look, it may be something I overlooked in my
> > > patches, it used
> > > to work here, so it may be caused by a slight change somewhere in  
> the
> > > system
> > > since then.
> > >
> > > If you want maxima for sage you don't have to use the version  
> located
> > > in the
> > > science overlay. It was a proof of concept for some patches. The
> > > version in
> > > portage will work just as well.
> > > 5.20.1-r2
> > > Francois
> >
> > For what it's worth, on my amd64 I'm unable to build the portage
> > maxima-5.20.1-r2 either with
> >
> > LDFLAGS="-Wl,-01 -Wl,--sort-common -Wl,--as-needed"
> >
> > There is the same
> >
> > make[1]: *** [binary-ecl/maxima] Error 1
> >
> > In fact ecls will not even configure with the indicated LDFLAGS.
> > Deleting "-Wl,--sort-common" allows ecls as well as maxima to be  
> built.
> >
> OK I tested both:
> LDFLAGS="-Wl,-01 -Wl,--sort-common -Wl,--as-needed" emerge -1v  
> --nodeps maxima
> LDFLAGS="-Wl,-01 -Wl,--sort-common -Wl,--as-needed" emerge -1v  
> --nodeps ecls
> which build respectively maxima-5.20.1-r3 and ecls-10.4.1, on my x86  
> system
> and it merged fine.
> Does it work in your 32bits chroot Steve?
> 
> Francois
> 
François,

Both of the above fail in my 32bit chroot. maxima will not build with  
the same "binary-ecls/maxima" error and ecls will not pass the  
configure step.

Steve
François Bissey | 6 Oct 2010 05:51
Picon
Picon

Re: sci-mathematics/maxima fails to build

> François,
> 
> Both of the above fail in my 32bit chroot. maxima will not build with  
> the same "binary-ecls/maxima" error and ecls will not pass the  
> configure step.

Could you share the log for ecls? And the useflags as well.

Francois


Gmane