winpthreads-remap-guix-store.patch raw

   1  Without ffile-prefix-map, the debug symbols will contain paths for the
   2  guix store which will include the hashes of each package. However, the
   3  hash for the same package will differ when on different architectures.
   4  In order to be reproducible regardless of the architecture used to build
   5  the package, map all guix store prefixes to something fixed, e.g. /usr.
   6  
   7  --- a/mingw-w64-libraries/winpthreads/Makefile.in
   8  +++ b/mingw-w64-libraries/winpthreads/Makefile.in
   9  @@ -465,7 +465,7 @@ top_build_prefix = @top_build_prefix@
  10   top_builddir = @top_builddir@
  11   top_srcdir = @top_srcdir@
  12   SUBDIRS = . tests
  13  -AM_CFLAGS = $(am__append_1) $(am__append_3)
  14  +AM_CFLAGS = $(am__append_1) $(am__append_3) $(shell find /gnu/store -maxdepth 1 -mindepth 1 -type d -exec echo -n " -ffile-prefix-map={}=/usr" \;)
  15   ACLOCAL_AMFLAGS = -I m4
  16   lib_LTLIBRARIES = libwinpthread.la
  17   include_HEADERS = \
  18