[GRASS-dev] [GRASS GIS] #3786: Files reference build path

#3786: Files reference build path
----------------------------+---------------------------------
Reporter: Bas Couwenberg | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.6.1
Component: Default | Version: svn-releasebranch76
Keywords: | CPU: Unspecified
Platform: Linux |
----------------------------+---------------------------------
The lintian QA tool reported several [https://lintian.debian.org/tags
/file-references-package-build-path.html file-references-package-build-
path] issues.

The files in question:

  * usr/lib/grass76/bin/r.terraflow
  * usr/lib/grass76/bin/r.viewshed
  * usr/lib/grass76/etc/python/grass/lib/arraystats.py
  * usr/lib/grass76/etc/python/grass/lib/cluster.py
  * usr/lib/grass76/etc/python/grass/lib/date.py
  * usr/lib/grass76/etc/python/grass/lib/dbmi.py
  * usr/lib/grass76/etc/python/grass/lib/display.py
  * usr/lib/grass76/etc/python/grass/lib/gis.py
  * usr/lib/grass76/etc/python/grass/lib/gmath.py
  * usr/lib/grass76/etc/python/grass/lib/imagery.py
  * usr/lib/grass76/etc/python/grass/lib/nviz.py
  * usr/lib/grass76/etc/python/grass/lib/ogsf.py
  * usr/lib/grass76/etc/python/grass/lib/proj.py
  * usr/lib/grass76/etc/python/grass/lib/raster.py
  * usr/lib/grass76/etc/python/grass/lib/raster3d.py
  * usr/lib/grass76/etc/python/grass/lib/rowio.py
  * usr/lib/grass76/etc/python/grass/lib/rtree.py
  * usr/lib/grass76/etc/python/grass/lib/segment.py
  * usr/lib/grass76/etc/python/grass/lib/stats.py
  * usr/lib/grass76/etc/python/grass/lib/temporal.py
  * usr/lib/grass76/etc/python/grass/lib/vector.py
  * usr/lib/grass76/etc/python/grass/lib/vedit.py
  * usr/lib/grass76/include/Make/Platform.make

grepping for the build path in the output of `strings` shows absolute
paths to source files.

These are most likely caused by the use the `__FILE__` macro or using
`assert()` without `-DNDEBUG` in `CFLAGS`.

Please help make the build reproducible by removing these references for
release builds at least.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3786&gt;
GRASS GIS <https://grass.osgeo.org>