[glom] xdg-app-builder manifest: Add a patch for python to add a symlink.



commit b3d249abb24fa3e92687f7fa62a3c9ac992f4fb9
Author: Murray Cumming <murrayc murrayc com>
Date:   Sat Dec 12 15:28:47 2015 +0100

    xdg-app-builder manifest: Add a patch for python to add a symlink.
    
    Because boost expects to find python in
    <includedir>/python3.5/, instead of <includedir>/python3.5m/
    (and the boost build doesn't even bother checking when guessing that
    path).
    Distro packages also add this symlink in their packages.

 glom-xdg-app-builder/manifest.json            |    4 ++++
 glom-xdg-app-builder/python_add_symlink.patch |   14 ++++++++++++++
 2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/glom-xdg-app-builder/manifest.json b/glom-xdg-app-builder/manifest.json
index 846e8e1..cced300 100644
--- a/glom-xdg-app-builder/manifest.json
+++ b/glom-xdg-app-builder/manifest.json
@@ -232,6 +232,10 @@
                     "url": "https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tar.xz";,
                     "sha256": "c6d57c0c366d9060ab6c0cdf889ebf3d92711d466cc0119c441dbf2746f725c9"
                 }
+                {
+                    "type": "patch",
+                    "path": "python_add_symlink.patch"
+                }
             ]
         },
         {
diff --git a/glom-xdg-app-builder/python_add_symlink.patch b/glom-xdg-app-builder/python_add_symlink.patch
new file mode 100644
index 0000000..358d759
--- /dev/null
+++ b/glom-xdg-app-builder/python_add_symlink.patch
@@ -0,0 +1,14 @@
+diff -u --recursive Python-3.5.1-orig/Makefile.pre.in Python-3.5.1/Makefile.pre.in
+--- Python-3.5.1-orig/Makefile.pre.in  2015-12-12 15:12:05.504527644 +0100
++++ Python-3.5.1/Makefile.pre.in       2015-12-12 15:22:32.903074948 +0100
+@@ -1354,7 +1354,8 @@
+               echo $(INSTALL_DATA) $$i $(INCLUDEPY); \
+               $(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY); \
+       done
+-      $(INSTALL_DATA) pyconfig.h $(DESTDIR)$(CONFINCLUDEPY)/pyconfig.h
++      $(INSTALL_DATA) pyconfig.h $(DESTDIR)$(CONFINCLUDEPY)/pyconfig.h; \
++      ln -s $(INCLUDEPY) $(INCLUDEDIR)/python3.5
+ 
+ # Install the library and miscellaneous stuff needed for extending/embedding
+ # This goes into $(exec_prefix)
+Only in Python-3.5.1: Makefile.pre.in~


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]