svn commit: r554143 - head/devel/git

Guido Falsi madpilot at FreeBSD.org
Fri Nov 6 16:24:04 UTC 2020


On 06/11/20 17:01, Renato Botelho wrote:
> On 06/11/20 11:36, Guido Falsi wrote:
>> On 06/11/20 12:41, Renato Botelho wrote:
>>> On 06/11/20 04:22, Guido Falsi wrote:
>>>> On 05/11/20 18:04, Renato Botelho wrote:
>>>>> @@ -76,6 +73,8 @@ OPTIONS_EXCLUDE=    GUI SVN GITWEB CONTRIB P4 CVS 
>>>>> PERL
>>>>>   .endif
>>>>>   OPTIONS_SUB=    yes
>>>>> +
>>>>> +OPTIONS_FILE=        ${PORT_DBDIR}/${OPTIONS_NAME}/${FLAVOR}-options
>>>>
>>>> I'm not sure why, but this is not working as expected IMHO.
>>>>
>>>> I noticed that, when using "poudriere options" and building with 
>>>> "poudriere bulk" the options file is ignored. poudsriere option 
>>>> continuously brings up the git dialog4ports screen and asks options 
>>>> proposing the defaults. The option file is correctly written but 
>>>> never read. poudriere bulk ignores it and builds with default options.
>>>
>>> I never used `poudriere options` before and indeed it seems to have a 
>>> bug there.  For some reason I didn't understand yet poudriere 
>>> considers git (with default flavor) as a dependency of git (with lite 
>>> or gui flavor) and it's not correct.
>>>
>>> I tested a build with `poudriere testport -c -j JAIL devel/git at lite` 
>>> and changed some options.  It worked as expected as you can see at [1].
>>>
>>>> Also on the local machine running make config repeatedly in the port 
>>>> directory does the same: the dialog4ports sscreen comes up with 
>>>> default options each time and the options file is written but never 
>>>> read.
>>>
>>> I made lots of tests here and everything worked.  The way I did it 
>>> was using:
>>>
>>> # make FLAVOR=(lite|gui) [config|showconfig|rmconfig]
>>>
>>> and I couldn't reproduce any issue.  Every time selected options were 
>>> respected by showconfig, which reads file saved on config step.
>>>
>>
>> Ok, I Think I see the problem.
>>
>> Did you try doing "make config" without passing any flavor?
>>
>> Ports framework does not define a default flavor for you, so if you 
>> don't specify one on the command line in some way, while it works most 
>> of the time, with git port it can't work, because the FLAVOR variable 
>> is undefined when it gets to expanding it in OPTIONS_FILE.
>>
>> If I run "make config" without a FLAVOR definition it misbehaves.
>>
>> I made a test adding a FLAVOR?= ${FLAVORS:[1]} line just below FLAVORS 
>> definition, and it now behaves correctly with "make config". It looks 
>> like it still misbehaves with poudriere options though, which is 
>> strange, I thought the FLAVOR trick would fix that too. I'm trying to 
>> understand why.
>>
> 
> Can you try this patch and see if it helps?
> 
> https://bast.garga.net.br/files/git_options.diff
> 

Yes, this one fixes the behaviour in ports directory and with poudriere 
options. Thanks!

-- 
Guido Falsi <madpilot at FreeBSD.org>


More information about the svn-ports-all mailing list