From owner-freebsd-ports@FreeBSD.ORG Thu Apr 9 10:44:59 2009 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 036AA1065710 for ; Thu, 9 Apr 2009 10:44:59 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id 8C3FC8FC26 for ; Thu, 9 Apr 2009 10:44:54 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from bb.ipt.ru ([194.62.233.89]) by services.ipt.ru with esmtp (Exim 4.54 (FreeBSD)) id 1Lrrkb-000Gqd-ED for freebsd-ports@FreeBSD.org; Thu, 09 Apr 2009 14:44:53 +0400 To: freebsd-ports@FreeBSD.org From: Boris Samorodov Date: Thu, 09 Apr 2009 14:44:54 +0400 Message-ID: <12660073@bb.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Subject: HEADSUP: linux f8 infrastructure and ports are introduced X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Apr 2009 10:44:59 -0000 Hello List! Those who are subscribed to emulation@ ML already know that the linux ports infrastructure has been changed. I've just committed the last patch I want to introduce before 7.2-RELEASE. Those changes allow using new linux f8 infrastructure files. One should define sysctl compat.linux.osrelease=2.6.16, OVERRIDE_LINUX_BASE_PORT=f8 and OVERRIDE_LINUX_NONBASE_PORTS=f8. The last two should be defined at /etc/make.conf file. Beware that the defaults for all FreeBSD versions so far are linux base fc4 and it's infrastructure ports. For 6-STABLE users new configuration is not supported. Users of 7-STABLE may use those capabilities with care. Some changes can not be MFCed from 8-CURRENT because of native FreeBSD ABI breakage. However most of linux applications should work fine. But YMMV, so please be careful. 8-CURRENT should be fully supported. There is no strict dependency upon OSRELEASE at new linux ports infrastructure. This may change if/when f8 has become a default for 8-CURRENT. Please, report any inconsistency to emulation@ ML. Those who want to test/use/swith to -f8- linux ports should read /usr/ports/UPDATING for instructions. And as always don't install infrastructure ports directly (install a needed application instead: net/skype, print/acroread8, etc.), if you have to do it, then something is wrong: either your system/configuration is wrong or the ports system has bugs. Please write a letter to emulation@ or file a PR if you are sure it'a port bug. All linux ports are switched to new world order. Only one exception exists: graphics/linux_dri. I have got a port for tests and will submit it for testing soon. Port MAINTAINERs should use new rules for adding dependencies upon any linux infrastructure port. There is a list of all linux components (take a look at Mk/bsd.linux-apps.mk) that should be used at the port's Makefiles. For non-infrastructure linux ports (i.e. not from a linux distro) like the upcomming linux-f8-flashplugin10 which should use at least linux_base-f8 and above, please define USE_LINUX=yes at apropriate Makefiles (not f8, f8+, etc.). Now run dependencies are used like USE_LINUX_APPS=xorglibs. Which just mean that the application uses linux xorg libraries at run time (i.e. replaces RUN_DEPENDS). The ports infrastructure will use apropriate port (depending on your system configuration): . default is x11/linux-xorg-libs; . f8 port is x11/linux-f8-xorg-libs. For some additional information you may search recent emulation@ ML archieve. TODO: . introduce graphics/linux-f8-dri port; [partially done] . replace bsd.linux-rpm.mk and bsd.linux.apps.mk with bsd.linux.mk; . move all linux stuff from bsd.ports.mk and bsd.linux-*.mk to bsd.linux.mk; . allow USE_LINUX use values like "f8+" (should be used only by ports maintainers). Suggestions, help and patches are welcome. Enjoy and thanks! WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD Committer, http://www.FreeBSD.org The Power To Serve