]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
package/libsoil: add a comment about why we rename the Makefile
authorPeter Korsgaard <peter@korsgaard.com>
Sat, 20 Feb 2016 22:41:55 +0000 (23:41 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 20 Feb 2016 22:46:07 +0000 (23:46 +0100)
Commit 8461906d (package/libsoil: fix build using old versions of patch)
added a workaround for older patch versions, but didn't add any comment in
the .mk file explaining why this is done.

Add a comment explaining why for clarity.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libsoil/libsoil.mk

index 99a47f6de7d58ee143bc6fda4f0f69c5eb5f8c01..efa67d9eee5222b9424a3f45a00f3ac6d84708b2 100644 (file)
@@ -18,6 +18,10 @@ define LIBSOIL_EXTRACT_CMDS
        mv $(@D)/Simple\ OpenGL\ Image\ Library/* $(@D)
 endef
 
+# gnu patch < v2.5.9 doesn't correctly handle spaces in file names,
+# and we want to patch the 'alternate Makefile.txt' file, so rename
+# the file (and patch the renamed file) for compatibility with older
+# distributions
 define REMOVE_SPACE_FROM_FILENAME
        cd $(@D)/projects/makefile/ && \
                mv "alternate Makefile.txt" alternate_Makefile.txt