Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21145 - Request: Ebuild for Mozilla Firebird (bin only) 0.6
Summary: Request: Ebuild for Mozilla Firebird (bin only) 0.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Brad Laue (RETIRED)
URL: http://www.mozilla.org/projects/fireb...
Whiteboard:
Keywords: EBUILD
: 21457 (view as bug list)
Depends on: 21216
Blocks:
  Show dependency tree
 
Reported: 2003-05-17 02:20 UTC by Narada Sage
Modified: 2003-06-03 20:55 UTC (History)
10 users (show)

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


Attachments
Updated firebird-bin-0.6 ebuild (tar.gz file) (firebird-bin-0.6.ebuild.tar.gz,3.30 KB, application/octet-stream)
2003-05-17 12:20 UTC, Jasmin Buchert
Details
Updated firebird-bin-0.6 ebuild (tar.gz file) (firebird-bin-0.6.ebuild.tar.gz,3.30 KB, application/gzip)
2003-05-17 12:20 UTC, Jasmin Buchert
Details
Updated firebird-bin-0.6 ebuild (firebird-bin-0.6.ebuild.tar.gz,3.30 KB, application/gzip)
2003-05-17 12:20 UTC, Jasmin Buchert
Details
Updated firebird-bin-0.6 ebuild (firebird-bin-0.6.tar.gz,3.30 KB, application/gzip)
2003-05-17 12:21 UTC, Jasmin Buchert
Details
Mozilla Firebird Source Ebuild (MozillaFirebird-0.6-ebuild.tar.bz2,2.37 KB, application/octet-stream)
2003-05-18 09:42 UTC, Roberto Rivera
Details
My ebuilds maybe they will be of some use to people? (MozillaFirebird-bin.tar.bz2,2.27 KB, application/octet-stream)
2003-05-28 03:31 UTC, Michael M Nazaroff (RETIRED)
Details
My ebuilds maybe they will be of some use to people? (MozillaFirebird-bin.tar.bz2,2.27 KB, application/octet-stream)
2003-05-28 03:32 UTC, Michael M Nazaroff (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Narada Sage 2003-05-17 02:20:44 UTC
Hello.  After an excrutiangly long wait Mozilla Firebird 0.6 is finally with us.
 Here are a few useful links!

Release notes & FAQ
http://www.mozilla.org/projects/firebird/release-notes.html

Project page
http://www.mozilla.org/projects/firebird/

Download (tar.gz)
http://ftp.mozilla.org/pub/firebird/releases/0.6/MozillaFirebird-0.6-i686-pc-linux-gnu.tar.gz

There are two critical points to note when creating an ebuild for this package.
 Firstly, all naming within net-www/phoenix-bin and net-www/phoenix-cvs must be
migrated to the new name 'Mozilla Firebird' taking care of conflicts with
dev-db/firebird.  And, secondly, a warning message must be added after the
emerge of each saying that the ~/.phoenix directory must be removed for all
normal users.  The latter is made quite clear on the release notes since
Firebird 0.6 uses a completely different profile structure.  I'd be happy to
test on ~x86 and provide feedback on bugs and enhancements.  Many thanks.
Comment 1 Jasmin Buchert 2003-05-17 12:20:03 UTC
Created attachment 12092 [details]
Updated firebird-bin-0.6 ebuild (tar.gz file)
Comment 2 Jasmin Buchert 2003-05-17 12:20:17 UTC
Created attachment 12093 [details]
Updated firebird-bin-0.6 ebuild (tar.gz file)
Comment 3 Jasmin Buchert 2003-05-17 12:20:35 UTC
Created attachment 12094 [details]
Updated firebird-bin-0.6 ebuild
Comment 4 Jasmin Buchert 2003-05-17 12:21:07 UTC
Created attachment 12095 [details]
Updated firebird-bin-0.6 ebuild
Comment 5 Roberto Rivera 2003-05-18 09:42:58 UTC
Created attachment 12115 [details]
Mozilla Firebird Source Ebuild

Ebuild to create Mozilla Firebird 0.6 from source.  Compiles with gcc 3.3
Comment 6 Tobias Sager 2003-05-18 11:19:45 UTC
Source-ebuild does not compile here.

<snip>
gcc -o jsemit.o -c -DOSTYPE=\"Linux2.4\" -DOSARCH=\"Linux\" -DEXPORT_JS_API  -DJS_USE_SAFE_ARENA   -I../../dist/include/js -I../../dist/include -I/var/tmp/portage/MozillaFirebird-0.6-r1/work/mozilla/dist/include/nspr      -I. -I/usr/X11R6/include   -fPIC -I/usr/X11R6/include  -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -march=pentium4 -O3 -pipe -Wno-return-type -w -Wno-return-type -w -Wno-return-type -w -s -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-sections -O2  -I/usr/X11R6/include -include ../../mozilla-config.h -DMOZILLA_CLIENT -Wp,-MD,.deps/jsemit.pp jsemit.c
jsdtoa.c: In function `JS_strtod':
jsdtoa.c:1874: unable to find a register to spill in class `AREG'
jsdtoa.c:1874: this is the insn:
(insn:QI 1996 1995 1997 (set (reg:CCNO 17 flags)
        (compare:CCNO (and:SI (subreg:SI (reg/v:DI 21 rxmm0 [284]) 0)
                (const_int 1 [0x1]))
            (const_int 0 [0x0]))) 281 {testsi_1} (insn_list 1992 (nil))
    (expr_list:REG_DEAD (reg/v:DI 21 rxmm0 [284])
        (nil)))
jsdtoa.c:1874: confused by earlier errors, bailing out
gmake[3]: *** [jsdtoa.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
gmake[3]: Leaving directory `/var/tmp/portage/MozillaFirebird-0.6-r1/work/mozilla/js/src'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/MozillaFirebird-0.6-r1/work/mozilla/js'
gmake[1]: *** [tier_2] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/MozillaFirebird-0.6-r1/work/mozilla'
make: *** [default] Error 2

!!! ERROR: net-www/MozillaFirebird-0.6-r1 failed.
!!! Function src_compile, Line 136, Exitcode 2
!!! (no error message)
</snip>

This will be the cause:
http://lunar-linux.org/pipermail/lunar/2003-February/000615.html

<snip>
Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.2.5-r2,2.3.1-r4)
=================================================================
System uname: 2.4.20-xfs-r3 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/portage.local"
USE="x86 oss apm crypt cups gif jpeg libwww mikmod mmx ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb gdbm berkdb slang readline aalib svga java guile mysql X sdl gpm tcpd pam ssl python esd imlib oggvorbis gtk qt motif opengl cdr sse sse2 -3dnow pcmcia pnp trusted pda gphoto2 dga fbcon -gnome libg++ tcltk tiff alsa dvd ggi mozilla xml perl samba -doc -kde xfs gtkhtml encode avi mpeg -arts gtk2 usb ethereal"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache userpriv usersandbox"
</snip>
Comment 7 Narada Sage 2003-05-18 11:23:47 UTC
Hello.  I'd like to suggest two changes to Jasmin Buchert's latest ebuild submission.

(1) Perhaps there is no need to inherit eutils?
(2) The following can be appended to end of ebuild.

pkg_postinst() {
    einfo ""
    einfo "Mozilla Firebird is now installed under /opt/"
    einfo "rather than /usr/lib/ to make it FHS compliant"
    ewarn "Please be sure to remove or rename ~/.phoenix"
    ewarn "as this package requires a new profile structure"
    ewarn "and may suffer from problems if old data is reused"
}

Here are some of my other thoughts.

- Although I have not tried this ebuild from my portage overlay I'm not convinced that it adequately takes care of the naming issues and conflicts.  Both, $S and $SRC_URI are now hard coded rather than being determined by variables which is not ideal.  Perhaps this is partially a result of a change in naming conventions at Mozilla's end.

- The antialiasing patch issue is oddly treated.  To recap here are the changes that should be made to unix.js.

231: pref("font.FreeType2.enable", false); --> pref("font.FreeType2.enable", false);
236: pref("font.FreeType2.unhinted", true); --> pref("font.FreeType2.unhinted", false);
238: pref("font.antialias.min",        10); --> pref("font.antialias.min",        16);

The reason for the last change is that anti aliasing should only be enabled for large font size and if enabled for smaller font sizes it isn't really effective and results in eye strain and reduced clarity.

Also, the truetype font directories need to be uncommented and replaced with below.
pref("font.directory.truetype.1", "/usr/X11R6/lib/X11/fonts/truetype");
pref("font.directory.truetype.2", "/usr/X11R6/lib/X11/fonts/TTF");

As for Roberto Rivera and Tobias Sager's comments since this was intended to be a bug about the binary version of firebird you should submit your ebuild under a newly created bug for Mozilla Firebird CVS 0.6.
Comment 8 Tobias Sager 2003-05-18 11:24:34 UTC
The packages should be named MozillaFirebird and MozillaFirebird-bin (as
Robertos package does), because of the new naming strategy of mozilla.org:
http://mozilla.org/roadmap/branding.html

[This at least until release of 1.4]
Comment 9 christian gut 2003-05-18 15:43:58 UTC
did anyone get java working with the binary-ebuilds?
i get this error when starting firebird:
LoadPlugin: failed to initialize shared library /opt/sun-j2sdk-1.4.1/jre/plugin/i386/ns610/libjavaplugin_oji.so [/opt/sun-j2sdk-1.4.1/jre/plugin/i386/ns610/libjavaplugin_oji.so: undefined symbol: _ZN16nsServiceManager23GetGlobalServiceManagerEPP17nsIServiceManager]

but it starts, only no java-applets are working. any hints?

[oh, and the src-ebuild made some mozilla-1.4 browser ;)]
Comment 10 Wayne Davison 2003-05-18 16:18:29 UTC
I had the same problem with Java on my system with the bin ebuild as
christian gut.

Question:  shouldn't the directory we install into be /opt/MozillaFirebird
and the script be /usr/bin/MozillaFirebird (not ".../firebird")?

(As for the source ebuild, I noticed that it is setting MOZ_FIREBIRD=1 when
it looks like the source tar is still looking for MOZ_PHOENIX, so I'm trying
a rebuild with that name twiddled -- I too got a version of mozilla 1.4a out
of the build, not firebird.)
Comment 11 Wayne Davison 2003-05-18 17:08:56 UTC
I created a new bug for the source-ebuild of Mozilla Firebird:  bug 21216 .
The ebuild I attached is a fixed version of Roberto Rivera's ebuild that
builds firebird (not mozilla) and was also changed to install into /usr/bin/MozillaFirebird, to install a binary named MozillaFirebird, and
to use the ~/.mozilla user-appdir (since that's what the binary release
of 0.6 still uses).
Comment 12 Martin Holzer (RETIRED) gentoo-dev 2003-05-22 12:58:56 UTC
*** Bug 21457 has been marked as a duplicate of this bug. ***
Comment 13 Michael M Nazaroff (RETIRED) gentoo-dev 2003-05-28 03:30:21 UTC
Well I have java working on my system with some tweaking and I've been  installing it into /opt and everything seems to work fine for me.  It's now my primary browser since it's so sexy :-)

naz
Comment 14 Michael M Nazaroff (RETIRED) gentoo-dev 2003-05-28 03:31:31 UTC
Created attachment 12481 [details]
My ebuilds maybe they will be of some use to people?
Comment 15 Michael M Nazaroff (RETIRED) gentoo-dev 2003-05-28 03:32:18 UTC
Created attachment 12482 [details]
My ebuilds maybe they will be of some use to people?
Comment 16 Brad Laue (RETIRED) gentoo-dev 2003-06-02 14:34:24 UTC
Grabbing this one too
Comment 17 Brad Laue (RETIRED) gentoo-dev 2003-06-02 20:48:28 UTC
The reason Java doesn't work for some of you is due to the way Mozilla Firebird was compiled by its maintainer upstream; it was built with GCC 2.96, which is ABI incompatible with GCC 3 for C++ applications such as the java plugin.

Workarounds for now include:

1) Doing without java (blah!)
2) Installing blackdown-jdk 1.3.1 alongside 1.4.1 and using its plugin (built with GCC 2.9x) with mozilla-firebird-bin
3) Building mozilla-firebird from source

This will be noted during package installation when I commit mozilla-firebird-bin shortly.
Comment 18 Brad Laue (RETIRED) gentoo-dev 2003-06-03 20:55:34 UTC
Committed mozilla-firebird-bin to the tree, basing it on ebuilds and suggestions from this bug. Thanks for the input.

I am pursuing a GCC 3 build of mozilla firebird from bryner at mozilla.org, it's the logical choice now as modern versions of most distributions have standardized on it. Apparently he's still using RedHat 7.3.