Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Apr 2008 00:07:24 +0400
From:      Boris Samorodov <bsam@ipt.ru>
To:        emulation@FreeBSD.org
Subject:   CALL FOR TESTERS: linux-f8 infrastructure ports
Message-ID:  <72854627@bb.ipt.ru>

next in thread | raw e-mail | index | archive | help
Hello List,


here it is: ftp://ftp.ipt.ru/pub/FreeBSD/linux-f8/test-f8.tar.bz2

Though this is a first version to test it works for me and my
tibderbox just fine. Instructions for testing are simple:
-----
# tar xyf test-f8.tar.bz2
# cd test-f8
# install [<your_ports_dir>]
-----

The last command will install new ports and files to <your_ports_dir>
(/usr/ports by default) and patch some Mk files (bsd.ports.mk,
bsd.linux-rpm.mk). There is a command to revert installing:
-----
# uninstall [<your_ports_dir>]
-----

For those who wish only to view changes here is a patch for
bsd.ports.mk, bsd.linux-rpm.mk):
ftp://ftp.ipt.ru/pub/FreeBSD/linux-f8/Mk.diff.txt

and a new file:
ftp://ftp.ipt.ru/pub/FreeBSD/linux-f8/bsd.linux-apps.mk.txt

How it works. Automagically. ;-)
One should define OVERRIDE_LINUX_BASE_PORT=f8 at /etc/make.conf
and change an application makefile to use the new stuff. Only one
change is needed: replace all strict RUN_DEPENDS on linux
infrastructure ports to USE_LINUX_APPS knob (if a port has
USE_X11, replace it with UAE_LINUX_APPS=xorglibs). For the list
of available components please look at bsd.linux-apps.mk.

Here is an example. For those mozilla ports one should do:
-----
Index: Makefile.common
===================================================================
RCS file: /home/pcvs/ports/www/linux-seamonkey/Makefile.common,v
retrieving revision 1.11
diff -u -r1.11 Makefile.common
--- Makefile.common	14 Dec 2007 17:55:34 -0000	1.11
+++ Makefile.common	7 Apr 2008 19:45:32 -0000
@@ -12,18 +12,14 @@
 .endif
 PKGNAMEPREFIX?=		linux-
 
-RUN_DEPENDS?=	${LINUXBASE}/usr/lib/libgtk-x11-2.0.so.0:${PORTSDIR}/x11-toolkits/linux-gtk2 \
-		${LINUXBASE}/usr/lib/libatk-1.0.so.0:${PORTSDIR}/accessibility/linux-atk \
-		${LINUXBASE}/usr/lib/libpangoxft-1.0.so.0:${PORTSDIR}/x11-toolkits/linux-pango\
-		${LINUXBASE}/usr/lib/libgobject-2.0.so.0:${PORTSDIR}/devel/linux-glib2 \
-		${LINUXBASE}/usr/lib/libfontconfig.so.1:${PORTSDIR}/x11-fonts/linux-fontconfig \
-		${LINUXBASE}/usr/share/icons/hicolor/index.theme:${PORTSDIR}/x11-themes/linux-hicolor-icon-theme
+RUN_DEPENDS?=	${LINUXBASE}/usr/share/icons/hicolor/index.theme:${PORTSDIR}/x11-themes/linux-hicolor-icon-theme
 
 NO_BUILD=	yes
 ONLY_FOR_ARCHS=	i386 amd64
 APP_NAME=	${PKGBASE}
 BIN_NAME?=	${PORTNAME}
 USE_LINUX=	yes
+USE_LINUX_APPS=	gtk2 atk pango fontconfig
 WRKSRC?=	${WRKDIR}/${BIN_NAME}
 FDIR=		${PREFIX}/lib/${APP_NAME}
 COMMON_DIR=	${.CURDIR}/../../www/linux-seamonkey
-----

Notes:
1. For linux-hicolor-icon-theme I created a component but it will be
   deleted as this port is not an infrastructure port from Fedora
   distribution.
2. Please, beware that ports and components do not have same names.
   E.g. linux-f8-xorg-libs (a port) vs xorglibs (a component).
3. devel/linux-glib2 (a port) does not need to be presented as
   a component since it is a part of linux_base-f8 port.

Known bugs:
. linux-aspell port is only a skeleton port;
. upgrading tools (portupgrade, portmaster) will not understand
  if an fc4 or f8 port is installed for those ports which has
  the same files (library versions). I'd recommend full uninstall
  of linux infrastructure ports to receive strict results.

To revert back to using a default linux_base port you should delete
OVERRIDE_LINUX_BASE_PORT variable from /etc/make.conf (and a full
uninstall of linux infrastructure ports is recommended).

Thanks for your patience. ;-)


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve



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