From owner-freebsd-emulation@FreeBSD.ORG Fri Mar 23 19:39:30 2007 Return-Path: X-Original-To: emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1B2B716A40F for ; Fri, 23 Mar 2007 19:39:30 +0000 (UTC) (envelope-from bsam@bsam.ru) Received: from mail.kuban.ru (mail.kuban.ru [62.183.66.246]) by mx1.freebsd.org (Postfix) with ESMTP id 83E4213C4C2 for ; Fri, 23 Mar 2007 19:39:29 +0000 (UTC) (envelope-from bsam@bsam.ru) Received: from bsam.ru ([85.172.12.64]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id l2NJd99s081450 for ; Fri, 23 Mar 2007 22:39:20 +0300 (MSK) Received: from bsam by bsam.ru with local (Exim 4.62 (FreeBSD)) (envelope-from ) id 1HUpbZ-0000KI-6W for emulation@FreeBSD.org; Fri, 23 Mar 2007 22:39:17 +0300 To: emulation@FreeBSD.org From: Boris Samorodov Date: Fri, 23 Mar 2007 22:39:17 +0300 Message-ID: <22513322@bsam.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Boris Samorodov Cc: Subject: Support of both FC4 and FC6 infrostructure ports X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Mar 2007 19:39:30 -0000 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