I sent this yesterday but it got lost by my isp.

On Wednesday 20 December 2006 3:31 am, Stephan A. Rickauer wrote:
> Kurt Miller wrote:
> > On Tuesday 19 December 2006 3:05 am, Stephan A. Rickauer wrote:
> >> Kurt Miller wrote:
> >>> This is working for me with the same versions of the packages
> >>> you listed. I built them myself instead of from snapshots though.
> >>> AFAICT, system nss doesn't effect this. Have you tried some
> >>> of the suggestions in the install message like creating a new
> >>> profile?
> >> After the problems with the packages I've also compiled from ports and
> >> had the same effect. Since I've migrated my profile from linux
> >> originally, I did move it away first and started a brand new
> >> ~/.thunderbird from scratch.
> > 
> > I still can't reproduce your particular problem, but
> > I have noticed that enigmail installs its shared lib
> > in the ~/.thunderbird profile dir. This is going to
> > be problematic for upgrades.
> > 
> > Please uninstall enigmail from thunderbird (Tools ->
> > Extensions -> Enigmail -> Uninstall) and try the
> > attached diff. It installs enigmail into the global
> > extensions dir.
> 
> I've done so. Your diff applies cleanly, 'make' worked, 'make install'
> failed and complained about missing enigmime library. I thought I might
> have a messed up ports tree, so I wiped it out and cvs'ed it completely
> from scratch. Applying your diff, 'make' and 'make install' worked fine
> then.
>
> 
> Starting thunderbird with the previously removed enigmail extension
> showed enigmail installed again, without having to go over the Extension
> Manager. However, my problem persists: Enigmime service unavailable.

enigmail's shared lib version (SO_VERSION) must match
thunderbird's or thunderbird doesn't see it. This appears
to be the problem you've been having all along. First
it was outdated shared libs in ~/.thunderbird. Now that's
fixed you are still seeing the problem because you've got
thunderbird installed with SO_VERSION 12.0 (from the nss
patch), but enigmail with SO_VERSION 11.0.

At a minimum the LIB_DEPENDS in my patch will need to
be tightened up to exactly match the thunderbird package
it was intended to be matched with. That means both
SO_VERSION and LIB_DEPENDS in enigmail will need to be
manually kept in synch after each update to thunderbird.
That's not ideal. Not sure yet if a better solution
will be found.

I've attached an updated diff that should work with
thunderbird 1.5.0.9 that was just committed.
 
> I've redone this step with LD_DEBUG=1 and have another nohup attached.
> This is really curious, because no one seems to be able to reproduce
> this problem. ;(
> 
> One question. In your previous mail you've asked me to pkg_delete
> whatever is no longer needed. I didn't quite understand what you meant
> by that, so I've missed that step so far.

That was a shot in the dark. You didn't have any .libs packages
left over from upgrades so there was nothing to pkg_delete.

-Kurt
Index: Makefile
===================================================================
RCS file: /cvs/ports/mail/enigmail/Makefile,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile
--- Makefile	3 Oct 2006 21:10:16 -0000	1.1.1.1
+++ Makefile	21 Dec 2006 20:21:37 -0000
@@ -8,8 +8,11 @@
 
 VER=		0.94.1
 DISTNAME=	enigmail-${VER}
+PKGNAME=	enigmail-${VER}p0
 CATEGORIES=	mail security
 
+SHARED_LIBS=	enigmime	12.0
+
 HOMEPAGE=	http://enigmail.mozdev.org/
 
 # mozilla public license or GPL
@@ -21,14 +24,16 @@
 MASTER_SITES=	http://www.mozilla-enigmail.org/downloads/src/
 
 THUNDERBIRD_DIR=mail/mozilla-thunderbird
-BUILD_DEPENDS=	::${THUNDERBIRD_DIR}:configure
-RUN_DEPENDS=	:mozilla-thunderbird->=1.5:${THUNDERBIRD_DIR} \
-		::security/gnupg
+BUILD_DEPENDS=	::${THUNDERBIRD_DIR}:configure \
+		::archivers/unzip
+RUN_DEPENDS=	::security/gnupg
+
+LIB_DEPENDS=	mozilla-thunderbird/xpcom,mozilla-thunderbird/xpcom_compat,mozilla-thunderbird/xpcom_core:mozilla-thunderbird-1.5.0.9:${THUNDERBIRD_DIR}
+WANTLIB=	c m nspr4 plc4 plds4
 
 USE_X11=	Yes
 USE_GMAKE=	Yes
 NO_REGRESS=	Yes
-SUBST_VARS=	VER ENIGMAIL_XPI GNU_ARCH
 
 MOZBASE=	${WRKDIR}/${THUNDERBIRD_DIR}/mozilla
 MOZBIN=		${MOZBASE}/dist/bin
@@ -38,6 +43,10 @@
 GNU_ARCH=	${MACHINE_ARCH:S/amd64/x86_64/}
 ENIGMAIL_XPI=	${DISTNAME}-${OPSYS:L}-${GNU_ARCH}.xpi
 
+# unzip ${ENIGMAIL_XPI} and inspect install.rdf for GUID
+GUID=		{847b3a00-7ab1-11d4-8f02-006008948af5}
+GLOBALDIR=	${PREFIX}/mozilla-thunderbird/extensions/${GUID}
+
 post-extract:
 	@mv ${WRKDIST} ${MOZBASE}/mailnews/extensions
 
@@ -52,7 +61,9 @@
 	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} xpi
 
 do-install:
-	${INSTALL_DATA_DIR} ${PREFIX}/share/enigmail
-	${INSTALL_DATA} ${MOZBIN}/${ENIGMAIL_XPI} ${PREFIX}/share/enigmail
+	echo ${THUNDERBIRD_PKG}
+	${INSTALL_DATA_DIR} ${GLOBALDIR}
+	unzip -q ${MOZBIN}/${ENIGMAIL_XPI} -d ${GLOBALDIR}
 
 .include <bsd.port.mk>
+
Index: pkg/MESSAGE
===================================================================
RCS file: pkg/MESSAGE
diff -N pkg/MESSAGE
--- pkg/MESSAGE	3 Oct 2006 21:10:16 -0000	1.1.1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,3 +0,0 @@
-To activate the Enigmail extension, users should install the file
-${PREFIX}/share/enigmail/${ENIGMAIL_XPI}
-into their own profile via the menu: Tools -> Extensions -> Install
Index: pkg/PFRAG.shared
===================================================================
RCS file: pkg/PFRAG.shared
diff -N pkg/PFRAG.shared
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ pkg/PFRAG.shared	21 Dec 2006 20:21:37 -0000
@@ -0,0 +1,2 @@
[EMAIL PROTECTED] $OpenBSD$
[EMAIL PROTECTED] mozilla-thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/libenigmime.so.${LIBenigmime_VERSION}
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/mail/enigmail/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 PLIST
--- pkg/PLIST	3 Oct 2006 21:10:16 -0000	1.1.1.1
+++ pkg/PLIST	21 Dec 2006 20:21:37 -0000
@@ -1,3 +1,22 @@
 @comment $OpenBSD: PLIST,v 1.1.1.1 2006/10/03 21:10:16 steven Exp $
-share/enigmail/
-share/enigmail/enigmail-${VER}-openbsd-${GNU_ARCH}.xpi
+%%SHARED%%
+mozilla-thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/
+mozilla-thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome/
+mozilla-thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome.manifest
+mozilla-thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome/enigmail-skin-tbird.jar
+mozilla-thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome/enigmail-skin.jar
+mozilla-thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/chrome/enigmail.jar
+mozilla-thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/
+mozilla-thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/enigmail.js
+mozilla-thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/enigmail.xpt
+mozilla-thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/enigmime.xpt
+mozilla-thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/enigprefs-service.js
+mozilla-thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/components/ipc.xpt
+mozilla-thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/defaults/
+mozilla-thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/defaults/pref/
+mozilla-thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/defaults/pref/enigmail.js
+mozilla-thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/defaults/preferences/
+mozilla-thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/defaults/preferences/enigmail.js
+mozilla-thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/enigmail.spec
+mozilla-thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/install.js
+mozilla-thunderbird/extensions/{847b3a00-7ab1-11d4-8f02-006008948af5}/install.rdf

Reply via email to