Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Dec 2007 18:40:37 -0500
From:      Gary Palmer <gpalmer@freebsd.org>
To:        "Scott T. Hildreth" <shild@sbcglobal.net>
Cc:        gnome@freebsd.org, ports@freebsd.org
Subject:   Re: Getting the same problem nss problem with evolution
Message-ID:  <20071226234037.GD986@in-addr.com>
In-Reply-To: <1198693635.1088.18.camel@fbsd1.dyndns.org>
References:  <200712241928.lBOJSIU8085537@scotth.emsphone.com> <1198526985.34216.34.camel@shumai.marcuscom.com> <1198693635.1088.18.camel@fbsd1.dyndns.org>

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

--jRHKVT23PllUwdXP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Wed, Dec 26, 2007 at 12:27:15PM -0600, Scott T. Hildreth wrote:
> 
> On Mon, 2007-12-24 at 15:09 -0500, Joe Marcus Clarke wrote:
> > On Mon, 2007-12-24 at 13:28 -0600, Scott T. Hildreth wrote:
> > > ===>  Extracting for evolution-2.12.2
> > > => MD5 Checksum OK for gnome2/evolution-2.12.2.tar.bz2.
> > > => SHA256 Checksum OK for gnome2/evolution-2.12.2.tar.bz2.
> > > ===>  Patching for evolution-2.12.2
> > > ===>  Applying FreeBSD patches for evolution-2.12.2
> > > ===>   evolution-2.12.2 depends on executable: gmake - found
> > > ===>   evolution-2.12.2 depends on executable: bison - found
> > > ===>   evolution-2.12.2 depends on file: /usr/local/bin/intltool-extract - found
> > > ===>   evolution-2.12.2 depends on file: /usr/local/libdata/pkgconfig/gnome-mime-data-2.0.pc - found
> > > ===>   evolution-2.12.2 depends on executable: pkg-config - found
> > > ===>   evolution-2.12.2 depends on executable: update-desktop-database - found
> > > ===>   evolution-2.12.2 depends on file: /usr/local/libdata/pkgconfig/gnome-doc-utils.pc - found
> > > ===>   evolution-2.12.2 depends on file: /usr/local/libdata/xorg/libraries - found
> > > ===>   evolution-2.12.2 depends on shared library: nss3.1 - not found
> > > ===>    Verifying install for nss3.1 in /usr/ports/security/nss
> > > ===>   Returning to build of evolution-2.12.2
> > > Error: shared library "nss3.1" does not exist
> > > *** Error code 1
> > > 
> > > I am have this error installing firefox 2.0.0.11 as well, what am I missing here?
> > 
> > Probably the contents of /usr/local/libdata/ldconfig.  Assuming you have
> > nss properly installed, running ldconfig -m /usr/local/lib/nss will
> > temporarily resolve this problem, but you should reinstall nss to get
> > the directory re-added permanently.
> 
>   Maybe this is it (from ldconfig -r)
> 
>    641:-lnss3.1 => /usr/local/lib/compat/pkg/libnss3.so.1
> 
>   ...nss3 was reinstalled several times, but the ldconfig -m must 
>   have failed.  When I ran ldconfig -m /usr/local/lib/nss, it failed
>   printing that /usr/local/lib/nss is being ignored, because it is 
>   group writable.  I changed the mode, the ldconfig worked and 
>   libnss3 is found now.   

I kept getting bitten by directory mode permission problems so I put a 

chmod go-w ${USE_LDCONFIG}

(or ${USE_LDCONFIG32} as appropriate)

into bsd.port.mk locally.  I think it would be a good idea to put that
into the master bsd.port.mk personally.

Patch is attached (I hope)

Note that the line-numbers will be wrong as I have other changes in
my bsd.port.mk in addition to the changes attached.  It is also a
while since I did the change, so I'm not sure if I caught every
potential case.  But it seems to be working here.

Gary


--jRHKVT23PllUwdXP
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="bsd.port.mk.patch"

Index: Mk/bsd.port.mk
===================================================================
RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.589
diff -u -r1.589 bsd.port.mk
--- Mk/bsd.port.mk	17 Oct 2007 10:12:24 -0000	1.589
+++ Mk/bsd.port.mk	21 Oct 2007 02:27:55 -0000
@@ -3871,9 +3879,11 @@
 .if defined(USE_LDCONFIG)
 .if !defined(INSTALL_AS_USER)
 	@${ECHO_MSG} "===>   Running ldconfig"
+	${CHMOD} go-w ${USE_LDCONFIG}
 	${LDCONFIG} -m ${USE_LDCONFIG}
 .else
 	@${ECHO_MSG} "===>   Running ldconfig (errors are ignored)"
+	${CHMOD} go-w ${USE_LDCONFIG}
 	-${LDCONFIG} -m ${USE_LDCONFIG}
 .endif
 .if ${USE_LDCONFIG} != "${PREFIX}/lib" && !defined(INSTALL_AS_USER)
@@ -3893,9 +3903,11 @@
 .if defined(USE_LDCONFIG32)
 .if !defined(INSTALL_AS_USER)
 	@${ECHO_MSG} "===>   Running ldconfig"
+	${CHMOD} go-w ${USE_LDCONFIG32}
 	${LDCONFIG} -32 -m ${USE_LDCONFIG32}
 .else
 	@${ECHO_MSG} "===>   Running ldconfig (errors are ignored)"
+	${CHMOD} go-w ${USE_LDCONFIG32}
 	-${LDCONFIG} -32 -m ${USE_LDCONFIG32}
 .endif
 .if !defined(INSTALL_AS_USER)

--jRHKVT23PllUwdXP--



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