Re: git: 2ba4ed91621e - main - sysutils/createrepo_c: new port

From: Pietro Cerutti <gahr_at_FreeBSD.org>
Date: Fri, 04 Oct 2024 12:40:19 UTC
On Oct 04 2024, 03:34 +0000, Daniel Engberg <daniel.engberg.lists@pyret.net> wrote:
>>>  do-test section can be replaced with USES= cmake:testing
>>>  
>>>  https://cgit.freebsd.org/ports/tree/Mk/Uses/cmake.mk#n20
>> 
>> I wasn't able to do it with cmake:testing. Were you?
>
>Upstream uses from what I can tell an rather old approach for test
>target,
>
>https://github.com/rpm-software-management/createrepo_c/blob/master/CMakeLists.txt#L160
>
>The "EXCLUDE FROM ALL" part is what causes the issue

Thanks, I'll remove that.

>>>  It also seems to look for Doxygen by default
>>>  
>>>  which you probably want to disable to avoid potential plist
>>>  issues.
>> 
>> Well, they don't provide a way to turn off docs, but I don't see an 
>> 
>> issue with it building docs if it finds doxygen. We won't be
>> installing 
>> 
>> them anyway.
>
>https://cmake.org/cmake/help/latest/variable/CMAKE_DISABLE_FIND_PACKAGE_PackageName.html
>works :-)

I don't think this is at all necessary. But sure, I can set it (to 
CMAKE_ON, not to CMAKE_OFF like in your patch).

>Patch:
>
>https://projects.pyret.net/files/freebsd-patches/createrepo_c-improve.patch

I have taken a couple of suggestions, thanks.

-- 
Pietro Cerutti
I have pledged to give 10% of income to effective charities
and invite you to join me - https://givingwhatwecan.org