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  @@ -478,7 +478,7 @@ top_build_prefix = @top_build_prefix@
  10   top_builddir = @top_builddir@
  11   top_srcdir = @top_srcdir@
  12   SUBDIRS = . tests
  13  -AM_CFLAGS = -Wall -DWIN32_LEAN_AND_MEAN $(am__append_1)
  14  +AM_CFLAGS = -Wall -DWIN32_LEAN_AND_MEAN $(am__append_1) $(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 = include/pthread.h include/sched.h include/semaphore.h include/pthread_unistd.h include/pthread_time.h include/pthread_compat.h include/pthread_signal.h
  18