Skip to content

v.patch: fix pr 7351 for G84 - #7354

Merged
metzm merged 7 commits into
OSGeo:releasebranch_8_4from
metzm:v.patch_g84
May 2, 2026
Merged

metzm merged 7 commits into
OSGeo:releasebranch_8_4from
metzm:v.patch_g84

Conversation

@metzm

@metzm metzm commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

PR #7351 could not be backported to GRASS 8.4 because there is no G_strlcat() in G84. This PR uses a portable workaround of strlen + strcat

@metzm
metzm requested a review from nilason April 30, 2026 15:38
@metzm metzm added bug Something isn't working vector Related to vector data processing C Related code is in C module labels Apr 30, 2026
@metzm metzm added this to the 8.4.3 milestone Apr 30, 2026
@metzm metzm changed the title fix pr 7351 for G84 v.patch: fix pr 7351 for G84 Apr 30, 2026

@echoix echoix left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assuming build passes

@metzm

metzm commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor Author

Build failed in lib/raster with

vrt.c: In function ‘Rast_get_vrt_row’:
vrt.c:186: error: ignoring ‘#pragma omp critical’ [-Werror=unknown-pragmas]
  186 | #pragma omp critical(raster_vrt_read)
      | 
vrt.c:205: error: ignoring ‘#pragma omp critical’ [-Werror=unknown-pragmas]
  205 | #pragma omp critical(raster_vrt_read)
      | 
cc1: all warnings being treated as errors

Any idea why #pragma omp critical is an unknown pragma in G84, but not in G85 and G86?

Local build is fine of course.

@echoix

echoix commented Apr 30, 2026

Copy link
Copy Markdown
Member

OpenMP version is different maybe?

@metzm

metzm commented Apr 30, 2026

Copy link
Copy Markdown
Contributor Author

OpenMP version is different maybe?

No, build test for G84 is broken: if compiling without openMP support and the C compiler flag -Werror=unknown-pragmas is set, all #pragma omp .. occurrences cause a build error.

@github-actions github-actions Bot added raster Related to raster data processing libraries labels Apr 30, 2026
@metzm

metzm commented May 1, 2026

Copy link
Copy Markdown
Contributor Author

This line in the ubuntu workflow vould be a reason: https://github.com/OSGeo/grass/blob/releasebranch_8_4/.github/workflows/ubuntu.yml#L139 in particular -Werror which turns all warnings into errors. However, the same line does not cause trouble in main. When building GRASS84 in the workflow without openMP, a flag -Wno-error=unknown-pragmas could be added, but this might not be the root cause for the difference between main and G84 when building without openMP.

@github-actions github-actions Bot added the CI Continuous integration label May 1, 2026
@nilason

nilason commented May 1, 2026

Copy link
Copy Markdown
Contributor

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66943 Is probably related. It will likely be fixed by bumping

runs-on: ubuntu-22.04
to ubuntu-24.04.

@metzm

metzm commented May 2, 2026

Copy link
Copy Markdown
Contributor Author

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66943 Is probably related. It will likely be fixed by bumping

runs-on: ubuntu-22.04

to ubuntu-24.04.

Getting somewhere without bumping the ubuntu version. It seems that a build for G84 has not been triggered in a while, a number of issues pop up, not related to the purpose of this PR. E.g. doc/howto_release.md is not properly formatted which is completely unrelated to my attempts to fix the mess with the v.patch backport.

@metzm
metzm merged commit a1be78b into OSGeo:releasebranch_8_4 May 2, 2026
25 of 26 checks passed
@metzm
metzm deleted the v.patch_g84 branch May 2, 2026 14:18
@echoix

echoix commented May 2, 2026

Copy link
Copy Markdown
Member

It looks like the ubuntugis ppa is down

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working C Related code is in C CI Continuous integration libraries module raster Related to raster data processing vector Related to vector data processing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants