Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Mar 2013 21:03:52 +0100 (CET)
From:      Tijl Coosemans <tijl@coosemans.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/176819: [patch] emulators/linux_base-f10: add symlinks for matlab
Message-ID:  <201303102003.r2AK3qbK011759@kalimero.tijl.coosemans.org>
Resent-Message-ID: <201303102010.r2AKA2eF011356@freefall.freebsd.org>

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

>Number:         176819
>Category:       ports
>Synopsis:       [patch] emulators/linux_base-f10: add symlinks for matlab
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 10 20:10:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Tijl Coosemans
>Release:        FreeBSD 10.0-CURRENT i386
>Organization:
>Environment:
>Description:
Some programs are installed under /usr/bin on Linux, but /bin on
FreeBSD. Because PATH usually lists /bin before /usr/bin this
means Linux shell scripts run the FreeBSD program and fail.

The attached patch fixes the problem by creating symlinks in
/compat/linux/bin.
>How-To-Repeat:
>Fix:

--- linux_base-f10.patch begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 313342)
+++ Makefile	(working copy)
@@ -7,7 +7,7 @@
 
 PORTNAME=		f10
 PORTVERSION=		10
-PORTREVISION=		5
+PORTREVISION=		6
 CATEGORIES=		emulators linux
 MASTER_SITES=		CRITICAL/rpm/${LINUX_RPM_ARCH}/fedora/${PORTVERSION}
 PKGNAMEPREFIX=		linux_base-
@@ -214,6 +214,10 @@
 		| ${CPIO} -pm -R root:wheel ${PREFIX}
 
 	@${LN} -sf /var/tmp ${PREFIX}/usr/tmp
+	@${LN} -sf ../usr/bin/[ ${PREFIX}/bin/[
+	@${LN} -sf ../usr/bin/expr ${PREFIX}/bin/expr
+	@${LN} -sf ../usr/bin/test ${PREFIX}/bin/test
+	@${LN} -sf ../usr/bin/uuidgen ${PREFIX}/bin/uuidgen
 	@${CHOWN} root:wheel ${PREFIX}/var/lock ${PREFIX}/var/spool/mail
 	@${CHMOD} 755 ${PREFIX}/var/lock ${PREFIX}/var/spool/mail
 #
Index: pkg-plist
===================================================================
--- pkg-plist	(revision 313342)
+++ pkg-plist	(working copy)
@@ -1,4 +1,5 @@
 @comment file listing
+bin/[
 bin/arch
 bin/basename
 bin/bash
@@ -13,6 +14,7 @@
 bin/echo
 bin/egrep
 bin/env
+bin/expr
 bin/false
 bin/fgrep
 bin/grep
@@ -33,10 +35,12 @@
 bin/sort
 bin/stty
 bin/sync
+bin/test
 bin/touch
 bin/true
 bin/uname
 bin/unlink
+bin/uuidgen
 etc/DIR_COLORS
 etc/DIR_COLORS.256color
 etc/DIR_COLORS.xterm
--- linux_base-f10.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



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