You are not logged in.

#1 2009-12-05 21:07:09

thoughtcrime
Member
Registered: 2008-09-27
Posts: 156
Website

[REQUEST] lightning-hg (for thunderbird3)

Lightning is that nice calendar add-on for Thunderbird. As we are all bleeding edge lovers, I've just installed thunderbird3 (the AUR package), but now the stable lightning version does not work anymore.

I've tried to come up with my own PKGBUILD, but the Mozilla build processes are a bit complex and by now my PKGBUILD seems just to compile everything BUT lightning itself.

Please make it functional, thanks a bunch!

pkgname=lightning-hg
pkgver=4495
pkgrel=1
_tb_ver=3.0rc2
_tb_libdir=thunderbird-3.0 # Adjust this to your thunderbird directory in /usr/lib
_comm_dir=comm-1.9.1
pkgdesc="An integrated calendar extension for Mozilla Thunderbird 3"
arch=('i686' 'x86_64')
url="http://www.mozilla.org/projects/calendar/lightning/"
license=('MPL' 'GPL' 'LGPL')
makedepends=('mercurial' 'zip' 'pkgconfig')
depends=('thunderbird3')
options=()
noextract=("thunderbird-${_tb_ver}.source.tar.bz2")
source=("http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/${_tb_ver}/source/thunderbird-${_tb_ver}.source.tar.bz2"
        "mozconfig")
md5sums=('35abdb06cb92e3ff9c62b7831136ac44'
         '3357d346cc1f8570a27fc004468df5f9')

_hgroot="http://hg.mozilla.org/comm-central/calendar"
_hgrepo=calendar
build() {
    cd "$srcdir"
    
    if [ ! -d "$srcdir/$_comm_dir" ]; then
        msg "Extracting thunderbird-${_tb_ver}.source.tar.bz2..."
        bsdtar -x -f "thunderbird-${_tb_ver}.source.tar.bz2" --exclude calendar
    fi
    
    msg "Starting make..."
    
        
    # Link the calendar folder we just downloaded from
    # mercurial to the $_comm_dir
    cd "$srcdir/$_comm_dir"
    ln -s "$srcdir/calendar" .
    

# stuff below is copied from the 'lightning' aur package:
    export MOZ_OBJDIR="$srcdir/$_comm_dir/lightning-obj"
    export MOZILLA_FIVE_HOME="/usr/lib/$_tb_libdir"
    export MOZCONFIG="$srcdir/mozconfig"
    export LDFLAGS="$(pkg-config --libs xrender)"
        
    make -f client.mk build
    make -C "$MOZ_OBJDIR" export
    make -C "$MOZ_OBJDIR/mozilla/xpcom"
    make -C "$MOZ_OBJDIR/mozilla/js/src"
    make -C "$MOZ_OBJDIR/calendar/lightning"

      MOZILLA_FIVE_HOME+=/extensions/$(sed -n '70 s/.*\({.*}\).*/\1/p' \
        calendar/lightning/Makefile.in)
      install -dm755 "$pkgdir$MOZILLA_FIVE_HOME"
      bsdtar -xf "$MOZ_OBJDIR/dist/xpi-stage/lightning.xpi" \
        -C "$pkgdir$MOZILLA_FIVE_HOME"

      find "$pkgdir" -type d -exec chmod 755 -- '{}' \;
      find "$pkgdir" -type f -exec chmod 644 -- '{}' \;
      find "$pkgdir" -name '*.so*' -o -name '*.sqlite' -exec chmod 755 -- '{}' \;
}

The mozconfig file:

# this line produced an error
#. $topsrcdir/calendar/sunbird/config/mozconfig

# I'm not sure at all what really should be here
ac_add_options --enable-application=mail
ac_add_options --prefix=/usr
#ac_add_options --enable-extensions=lightning
ac_add_options --enable-default-toolkit=cairo-gtk2
ac_add_options --enable-system-cairo
ac_add_options --enable-optimize
ac_add_options --disable-debug
ac_add_options --disable-tests
ac_add_options --disable-installer
ac_add_options --with-default-mozilla-five-home=$MOZILLA_FIVE_HOME
ac_add_options --with-system-nss
ac_add_options --with-system-nspr
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --with-system-png

