Date: Tue, 3 Apr 2018 19:02:33 +1000 From: Kubilay Kocak <koobs@FreeBSD.org> To: Gerhard Schmidt <estartu@ze.tum.de>, Freebsd Ports <freebsd-ports@freebsd.org> Subject: Re: flavors and rc scripts Message-ID: <c831f0a6-8005-f15a-397e-6d51a0bf0faa@FreeBSD.org> In-Reply-To: <b5cce474-45d6-aa2b-332a-7325e3a5ade2@ze.tum.de> References: <b5cce474-45d6-aa2b-332a-7325e3a5ade2@ze.tum.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On 3/04/2018 5:26 pm, Gerhard Schmidt wrote: > Hi, > > I'm trying to build a python package that uses flavors to allow parallel > installation for different python versions. > > So far building an installing works fine till the start script comes in > the picture. > > The port should install a start script for each of the flavors > installed, but USE_RC_SUBR installs the rc.script under the name given > and don't add the prefix or suffix. When i use > USE_RC_SUBR=${PYTHON_PKGNAMEPREFIX}scriptname i have to add a start > script for every flavor. > > Is there a way to gent USE_RC_SUBR to add the prefix or suffix. > Hi Gerhard, Good question. USES=uniquefiles (or the same thing via USE_PYTHON=concurrent) *may* be able to help you here, though I haven't seen it attempted (yet) for rc scripts specifically. For example, USE_PYTHON='concurrent' is a specific instantiation/use of Uses/uniquefiles.mk, which creates version-specific copies of files, with default filenames (optionally) symlinked to the version-suffixed counterparts, for a certain set of files (script in localbase/bin, man pages etc) in python ports. You may either be able to: a) 'extend' the list of files python.mk already looks for, for prefixing/suffixing the rc script, or b) use uniquefiles.mk variables directly in the port Hope that helps.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c831f0a6-8005-f15a-397e-6d51a0bf0faa>