Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Oct 2002 21:34:38 +0300 (EEST)
From:      Esa Karkkainen <ejk@iki.fi>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        ejk@iki.fi
Subject:   ports/44411: All three mozilla ports fail to install if ${PREFIX}/lib/browser_plugins directory exists
Message-ID:  <200210221834.g9MIYcFS038853@corsair.my.domain>

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

>Number:         44411
>Category:       ports
>Synopsis:       All three mozilla ports fail to install if ${PREFIX}/lib/browser_plugins directory exists
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 23 08:30:04 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Esa Karkkainen
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
Is in state of disintegration
>Environment:

System: FreeBSD corsair.my.domain 4.7-STABLE FreeBSD 4.7-STABLE #0: Sat Oct 19 19:46:34 EEST 2002 root@corsair.my.domain:/usr/obj/usr/src/sys/CORSAIR i386
Ports cvsupped Oct 22 20:15 EEET 2002

>Description:

Mozilla ports check if "${PREFIX}/lib/browser_plugins" directory does not
exist. If the "browser_plugins" does exist the test used returns "1" as error
code and "make install" will fail.

>How-To-Repeat:

# mkdir -p /usr/X11R6/lib/browser_plugins 
# cd /usr/ports/www/mozilla
# make install
[time passes]
/bin/mkdir -p /usr/X11R6/lib/mozilla
/bin/chmod 755 /usr/X11R6/lib/mozilla
cd /usr/ports/www/mozilla/work/mozilla/dist/bin && /usr/bin/find . |  cpio -pdm -L -R root:wheel /usr/X11R6/lib/mozilla
71851 blocks
install -c -o root -g wheel -m 555 /usr/ports/www/mozilla/work/mozilla/mozilla /usr/X11R6/bin
test ! -d /usr/X11R6/lib/browser_plugins &&  /bin/mkdir -p /usr/X11R6/lib/browser_plugins
*** Error code 1

Stop in /usr/ports/www/mozilla.
*** Error code 1

>Fix:

These three patches show one way of fixing this problem.

--- ports/www/mozilla/Makefile.orig	Tue Oct 22 17:30:29 2002
+++ ports/www/mozilla/Makefile	Tue Oct 22 21:09:54 2002
@@ -137,6 +137,7 @@
 	cd ${WRKSRC}/dist/bin && ${FIND} . | \
 		cpio -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/mozilla
 	${INSTALL_SCRIPT} ${WRKSRC}/mozilla ${PREFIX}/bin
+	${TEST} -d ${PREFIX}/lib/browser_plugins || \
 	${TEST} ! -d ${PREFIX}/lib/browser_plugins && \
 	${MKDIR} ${PREFIX}/lib/browser_plugins
 	${TEST} ! -L ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so && \

--- ports/www/mozilla-vendor/Makefile.orig	Tue Oct 22 17:30:30 2002
+++ ports/www/mozilla-vendor/Makefile	Tue Oct 22 21:14:18 2002
@@ -144,6 +144,7 @@
 	${INSTALL_SCRIPT} ${WRKSRC}/mozilla ${PREFIX}/bin/mozilla-vendor
 	${TEST} ! -x ${PREFIX}/bin/mozilla && ${TEST} ! -L ${PREFIX}/bin/mozilla &&
 	${LN} -sf ${PREFIX}/bin/mozilla-vendor ${PREFIX}/bin/mozilla
+	${TEST} -d ${PREFIX}/lib/browser_plugins || \
 	${TEST} ! -d ${PREFIX}/lib/browser_plugins && \
 	${MKDIR} ${PREFIX}/lib/browser_plugins
 	${TEST} ! -L ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so && \

--- ports/www/mozilla-devel/Makefile.orig	Tue Oct 22 17:30:30 2002
+++ ports/www/mozilla-devel/Makefile	Tue Oct 22 21:14:47 2002
@@ -146,6 +146,7 @@
 	${INSTALL_SCRIPT} ${WRKSRC}/mozilla-devel ${PREFIX}/bin
 	${TEST} ! -x ${PREFIX}/bin/mozilla && ${TEST} ! -L ${PREFIX}/bin/mozilla && \
 	${LN} -sf ${PREFIX}/bin/mozilla-devel ${PREFIX}/bin/mozilla
+	${TEST} -d ${PREFIX}/lib/browser_plugins || \
 	${TEST} ! -d ${PREFIX}/lib/browser_plugins && \
 	${MKDIR} ${PREFIX}/lib/browser_plugins
 	${TEST} ! -L ${PREFIX}/lib/browser_plugins/libjavaplugin_oji.so && \
>Release-Note:
>Audit-Trail:
>Unformatted:

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




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