Blame SOURCES/guile-multilib.patch

9cb65b
diff -up guile-2.0.9/libguile/Makefile.in.multilib guile-2.0.9/libguile/Makefile.in
9cb65b
--- guile-2.0.9/libguile/Makefile.in.multilib	2013-04-10 01:31:59.000000000 +0200
9cb65b
+++ guile-2.0.9/libguile/Makefile.in	2013-07-16 16:59:59.490527131 +0200
9cb65b
@@ -3283,6 +3283,11 @@ install-nodist_modincludeHEADERS: $(nodi
9cb65b
 	while read files; do \
9cb65b
 	  echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(modincludedir)'"; \
9cb65b
 	  $(INSTALL_HEADER) $$files "$(DESTDIR)$(modincludedir)" || exit $$?; \
9cb65b
+	  for f in $$files; do if [ "$$f" = "scmconfig.h" ]; then \
9cb65b
+	    grep -q "SCM_SIZEOF_LONG 4" "$(DESTDIR)$(modincludedir)/$$f" && g=32 || g=64; \
9cb65b
+	    mv "$(DESTDIR)$(modincludedir)/$$f" "$(DESTDIR)$(modincludedir)/scmconfig-$$g.h"; \
9cb65b
+	    $(INSTALL_HEADER) "$${d}scmconfig-multilib.h" "$(DESTDIR)$(modincludedir)/$$f"; \
9cb65b
+	  fi; done \
9cb65b
 	done
9cb65b
 
9cb65b
 uninstall-nodist_modincludeHEADERS:
9cb65b
diff -up guile-2.0.9/libguile/scmconfig-multilib.h.multilib guile-2.0.9/libguile/scmconfig-multilib.h
9cb65b
--- guile-2.0.9/libguile/scmconfig-multilib.h.multilib	2013-07-16 17:02:26.045733704 +0200
9cb65b
+++ guile-2.0.9/libguile/scmconfig-multilib.h	2013-07-16 17:01:51.623685971 +0200
9cb65b
@@ -0,0 +1,7 @@
9cb65b
+/* multilib clean wrapper */
9cb65b
+#include <bits/wordsize.h>
9cb65b
+#if __WORDSIZE == 32
9cb65b
+#include "libguile/scmconfig-32.h"
9cb65b
+#else
9cb65b
+#include "libguile/scmconfig-64.h"
9cb65b
+#endif
9cb65b
diff -up guile-2.0.9/meta/guile-config.in.multilib guile-2.0.9/meta/guile-config.in
9cb65b
--- guile-2.0.9/meta/guile-config.in.multilib	2012-07-02 11:28:14.000000000 +0200
9cb65b
+++ guile-2.0.9/meta/guile-config.in	2013-07-16 17:09:25.650324597 +0200
9cb65b
@@ -1,7 +1,6 @@
9cb65b
 #!/bin/sh
9cb65b
-PKG_CONFIG_PATH="@pkgconfigdir@:$PKG_CONFIG_PATH"
9cb65b
 GUILE_AUTO_COMPILE=0
9cb65b
-export PKG_CONFIG_PATH GUILE_AUTO_COMPILE
9cb65b
+export GUILE_AUTO_COMPILE
9cb65b
 
9cb65b
 exec "@installed_guile@" -e main -s $0 "$@"
9cb65b
 !#
9cb65b
@@ -31,7 +30,7 @@ exec "@installed_guile@" -e main -s $0 "
9cb65b
              (ice-9 rdelim))
9cb65b
 
9cb65b
 
9cb65b
-(define %pkg-config-program "@PKG_CONFIG@")
9cb65b
+(define %pkg-config-program "pkg-config")
9cb65b
 
9cb65b
 ;;;; main function, command-line processing
9cb65b