public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Donnie Berkholz <dberkholz@gentoo.org>
To: gentoo-dev@lists.gentoo.org, jsbronder@gentoo.org
Subject: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in sys-cluster/torque: ChangeLog torque-2.3.0.ebuild
Date: Wed, 12 Mar 2008 16:40:26 -0700	[thread overview]
Message-ID: <20080312234026.GA17388@comet.science.oregonstate.edu> (raw)
In-Reply-To: <E1JZVAd-0000kh-QD@stork.gentoo.org>

On 17:55 Wed 12 Mar     , Justin Bronder (jsbronder) wrote:
> 1.1                  sys-cluster/torque/torque-2.3.0.ebuild
> 
> file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/torque/torque-2.3.0.ebuild?rev=1.1&view=markup
> plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/torque/torque-2.3.0.ebuild?rev=1.1&content-type=text/plain

> pkg_setup() {
> 	linux-info_pkg_setup
> 	if use cpusets && ! use kernel_linux; then
> 		einfo
> 		elog "    Torque currently only has support for cpusets in linux."
> 		elog "Assuming you didn't really want this USE flag."
> 		einfo
> 	elif use cpusets; then
> 		einfo
> 		elog "    Torque support for cpusets is still in development, you may"
> 		elog "wish to disable it for production use."
> 		einfo
> 		if ! linux_chkconfig_present CPUSETS; then
> 			einfo
> 			elog "    Torque support for cpusets will require that you recompile"
> 			elog "your kernel with CONFIG_CPUSETS enabled."
> 			einfo
> 		fi
> 	fi

This logic is really strange. Try this instead:

if use cpusets; then
	if ! use kernel_linux; then
		...
	else
		...
	fi
fi

> }
> 
> src_compile() {
> 	local myconf="--with-rcp=mom_rcp"
> 
> 	use crypt && myconf="--with-rcp=scp"
> 
> 	if use cpusets && use kernel_linux; then
> 		myconf="${myconf} --enable-cpusets"
> 	fi

The same logic is duplicated, once here and once earlier. It might be 
nicer to just do it once, perhaps by setting a variable and checking it.

Thanks,
Donnie
-- 
gentoo-dev@lists.gentoo.org mailing list



           reply	other threads:[~2008-03-12 23:40 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <E1JZVAd-0000kh-QD@stork.gentoo.org>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080312234026.GA17388@comet.science.oregonstate.edu \
    --to=dberkholz@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    --cc=jsbronder@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox