Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Apr 1999 21:56:08 +0900 (JST)
From:      sanpei@sanpei.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/11045: [PATCH] Update port: linux_lib some /compat/linux/dev symlinks to ports for Linux X server
Message-ID:  <199904091256.VAA49208@lavender.yy.cs.keio.ac.jp>

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

>Number:         11045
>Category:       ports
>Synopsis:       [PATCH] Update port: linux_lib some /compat/linux/dev symlinks to ports for Linux X server
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr  9 06:00:02 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     MIHIRA Yoshiro
>Release:        FreeBSD 3.1-RELEASE i386
>Organization:
Keio Univ.
>Environment:

	3.1-RELEASE

>Description:

  I and Intel i740 board user need create some symlinks by hand to use
Linux X server on FreeBSD box.

From commit log
>How-To-Repeat:

>Fix:
	
diff -uNr linux_lib.org/Makefile linux_lib/Makefile
--- linux_lib.org/Makefile	Sat Feb 27 08:16:45 1999
+++ linux_lib/Makefile	Tue Mar 30 16:41:40 1999
@@ -31,6 +31,14 @@
 post-install:
 	-/compat/linux/sbin/ldconfig
 	${MKDIR} ${PREFIX}/usr/lib/zoneinfo
-	ln -sf /etc/localtime /${PREFIX}/usr/lib/zoneinfo/localtime
+	${LN} -sf /etc/localtime /${PREFIX}/usr/lib/zoneinfo/localtime
+	${MKDIR} ${PREFIX}/dev
+	${LN} -sf /dev/console ${PREFIX}/dev/tty0
+	${LN} -sf /dev/ttyv0 ${PREFIX}/dev/tty1
+	${LN} -sf /dev/ttyv1 ${PREFIX}/dev/tty2
+	${LN} -sf /dev/ttyv2 ${PREFIX}/dev/tty3
+	${LN} -sf /dev/ttyv3 ${PREFIX}/dev/tty4
+	${LN} -sf /dev/sysmouse ${PREFIX}/dev/mouse
+	${LN} -sf /dev/psm0 ${PREFIX}/dev/psaux
 
 .include <bsd.port.mk>
diff -uNr linux_lib.org/pkg/PLIST linux_lib/pkg/PLIST
--- linux_lib.org/pkg/PLIST	Sat Oct 31 20:27:55 1998
+++ linux_lib/pkg/PLIST	Tue Mar 30 16:42:48 1999
@@ -1,6 +1,13 @@
 .linux_lib-version
 bin/bash
 bin/sh
+dev/tty0
+dev/tty1
+dev/tty2
+dev/tty3
+dev/tty4
+dev/mouse
+dev/psaux
 etc/host.conf
 etc/ld.so.cache
 etc/ld.so.conf
@@ -767,6 +774,7 @@
 var/X11R6/lib/rgb.txt
 @dirrm bin
 @dirrm etc
+@dirrm dev
 @dirrm lib
 @dirrm sbin
 @dirrm usr/X11R6/lib

>Release-Note:
>Audit-Trail:
>Unformatted:
 >jkh         1998/08/30 23:55:03 PDT
 >
 >  Modified files:
 >    sys/i386/linux       linux.h linux_ioctl.c
 >  Log:
 >  Initial support for using linux X servers under emulation - to use an
 >  XFree86 server, users need to create the following links in their
 >  /compat/linux/dev directory (assuming kernel configured with 4 VTs).
 >
 >  lrwxrwxrwx  1 root  wheel  7 Aug 30 22:59 tty0 -> console    <---
 >  lrwxrwxrwx  1 root  wheel  5 Aug 30 22:45 tty1 -> ttyv0      <---
 >  lrwxrwxrwx  1 root  wheel  5 Aug 30 22:45 tty2 -> ttyv1      <---
 >  lrwxrwxrwx  1 root  wheel  5 Aug 30 22:45 tty3 -> ttyv2      <---
 >  lrwxrwxrwx  1 root  wheel  5 Aug 30 22:45 tty4 -> ttyv3      <---
 >
 >  VT switching is still not yet supported. Attempting to switch VT
 >  currently will cause Xserver bus error.
 
   I created patches for ports/emulators/linux_lib.
 


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?199904091256.VAA49208>