https://bugzilla.redhat.com/show_bug.cgi?id=2562935



--- Comment #7 from Cristian Le <[email protected]> ---
> > - Is there a motivation for picking that Source0 instead of the git archive 
> > one? (https://github.com/dftd3/simple-dftd3/archive/refs/tags/v1.7.0.tar.gz)
>
> The git archive calls `simple-dftd3`, while I introduced as `s-dftd3`, that's 
> the main reason.

Well do note that the Source0 you chose is not a git archive, it contains the
bundled dependencies. Would be better to use the git archive whenever possible,
less surprises in the content.

> That's a tricky one as it supports also `pkgconfig` approach

Support is a generous word here. During the build they consume via
`find_package()`, not ever reusing those `Find*` to at least try to make the
targets consistent. The major issue here is with how this is used during the
`Config.cmake`, for example if they install the `simple-dftd3-devel` and try to
consume it without appropriate dependencies accounted for, it will try to
re-build `mctc-lib`. The consumption in the `Config.cmake` should properly
reflect the building, e.g. if the project was built with the dependencies
`FetchContent`-ed as static library (while simple-dftd3 is a shared library)
the inclusion of the `find_package(mctc-lib)` there is not needed. I am yet to
see a magical function that can account for these use-cases, but the best I
have is the built-in CMake support of find_package+FetchContent and not trying
to get in their way.

The `.pc` support is complicated and I've mostly found half solutions. I am
holding more hope for CPS because the support for that would be handled by the
build system not individual developers.


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2562935

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202562935%23c7

-- 
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to