Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-2802

[unicens, vod-server, agl-service-unicens] Use of __FILE__ macro prevents reproducible builds

XMLWordPrintable

      unicens/Src/Types.h:45:#define LOG(x)  ConsolePrintf(PRIO_ERROR, RED"! %s, %u, %s"RESETCOLOR"\n",x,__LINE__,__FILE__)
      vod-server/Src/Types.h:45:#define LOG(x)  ConsolePrintf(PRIO_ERROR, RED"! %s, %u, %s"RESETCOLOR"\n",x,__LINE__,__FILE__)
       

       

      The _FILE_ macro does embedd the full build path into the binary.

      This leads to non-reproducible builds ...

      e.g.

      /home/tjahnke/build/x/y/z

      vs

      /home/jsmoeller/AGLbuild/a/b/c

       

      google: _FILE_ reproducible builds ...

       

      options seem to be:

      libhomescreen/include/hmi-debug.h:36:#define _FILENAME_ (strrchr(_FILE, '/') ? strrchr(FILE, '/') + 1 : __FILE_)
      libwindowmanager/src/hmi-debug.h:36:#define _FILENAME_ (strrchr(_FILE, '/') ? strrchr(FILE, '/') + 1 : __FILE_)

      see: https://stackoverflow.com/questions/31050113/how-to-extract-the-source-filename-without-path-and-suffix-at-compile-time

       

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            tjahnke Tobias Jahnke
            jsmoeller Jan-Simon Moeller
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: