Date: Mon, 10 Sep 2007 21:43:06 +0400 From: Dmitry Marakasov <amdmi3@amdmi3.ru> To: Pav Lucistnik <pav@FreeBSD.org> Cc: freebsd-ports@FreeBSD.org Subject: Re: bsd.port.options.mk status Message-ID: <20070910174306.GC15850@hades.panopticon> In-Reply-To: <1189443514.22893.10.camel@ikaros.oook.cz> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
* 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070910174306.GC15850>