aboutsummaryrefslogtreecommitdiffstats
path: root/community/openjdk7/icedtea-jdk-fix-freetype-detection.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/openjdk7/icedtea-jdk-fix-freetype-detection.patch')
-rw-r--r--community/openjdk7/icedtea-jdk-fix-freetype-detection.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/community/openjdk7/icedtea-jdk-fix-freetype-detection.patch b/community/openjdk7/icedtea-jdk-fix-freetype-detection.patch
new file mode 100644
index 0000000000..2870b28db0
--- /dev/null
+++ b/community/openjdk7/icedtea-jdk-fix-freetype-detection.patch
@@ -0,0 +1,20 @@
+--- openjdk/jdk/make/tools/freetypecheck/freetypecheck.c.orig
++++ openjdk/jdk/make/tools/freetypecheck/freetypecheck.c
+@@ -84,7 +84,7 @@
+ QUOTEMACRO(REQUIRED_FREETYPE_VERSION));
+
+ printf("Detected freetype headers: %s\n", v);
+- if (strcmp(v, QUOTEMACRO(REQUIRED_FREETYPE_VERSION)) < 0) {
++ if (strverscmp(v, QUOTEMACRO(REQUIRED_FREETYPE_VERSION)) < 0) {
+ printf("Failed: headers are too old.\n");
+ }
+
+@@ -93,7 +93,7 @@
+ sprintf(v, "%d.%d.%d", major, minor, patch);
+
+ printf("Detected freetype library: %s\n", v);
+- if (strcmp(v, QUOTEMACRO(REQUIRED_FREETYPE_VERSION)) < 0) {
++ if (strverscmp(v, QUOTEMACRO(REQUIRED_FREETYPE_VERSION)) < 0) {
+ printf("Failed: too old library.\n");
+ }
+