mk_add_options BUILD_OFFICIAL=1
mk_add_options MOZILLA_OFFICIAL=1
mk_add_options MOZ_CO_PROJECT=mail

Some reference:
https://developer.mozilla.org/En/Config … ld_Options


- blog (about arch and other stuff): http://thoughtyblog.wordpress.com/
- x86_64 user

Offline

#2 2009-12-05 21:27:09

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [REQUEST] lightning-hg (for thunderbird3)

its funny that i'm using thunderbird3 and since rc1 lightning extension is built in.


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2009-12-06 15:01:28

thoughtcrime
Member
Registered: 2008-09-27
Posts: 156
Website

Re: [REQUEST] lightning-hg (for thunderbird3)

The built one does not work for me. I've also read that they want to keep both separated on their wiki.


- blog (about arch and other stuff): http://thoughtyblog.wordpress.com/
- x86_64 user

Offline

#4 2009-12-07 09:21:14

Schnouki
Member
From: Nancy, France
Registered: 2007-10-28
Posts: 22
Website

Re: [REQUEST] lightning-hg (for thunderbird3)

Hmm, I'm using the built-in extension too, and it works fine. Right now the only .xpi I'm using for Lightning is the provider for Google Calendar.

I don't know where I downloaded the .xpi I was previously using (according to the build ID it was built on November 26th), but you can try downloading a more recent build on http://www.secudb.de/~seuffert/mozilla/ (just googled "lightning 1.0pre x86_64 xpi", I don't know what it's worth...).

If you still want to build Lightning yourself, you should read https://developer.mozilla.org/en/Simple … _Lightning. Good luck ;-)


There's no place like ::1

Offline

#5 2009-12-09 18:39:30

thoughtcrime
Member
Registered: 2008-09-27
Posts: 156
Website

Re: [REQUEST] lightning-hg (for thunderbird3)

Thanks for the links. I guess now that the problem was caused by thunderbird3 3.0rc2-3 I built from AUR, because it caused every version of Lightning I tried to use to crash.

But I will stay with thunderbird2 a bit longer, because I found some things that do not yet work with thunderbird3 (for example: where can one set the network timeout?).


- blog (about arch and other stuff): http://thoughtyblog.wordpress.com/
- x86_64 user

Offline

#6 2009-12-11 10:51:40

thoughtcrime
Member
Registered: 2008-09-27
Posts: 156
Website

Re: [REQUEST] lightning-hg (for thunderbird3)

Actually I did not know that the thunderbird3 release happened so quickly. So in the end I installed tb3 from extra now and with the XPIs Schnouki found, lightning works, so thanks a bunch for that!

However, I think that it should be possible to make such an lightning PKGBUILD (without using pre-made binaries of course), so maybe someone could try to make one.


- blog (about arch and other stuff): http://thoughtyblog.wordpress.com/
- x86_64 user

Offline

#7 2009-12-11 16:27:59

Pelikan
Member
Registered: 2009-03-10
Posts: 11

Re: [REQUEST] lightning-hg (for thunderbird3)

hi,

you can use the official PKGBUILD from abs and simply add:

echo "ac_add_options --enable-calendar" >> .mozconfig

Offline

#8 2010-01-11 18:59:47

domanov
Member
From: Italy
Registered: 2006-11-10
Posts: 45

Re: [REQUEST] lightning-hg (for thunderbird3)

Hi people,

I just tried  (x86_64) the

  echo "ac_add_options --enable-calendar" >> .mozconfig

hack but the calendar is still buggy - can't read from a CalDAV calendar, write works though, but the modifications are lost at the next thunderbird session. Anyone found a solution to calendar/lightning for thunderbird 3 x86_64?

Offline

#9 2010-01-12 18:10:10

xduugu
Member
Registered: 2008-10-16
Posts: 292

Re: [REQUEST] lightning-hg (for thunderbird3)

FYI, there is now a xpi for thunderbird x86_64.
http://releases.mozilla.org/pub/mozilla … ux-x86_64/

Offline

#10 2010-01-12 18:57:57

domanov
Member
From: Italy
Registered: 2006-11-10
Posts: 45

Re: [REQUEST] lightning-hg (for thunderbird3)

Nope, still doesn't work (at least together with the thunderbird 3.0-3 pkg in extra, I'll try later with a nightly build)

Offline

Board footer

Powered by FluxBB