Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sci-libs/mpfi-1.5.4: Port to C99 by fixing incompatible pointers #36024

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NHOrus
Copy link
Contributor

@NHOrus NHOrus commented Mar 31, 2024

There's a difference between a pointer to struct and pointer to 1-element array embedding said struct, from modern compiler point of view. Disambigue that difference in code by taking the address of zeroth element instead of whole array.

Upstream has an updated tarball mpfi-1.5.4 with file missing tests folder, in current tarball, to successfully enable make check, ebuild test and FEATURES=test. Beyond the missing file, newer tarball includes also major changes, autotools and other code differences I do not feel qualified to judge. Upstream can't or doesn't semver their code.

This is why the package is not revision-bumped, still on tarball from 2019 instead of tarball from 2022 and doesn't have tests enabled.

Closes: https://bugs.gentoo.org/921351

There's a difference between a pointer to struct and pointer to 1-element array
embedding said struct, from modern compiler point of view. Disambigue that
difference in code by taking the address of zeroth element instead of whole array.

Upstream has an updated tarball mpfi-1.5.4 with file missing tests folder, in current
tarball, to successfully enable `make check`, ebuild test and FEATURES=test.
Beyond the missing file, newer tarball includes also major changes, autotools and other
code differences I do not feel qualified to judge. Upstream can't or doesn't semver their code.

This is why the package is not revision-bumped, still on tarball from 2019
instead of tarball from 2022 and doesn't have tests enabled.

Closes: https://bugs.gentoo.org/921351

Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
@gentoo-bot
Copy link

Pull Request assignment

Submitter: @NHOrus
Areas affected: ebuilds
Packages affected: sci-libs/mpfi

sci-libs/mpfi: @gentoo/sci-mathematics

Linked bugs

Bugs linked: 921351


In order to force reassignment and/or bug reference scan, please append [please reassign] to the pull request title.

Docs: Code of ConductCopyright policy (expl.) ● DevmanualGitHub PRsProxy-maint guide

@gentoo-bot gentoo-bot added assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR. labels Mar 31, 2024
@gentoo-repo-qa-bot
Copy link
Collaborator

Pull request CI report

Report generated at: 2024-03-31 19:25 UTC
Newest commit scanned: 5d98fdd
Status: ✅ good

There are existing issues already. Please look into the report to make sure none of them affect the packages in question:
https://qa-reports.gentoo.org/output/gentoo-ci/ade3713efa/output.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assigned PR successfully assigned to the package maintainer(s). bug linked Bug/Closes found in footer, and cross-linked with the PR.
Projects
None yet
3 participants