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

configure: update to latest config.guess and config.sub #6

Open
wants to merge 884 commits into
base: master
Choose a base branch
from

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Jan 3, 2024

This updates config.guess and config.sub to their latest versions.
If the two files are deleted in this PR, please check the logs of the workflow here:
Workflow run summary

Automated changes by create-pull-request GitHub action

ShubhamDesai and others added 18 commits September 16, 2024 12:04
This change addresses an issue identified by Coverity Scan (CID : 1415709) [unchecked return value from library]. The checks are added for lseek usages using an error message already used in the library.

---------

Co-authored-by: Edouard Choinière <[email protected]>
* Handling Resource Leak

* Resource Leak
* r.viewshed: initialize struct member before using struct

This was reported by cppcheck tool. Technically, we are not using
the member in the struct variable in any of the subsequent
functions, but it's a good practice to initialize all the struct
members whenever possible.

Signed-off-by: Mohan Yelugoti <[email protected]>

* Use right literal while initializing angle

Signed-off-by: Mohan Yelugoti <[email protected]>

---------

Signed-off-by: Mohan Yelugoti <[email protected]>
…fy module (OSGeo#4299)

* Copy into fix size buffer issue

* removed variable Len

* Update imagery/i.rectify/main.c

Co-authored-by: Nicklas Larsson <[email protected]>

---------

Co-authored-by: Shubham Vasudeo Desai <[email protected]>
Co-authored-by: Shubham Vasudeo Desai <[email protected]>
Co-authored-by: Nicklas Larsson <[email protected]>
* remove unused variable

* Specify old ideas in the comment explicitly

---------

Co-authored-by: Vaclav Petras <[email protected]>
- various minor updates
- removal of GRASS Travis CI section
Several documents and files contain references to documents on https://trac.osgeo.org/grass/wiki/ while newer versions exist in GitHub. This PR updates a series of URLs and drops the outdated files `CHANGES` and `NEWS`.
Additionally, some minor markdown fixes.
…oad SQL template files (OSGeo#4335)

grass.temporal.abstract_space_time_dataset: Use Path.read_text() to load SQL template files

Fixes ResourceWarnings about unclosed files, fixing ruff SIM115 at the same time.

These 4 places were opening a file and reading it completely in the same line, but never closed explicitly the file, nor used a context manager that would kick in as much as possible on errors inside the calls.
…OSGeo#4332)

Make local implementations of strlcpy() and strlcat() optimizable by
using restrict type qualifier, while keeping public API for G_strlcat
and G_strlcpy available to C++ code and having identical prototype and
declaration.
…SGeo#4324)

* grass.gunittest: Ensure file list exists before processing exclusions

* grass.gunittest: Use pathlib.Path to handle test files across platforms

* grass.gunittest: Use pathlib.PurePath instead of concrete pathlib.Path

* grass.gunittest: Also use pathlib.PurePath for patterns

* grass.gunittest: Simplify pathlib filtering using a set comprehension

* grass.gunittest: Add typing to fnmatch_exclude_with_base signature

* style: Sort imports with isort

* Add Edouard Choinière (echoix) to the authors

* Fix typo in comment

* grass.gunittest: Filter file list respecting all three filter arguments if specified

* grass.gunittest: Change set comprehension variable name
…eo#4338)

* grass.gunittest: Use a context manager for opening htmldiff_file

* grass.gunittest: Specify encoding for writing htmldiff_file

* grass.gunittest: Write all lines of htmldiff_file at once

* grass.gunittest: Use Path.write_text() to write htmldiff_file

* grass.gunittest: Use a context manager for opening actual and reference files (SIM115)

* grass.gunittest: Use a context manager for output StringIO in case.py

* grass.gunittest: Use a context manager for opening files (SIM115)

In function replace_in_file of reporters.py

* grass.gunittest: Use a context manager for opening files (SIM115)

In function wrap_stdstream_to_html of reporters.py

* grass.gunittest: Use a context manager for opening files (SIM115)

In function report_for_dirs of reporters.py. Reordered so string creation ends up together outside the context manger where the file is written.

* grass.gunittest: Use a context manager for opening files (SIM115)

In function end_file_test of class GrassTestFilesHtmlReporter of reporters.py. Reordered so string creation ends up together outside the context manger where the strings are written to the file.

* grass.gunittest: Use a context manager for opening files (SIM115)

In function report_for_dir of class TestsuiteDirReporter of reporters.py

* grass.gunittest: Ignore remaining two SIM115 in reporters.py

* grass.gunittest: Use a context manager for opening files in multireport (SIM115)

* style: Enable checking of SIM115
…Geo#4339)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
echoix and others added 29 commits October 27, 2024 05:24
* temporal: Add precise typing overloads to dataset_factory

This enables type checkers like mypy or Pyright to understand the returned class from the string passed as the type argument

* temporal: Add typing overloads to dataset_factory

* temporal: Add dataset_factory implementation with str type for type argument

* temporal: Remove dataset_factory overload that listed all literal types

* temporal: Update dataset_factory file header

* temporal: Add dataset_factory overload with str type for type argument

* temporal: Accept None for id argument in dataset_factory overload as used in existing calls
* updated E722

* updated .flake8

* Update v.unpack.py
* updated E722

* updates

* updates

---------

Co-authored-by: Anna Petrasova <[email protected]>
For both active and inactive raster mask, show the name of the raster which is used (or would be used) for the mask. This will allow tools like r.mask or GUI to do lower-level operations with or around mask without a need to know about defaults or user mechanism to change the name.

I'm repurposing the existing 'name' (full_name) key which is now always set (as opposed to being null when no mask is present) as the 'present' boolean key already has the information on the mask presence. I'm renaming full_name to name because that creates a simpler interface (which is whole point of outputting full name as opposed to two keys to get name and mapset).
* document performance issue

* address code review

* Apply suggestions from code review

Co-authored-by: Markus Neteler <[email protected]>

* consistent recommendation

* remove leftover dot

---------

Co-authored-by: Markus Neteler <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This color table uses the color ramp from the srtm_plus color table for terrain to create colors for relative elevation (spread over the range of elevations in a raster map) rather than absolute elevation in meters. This applies srtm colors in a way similar to the way the elevation color table applies them. This color table is especially useful in creating nice looking elevation maps and shading relief maps.
While the message functions (fatal, warning, message, info, debug, verbose, percent) have env parameter, grass.script was not consistently passing the env parameter to these functions. This fixes all the clear cases in functions which themselves have env (but does not touch any which don't have it where the fix needs to be more complex).

These functions can now be called and produce these messages even for non-global sessions.
…ble files (OSGeo#4563)

* style: Sort packages in Vagrantfile

* style: Sort configure flags in package.nix

* style: Sort .gunittest.cfg

* style: Sort Travis build files

* style: Sort python optional_requirements.txt

* style: Sort configure flags in GitHub workflows

* style: Sort packages and configure flags for binder

* style: Sort packages, configure flags, cmake flags and wget downloads in Dockerfiles

* style: Sort configure flags in Vagrant script

* style: Sort svn author name files with linux sort command

* style: Sort contributors.csv and contributors_extra.csv

* style: Sort rpm package spec

* style: Sort packages and configure flags in mswindows build scripts

* style: Sort macosx build script Readme

* style: Sort singularity file

* Apply changes from https://src.fedoraproject.org/rpms/grass/blob/rawhide/f/grass.spec
* grass.pygrass.rpc.base: Add typing annotations for lock and conn

* grass.pygrass.rpc.base: Use context manager for lock in dummy_server

* grass.pygrass.rpc.base: Use context manager for threadLock in RPCServerBase

* grass.pygrass.rpc.base: Remove release lock in context manager

* grass.pygrass.rpc.base: Add more typing annotations

* grass.pygrass.rpc.base: Check for None to satisfy mypy type checking

* grass.pygrass.rpc.base: Remove release lock in context managers, as they would be released when unlocked (RuntimeError: release unlocked lock)

* grass.pygrass.rpc.base: Sort imports

* grass.temporal.c_libraries_interface: Use context manager for lock in c_library_server

* grass.temporal.c_libraries_interface: Add typing annotations for lock and conn

* grass.pygrass.rpc.base: Change date of file header

* grass.pygrass.rpc.base: Update docs of conn argument to mention that it is a multiprocessing.Connection object obtained from multiprocessing.Pipe

* grass.temporal.c_libraries_interface: Change date of file header

* grass.pygrass.rpc: Sort imports

* grass.temporal.c_libraries_interface: Sort imports

* Update docs of conn argument to mention that it is a multiprocessing.Connection object obtained from multiprocessing.Pipe

* grass.pygrass.messages: Sort imports

* Update docs of conn argument to mention that it is a multiprocessing.connection.Connection object obtained from multiprocessing.Pipe

* grass.pygrass.rpc: Use context manager to acquire and release the lock

* Fix typo in python/grass/pygrass/messages/testsuite/test_pygrass_messages_doctests.py

* grass.pygrass.messages: Fix typo in message_server

* grass.pygrass.messages: Missing "IMPORTANT" message type in message_server

* grass.pygrass.messages: Add return type to get_msgr

* grass.pygrass.messages: Add types to signatures in Messenger class and rest of file

* grass.pygrass.messages: Use context manager for acquiring the lock in message_server()

* grass.pygrass.messages: Add types to message_types to track missing conditions

* grass.pygrass.messages: Extract message only for message_types where the variable is used

* grass.pygrass.messages: Add parameter descriptions to percent(self, n, d, s)

* grass.pygrass.messages: Initialize Messenger fields without setting them to None

* grass.pygrass.messages: Fix typo

* grass.pygrass.messages: Change date of file header
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.