From owner-freebsd-ports@FreeBSD.ORG Mon Sep 10 17:42:04 2007 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 0D24716A417; Mon, 10 Sep 2007 17:42:04 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from cp65.agava.net (cp65.agava.net [89.108.66.215]) by mx1.freebsd.org (Postfix) with ESMTP id 9E2F113C480; Mon, 10 Sep 2007 17:42:02 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from [213.148.20.85] (helo=nexii.panopticon) by cp65.agava.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.44 (FreeBSD)) id 1IUnGl-000PCE-Hn; Mon, 10 Sep 2007 21:41:55 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.2]) by nexii.panopticon (Postfix) with ESMTP id 6B15617045; Mon, 10 Sep 2007 21:41:35 +0400 (MSD) Received: by hades.panopticon (Postfix, from userid 1000) id 85E1C404B; Mon, 10 Sep 2007 21:43:06 +0400 (MSD) Date: Mon, 10 Sep 2007 21:43:06 +0400 From: Dmitry Marakasov To: Pav Lucistnik Message-ID: <20070910174306.GC15850@hades.panopticon> Mail-Followup-To: Pav Lucistnik , freebsd-ports@FreeBSD.org References: <20070909194620.GB14713@hades.panopticon> <1189368742.17083.37.camel@ikaros.oook.cz> <20070909220132.GC14713@hades.panopticon> <1189376094.17083.57.camel@ikaros.oook.cz> <20070910152612.GA15850@hades.panopticon> <1189443514.22893.10.camel@ikaros.oook.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <1189443514.22893.10.camel@ikaros.oook.cz> User-Agent: Mutt/1.5.16 (2007-06-09) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cp65.agava.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [26 6] X-AntiAbuse: Sender Address Domain - amdmi3.ru X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-ports@FreeBSD.org Subject: Re: bsd.port.options.mk status 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: Mon, 10 Sep 2007 17:42:04 -0000 * Pav Lucistnik (pav@FreeBSD.org) wrote: > > Understood. Then we really have to wait till 5.5 and 6.2 EOL to use > > options.mk... That's a bit strange to wait multiple years for an > > useful feature, aren't there any workaround planned? > The question is, are there any workarounds possible? Well... The first thing that comes into my mind is a port that does: do-install: @if [ ! -e /usr/share/mk/bsd.port.options.mk ]; then \ ${CP} ${PORTSDIR}/Mk/bsd.port.options.mk /usr/share/mk; \ fi This port should be automatically added to EXTRACT_DEPENDS from bsd.port.mk on specific FreeBSD versions (similar to how ports-mgmt/pkg_install is added to depends on some FreeBSD versions now): .if ((${OSVERSION} < ...) ...) EXTRACT_DEPENDS+= /usr/share/Mk/bsd.port.options.mk:${PORTSDIR}/ports-mgmt/options_mk .fi Of course, this won't help if one tries to install port that includes bsd.port.options.mk right away, but: 1) We can wait some time before submitting options.mk-including ports 2) Even if we don't, I think there's high probability that this fix is installed for most users, so they won't even notice any problems, as any port install/update will also install the fix. 3) Note in CHANGES for lucky ones who encounter `Could not find bsd.port.options.mk' error, with trivial fix. -- Best regards, Dmitry Marakasov mailto:amdmi3@amdmi3.ru