Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21216 - ebuild for MozillaFirebird 0.6 (source ebuild)
Summary: ebuild for MozillaFirebird 0.6 (source ebuild)
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:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks: 21145
  Show dependency tree
 
Reported: 2003-05-18 16:57 UTC by Wayne Davison
Modified: 2003-06-04 06:16 UTC (History)
7 users (show)

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


Attachments
Mozilla Firebird source ebuild (MozillaFirebird-0.6.tar.bz2,2.30 KB, application/octet-stream)
2003-05-18 17:04 UTC, Wayne Davison
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wayne Davison 2003-05-18 16:57:32 UTC
The source code for MozillaFirebird 0.6 is now available, so it looks like we
can dump the old phoenix-bin ebuild these days (if desired).

I'll attach a fixed version of the source ebuild that Roberto Rivera attached
to bug 21145 (which is supposed to be discussing the binary ebuild only, it
looks like).
Comment 1 Wayne Davison 2003-05-18 17:04:51 UTC
Created attachment 12124 [details]
Mozilla Firebird source ebuild

This ebuild installs a binary named MozillaFirebird into the /usr/bin dir.
It installs the bulk of the files into /usr/lib/MozillaFirebird.  Since the
binary release of firebird is build to use the ~/.phoenix dir, I have also
left this directory as the user-appdir.

Fixed compared to Roberto Rivera's version include:

- Removing a few unneeded vars (such as MY_PV1).
- Setting the MOZ_PHOENIX var (the MOZ_FIREBIRD var does not do anything).
- Removing the unneeded src_unpack() function.
Comment 2 Tobias Sager 2003-05-19 02:28:37 UTC
Copying my source-specific comment from http://bugs.gentoo.org/show_bug.cgi?id=21145

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>

What should the ebuild do with march=pentium4 ?
Comment 3 Tobias Sager 2003-05-19 02:33:07 UTC
Sorry, just seen it should be fixed. 
Will try it later.
Comment 4 Tobias Sager 2003-05-19 15:42:30 UTC
small typo (big effect):
  ["$(gcc-minor
should be:
  [ "$(gcc-minor
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-05-20 15:57:46 UTC
For comment #2 ... you could also try with -march=pentium4 if you update gcc
to 3.2.3, as it at least fix the long outstanding issues with floating point
math in glibc (make check runs fine).  I unfortunately did not test this
with mozilla yet.
Comment 6 Paul Tötterman 2003-05-21 10:29:41 UTC
Is there any chance of getting a CVS-ebuild anytime soon? Or should I maybe try to make one from the old phoenix-cvs
Comment 7 Tobias Sager 2003-05-25 11:52:17 UTC
Okay. Merged and runs fine.

What we need is a script for /usr/bin or anywhere to get the thingie
started from outside /usr/lib/MozillaFirebird.

Besides: the script should handle the remote call for opening a new
window/tab with a specified url.
Example here:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=utf-8&safe=off&th=88d64471b18c6392&seekm=20021207132050.6266cfdf.nooze%40clevername.homeip.net&frame=off
Comment 8 Narada Sage 2003-05-25 15:29:08 UTC
The old script to run it located at /usr/portage/net-www/phoenix-bin/files/phoenix-opt or /usr/portage/net-www/phoenix-cvs/files/phoenix can be renamed suitably and reused.  It works nicely for starting the browser and opening new instances.
Comment 9 Wayne Davison 2003-05-25 16:57:45 UTC
The ebuild attached to this bug contains the /usr/bin script in the files dir and installs it as a part of the ebuild.  (The script is named MozillaFirebird.)
Comment 10 Michael M Nazaroff (RETIRED) gentoo-dev 2003-05-27 11:47:28 UTC
I have a binary ebuild that I will submit to portage in a little while.  It works great but blackdown java plugin is currently broken.  Maybe someone know about this problem?  I found a java binary at the mozillafirebird site that works fine for the plugin.   I would need to junk the old blackdown java though.. anyways let me know. I will make a new bug for the ebuild if this is a popular idea but running outta time at the moment. Let me know :-)


naz
Comment 11 Wayne Davison 2003-05-27 11:53:09 UTC
Michael:  The binary ebuild is bug 21145, so you can skip creating
a new bug report and just contribute to that one.
Comment 12 Don Seiler (RETIRED) gentoo-dev 2003-05-28 10:33:34 UTC
Perhaps I'm picky but I think the ebuild and files should be all lowercase.  Also could you attach the files individually as text instead of tarring them up?
Comment 13 John Steele Scott 2003-06-01 07:19:40 UTC
Merges and runs fine on my ppc system with gtk2 and java.

One minor gripe is that the Makefiles in the security subdirectory don't respect the CC environment variable (I set CC='powerpc-unknown-linux-gnu-gcc' to cross-compile from x86 via distcc, the when the build got to the security subdirectory, CC was set back to gcc, so I ended up with some x86 object files which broke the build, took ages to fix it up, not your fault but have to complain somewhere :s) . . .
Comment 14 Tobias Sager 2003-06-01 07:24:00 UTC
Goto portage?

Name change? mozilla-firebird?
Comment 15 Brad Laue (RETIRED) gentoo-dev 2003-06-02 13:41:07 UTC
Stealing this from Azarah ;) Hope he doesn't mind
Comment 16 Brad Laue (RETIRED) gentoo-dev 2003-06-02 20:51:44 UTC
Committed mozilla-firebird to the tree earlier today, based on phoenix-cvs ebuild and a few pointers taken from here as well.

Be sure to make a note of any problems you may encounter.

Thanks for the input!
Comment 17 Wayne Davison 2003-06-03 00:22:36 UTC
A few minor nits I noticed:

The RDEPEND section has "!net-www/MozillaFirebird-bin" in it.  I assume this
should be changed to "!net-www/mozilla-firebird-bin".

The ebuild is missing a "$Header: $" line.

The ChangeLog mentions net-misc/efac.

Other than that, it looks good.  Thanks for the commit.
Comment 18 Brad Laue (RETIRED) gentoo-dev 2003-06-03 01:52:24 UTC
Good eye, thanks.
Comment 19 Narada Sage 2003-06-04 06:16:55 UTC
Please refer to bug 22197 for another small issue with this package.