Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Mar 2007 22:39:17 +0300
From:      Boris Samorodov <bsam@ipt.ru>
To:        emulation@FreeBSD.org
Subject:   Support of both FC4 and FC6 infrostructure ports
Message-ID:  <22513322@bsam.ru>

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


It'll soon so happen (after compat.linux.osrelease will become 2.6.x
by default at -CURRENT) that we may have two linux_base ports
with the corresponding infrostructure ports. To minimize the influence
of this fact on many linux-based ports I propose some changes to
bsd.linux-rpm.mk. The idea is stolen from bsd.ports.mk:
-----
.if defined(X_WINDOW_SYSTEM) && ${X_WINDOW_SYSTEM:L} == xorg
X_IMAKE_PORT=           ${PORTSDIR}/devel/imake-6
...
.elif defined(X_WINDOW_SYSTEM) && ${X_WINDOW_SYSTEM:L} == xfree86-4
X_IMAKE_PORT=           ${PORTSDIR}/devel/imake-4
...
-----

That is what I suggest:
-----
.if ${USE_LINUX:L} == "fc4"
LINUX_TIFF_PORT=        ${PORTSDIR}/graphics/linux-jpeg
...
.elif ${USE_LINUX:L} == "fc6"
LINUX_TIFF_PORT=        ${PORTSDIR}/graphics/linux-fc6-jpeg
...
-----

Then all is needed to those ports depending on libtiff:
-----
RUN_DEPENDS= ${LINUXBASE}/usr/lib/libtiff.so.3:${PORTSDIR}/${LINUX_TIFF_PORT}
-----

Yes, the library version didn't change at FC6 since FC4.

It seems to me that that technique may greatly reduce the amount of
work for maintainers to let their ports make use of both linux_base
ports.

Any comments/suggestions etc. are welcome.
Thanks!


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?22513322>