Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mozilla-thunderbird-0.2
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Thu Sep 04, 2003 12:00 am    Post subject: mozilla-thunderbird-0.2 Reply with quote

This is now out; I'm trying to throw an ebuild together, but I've never done this before. I assume there's going to be nothing more difficult than renaming a few things and making sure that everything within the ebuild itself is up to date. Are there any pitfalls I should look out for apart from what's in the HOWTO on creating an ebuild? I know perfectly well that a much better and much more refined ebuild will probably show up within a couple of days, but I'm impatient...
Back to top
View user's profile Send private message
scriptkiddie
l33t
l33t


Joined: 30 Mar 2003
Posts: 955

PostPosted: Thu Sep 04, 2003 2:08 am    Post subject: Reply with quote

Just start from scratch (learning is the most fun) and see what you come up with.. I'm sure that if you post it, people will be willing to help you out with any problems that may arise
Back to top
View user's profile Send private message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Thu Sep 04, 2003 2:44 am    Post subject: Reply with quote

The ebuild seems to be pretty simple on the whole, so it shouldn't be too much of a hardship just to edit the old one. Although having said that, I am getting a strange problem with "nameto" being an invalid feature when econf is attempting to run... I'll keep going for a bit before I bore everyone with heaps of error messages!
Back to top
View user's profile Send private message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Thu Sep 04, 2003 3:04 am    Post subject: Reply with quote

Okay, grabbed hold of that particular error by the horns, bitten it and spat the bits out. .mozconfig is (stupidly) broken for Linux, and it even tells you this, so I've stuck a patch in there to make sure it doesn't try to do something it can't.

Code:
--enable-image-decoders=icon,png,gif,jpeg
--enable-image-decoders=png,gif,jpeg


The first one is what you get, the second one is what we want! Compiling now - could take a while...
Back to top
View user's profile Send private message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Thu Sep 04, 2003 1:14 pm    Post subject: Reply with quote

Okay, this works for me:

Code:
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/net-mail/mozilla-thunderbird/mozilla-thunderbird-0.2.ebuild,v 1.0 2003/09/04 02:29:03 robmoss2k Exp $

inherit makeedit flag-o-matic gcc nsplugins

# Added to get thunderbird to compile on sparc.
replace-sparc64-flags

S=${WORKDIR}/mozilla
MOZ_CO_DATE="20030826"

EMVER="0.81.latest"
IPCVER="1.0.4"

