diff options
author | 2014-01-23 05:03:33 +0000 | |
---|---|---|
committer | 2014-01-23 05:03:33 +0000 | |
commit | 61cc3a6e098ca2df22b3f3124851432efff05a24 (patch) | |
tree | 1b2eb5e8d9cf2fb3e7bee69fa1a42e155d21a3cf | |
parent | use pkg_add to install fedora_base, not ports (diff) | |
download | wireguard-openbsd-61cc3a6e098ca2df22b3f3124851432efff05a24.tar.xz wireguard-openbsd-61cc3a6e098ca2df22b3f3124851432efff05a24.zip |
on second thought, the instructions about copying libraries are also
hopelessly complicated, liable to break, and filled with dubiousness.
just use pkg_add.
-rw-r--r-- | share/man/man8/compat_linux.8 | 103 |
1 files changed, 1 insertions, 102 deletions
diff --git a/share/man/man8/compat_linux.8 b/share/man/man8/compat_linux.8 index 66e572d3b84..3101bbef7b1 100644 --- a/share/man/man8/compat_linux.8 +++ b/share/man/man8/compat_linux.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: compat_linux.8,v 1.44 2014/01/23 04:39:41 tedu Exp $ +.\" $OpenBSD: compat_linux.8,v 1.45 2014/01/23 05:03:33 tedu Exp $ .\" $NetBSD: compat_linux.8,v 1.2 1995/10/16 20:17:59 fvdl Exp $ .\" .\" Copyright (c) 1995 Frank van der Linden @@ -81,24 +81,7 @@ to avoid naming conflicts with possible .Ox counterparts. Shared libraries should also be installed in the shadow tree. -.Pp -Generally, it will only be necessary to look for the shared libraries -that Linux binaries depend on the first few times that Linux programs -are installed on the -.Ox -system. -After a while, there will be a sufficient set of Linux shared libraries -on the system to be able to run newly imported Linux binaries without -any extra work. .Ss Setting up shared libraries -How to get to know which shared libraries Linux binaries need, and where -to get them? -Basically, there are 2 possibilities. -(When following these instructions, root privileges are required on the -.Ox -system to perform the necessary installation steps). -.Bl -enum -.It Run .Xr pkg_add 1 to install the @@ -110,90 +93,6 @@ The .Nm fedora_base package contains the shared libraries, binaries, and other related files necessary to run Linux applications. -Access to a Linux system is not needed. -.It -Access to a Linux system: -In this case temporarily install the binary there, see what -shared libraries it needs, and copy them to the -.Ox -system. -Example: ftp the Linux binary of Doom. -Put it on the Linux system, and check which shared -libraries it needs by running `ldd linuxxdoom': -.Pp -.Dl (me@linux) ldd linuxxdoom -.Bd -unfilled -offset indent -libXt.so.3 (DLL Jump 3.1) => /usr/X11/lib/libXt.so.3.1.0 -libX11.so.3 (DLL Jump 3.1) => /usr/X11/lib/libX11.so.3.1.0 -libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29 -.Ed -.Pp -Get all the files from the last column, and put them under -.Pa /emul/linux , -with the names in the first column -as symbolic links pointing to them. -The following files would therefore be required on the -.Ox -system: -.Bd -unfilled -offset indent -/emul/linux/usr/X11/lib/libXt.so.3.1.0 -/emul/linux/usr/X11/lib/libXt.so.3 (symbolic link to the above) -/emul/linux/usr/X11/lib/libX11.so.3.1.0 -/emul/linux/usr/X11/lib/libX11.so.3 (symbolic link to the above) -/emul/linux/lib/libc.so.4.6.29 -/emul/linux/lib/libc.so.4 (symbolic link to the above) -.Ed -.Pp -Note that if a Linux shared library with a -matching major revision number to the first column of the 'ldd' -output is already present, it isn't necessary to copy the file named -in the last column to the -.Ox -system; the one already there should work. -It is advisable to copy the shared library anyway, if it is a newer version. -The old one can be removed, as long as the symbolic -link points to the new one. -So, if these libraries exist on the system: -.Bd -unfilled -offset indent -/emul/linux/lib/libc.so.4.6.27 -/emul/linux/lib/libc.so.4 -> /emul/linux/lib/libc.so.4.6.27 -.Ed -.Pp -and the ldd output for a new binary is: -.Bd -unfilled -offset indent -libc.so.4 (DLL Jump 4.5pl26) => /lib/libc.so.4.6.29 -.Ed -.Pp -it isn't necessary to copy -.Pa /lib/libc.so.4.6.29 -too, because the program should work fine with the slightly older version. -.Pa libc.so -can be replaced anyway, and that should leave: -.Bd -unfilled -offset indent -/emul/linux/lib/libc.so.4.6.29 -/emul/linux/lib/libc.so.4 -> /emul/linux/lib/libc.so.4.6.29 -.Ed -.Pp -Please note that the symbolic link mechanism is -only needed for Linux binaries, the -.Ox -runtime linker takes care of looking for matching major revision numbers -itself. -.Pp -Finally, the Linux runtime linker and its config files must be present -on the system. -These files should be copied from the Linux system to their appropriate -place on the -.Ox -system (in the -.Pa /emul/linux -tree): -.Bd -unfilled -offset indent -/lib/ld.so -/etc/ld.so.cache -/etc/ld.so.config -.Ed -.El .Ss Programs using SVGAlib SVGAlib binaries require some extra care. The pcvt virtual console driver has to be in the kernel for them to work, |