alpine-py38-gisinit.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. diff --git a/lib/gis/gisinit.c b/lib/gis/gisinit.c
  2. index c45a9eb15..1531d18da 100644
  3. --- a/lib/gis/gisinit.c
  4. +++ b/lib/gis/gisinit.c
  5. @@ -49,12 +49,12 @@ void G__gisinit(const char *version, const char *pgm)
  6. G_set_program_name(pgm);
  7. - if (strcmp(version, GIS_H_VERSION) != 0)
  8. + /*if (strcmp(version, GIS_H_VERSION) != 0)
  9. G_fatal_error(_("Module built against version %s but "
  10. "trying to use version %s. "
  11. "You need to rebuild GRASS GIS or untangle multiple installations."),
  12. version, GIS_H_VERSION);
  13. -
  14. + */
  15. /* Make sure location and mapset are set */
  16. G_location_path();
  17. mapset = G_mapset();
  18. @@ -83,11 +83,12 @@ void G__no_gisinit(const char *version)
  19. if (initialized)
  20. return;
  21. - if (strcmp(version, GIS_H_VERSION) != 0)
  22. + /*if (strcmp(version, GIS_H_VERSION) != 0)
  23. G_fatal_error(_("Module built against version %s but "
  24. "trying to use version %s. "
  25. "You need to rebuild GRASS GIS or untangle multiple installations."),
  26. version, GIS_H_VERSION);
  27. + */
  28. gisinit();
  29. }