Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Mar 2011 20:34:42 -0500
From:      Kris Moore <kris@pcbsd.org>
To:        freebsd-gecko@freebsd.org
Subject:   Problem with mail/thunderbird and PREFIX
Message-ID:  <4D797C32.9070201@pcbsd.org>
In-Reply-To: <4D797A47.5050604@pcbsd.org>
References:  <4D797A47.5050604@pcbsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------040009070809040905020107
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit


- Apologies if I double-posted, hit the stupid touch-pad wrong and it 
sent before finished typing -

Not sure whom I should bug about this, but I'm seeing a problem with
thunderbird when building with a non-standard LOCALBASE. Specifically
  the issue occurs here:

port-pre-install:
${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' \
${FAKEDIR}/bin/thunderbird
${RM} -f ${FAKEDIR}/bin/*.bak

This command is replacing "/usr/local" with $PREFIX in bin/thunderbird,
  but it looks like bin/thunderbird is already setup with PREFIX, so 
what ends up happening is that if we set a LOCALBASE like this:

"/usr/local/pbi/thunderbird", and then 
's|/usr/local|/usr/local/pbi/thunderbird|' we end up with 
/usr/local/pbi/thunderbird/pbi/thunderbird/, which is obviously incorrect :P

Can somebody replace this in the port soon? I'll file a PR if need be, 
but thought this may be faster. A patch is attached which corrects the 
issue.

-- 
Kris Moore
PC-BSD Software
iXsystems

--------------040009070809040905020107
Content-Type: text/plain;
 name="tb-patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="tb-patch"

--- Makefile.o	2011-03-10 20:31:30.459685569 -0500
+++ Makefile	2011-03-10 20:31:39.419007714 -0500
@@ -112,9 +112,6 @@
 	(cd ${MOZSRC}/js/src/ && ${AUTOCONF})
 
 port-pre-install:
-	${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' \
-	${FAKEDIR}/bin/thunderbird
-	${RM} -f ${FAKEDIR}/bin/*.bak
 	${MKDIR} ${FAKEDIR}/lib/${PORTNAME}/defaults
 
 pre-install:

--------------040009070809040905020107--



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