Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Oct 2006 08:18:48 +0200
From:      nick@anywi.com
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/104524: Perl5.8 port spams /usr/bin/, preventing cross installs
Message-ID:  <1161152328.681269.1977.nullmailer@van-laarhoven.org>
Resent-Message-ID: <200610180750.k9I7oIhV078753@freefall.freebsd.org>

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

>Number:         104524
>Category:       ports
>Synopsis:       Perl5.8 port spams /usr/bin/, preventing cross installs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 18 07:50:17 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Nick Hibma
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
AnyWi Technologies
>Environment:
System: FreeBSD hind.van-laarhoven.org 6.1-STABLE FreeBSD 6.1-STABLE #19: Thu Aug 17 16:31:39 CEST 2006 toor@hind.van-laarhoven.org:/usr/src/sys/i386/compile/HIND i386

Ports tree from the last month or so.
>Description:
I am building images through nanobsd and installing ports into that image. Both are i386 machines.

	cd /usr/ports/lang/perl5.8
	make PREFIX=/usr/obj/nanobsd/_.w/usr/local

will nevertheless reset your links in /usr/bin to that location (instead of
leaving it at /usr/local/bin/perl where the perl for my laptop is located.

A switch to disable the running of use.perl would be very much appreciated.
>How-To-Repeat:
>Fix:
--- Makefile.orig	Wed Oct 18 07:54:18 2006
+++ Makefile	Wed Oct 18 07:55:52 2006
@@ -146,6 +146,7 @@
 	@${ECHO} "				  (affects only 32-bit platforms)."
 	@${ECHO} "	WITH_THREADS=yes	  Build threaded perl."
 	@${ECHO} "	ENABLE_SUIDPERL=yes	  Also build set-user-id suidperl binary."
+	@${ECHO} "      WITHOUT_USE_PERL=yes      Do not rewrite links in /usr/bin"
 	@${ECHO} ""
 
 post-patch:
@@ -187,10 +188,12 @@
 	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
 		${BSDPAN_WRKSRC}/${files} ${BSDPAN_DEST}/${files}
 .endfor
+.ifndef WITHOUT_USE_PERL
 	PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
 .if ${OSVERSION} < 500036
 	${INSTALL_SCRIPT} ${WRKDIR}/use.perl ${PREFIX}/bin/use.perl
 	@fmt ${PKGMESSAGE}
+.endif
 .endif
 
 rebuild-xs:
>Release-Note:
>Audit-Trail:
>Unformatted:



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