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

winGRASS: exclude pdal as compilation dependency #2883

Merged
merged 2 commits into from
Mar 11, 2023
Merged

Conversation

hellik
Copy link
Member

@hellik hellik commented Mar 10, 2023

as seen in the compilation logs of daily winGRASS builds (https://wingrass.fsv.cvut.cz/grass83/logs/):

pdal is not available in OSGeo4W due to Mingw64/MSVSC incompatibility

see also gh CI build recipe (https://github.com/OSGeo/grass/blob/main/mswindows/osgeo4w/build_osgeo4w.sh#L67)

as seen in the compilation logs of daily winGRASS builds (https://wingrass.fsv.cvut.cz/grass83/logs/):
pdal is not available in OSGeo4W due to Mingw64/MSVSC incompatibility
see also gh CI build recipe (https://github.com/OSGeo/grass/blob/main/mswindows/osgeo4w/build_osgeo4w.sh#L67)
@hellik hellik requested review from ninsbl and landam March 10, 2023 23:23
@hellik hellik added Windows Microsoft Windows specific backport_needed labels Mar 10, 2023
@nilason
Copy link
Contributor

nilason commented Mar 11, 2023

I see you pushed the PR branch 'hellik-patch-1' directly to the osgeo/grass fork, it should have been to your own fork (see https://github.com/OSGeo/grass/blob/main/CONTRIBUTING.md).
I'm not sure where to go from here, perhaps @wenzeslaus have some suggestions.

@hellik
Copy link
Member Author

hellik commented Mar 11, 2023

I see you pushed the PR branch 'hellik-patch-1' directly to the osgeo/grass fork, it should have been to your own fork (see https://github.com/OSGeo/grass/blob/main/CONTRIBUTING.md). I'm not sure where to go from here, perhaps @wenzeslaus have some suggestions.

I did this PR on the github web interface; as I have no local GRASS git environment at hand here on my box.

If it is not the best way to do some small PRs from the github web interface, then this should be probably disabled.

@nilason
Copy link
Contributor

nilason commented Mar 11, 2023

I see you pushed the PR branch 'hellik-patch-1' directly to the osgeo/grass fork, it should have been to your own fork (see https://github.com/OSGeo/grass/blob/main/CONTRIBUTING.md). I'm not sure where to go from here, perhaps @wenzeslaus have some suggestions.

I did this PR on the github web interface; as I have no local GRASS git environment at hand here on my box.

If it is not the best way to do some small PRs from the github web interface, then this should be probably disabled.

It is actually possible to make PRs from GitHub web interface.

  1. First you need to create a fork by clicking the "Fork" button;
  2. Then start editing the file to change, in your fork.
  3. Upon clicking "Commit changes.." you'll given the option to create a new branch for the commit.

@wenzeslaus
Copy link
Member

If it is not the best way to do some small PRs from the github web interface, then this should be probably disabled.
...
Then start editing the file to change, in your fork.

GitHub interface does not really allow enabling and disabling arbitrary GitHub features. For example, in the past, we had to have required checks just to avoid direct commits to main.

Back to our issue, it is really only those with commit rights to the main repo who are faced with the issue of main repo vs fork. Without the commit rights, you are redirected to the fork.

Branches on the main repository create noise, but they work just fine for PRs. We can't avoid them with the helper bots, but for human contributors with commit rights, editing fork is a better way.

Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com>
@hellik
Copy link
Member Author

hellik commented Mar 11, 2023

If it is not the best way to do some small PRs from the github web interface, then this should be probably disabled.
...
Then start editing the file to change, in your fork.

GitHub interface does not really allow enabling and disabling arbitrary GitHub features. For example, in the past, we had to have required checks just to avoid direct commits to main.

Back to our issue, it is really only those with commit rights to the main repo who are faced with the issue of main repo vs fork. Without the commit rights, you are redirected to the fork.

Branches on the main repository create noise, but they work just fine for PRs. We can't avoid them with the helper bots, but for human contributors with commit rights, editing fork is a better way.

thanks for the explanations. @wenzeslaus

Then lets close this one and do it that way how @nilason proposed. it's a good exercise for my next PR via gh web interface. ;-)

@landam
Copy link
Member

landam commented Mar 11, 2023

Tested on build server:

checking for liblas/capi/liblas.h... yes
checking whether to use PDAL... no
checking whether to use NetCDF... yes

@landam
Copy link
Member

landam commented Mar 11, 2023

@wenzeslaus @nilason Let's merge this PR (even it was not created from a fork). Any objections?

@landam landam requested a review from nilason March 11, 2023 18:58
@landam
Copy link
Member

landam commented Mar 11, 2023

@hellik Is any backport really needed? GRASS 82 builds seem to be not affected (https://wingrass.fsv.cvut.cz/grass82/logs/log-r2b2069e2ff-205/)

Copy link
Contributor

@nilason nilason left a comment

Choose a reason for hiding this comment

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

No need to remake this PR.
Looks good to me!

@hellik
Copy link
Member Author

hellik commented Mar 11, 2023

@hellik Is any backport really needed. GRASS 82 builds seem to be not affected (https://wingrass.fsv.cvut.cz/grass82/logs/log-r2b2069e2ff-205/)

I see: https://wingrass.fsv.cvut.cz/grass82/

removing the backport label. though not sure how your build environments differ between 8.2. and 8.3.

@wenzeslaus
Copy link
Member

I agree, no need to redo the PR. (The potential noise was already created and the branch will need to be deleted one way or the other.)

@landam
Copy link
Member

landam commented Mar 11, 2023

removing the backport label. though not sure how your build environments differ between 8.2. and 8.3.

There is no difference in build environments. It seems to be related to #2851.

@nilason
Copy link
Contributor

nilason commented Mar 11, 2023

There is no pdal in either build.

@nilason
Copy link
Contributor

nilason commented Mar 11, 2023

The change in #2851 that might affect is that configuring with PDAL is the default. That's why --without-pdal is needed in main (8.3).

@landam landam merged commit 4f1305d into main Mar 11, 2023
@landam landam deleted the hellik-patch-1 branch March 11, 2023 20:45
@ninsbl
Copy link
Member

ninsbl commented Mar 11, 2023

For the record: this was already fixed in build_osgeo4w.sh two weeks ago with #2851:

--with-netcdf=${OSGEO4W_ROOT_MSYS}/bin/nc-config \
--without-pdal

We should probably have just one build script that is used both for packaging and in CI...

ninsbl pushed a commit to ninsbl/grass that referenced this pull request Mar 20, 2023
Co-authored-by: Martin Landa <landa.martin@gmail.com>
Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com>
jef-n added a commit to jef-n/OSGeo4W that referenced this pull request Mar 21, 2023
@jef-n
Copy link
Contributor

jef-n commented Mar 22, 2023

What is the issue here? The grass nightly on osgeo4w is apparently fine with PDAL.

@nilason
Copy link
Contributor

nilason commented Mar 22, 2023

What is the issue here? The grass nightly on osgeo4w is apparently fine with PDAL.

Is there a log file for that?

@jef-n
Copy link
Contributor

jef-n commented Mar 28, 2023

What is the issue here? The grass nightly on osgeo4w is apparently fine with PDAL.

Is there a log file for that?

Oh, sorry. Scratch that. Forgot that we already established that PDAL built with VC is not usable from mingw due to the C++ ABI. A clean build failed too. Disabled it on osgeo4w too - jef-n/OSGeo4W@d160d4e. I guess PDAL was meanwhile enabled by default in GRASS.

@neteler neteler added this to the 8.3.0 milestone Aug 16, 2023
neteler pushed a commit to nilason/grass that referenced this pull request Nov 7, 2023
Co-authored-by: Martin Landa <landa.martin@gmail.com>
Co-authored-by: Nicklas Larsson <n_larsson@yahoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Windows Microsoft Windows specific
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants