HEADSUP: linux f8 infrastructure and ports are introduced

Boris Samorodov bsam at ipt.ru
Thu Apr 9 10:44:59 UTC 2009


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


More information about the freebsd-ports mailing list