Opened 21 years ago

Closed 21 years ago

Last modified 11 years ago

#630 closed defect (fixed)

Mozilla 1.6 enigmail instructions depend on csh (AKA, simplified build instructions)

Reported by: lizardo@… Owned by: tushar@…
Priority: high Milestone:
Component: BOOK Version: ~CVS
Severity: normal Keywords:
Cc:

Description

The "makemake" script, used to create Makefiles for Mozilla extensions, is a csh script (just open it and see its contents). We should add the csh as an optional dependency, necessary only if building extensions.

Alternatively (and what I suggest), we can change the instructions a bit, and simplify a lot. See:

export MOZILLA_OFFICIAL="1" && export BUILD_OFFICIAL="1" && ./configure --prefix=/usr \ [same parameters] --enable-extensions=all,ipc,enigmail && ./build/autoconf/make-makefile extensions/ipc extensions/enigmail && make

And remove these lines:

cd extensions/ipc && ./makemake -r && make && cd ../enigmail && ./makemake -r && make && cd ../..

Also, remove the enigmail installation lines, as mozilla will take care of this automatically:

for i in components/enigmime.xpt \ components/ipc.xpt components/libenigmime.so components/enigmail.js \ components/enigmail.xpt chrome/enigmail.jar do

install dist/bin/$i /usr/lib/mozilla-1.6/$i

done

I've only tested this partially (ie. compiled and installed only the extensions, not the entire mozilla), but I'm just starting a full build now. Also, I'd like that someone who effectively use the enigmail extension test these instructions to see if it still works as expected.

Change History (7)

comment:1 by tushar@…, 21 years ago

I remember trying that the first time I added enigmail to the book and once around Mozilla-1.4 (may be mistaken on that one). It didn't work.

comment:2 by lizardo@…, 21 years ago

Indeed, it did not work when I tried the easiest approach of using "./configure ... --enable-extensions=all,ipc,enigmail && make && make install", due a classical chicken-egg problem: if I enable enigmail earlier on "configure", the mozilla's toolchain tries to build the enigmail extension before some of its dependencies (AFAIK mailnews/compose and mailnews/extensions/smime). Then, if I do not enable enigmal and ipc on configure, it does not create the Makefile for them, so I cannot use a simple "make -C extensions/ipc && make -C extensions/enigmail".

Anyway, I came up with a set of instructions that seem to satisfy the purposes of this bug#:

  • Remove the csh dependency by not using the "makemake" script;
  • Simplify the things a bit on the way.

So, here is a diff of what changes:

< cd extensions/ipc < ./makemake -r < make < cd ../enigmail < ./makemake -r < make < cd ../.. ---

./build/autoconf/make-makefile extensions/ipc extensions/enigmail make -C extensions/ipc make -C extensions/enigmail

< for i in components/enigmime.xpt \ < components/ipc.xpt components/libenigmime.so components/enigmail.js \ < components/enigmail.xpt chrome/enigmail.jar < do < install dist/bin/$i /usr/lib/mozilla-1.6/$i < done ---

make -C extensions/ipc install make -C extensions/enigmail install

I've made a full and clean (i.e. whithout a previous Mozilla installation) build using these instructions and had no problems. The enigmail menu is there, the "view console" does not show anything abnormal (although I could not test the plugin myself as I don't use Mozilla Mail). I would apreciate if someone else tries the above instructions to see if I forgot something.

comment:3 by tushar@…, 21 years ago

Status: newassigned

comment:4 by tushar@…, 21 years ago

Owner: changed from blfs-book@… to tushar@…
Status: assignednew

comment:5 by tushar@…, 21 years ago

Status: newassigned

comment:6 by tushar@…, 21 years ago

Resolution: fixed
Status: assignedclosed

An added benefit of the suggested instructions is that the corresponding .idl and .h files also get installed.

comment:7 by bdubbs@…, 11 years ago

Milestone: old

Milestone old deleted

Note: See TracTickets for help on using tickets.