<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>152727</bug_id>
          
          <creation_ts>2006-10-24 18:15 0000</creation_ts>
          <short_desc>sci-mathematics/octave ebuild ignores f2c</short_desc>
          <delta_ts>2006-11-02 13:52:58 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>2006.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>dev@gioelebarabucci.com</reporter>
          <assigned_to>metalgod@gentoo.org</assigned_to>
          <cc>sci-mathematics@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>dev@gioelebarabucci.com</who>
            <bug_when>2006-10-24 18:15:50 0000</bug_when>
            <thetext>I have f2c installed in my box but the GNU Octave ebuild 2.1.73 still complains that it needs a fortran compiler from GCC.
I used to compile octave with f2c instead of g77 and it always worked fine.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2006-10-31 06:36:20 0000</bug_when>
            <thetext>(In reply to comment #0)
&gt; I have f2c installed in my box but the GNU Octave ebuild 2.1.73 still complains
&gt; that it needs a fortran compiler from GCC.
&gt; I used to compile octave with f2c instead of g77 and it always worked fine.
&gt; 

We need your emerge --info please. If you are using gcc-4.x I don&apos;t think
f2c will work anymore and you will need gfortran.

Best,
Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dev@gioelebarabucci.com</who>
            <bug_when>2006-10-31 15:04:44 0000</bug_when>
            <thetext># emerge --info
Portage 2.1.2_rc1 (default-linux/ppc/ppc32/2006.1/G3, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo ppc)
=================================================================
System uname: 2.6.18-gentoo ppc 750FX
Gentoo Base System version 1.12.5
Last Sync: Sat, 28 Oct 2006 07:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
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.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS=&quot;ppc ~ppc&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;powerpc-unknown-linux-gnu&quot;
CFLAGS=&quot;-O3 -pipe -mcpu=G3 -fno-strict-aliasing&quot;
CHOST=&quot;powerpc-unknown-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c&quot;
CXXFLAGS=&quot;-O3 -pipe -mcpu=G3 -fno-strict-aliasing&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://mirror.cse.unsw.edu.au/pub/gentoo http://ftp.swin.edu.au/gentoo&quot;
LINGUAS=&quot;en en_US en_GB en_AU&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/portage-overlay&quot;
SYNC=&quot;rsync://rsync.au.gentoo.org/gentoo-portage&quot;
USE=&quot;ppc X a52 aac acl alsa apache2 arts berkdb bonobo bzip2 c++ cairo cdr cli cracklib crypt cups dbus djvu dlloader dri dts dv dvd dvdr eds elibc_glibc emboss encode exif ffmpeg firefox flac gdbm gif gmp gnutls gtkhtml hal howl iconv idn ieee1394 input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg jpeg2k kde kernel_linux lcms libg++ libwww linguas_en linguas_en_AU linguas_en_GB linguas_en_US mad matroska mikmod mime mmap mng modplug mp3 mpeg mpeg4 musicbrainz ncurses nls nptl nptlonly ogg openexr opengl pam pcre png pnp pppd python qt qt3 qt4 quicktime readline reflection ruby sasl sdl session speex spell spl ssl subversion svg sysfs theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales utf8 vhosts video_cards_dummy video_cards_fbdev video_cards_radeon vorbis wifi xinerama xml xorg xv xvid zeroconf zlib&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dev@gioelebarabucci.com</who>
            <bug_when>2006-10-31 15:18:12 0000</bug_when>
            <thetext>Yes am I using gcc 4.1, but the gcc bugzilla has no reports of f2c bugs.
Why is f2c not supposed to work with gcc 4?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2006-10-31 16:55:54 0000</bug_when>
            <thetext>(In reply to comment #3)
&gt; Yes am I using gcc 4.1, but the gcc bugzilla has no reports of f2c bugs.
&gt; Why is f2c not supposed to work with gcc 4?
&gt; 

My bad, I got confused and f2c should work, of course :)
Could you please post your config.log!

I just had a quick look at octave&apos;s configure and it looks
like f2c detection fails since it tries to link against
libf2c.so instead of the static lib.

I&apos;ll see if there is an easy fix for that, otherwise we should
probably file a bug upstream.

Thanks,
Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2006-10-31 19:15:31 0000</bug_when>
            <thetext>Created an attachment (id=100936)
allow f2c as compiler

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2006-10-31 19:16:33 0000</bug_when>
            <thetext>Created an attachment (id=100937)
fix f2c detection and linkage in octave&apos;s configure

Could you please try the above two patches and see if it compiles
through with f2c!

Thanks,
Markus</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dev@gioelebarabucci.com</who>
            <bug_when>2006-11-02 03:48:51 0000</bug_when>
            <thetext>I tried your two patches and octave compiled fine. I did some tests and it seems to work properly.

Thanks!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>markusle@gentoo.org</who>
            <bug_when>2006-11-02 13:52:58 0000</bug_when>
            <thetext>I&apos;ve merged everything and the new revision, aka octave 2.1.73-r1,
has f2c enabled. Thanks for testing.

Best,
Markus </thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>100936</attachid>
            <date>2006-10-31 19:15 0000</date>
            <desc>allow f2c as compiler</desc>
            <filename>octave-2.1.73.ebuild.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIG9jdGF2ZS0yLjEuNzMuZWJ1aWxkCTIwMDYtMTAtMzEgMjI6MDY6NDkuMDAwMDAwMDAwIC0w
NTAwCisrKyBvY3RhdmUtMi4xLjczLmVidWlsZC5uZXcJMjAwNi0xMC0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>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>100937</attachid>
            <date>2006-10-31 19:16 0000</date>
            <desc>fix f2c detection and linkage in octave&apos;s configure</desc>
            <filename>octave-2.1.73-f2c-fix.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIG9jdGF2ZS0yLjEuNzMvY29uZmlndXJlLmluCTIwMDYtMDMtMjAgMTY6MTA6NTIuMDAwMDAw
MDAwIC0wNTAwCisrKyBvY3RhdmUtMi4xLjczLW5ldy9jb25maWd1cmUuaW4JMjAwNi0xMC0zMSAy
MToxMjo0Ni4wMDAwMDAwMDAgLTA1MDAKQEAgLTU2NCw3ICs1NjQsNyBAQAogICAgIENPTkZMSUJf
QVJHPSItTC4gLWxjb25mbGliIgogICBmaQogICBybSAtZiBjb25mdGVzdCoKLSAgQUNfQ0hFQ0tf
TElCKGYyYywgZl9vcGVuLCBGTElCUz0tbGYyYywgRkxJQlM9LCAkQ09ORkxJQl9BUkcpCisgIEFD
X0NIRUNLX0xJQihmMmMsIGZfb3BlbiwgRkxJQlM9Ii91c3IvbGliL2xpYmYyYy5hIiwgRkxJQlM9
LCAkQ09ORkxJQl9BUkcgLXN0YXRpYykKICAgcm0gLWYgJG9jdF9jb25mbGliCiAKICAgaWYgdGVz
dCAteiAiJEZMSUJTIjsgdGhlbgo=
</data>        

          </attachment>
    </bug>

</bugzilla>