Bug 2562935 (s-dftd3)
| Summary: | Review Request: simple-dftd3 - Library first implementation of the D3 dispersion correction | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | SY Wang <uwsy1059> |
| Component: | Package Review | Assignee: | Cristian Le <fedora> |
| Status: | ASSIGNED --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | fedora, package-review |
| Target Milestone: | --- | Flags: | fedora:
fedora-review?
|
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | https://github.com/dftd3/simple-dftd3/ | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 2545731 | ||
| Bug Blocks: | |||
|
Description
SY Wang
2026-10-28 16:02:17 UTC
[fedora-review-service-build] Spec URL: https://growl.fedorapeople.org/reviews/s-dftd3/s-dftd3.spec SRPM URL: https://growl.fedorapeople.org/reviews/s-dftd3/s-dftd3-1.7.0-1.fc46.src.rpm correct source url [fedora-review-service-build] Overall lgtm - They already use `simple-dftd3` on conda-forge, and that is the upstream repo name, shouldn't this be called the same? A small confirmation on upstream's preference is enough to go with either one. - 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) - Can you clean up the `subprojects` folder, seems to be populated with the source above - Any plans for the MPI support? - There are both LGPL-3.0 and GPL-3.0 licenses attached to the repo. Where is the latter applied? - There is an asciidoc man page provided, have you looked into building it? pandoc might also be a lightweight way to do it. - Does upstream have any plans to get rid of the `Find*.cmake` modules? Reading them again it makes even less sense to include them like that, this is a packager's responsibility. - The devel package needs a require on `mctc-lib-devel` or `cmake(mctc-lib)`. We can't rely on the pkg-config, this one does not inject the `requires` for it there. (\me again curious to navigate the cps files and see if there is some metadata there) - export test would be nice if they could expose it. There are more other tests that are not linked up > - They already use `simple-dftd3` on conda-forge, and that is the upstream repo name, shouldn't this be called the same? A small confirmation on upstream's preference is enough to go with either one. I'll ask upstream. > - 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. > - Any plans for the MPI support? Downstream caller can call partition API without s-dftd3 itself built with MPI. For the context: When I first introduced such mechanism in [dftd4](https://github.com/dftd4/dftd4/pull/395), I kept in mind not to introduce additional MPI dependency to dftd4, but when Sebastian adapted it to s-dftd3 and tblite, he added the native MPI support (called by frontend app), which was not my intention but okay with me... Since dftd3 correction is rather cheap and its OpenMP parallelism is good, I assumed there's no need to add MPI-enabled apps. > - Does upstream have any plans to get rid of the `Find*.cmake` modules? Reading them again it makes even less sense to include them like that, this is a packager's responsibility. That's a tricky one as it supports also `pkgconfig` approach, but since their meson packages now export CMake configuration file as well, maybe it's OK to do that. Taking use of `FetchCotent` seems to work well. Regarding including them as `subproject`, it is convenient for simpler offline build and DIY script (e.g. https://github.com/cp2k/cp2k/blob/master/tools/toolchain/scripts/stage8/install_tblite.sh, I've even made changes upstream to ensure that tarballs including subprojects can be built with CMake completely offline.), but for packaging they're redundant (but wouldn't cause issue because finding existing packages is preferred.) Ah I checked, not only conda-forge but also Spack use `simple-dftd3` instead of `s-dftd3`. I think I should adapt it. > > - 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. Spec URL: https://growl.fedorapeople.org/reviews/simple-dftd3/simple-dftd3.spec SRPM URL: https://growl.fedorapeople.org/reviews/simple-dftd3/simple-dftd3-1.7.0-1.fc46.src.rpm Rename to "simple-dftd3" and use git archive Ok, only remaining blocker is
> There are both LGPL-3.0 and GPL-3.0 licenses attached to the repo. Where is the latter applied?
The rest are fine to track and address gradually.
Spec URL: https://growl.fedorapeople.org/reviews/simple-dftd3/simple-dftd3.spec SRPM URL: https://growl.fedorapeople.org/reviews/simple-dftd3/simple-dftd3-1.7.0-1.fc46.src.rpm Correct install fmod directoy Looks like renaming to simple-dftd3 brings some conflicts?
```
-- Installing: /builddir/build/BUILD/simple-dftd3-1.7.0-build/BUILDROOT/usr/share/licenses/s-dftd3/COPYING
-- Installing: /builddir/build/BUILD/simple-dftd3-1.7.0-build/BUILDROOT/usr/share/licenses/s-dftd3/COPYING.LESSER
```
```
error: Installed (but unpackaged) file(s) found:
/usr/share/licenses/s-dftd3/COPYING
/usr/share/licenses/s-dftd3/COPYING.LESSER
Installed (but unpackaged) file(s) found:
/usr/share/licenses/s-dftd3/COPYING
/usr/share/licenses/s-dftd3/COPYING.LESSER
```
> There are both LGPL-3.0 and GPL-3.0 licenses attached to the repo. Where is the latter applied? From https://www.gnu.org/licenses/gpl-howto.html this looks like the preferred practice from GNU... > From https://www.gnu.org/licenses/gpl-howto.html this looks like the preferred practice from GNU... In the times of SPDX don't think that's much of a strict requirement, I definitely see projects that package only the LGPL license file :shrug:. Well at least I'm fine with that, so no blocker on that anymore. > Looks like renaming to simple-dftd3 brings some conflicts? No big preference on my side, we have tools to catch file collisions, so you can just package both of them and figure out what upstream wants to do with them. PS: in the last version I think you only updated the srpm not the spec file also. The `%{name}` vs `s-dftd3` inconsistency was still present last I opened it. > PS: in the last version I think you only updated the srpm not the spec file also. The `%{name}` vs `s-dftd3` inconsistency was still present last I opened it.
CMake use `project(s-dftd3)`, all files are installed following CMake project name. It's unlikely I can patch the project name...
Maybe
```
%license %{_licensedir}/s-dftd3/COPYING
%license %{_licensedir}/s-dftd3/COPYING.LESSER
```
?
Sure, you can do many things, `%files` those files but not mark them with `%license`, use the other files with the absolute path syntax, patch out the installation of those files, just delete those files from `%{buildroot}...` etc. Take your pick
Spec URL: https://growl.fedorapeople.org/reviews/simple-dftd3/simple-dftd3.spec SRPM URL: https://growl.fedorapeople.org/reviews/simple-dftd3/simple-dftd3-1.7.0-1.fc46.src.rpm Specify the license file paths [fedora-review-service-build] [fedora-review-service-build] |