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

Restore STDERR in pngtest.c #557

Closed
wants to merge 1 commit into from
Closed

Conversation

bungeman
Copy link
Contributor

@bungeman bungeman commented Apr 26, 2024

In "test: Add consistency checks for the PNG_LIBPNG_VER* number" [0] the STDERR macro was moved from outside an ifdef to inside an ifdef. This broke the code in the else of this ifdef which also uses the STDERR macro. Move STDERR back to where it was to avoid compile errors in the else case.

[0] cc8006c

Fixes: #560

bungeman added a commit to bungeman/freetype2-testing that referenced this pull request May 2, 2024
The libpng project has moved its upstream. Also update to the newest
release. Unfortunately, rolling to v1.6.63 is blocked until the tests
are fixed [0].

[0] pnggroup/libpng#557
bungeman added a commit to bungeman/freetype2-testing that referenced this pull request May 2, 2024
The libpng project has moved its upstream. Also update to the newest
release. Unfortunately, rolling to v1.6.63 is blocked until the tests
are fixed [0].

[0] pnggroup/libpng#557
@jbowler
Copy link
Contributor

jbowler commented May 5, 2024

This should be an issue with a repro; i.e. report a bug, don't suggest a fix.

In "test: Add consistency checks for the PNG_LIBPNG_VER* number" [0] the
`STDERR` macro was moved from outside an `ifdef` to inside an `ifdef`.
This broke the code in the `else` of this `ifdef` which also uses the
`STDERR` macro. Move `STDERR` back to where it was to avoid compile
errors in the `else` case.

[0] pnggroup@cc8006c

Fixes: pnggroup#560
@jbowler
Copy link
Contributor

jbowler commented Sep 7, 2024

@ctruta: I've now verified this against the repro in #560 It's an issue for libpng16 because it breaks real world configurations. In particular it breaks configurations which don't have the read support pngtest.c requires - "make" step fails when it compiles pngtest.c

The change fixes this.

@ctruta
Copy link
Member

ctruta commented Sep 8, 2024

Integrated in the main branch -- many thanks.

@ctruta ctruta closed this Sep 8, 2024
bungeman added a commit to bungeman/freetype2-testing that referenced this pull request Sep 9, 2024
The libpng project has moved its upstream. Also update to the newest
release. Rolling to this commit picks up a fix for tests [0].

[0] pnggroup/libpng#557
bungeman added a commit to freetype/freetype2-testing that referenced this pull request Sep 9, 2024
The libpng project has moved its upstream. Also update to the newest
release. Rolling to this commit picks up a fix for tests [0].

[0] pnggroup/libpng#557
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need to restore STDERR in pngtest.c
3 participants