DESCRIPTION="Thunderbird Mail Client"
HOMEPAGE="http://www.mozilla.org/projects/thunderbird/"
SRC_URI="http://ftp.mozilla.org/pub/thunderbird/releases/0.2/thunderbird-source-0.2.tar.bz2
    crypt? ( http://downloads.mozdev.org/enigmail/src/enigmail-${EMVER}.tar.gz
              http://downloads.mozdev.org/enigmail/src/ipc-${IPCVER}.tar.gz )"

KEYWORDS="~x86 ~ppc ~sparc ~alpha"
SLOT="0"
LICENSE="MPL-1.1 | NPL-1.1"
IUSE="gtk2 ipv6 crypt"

RDEPEND="virtual/x11
   >=dev-libs/libIDL-0.8.0
   >=gnome-base/ORBit-0.5.10-r1
   virtual/xft
   >=sys-libs/zlib-1.1.4
   >=media-libs/jpeg-6b
   >=media-libs/libmng-1.0.0
   >=media-libs/libpng-1.2.1
   >=sys-apps/portage-2.0.36
   dev-libs/expat
   app-arch/zip
   app-arch/unzip
   ( gtk2? >=x11-libs/gtk+-2.1.1 :
     =x11-libs/gtk+-1.2* )
   crypt? ( >=app-crypt/gnupg-1.2.1 )"

DEPEND="${RDEPEND}
   virtual/glibc
   dev-lang/perl"
   
# needed by src_compile() and src_install()
export MOZ_THUNDERBIRD=1
export MOZ_ENABLE_XFT=1

src_unpack() {

   unpack thunderbird-source-0.2.tar.bz2

   # Unpack the enigmail plugin
   if use crypt
      then
         unpack ipc-${IPCVER}.tar.gz
         unpack enigmail-${EMVER}.tar.gz

         mv -f ${WORKDIR}/ipc ${S}/extensions/
         mv -f ${WORKDIR}/enigmail ${S}/extensions/
         cp ${FILESDIR}/enigmail/Makefile-ipc ${S}/extensions/ipc/Makefile
         cp ${FILESDIR}/enigmail/Makefile-enigmail ${S}/extensions/enigmail/Makefile
   fi

}

src_compile() {
   local myconf="--with-x \
      --with-system-jpeg \
      --with-system-zlib \
      --with-system-png \
      --with-system-mng \
      --disable-calendar \
      --enable-xft \
      --disable-pedantic \
      --disable-svg \
      --enable-mathml \
      --without-system-nspr \
      --enable-nspr-autoconf \
      --enable-xsl \
      --enable-crypto \
      --enable-xinerama=no \
      --with-pthreads \
      --with-default-mozilla-five-home=/usr/lib/MozillaThunderbird \
      --with-user-appdir=.thunderbird \
      --disable-jsd \
      --disable-accessibility \
      --disable-profilesharing \
      --disable-necko-disk-cache \
      --disable-activex-scripting \
      --disable-installer \
      --disable-activex \
      --disable-tests \
      --disable-debug \
      --disable-dtd-debug \
      --disable-logging \
      --enable-reorder \
     --enable-optimize="-O2" \
      --enable-strip \
      --enable-strip-libs \
      --enable-cpp-rtti \
      --enable-xterm-updates \
      --disable-toolkit-qt \
      --disable-toolkit-xlib \
     --enable-extensions=wallet \
     --enable-necko-protocols=http,file,jar,viewsource,res,data \
     --enable-image-decoders=png,gif,jpeg"
   
    if [ -n "`use gtk2`" ] ; then
        myconf="${myconf} --enable-toolkit-gtk2 \
                          --enable-default-toolkit=gtk2 \
                          --disable-toolkit-gtk"
    else
        myconf="${myconf} --enable-toolkit-gtk \
                          --enable-default-toolkit=gtk \
                          --disable-toolkit-gtk2"
    fi

    if [ -n "`use ipv6`" ] ; then
        myconf="${myconf} --enable-ipv6"
    fi

   # Crashes on start when compiled with -fomit-frame-pointer
   filter-flags -fomit-frame-pointer
   filter-flags -ffast-math
   append-flags -s -fforce-addr

   if [ "$(gcc-major-version)" -eq "3" ]; then
      # Currently gcc-3.2 or older do not work well if we specify "-march"
      # and other optimizations for pentium4.
     if [ "$(gcc-minor-version)" -lt "3" ]; then
         replace-flags -march=pentium4 -march=pentium3
        filter-flags -msse2
     fi

   fi

   rm ${S}/.mozconfig
   
   econf ${myconf} || die

   edit_makefiles
   emake MOZ_THUNDERBIRD=1 || die

   # Build the enigmail plugin
   if use crypt
   then
      einfo "Building Enigmail plugin..."
      cd ${S}/extensions/ipc
      make || die
           
      cd ${S}/extensions/enigmail
      make || die
   fi

}

src_install() {

   dodir /usr/lib
   dodir /usr/lib/MozillaThunderbird
   cp -RL --no-preserve=links ${S}/dist/bin/* ${D}/usr/lib/MozillaThunderbird

   #fix permissions
   chown -R root.root ${D}/usr/lib/MozillaThunderbird
   
   dobin ${FILESDIR}/MozillaThunderbird

   # Install icon and .desktop for menu entry
   if [ "`use gnome`" ]
   then
      insinto /usr/share/pixmaps
      doins ${S}/build/package/rpm/SOURCES/mozilla-icon.png

      # Fix comment of menu entry
      cd ${S}/build/package/rpm/SOURCES
      cp mozilla.desktop mozillathunderbird.desktop
      perl -pi -e 's:Name=Mozilla:Name=Mozilla Thunderbird:' mozillathunderbird.desktop
      perl -pi -e 's:Comment=Mozilla:Comment=Mozilla Thunderbird Mail Client:' mozillathunderbird.desktop
      perl -pi -e 's:Exec=/usr/bin/mozilla:Exec=/usr/bin/MozillaThunderbird:' mozillathunderbird.desktop
      cd ${S}
      insinto /usr/share/gnome/apps/Internet
      doins ${S}/build/package/rpm/SOURCES/mozillathunderbird.desktop
   fi

}

pkg_postinst() {

   export MOZILLA_FIVE_HOME="${ROOT}/usr/lib/MozillaThunderbird"

   # Needed to update the run time bindings for REGXPCOM
   # (do not remove next line!)
   env-update
   # Register Components and Chrome
   einfo "Registering Components and Chrome..."
   LD_LIBRARY_PATH=/usr/lib/MozillaThunderbird ${MOZILLA_FIVE_HOME}/regxpcom
   LD_LIBRARY_PATH=/usr/lib/MozillaThunderbird ${MOZILLA_FIVE_HOME}/regchrome
   # Fix permissions of component registry
   chmod 0644 ${MOZILLA_FIVE_HOME}/components/compreg.dat
   # Fix directory permissions
   find ${MOZILLA_FIVE_HOME}/ -type d -perm 0700 -exec chmod 0755 {} \; || :
   # Fix permissions on chrome files
   find ${MOZILLA_FIVE_HOME}/chrome/ -name '*.rdf' -exec chmod 0644 {} \; || :

}


If anyone can fix the versions thing for me (I know, I know, I completely ignored the conventions and just stuck numbers in) then please feel free. Works like a dream!
Back to top
View user's profile Send private message
gearheadsmp
n00b
n00b


Joined: 05 Jun 2002
Posts: 38
Location: Memphis, Tennessee

PostPosted: Thu Sep 04, 2003 2:26 pm    Post subject: Ok, after you debug the ebuild... Reply with quote

After you debug the ebuild for Tbird .2, submit it to the bug tracker so it can become an official ebuild. I'll be sure to playtest your ebuild when I get home. :D
_________________
"Captain, yer overloadin' her as it is. The power supply just isn't built to take two hard drrrives."
Back to top
View user's profile Send private message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Thu Sep 04, 2003 3:01 pm    Post subject: Reply with quote

Don't worry, I will! My only gripes with it at the moment are the fact that I have to delete a file I really shouldn't have to (.mozconfig) and that I don't know how to get the versioning thing done properly. How would I fix this so that if 0.3 required an ebuild that was identical in all but name, a simple rename would do the job?
Back to top
View user's profile Send private message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Thu Sep 04, 2003 3:16 pm    Post subject: Reply with quote

Okay, it's now in bugzilla. Still have the versions problem. Find it here:

https://bugs.gentoo.org/show_bug.cgi?id=27930
Back to top
View user's profile Send private message
piquadrat
Guru
Guru


Joined: 18 Feb 2003
Posts: 301
Location: Switzerland

PostPosted: Thu Sep 04, 2003 11:55 pm    Post subject: Reply with quote

I get this error message after around 2 hours of compiling:

Code:
gmake[3]: Leaving directory `/var/tmp/portage/mozilla-thunderbird-0.2/work/mozilla/embedding/browser/gtk/tests'
gmake[2]: Leaving directory `/var/tmp/portage/mozilla-thunderbird-0.2/work/mozilla/embedding/browser/gtk'
gmake[1]: Leaving directory `/var/tmp/portage/mozilla-thunderbird-0.2/work/mozilla'
 * Building Enigmail plugin...
make: *** No targets specified and no makefile found.  Stop.

!!! ERROR: net-mail/mozilla-thunderbird-0.2 failed.
!!! Function src_compile, Line 152, Exitcode 2
!!! (no error message)


Looks like something with enigmail went wrong. USE="-crypt" is a workaround I suppose, altough I really could use Enigmail...
Back to top
View user's profile Send private message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Thu Sep 04, 2003 11:59 pm    Post subject: Reply with quote

Wierd... can you please post a bit more of the error? As in where things start going wrong? There's not really enough info there for me to work out what's borking, sorry!
Back to top
View user's profile Send private message
mogosjoh
Tux's lil' helper
Tux's lil' helper


Joined: 24 Apr 2002
Posts: 79
Location: Plymouth, MI

PostPosted: Fri Sep 05, 2003 12:10 am    Post subject: Reply with quote

this is kind of related to this thread:

I'm having troubles with this ebuild, namely:

Code:

!!! File is corrupt or incomplete. (Digests do not match)
>>> our recorded digest: de8f62efea9a969441048a6fff509667
>>>  your file's digest: 7266b99c48f4b3a3cd1862da5df4436a
!!! File does not exist: /usr/portage/distfiles//enigmail-0.81.latest.tar.gz


This is not necessarily a Thunderbird or ebuild problem, but it is one that I've run into with this. Any suggestions? I was running CVS up until about 30 minutes ago...

--John

edit:

for now I'm installing with "-crypt", but I would like to have enigmail.
Back to top
View user's profile Send private message
piquadrat
Guru
Guru


Joined: 18 Feb 2003
Posts: 301
Location: Switzerland

PostPosted: Fri Sep 05, 2003 12:12 am    Post subject: Reply with quote

everything above was normal gcc output...it looked like it finished compiling Thunderbird and went on to Enigmail but didn't find what it was looking for. Perhaps there is something wrong with unpacking the source, I don't know
Back to top
View user's profile Send private message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Fri Sep 05, 2003 12:14 am    Post subject: Reply with quote

No problemo! This one's a bit easier:

Code:
# rm -f /usr/portage/distfiles/enigmail-0.81.latest.tar.gz
# emerge -f mozilla-thunderbird


This will re-download the enigmail sources for you. Then just try emerging again and all should be well! This is a problem I occasionally get - downloading two things at once can result in a malformed packet finding its way in somewhere it shouldn't and you get corrupt sources which you just have to download again.
Back to top
View user's profile Send private message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Fri Sep 05, 2003 12:19 am    Post subject: Reply with quote

Actually, John, you're right, sorry - it just appears to get lost. Do you have a
Code:
/usr/portage/distfiles/enigmail-0.81.latest.tar.gz
by any chance? If so, does
Code:
ebuild /usr/local/portage/net-mail/mozilla-thunderbird-0.2.ebuild unpack
unpack anything to
Code:
/var/tmp/portage/mozilla-thunderbird-0.2/work/mozilla/extensions/enigmail
?
Back to top
View user's profile Send private message
dreas
Guru
Guru


Joined: 06 Aug 2003
Posts: 359
Location: Germany

PostPosted: Fri Sep 05, 2003 12:20 am    Post subject: Reply with quote

I keep getting the following error:
Quote:
>>> md5 src_uri ;-) thunderbird-source-0.2.tar.bz2

!!! File is corrupt or incomplete. (Digests do not match)
>>> our recorded digest: de8f62efea9a969441048a6fff509667
>>> your file's digest: 7266b99c48f4b3a3cd1862da5df4436a
!!! File does not exist: /usr/portage/distfiles//enigmail-0.81.latest.tar.gz

The last line with the // looks somewhat wrong to me... any ideas on how to fix this?

EDIT: uhm, somehow missed the post above mentioning exactly that problem... sorry.


Last edited by dreas on Fri Sep 05, 2003 12:22 am; edited 1 time in total
Back to top
View user's profile Send private message
piquadrat
Guru
Guru


Joined: 18 Feb 2003
Posts: 301
Location: Switzerland

PostPosted: Fri Sep 05, 2003 12:21 am    Post subject: Reply with quote

that can't be the problem. I md5'ed enigmail-0.81.latest.tar.gz before rm'ing it and after redownloading it. Both times, 7266b99c48f4b3a3cd1862da5df4436a was the result
Back to top
View user's profile Send private message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Fri Sep 05, 2003 12:29 am    Post subject: Reply with quote

Ahhh, bugger. Sorry! I should probably give some better instructions for using this, shouldn't I?!

Okay, here goes, step by step:

1. mkdir -p /usr/local/portage/net-mail/mozilla-thunderbird
2. Save the ebuild as /usr/local/portage/net-mail/mozilla-thunderbird/mozilla-thunderbird-0.2.ebuild
3. cd /usr/local/portage/net-mail/mozilla-thunderbird
4. cp /usr/portage/net-mail/mozilla-thunderbird/ChangeLog .
5. cp /usr/portage/net-mail/mozilla-thunderbird/Manifest .
6. cp /usr/portage/net-mail/mozilla-thunderbird/metadata.xml .
7. cp -R /usr/portage/net-mail/mozilla-thunderbird/files .
8. ebuild mozilla-thunderbird-0.2.ebuild digest

This should hopefully iron out the problems. However, it's possible that the maintainers of the Enigmail package could well have broken it, they've certainly changed it - the MD5 I have for mine is indeed de8f62efea9a969441048a6fff509667. I'll download the new one and have a look see if I can find what they've changed.
Back to top
View user's profile Send private message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Fri Sep 05, 2003 12:40 am    Post subject: Reply with quote

It appears that all they've changed are three files going by the name of enigmailMessengerOverlay.js, enigmailMessengerOverlay.xul and enigmailMsgComposeOverlay.js, so that certainly shouldn't break the build process. My only suggestion would have to be to update the digest by running command number 8 listed above. I really don't have any idea why it shouldn't work otherwise!
Back to top
View user's profile Send private message
antibiotic
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jun 2003
Posts: 110
Location: New West, Vancouver, BC

PostPosted: Fri Sep 05, 2003 12:42 am    Post subject: Reply with quote

Allright, I was getting the same bloody problem with checksums. After I ran digest on that ebuild after emerge sync, everything worked

Cheers.
_________________
"What??!! You went over my helmet??"
Back to top
View user's profile Send private message
dreas
Guru
Guru


Joined: 06 Aug 2003
Posts: 359
Location: Germany

PostPosted: Fri Sep 05, 2003 12:46 am    Post subject: Reply with quote

Hell yeah, thanks man, step 8 before emerge seems to the job!
Back to top
View user's profile Send private message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Fri Sep 05, 2003 12:47 am    Post subject: Reply with quote

Can you post back again if you manage to compile it correctly? I'm still quite perplexed as to why portage compiled HermesConrad and then just stopped! I personally didn't have any problems with Enigmail - and I'm using it right now, I should add - but that doesn't mean everyone else is immune...
Back to top
View user's profile Send private message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Fri Sep 05, 2003 12:50 am    Post subject: Reply with quote

Also, if problems with the newer version of Enigmail show up (although they certainly shouldn't do) the version I used and have working correctly is available from here.
Back to top
View user's profile Send private message
dreas
Guru
Guru


Joined: 06 Aug 2003
Posts: 359
Location: Germany

PostPosted: Fri Sep 05, 2003 1:05 am    Post subject: Reply with quote

It's currently compiling and will do so for quite more time this night. No errors so far but I'll be able to tell you more when I got up in a few hours... night.
Back to top
View user's profile Send private message
robmoss
Retired Dev
Retired Dev


Joined: 27 May 2003
Posts: 2634
Location: Jesus College, Oxford

PostPosted: Fri Sep 05, 2003 1:06 am    Post subject: Reply with quote

Okay, cheers... good luck!
Back to top
View user's profile Send private message
dreas
Guru
Guru


Joined: 06 Aug 2003
Posts: 359
Location: Germany

PostPosted: Fri Sep 05, 2003 6:15 am    Post subject: Reply with quote

Well, I just started Thunderbird and it's working like a charm again. I thank you so much!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum