pkg upgrade conflict

"(ツ)" endzed at gmail.com
Fri Mar 7 09:45:22 UTC 2014


Le 6 mars 2014 à 13:42, Mark Felder <feld at FreeBSD.org> a écrit :

>> Beside this and since I need to build a repository for each box
>> specifics, i guess I'll soon need to build a repository per box... so I
>> wonder if it is possible to use a generic repository pkg definition that
>> include the hostname, i mean :
>> 
>> today my repository definition contains 
>> 
>> poudriere: { 
>>   url             :
>>   "pkg+http://xyz.invalid/poudriere/${ABI}",
>>   enabled         : yes,
>>   mirror_type     : "SRV"
>> }
>> 
>> is there a way to have something like this (already tried it, doesn't
>> work because ${HOST} env var is not expanded)
>> 
>> poudriere: { 
>>   url             :
>>   "pkg+http://xyz.invalid/poudriere/${ABI}/${HOST}",
>>   enabled         : yes,
>>   mirror_type     : "SRV"
>> }
>> 
> 
> Well, the way I do it is have my main poudriere.d/make.conf and then
> poudriere.d/php53-make.conf. In this config file:
> 
> # override php version from regular make.conf
> .undef DEFAULT_VERSIONS
> DEFAULT_VERSIONS=mysql=55 pgsql=92 apache=2.2 php=5.3
> 
> Now I can build a php53 flavor:
> 
> pouriere bulk -j 92amd64 -z php53 -f /path/to/ports.txt
> 
> On my clients using the php53 repository:
> 
> "pkg+http://xyz.invalid/poudriere/${ABI}-php53",
> 
> 
> Hope that helps!


That helps ! I even go deeper and use some sets (-z option) to solve this, one set for php53 and one for php54

Many thanks :-)






More information about the freebsd-pkg mailing list