Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Mar 2002 20:00:57 -0500
From:      David Magda <dmagda@magda.ca>
To:        Joe Clarke <marcus@marcuscom.com>
Cc:        gnome@freebsd.org
Subject:   Re: mozilla freebsd port
Message-ID:  <20020323200055.A54523@number6.magda.ca>
In-Reply-To: <1016900918.3942.2.camel@shumai.marcuscom.com>; from marcus@marcuscom.com on Sat, Mar 23, 2002 at 11:28:38AM -0500
References:  <20020323105016.A37809@number6.magda.ca> <1016900918.3942.2.camel@shumai.marcuscom.com>

next in thread | previous in thread | raw e-mail | index | archive | help

Oops. I didn't realize gnome@ has a mailing list. :>

On Sat, Mar 23, 2002 at 11:28:38AM -0500, Joe Clarke wrote:
> > to the final destination using tar(1). Could you add a Makefile knob
> > which, if defined, would do a 'chown -R ${OWNER} ${PREFIX}/lib/mozilla'?
>
> A PR for this was submitted last week by Alen Eldridge.  You should be
> able to search for it.

Yes I found it. The tracker is "ports/35980".

> Could you submit patches?

Here's the output from a 'diff -u'. In the patch I've also included a
${CHOWN} to deal with the ownership issue. I've used the ${BINOWN}
${BINGRP} which I found in /usr/share/mk/bsd.own.mk. They can be changed
at run time to whatever the installer wants. I do not know how this
patch will effect the mozilla-{headers,embedded} ports.

----- CUT HERE -----

--- Makefile.orig	Sat Mar 23 12:50:46 2002
+++ Makefile	Sat Mar 23 19:39:33 2002
@@ -47,8 +47,6 @@
 		--enable-double-buffer		\
 		--enable-dtd-debug		\
 		--enable-jsd			\
-		--enable-ldap			\
-		--enable-mailnews		\
 		--enable-mathml			\
 		--disable-md			\
 		--disable-optimize		\
@@ -64,6 +62,17 @@
 		--with-system-mng=${LOCALBASE}	\
 		--with-system-png=${LOCALBASE}	\
 		--with-pthreads
+
+# LDAP is only used with mail and news so disable both together
+.if defined(WITHOUT_MAILNEWS)
+CONFIGURE_ARGS+=	--disable-mailnews --disable-ldap
+.else
+# wants mail and news, but not LDAP
+.if defined(WITHOUT_LDAP)
+CONFIGURE_ARGS+=	--disable-ldap
+.endif
+.endif
+
 .if !defined(WITHOUT_CHATZILLA)
 CONFIGURE_ARGS+=	--enable-extensions=default,irc,xmlterm
 .endif
@@ -91,5 +100,6 @@
 	${INSTALL_SCRIPT} ${WRKSRC}/mozilla ${PREFIX}/bin
 	${LN} -sf ${LOCALBASE}/jdk1.3.1/jre/plugin/i386/ns600/libjavaplugin_oji.so \
 		${PREFIX}/lib/mozilla/plugins/libjavaplugin_oji.so
+	${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/lib/mozilla
 
 .include <bsd.port.mk>

----- CUT HERE -----

There is an issue with 'make deinstall' that I don't know how to deal
with due to my lack of experience with the ports infrastructure. It's
probably due to the fact that some of the files in 'pkg-plist' are not
installed anymore. 

If you do a 'make -DWITHOUT_LDAP build install', and then do a 'make
deinstall' you get the following error messages [lines wrapped for
neatness]:

pkg_delete: file `/usr/X11R6/lib/mozilla/components/libmozldap.so' 
    doesn't reall y exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/mozldap.xpt' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/
    nsLDAPPrefsService.js' doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/dirver' doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/liblber40.so' doesn't really
    exist 
pkg_delete: file `/usr/X11R6/lib/mozilla/libldap40.so' doesn't
    really exist
pkg_delete: couldn't entirely delete package (perhaps the packing 
    list is incorrectly specified?)

And if you do a 'make -DWITHOUT_MAILNEWS build install', and then do a
'make deinstall' you get [neatness again, sorry for length]:

pkg_delete: file `/usr/X11R6/lib/mozilla/chrome/messenger.jar' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/chrome/overlayinfo/editor/
    content/overlays.rdf' doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/absync.xpt' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/addrbook.xpt' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/import.xpt' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/libabsyncsvc.so' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/libaddrbook.so' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/libimpText.so' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/libimport.so' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/liblocalmail.so' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/libmailnews.so' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/libmime.so' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/libmimeemitter.so' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/libmozldap.so' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/libmsgcompose.so' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/libmsgdb.so' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/libmsgimap.so' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/libmsgnews.so' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/libmsgsmime.so' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/libvcard.so' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/mailnews.xpt' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/mime.xpt' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/mozldap.xpt' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/msgbase.xpt' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/msgcompose.xpt' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/msgdb.xpt' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/msgimap.xpt' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/msglocal.xpt' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/msgnews.xpt' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/msgsearch.xpt' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/msgsmime.xpt' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/nsLDAPPrefsService.js' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/components/smime-service.js' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/defaults/pref/smime.js' 
    doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/dirver' doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/liblber40.so' doesn't 
    really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/libldap40.so' doesn't really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/libmsgbaseutil.so' doesn't 
    really exist
pkg_delete: file `/usr/X11R6/lib/mozilla/chrome/overlayinfo/
    editor/content' doesn't really exist
pkg_delete: unable to completely remove directory '/usr/X11R6/lib/
    mozilla/chrome/overlayinfo/editor/content'
pkg_delete: file `/usr/X11R6/lib/mozilla/chrome/overlayinfo/editor' 
    doesn't really exist
pkg_delete: unable to completely remove directory '/usr/X11R6/lib/
    mozilla/chrome/overlayinfo/editor'
pkg_delete: couldn't entirely delete package (perhaps the packing 
    list is incorrectly specified?)



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-gnome" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020323200055.A54523>