[GRASS-git] [OSGeo/grass] 9f0946: docs: v.net.salesman.html fix manual typos (#4737)

Edouard Choinière noreply at github.com
Sat Nov 23 04:39:07 PST 2024


  Branch: refs/heads/renovate/ruff
  Home:   https://github.com/OSGeo/grass
  Commit: 9f09469aefc538a2196a7d54c03d581824e8df01
      https://github.com/OSGeo/grass/commit/9f09469aefc538a2196a7d54c03d581824e8df01
  Author: Hernán De Angelis <51515911+dhdeangelis at users.noreply.github.com>
  Date:   2024-11-22 (Fri, 22 Nov 2024)

  Changed paths:
    M vector/v.net.salesman/v.net.salesman.html

  Log Message:
  -----------
  docs: v.net.salesman.html fix manual typos (#4737)


  Commit: c2fb1181383f7452b01e6cd3e315ce4c75113386
      https://github.com/OSGeo/grass/commit/c2fb1181383f7452b01e6cd3e315ce4c75113386
  Author: Markus Metz <33666869+metzm at users.noreply.github.com>
  Date:   2024-11-22 (Fri, 22 Nov 2024)

  Changed paths:
    M raster/r.to.vect/areas_io.c
    M raster/r.to.vect/global.h
    M raster/r.to.vect/main.c
    M raster/r.to.vect/r.to.vect.html

  Log Message:
  -----------
  r.to.vect: new flag to re-center centroids (#4690)

* r.to.vect: new flag to re-center centroids


  Commit: a58e17817a44d09f5bb1a0bf462bf8a2ab6ed115
      https://github.com/OSGeo/grass/commit/a58e17817a44d09f5bb1a0bf462bf8a2ab6ed115
  Author: Markus Neteler <neteler at osgeo.org>
  Date:   2024-11-23 (Sat, 23 Nov 2024)

  Changed paths:
    M man/build_md.py

  Log Message:
  -----------
  man: fix KeyError: 'MDDIR' in man/build_md.py (#4739)

At time the GRASS GIS main compilation with addons with `cron_grass_preview_build_binaries.sh` is broken:

https://grass.osgeo.org/grass85/binary/linux/snapshot/build.log.txt

```
...
Parsing <v.what.strds.timestamp>... SUCCESS
Parsing <wx.metadata>... FAILED
Parsing <wx.mwprecip>... FAILED
Parsing <wx.stream>... FAILED
Parsing <wx.wms>... FAILED
+ cp /home/neteler/.grass8/addons/modules.xml /var/www/code_and_data/addons/grass8/modules.xml
+ export ARCH
+ export ARCH_DISTDIR=/home/neteler/src//main/dist.x86_64-pc-linux-gnu
+ export GISBASE=/home/neteler/src//main/dist.x86_64-pc-linux-gnu
+ export VERSION_NUMBER=8.5
+ python3 /home/neteler/src//main/man/build_keywords.py /var/www/code_and_data/grass85/manuals/ /var/www/code_and_data/grass85/manuals/addons/
Traceback (most recent call last):
  File "/home/neteler/src//main/man/build_keywords.py", line 202, in <module>
    build_keywords("md")
  File "/home/neteler/src//main/man/build_keywords.py", line 68, in build_keywords
    from build_md import (
  File "/home/neteler/src/main/man/build_md.py", line 264, in <module>
    man_dir = os.path.join(os.environ["MDDIR"], "source")
  File "/usr/lib/python3.9/os.py", line 679, in __getitem__
    raise KeyError(key) from None
KeyError: 'MDDIR'
```

This PR attemps to fix this bug (inspired by `man/build_html.py`). Tested on grass.osgeo.org (without log file).

Co-authored-by: Martin Landa <landa.martin at gmail.com>


  Commit: 29bb77b6a407d562e40b7b1c0934146147988c61
      https://github.com/OSGeo/grass/commit/29bb77b6a407d562e40b7b1c0934146147988c61
  Author: ShubhamDesai <42180509+ShubhamDesai at users.noreply.github.com>
  Date:   2024-11-22 (Fri, 22 Nov 2024)

  Changed paths:
    M raster/r.watershed/ram/do_cum.c
    M raster/r.watershed/seg/do_cum.c

  Log Message:
  -----------
  r.watershed: Fix Resource Leak issue (#4687)

* Fix Resource Leak issue

* G_free()


  Commit: 6acffcb86e76b354ea8a3118d506fc45182ce67a
      https://github.com/OSGeo/grass/commit/6acffcb86e76b354ea8a3118d506fc45182ce67a
  Author: Mohan Yelugoti <ymdatta.work at gmail.com>
  Date:   2024-11-22 (Fri, 22 Nov 2024)

  Changed paths:
    M lib/vector/Vlib/dbcolumns.c

  Log Message:
  -----------
  lib/vector/Vlib: Fix out-of-scope memory access (#4667)

A local array was used to store column name and column
type for each column, and a pointer to this local array
was stored and accessed outside its scope, which can cause
undefined behavior.

To avoid this, use memory from heap to store this information
so that it's accessible outside where its defined and free
this memory at the end to avoid memory leaks.

This was found using cppcheck tool.

Signed-off-by: Mohan Yelugoti <ymdatta.work at gmail.com>


  Commit: b2c7fcef322f44c48b84da44c1a4f48b6e567b99
      https://github.com/OSGeo/grass/commit/b2c7fcef322f44c48b84da44c1a4f48b6e567b99
  Author: ShubhamDesai <42180509+ShubhamDesai at users.noreply.github.com>
  Date:   2024-11-22 (Fri, 22 Nov 2024)

  Changed paths:
    M vector/v.in.ascii/points.c

  Log Message:
  -----------
  v.in.ascii: Fix Resource Leak issue in points.c (#4729)


  Commit: 08ce5bf4de4260cfe7c31304de4704fa563754fe
      https://github.com/OSGeo/grass/commit/08ce5bf4de4260cfe7c31304de4704fa563754fe
  Author: ShubhamDesai <42180509+ShubhamDesai at users.noreply.github.com>
  Date:   2024-11-22 (Fri, 22 Nov 2024)

  Changed paths:
    M vector/v.univar/main.c

  Log Message:
  -----------
  v.univar: Fix Resource Leak issue in main.c (#4730)


  Commit: b4e4cb0fe949881199758548a3e912a7b63a966f
      https://github.com/OSGeo/grass/commit/b4e4cb0fe949881199758548a3e912a7b63a966f
  Author: ShubhamDesai <42180509+ShubhamDesai at users.noreply.github.com>
  Date:   2024-11-22 (Fri, 22 Nov 2024)

  Changed paths:
    M vector/v.net/arcs.c

  Log Message:
  -----------
  v.net: Fix Resource Leak issue in arcs.c (#4735)


  Commit: cf2e7e843b9b19affd72e9cda50ce072e1f7dc93
      https://github.com/OSGeo/grass/commit/cf2e7e843b9b19affd72e9cda50ce072e1f7dc93
  Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
  Date:   2024-11-23 (Sat, 23 Nov 2024)

  Changed paths:
    M pyproject.toml

  Log Message:
  -----------
  style: PT004 has been removed in ruff 0.8.0, ignoring had no effect


  Commit: 35afe4e044cc4b53d5eefe058f26a1c85103ab93
      https://github.com/OSGeo/grass/commit/35afe4e044cc4b53d5eefe058f26a1c85103ab93
  Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
  Date:   2024-11-23 (Sat, 23 Nov 2024)

  Changed paths:
    M display/d.text/test.py
    M gui/wxpython/gmodeler/model.py
    M gui/wxpython/photo2image/ip2i_manager.py
    M lib/init/grass.py
    M python/grass/gunittest/case.py
    M python/grass/script/utils.py
    M raster/r.topidx/arc_to_gridatb.py
    M raster/r.topidx/gridatb_to_arc.py
    M utils/g.html2man/g.html2man.py
    M utils/g.html2man/ggroff.py
    M utils/gitlog2changelog.py
    M utils/mkhtml.py
    M utils/mkrest.py

  Log Message:
  -----------
  style: Fix unraw-re-pattern (RUF039)

Ruff rule: https://docs.astral.sh/ruff/rules/unraw-re-pattern/

Newly introduced ruff rule


  Commit: 1c333656312c9f145322c36db23b5ba0060fd023
      https://github.com/OSGeo/grass/commit/1c333656312c9f145322c36db23b5ba0060fd023
  Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
  Date:   2024-11-23 (Sat, 23 Nov 2024)

  Changed paths:
    M lib/vector/Vlib/dbcolumns.c
    M man/build_md.py
    M raster/r.to.vect/areas_io.c
    M raster/r.to.vect/global.h
    M raster/r.to.vect/main.c
    M raster/r.to.vect/r.to.vect.html
    M raster/r.watershed/ram/do_cum.c
    M raster/r.watershed/seg/do_cum.c
    M vector/v.in.ascii/points.c
    M vector/v.net.salesman/v.net.salesman.html
    M vector/v.net/arcs.c
    M vector/v.univar/main.c

  Log Message:
  -----------
  Merge remote-tracking branch 'origin/main' into renovate/ruff


Compare: https://github.com/OSGeo/grass/compare/0bae820b60ad...1c333656312c

To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications


More information about the grass-commit mailing list