[prev in list] [next in list] [prev in thread] [next in thread] 

List:       macports-dev
Subject:    Dummy variants/platform
From:       N_Ox <n.oxyde () gmail ! com>
Date:       2007-05-25 22:36:35
Message-ID: 2F904A77-5F87-487C-BBD6-A47E595511AB () gmail ! com
[Download RAW message or body]


Le 26 mai 07 à 00:14, Ryan Schmidt a écrit :

> On May 25, 2007, at 16:49, N_Ox wrote:
>
>> Le 25 mai 07 à 23:44, Ryan Schmidt a écrit :
>>
>>> platform darwin 8 {}
>>> pre-fetch {
>>> 	if { [variant_isset darwin_8] } {
>>> 		ui_error "==== ATTENTION!!!! ===="
>>> 		ui_error "Sockstat is not working under darwin 8 nor tiger.  
>>> Please use"
>>> 		ui_error "lsof -i6/lsof -i4/lsof -U instead."
>>> 		ui_error "==== ATTENTION!!!! ===="
>>> 		ui_error "Please sudo port uninstall sockstat"
>>> 	}
>>> }
>>
>> there's just something bothering me with platform/variant  
>> directives i've seen here and there.
>> Why do you use a dummy platform and use variant_isset in the stage  
>> directive?
>>
>> From what i've seen (and coded, of course), every stage in every  
>> activated variant/platform is executed.
>
> If you don't declare "platform darwin 8" to be *something*, even an  
> empty "{}", then "[variant_isset _darwin_8]" will be false and the  
> message will not be printed. Try it out. I just did.

Sorry, you haven't understood me, i meant:

platform darwin 8 {
	pre-fetch {
		if { [variant_isset darwin_8] } {
			ui_error "==== ATTENTION!!!! ===="
			ui_error "Sockstat is not working under darwin 8 nor tiger. Please  
use"
			ui_error "lsof -i6/lsof -i4/lsof -U instead."
			ui_error "==== ATTENTION!!!! ===="
			ui_error "Please sudo port uninstall sockstat"
		}
	}
}


--
Anthony Ramine, a lazy french student.
nox@macports.org


_______________________________________________
macports-dev mailing list
macports-dev@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-dev

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic