diff options
-rw-r--r-- | meta/recipes-extended/ghostscript/ghostscript/0001-make-ghostscript-work-with-long-building-directory.patch | 19 | ||||
-rw-r--r-- | meta/recipes-extended/ghostscript/ghostscript_9.05.bb | 10 |
2 files changed, 23 insertions, 6 deletions
diff --git a/meta/recipes-extended/ghostscript/ghostscript/0001-make-ghostscript-work-with-long-building-directory.patch b/meta/recipes-extended/ghostscript/ghostscript/0001-make-ghostscript-work-with-long-building-directory.patch new file mode 100644 index 0000000000..a4ce70a9ab --- /dev/null +++ b/meta/recipes-extended/ghostscript/ghostscript/0001-make-ghostscript-work-with-long-building-directory.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | Upstream-Status: Inappropriate [distribution] | ||
2 | |||
3 | Make ghost script work with long building directory | ||
4 | |||
5 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
6 | |||
7 | Index: base/genconf.c | ||
8 | ============================================================== | ||
9 | --- a/base/genconf.c | ||
10 | +++ b/base/genconf.c | ||
11 | @@ -682,7 +682,7 @@ read_dev(config_t * pconf, const char *arg) | ||
12 | string_item_t *item; | ||
13 | const char *in; | ||
14 | |||
15 | -#define MAX_TOKEN 256 | ||
16 | +#define MAX_TOKEN 512 | ||
17 | char *token = malloc(MAX_TOKEN + 1); | ||
18 | char *category = malloc(MAX_TOKEN + 1); | ||
19 | int file_index; | ||
diff --git a/meta/recipes-extended/ghostscript/ghostscript_9.05.bb b/meta/recipes-extended/ghostscript/ghostscript_9.05.bb index 1fdcb997e7..2789897917 100644 --- a/meta/recipes-extended/ghostscript/ghostscript_9.05.bb +++ b/meta/recipes-extended/ghostscript/ghostscript_9.05.bb | |||
@@ -15,7 +15,7 @@ SECTION = "console/utils" | |||
15 | LICENSE = "GPLv3" | 15 | LICENSE = "GPLv3" |
16 | LIC_FILES_CHKSUM = "file://LICENSE;md5=c5326026692dbed183f0558f926580f8" | 16 | LIC_FILES_CHKSUM = "file://LICENSE;md5=c5326026692dbed183f0558f926580f8" |
17 | 17 | ||
18 | PR = "r3" | 18 | PR = "r4" |
19 | 19 | ||
20 | DEPENDS = "ghostscript-native tiff jpeg fontconfig cups" | 20 | DEPENDS = "ghostscript-native tiff jpeg fontconfig cups" |
21 | DEPENDS_class-native = "" | 21 | DEPENDS_class-native = "" |
@@ -30,7 +30,9 @@ SRC_URI = "${SRC_URI_BASE} \ | |||
30 | file://ghostscript-9.05-NOT-check-endian.patch \ | 30 | file://ghostscript-9.05-NOT-check-endian.patch \ |
31 | " | 31 | " |
32 | 32 | ||
33 | SRC_URI_class-native = "${SRC_URI_BASE}" | 33 | SRC_URI_class-native = "${SRC_URI_BASE} \ |
34 | file://0001-make-ghostscript-work-with-long-building-directory.patch \ | ||
35 | " | ||
34 | 36 | ||
35 | SRC_URI[md5sum] = "f7c6f0431ca8d44ee132a55d583212c1" | 37 | SRC_URI[md5sum] = "f7c6f0431ca8d44ee132a55d583212c1" |
36 | SRC_URI[sha256sum] = "593f77f7584704bdf9de41598a084a4208c3ad3b940a1de1faaf8f59a15cc207" | 38 | SRC_URI[sha256sum] = "593f77f7584704bdf9de41598a084a4208c3ad3b940a1de1faaf8f59a15cc207" |
@@ -80,10 +82,6 @@ do_install_append () { | |||
80 | chown -R root:lp ${D}${sysconfdir}/cups | 82 | chown -R root:lp ${D}${sysconfdir}/cups |
81 | } | 83 | } |
82 | 84 | ||
83 | python do_patch_class-native () { | ||
84 | pass | ||
85 | } | ||
86 | |||
87 | do_compile_class-native () { | 85 | do_compile_class-native () { |
88 | mkdir -p obj | 86 | mkdir -p obj |
89 | for i in genarch genconf mkromfs echogs gendev genht; do | 87 | for i in genarch genconf mkromfs echogs gendev genht; do |