Author: randy Date: 2005-08-26 00:38:47 -0600 (Fri, 26 Aug 2005) New Revision: 4983
Added: trunk/patches/thunderbird-1.0.6-fixes-1.patch Modified: trunk/BOOK/general.ent trunk/BOOK/introduction/welcome/changelog.xml trunk/BOOK/xsoft/other/thunderbird.xml Log: Fixed numerous issues with the Thunderbird build, see the Changelog for details Modified: trunk/BOOK/general.ent =================================================================== --- trunk/BOOK/general.ent 2005-08-25 19:54:56 UTC (rev 4982) +++ trunk/BOOK/general.ent 2005-08-26 06:38:47 UTC (rev 4983) @@ -1,4 +1,4 @@ -<!ENTITY day "25"> +<!ENTITY day "26"> <!ENTITY month "08"> <!ENTITY year "2005"> <!ENTITY version "svn-&year;&month;&day;"> Modified: trunk/BOOK/introduction/welcome/changelog.xml =================================================================== --- trunk/BOOK/introduction/welcome/changelog.xml 2005-08-25 19:54:56 UTC (rev 4982) +++ trunk/BOOK/introduction/welcome/changelog.xml 2005-08-26 06:38:47 UTC (rev 4983) @@ -42,6 +42,20 @@ --> <listitem> + <para>August 26th, 2005</para> + <itemizedlist> + <listitem> + <para>[randy] - Added fixes to the Thunderbird instructions: 1) + the Movemail and RSS & Blogs account setup options are now + available 2) modified the Enigmail setup so that it actually works + 3) fixed the profile locking problem 4) made it so that if a mailto: + URL is clicked, a message compose window is opened with the To: field + filled out.</para> + </listitem> + </itemizedlist> + </listitem> + + <listitem> <para>August 25th, 2005</para> <itemizedlist> <listitem> Modified: trunk/BOOK/xsoft/other/thunderbird.xml =================================================================== --- trunk/BOOK/xsoft/other/thunderbird.xml 2005-08-25 19:54:56 UTC (rev 4982) +++ trunk/BOOK/xsoft/other/thunderbird.xml 2005-08-26 06:38:47 UTC (rev 4983) @@ -20,6 +20,18 @@ <!ENTITY thunderbird-ipc-md5sum "64ba4c6e3b52568468c4f6680ec7e679"> ]> +<!-- + +Devs: + +Always check the mail/config/mozconfig file in the source tree for +any changes to the options passed to configure. This file shows the +default build used by Mozilla. BLFS adds to this, but the values here +should be in our setup. The stuff about ActiveX can be ignored as +that is Windows crap only. + +--> + <sect1 id="thunderbird" xreflabel="Thunderbird-&thunderbird-version;"> <?dbhtml filename="thunderbird.html" ?> @@ -64,6 +76,12 @@ </itemizedlist> <bridgehead renderas="sect3">Additional Downloads</bridgehead> + <itemizedlist spacing="compact"> + <listitem> + <para>Required patch: <ulink + url="&patch-root;/thunderbird-&thunderbird-version;-fixes-1.patch"/></para> + </listitem> + </itemizedlist> <para>To enable the <application>Enigmail</application> extension to the <application>Thunderbird</application> mail client, you'll need to download @@ -94,8 +112,8 @@ <xref linkend="libidl"/></para> <bridgehead renderas="sect4">Recommended</bridgehead> - <para><xref linkend="gnupg"/> (for the <application>Enigmail</application> - extension)</para> + <para><xref linkend="gnupg"/> (run-time only dependency for the + <application>Enigmail</application> extension)</para> <bridgehead renderas="sect4">Optional</bridgehead> <para><xref linkend="libjpeg"/>, @@ -125,12 +143,10 @@ <screen><userinput>export MOZILLA_OFFICIAL="1" && export BUILD_OFFICIAL="1" && export MOZ_THUNDERBIRD="1" && - -sed -i -e 's/$(destdir)$(bindir)/$(DESTDIR)$(mozappdir)/' \ - mail/app/Makefile.in && - +patch -Np1 -i ../thunderbird-&thunderbird-version;-fixes-1.patch && ./configure --prefix=/usr \ --with-default-mozilla-five-home=/usr/lib/thunderbird-&thunderbird-version; \ + --with-user-appdir=.thunderbird \ --with-system-zlib \ --with-system-png \ --enable-application=mail \ @@ -171,22 +187,30 @@ tar -zxf ../ipc-&thunderbird-ipc-version;.tar.gz -C extensions && build/autoconf/make-makefile extensions/ipc extensions/enigmail && make -C extensions/ipc && -make -C extensions/enigmail</userinput></screen> +make -C extensions/enigmail && +make -C extensions/enigmail xpi</userinput></screen> <para>Install <application>Thunderbird</application> by running the following commands as the <systemitem class="username">root</systemitem> user:</para> <screen role="root"><userinput>make install && -install -d /usr/include/thunderbird-&thunderbird-version;/nss && -cp -Lf dist/private/nss/*.h dist/public/nss/*.h \ - /usr/include/thunderbird-&thunderbird-version;/nss</userinput></screen> +install -v -m755 -d /usr/include/thunderbird-&thunderbird-version;/nss && +cp -v -Lf dist/private/nss/*.h dist/public/nss/*.h \ + /usr/include/thunderbird-&thunderbird-version;/nss && +install -v -m755 -d /usr/lib/thunderbird-&thunderbird-version;/defaults/isp/US && +install -v -m644 mailnews/base/ispdata/movemail.rdf \ + mail/extensions/newsblog/rss.rdf \ + /usr/lib/thunderbird-&thunderbird-version;/defaults/isp && +ln -v -s ../{movemail,rss}.rdf \ + /usr/lib/thunderbird-&thunderbird-version;/defaults/isp/US</userinput></screen> <para>If you're installing the <application>Enigmail</application> extension, issue the following commands as the <systemitem class="username">root</systemitem> user:</para> -<screen role="root"><userinput>make -C extensions/ipc install && -make -C extensions/enigmail install</userinput></screen> +<screen role="root"><userinput>install -v -m755 -d /usr/lib/thunderbird-&thunderbird-version;/extensions && +install -v -m644 dist/bin/enigmail-&thunderbird-enigmail-version;-linux-*.xpi \ + /usr/lib/thunderbird-&thunderbird-version;/extensions</userinput></screen> <para>To enable multi-user operation, execute the following as the <systemitem class="username">root</systemitem> user:</para> @@ -199,10 +223,11 @@ touch `find . -name *.rdf`</userinput></screen> <note> - <para>You should run <command>/usr/bin/thunderbird</command> once as - the <systemitem class="username">root</systemitem> user (or any user - with write privileges) to create some necessary additional files in - the <filename class='directory'>/usr</filename> hierarchy.</para> + <para>You should run <command>/usr/bin/thunderbird</command> once as the + <systemitem class="username">root</systemitem> user (or any user with + write privileges) to create some necessary additional files in the + <filename class='directory'>/usr/lib/thunderbird-&thunderbird-version;</filename> + directory.</para> </note> <para>Finally, unset the build variables from the unprivileged user's @@ -217,17 +242,49 @@ <sect2 role="commands"> <title>Command Explanations</title> - <para><command>sed -i -e 's/$(destdir)$(bindir)/$(DESTDIR)$(mozappdir)/' - mail/app/Makefile.in</command>: Correct the installation location of the - <filename class='directory'>defaults</filename> directory.</para> + <para><command>patch -Np1 -i ...</command>: This patches fixes three major + issues with the <application>Thunderbird</application> installation. First, + it moves the installation of the <filename>prefs.js</filename> file from + <filename class='directory'>/usr/bin/defaults/profile</filename> to + <filename class='directory'>/usr/lib/thunderbird-&thunderbird-version;/defaults/profile</filename>, + it fixes a profile locking problem if the <command>thunderbird</command> + script is called when <application>Thunderbird</application> is already + running and last, makes it so that if a + <computeroutput>mailto:</computeroutput> URL is clicked, a message + compose window will open with the <computeroutput>To:</computeroutput> + field filled out.</para> </sect2> + <sect2 role="configuration"> + <title>Configuring Thunderbird</title> + + <sect3><title>Configuration Information</title> + + <para>Configuration of <application>Thunderbird</application> to use the + <application>Enigmail</application> extension must be done on an + as-needed basis for each user of the system who may use + <application>Thunderbird</application>. It is accomplished through the + <application>Thunderbird</application> <quote>Tools</quote> menu. Choose + the <quote>Extensions</quote> – <quote>Install</quote> option and + fill in the <quote>Look in:</quote> field with + <filename class='directory'>/usr/lib/thunderbird-&thunderbird-version;/extensions</filename>. + You'll then see the + <filename>enigmail-&thunderbird-enigmail-version;-linux-????.xpi</filename> + file listed. Choose this file and click on <quote>Open</quote>, then + click on <quote>Install now</quote>. The + <application>Enigmail</application> extension will install and you will + be prompted to restart <application>Thunderbird</application>.</para> + + </sect3> + + </sect2> + <sect2 role="content"> <title>Contents</title> <segmentedlist> - <segtitle>Installed Program</segtitle> + <segtitle>Installed Programs</segtitle> <segtitle>Installed Libraries</segtitle> <segtitle>Installed Directories</segtitle> Added: trunk/patches/thunderbird-1.0.6-fixes-1.patch =================================================================== --- trunk/patches/thunderbird-1.0.6-fixes-1.patch 2005-08-25 19:54:56 UTC (rev 4982) +++ trunk/patches/thunderbird-1.0.6-fixes-1.patch 2005-08-26 06:38:47 UTC (rev 4983) @@ -0,0 +1,49 @@ +Submitted By: Randy McMurchy <randy_at_linuxfromscratch_dot_org> +Date: 2005-08-26 +Initial Package Version: 1.0.6 +Upstream Status: Not submitted +Origin: Multiple sources (Randy McMurchy, Kevin Somervill + and Fedora/Gentoo mail lists) +Description: Fixes: + 1) moves prefs.js installation from /usr/bin/defaults + to /usr/lib/thunderbird-1.0.6/defaults + 2) profile locking problem is resolved + 3) makes it so that if you click on a mailto: URL + it will open up the message compose window with + the To: field filled out + +$LastChangedBy$ +$Date$ + + +diff -Naur mozilla-orig/mail/app/Makefile.in mozilla/mail/app/Makefile.in +--- mozilla-orig/mail/app/Makefile.in 2004-11-12 18:50:37.000000000 +0000 ++++ mozilla/mail/app/Makefile.in 2005-08-26 04:31:50.000000000 +0000 +@@ -307,4 +307,4 @@ + $(INSTALL) $^ $(DIST)/bin/defaults/profile + + install:: $(srcdir)/profile/prefs.js +- $(SYSINSTALL) $(IFLAGS1) $^ $(destdir)$(bindir)/defaults/profile ++ $(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(mozappdir)/defaults/profile +diff -Naur mozilla-orig/mail/app/mozilla.in mozilla/mail/app/mozilla.in +--- mozilla-orig/mail/app/mozilla.in 2004-07-24 23:58:06.000000000 +0000 ++++ mozilla/mail/app/mozilla.in 2005-08-26 04:31:50.000000000 +0000 +@@ -108,7 +108,9 @@ + if [ $found = 0 ]; then + # Check default compile-time libdir + if [ -x "$moz_libdir/run-mozilla.sh" ]; then ++ + dist_bin="$moz_libdir" ++ run_moz="$dist_bin/run-mozilla.sh" + else + echo "Cannot find mozilla runtime directory. Exiting." + exit 1 +@@ -187,7 +189,7 @@ + # We should use an existing instance, as _USE_EXIST=$_USE_EXIST=-1 + _open_type="window" + #_open_type="tab" +- _remote_cmd="openURL(${_optLast} , new-${_open_type})" ++ _remote_cmd="mailto(${_optLast})" + "${run_moz}" "$MOZ_CLIENT_PROGRAM" -a "${progbase}" "${_remote_cmd}" + unset _remote_cmd _open_type + exit $? Property changes on: trunk/patches/thunderbird-1.0.6-fixes-1.patch ___________________________________________________________________ Name: svn:keywords + LastChangedBy Date -- http://linuxfromscratch.org/mailman/listinfo/blfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page