libspectre
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
<Dependency>perl</Dependency>
|
||||
<Dependency>perl-IO-Socket-SSL</Dependency>
|
||||
<Dependency>perl-NET-HTTP</Dependency>
|
||||
<Dependency>perl-libwww</Dependency>
|
||||
<Dependency>perl-Mozilla-CA</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
@@ -31,7 +30,6 @@
|
||||
<RuntimeDependencies>
|
||||
<Dependency>perl</Dependency>
|
||||
<Dependency>ca-certificates</Dependency>
|
||||
<Dependency>perl-libwww</Dependency>
|
||||
<Dependency>perl-IO-Socket-SSL</Dependency>
|
||||
<Dependency>perl-NET-HTTP</Dependency>
|
||||
<Dependency>perl-Mozilla-CA</Dependency>
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
Fixed error namespace for >=ghostscript-gpl-9.18
|
||||
|
||||
https://bugs.gentoo.org/563540
|
||||
|
||||
--- libspectre-0.2.7/libspectre/spectre-gs.c
|
||||
+++ libspectre-0.2.7/libspectre/spectre-gs.c
|
||||
@@ -43,12 +43,12 @@
|
||||
|
||||
if (code <= -100) {
|
||||
switch (code) {
|
||||
- case e_Fatal:
|
||||
+ case gs_error_Fatal:
|
||||
fprintf (stderr, "fatal internal error %d", code);
|
||||
return TRUE;
|
||||
break;
|
||||
|
||||
- case e_ExecStackUnderflow:
|
||||
+ case gs_error_ExecStackUnderflow:
|
||||
fprintf (stderr, "stack overflow %d", code);
|
||||
return TRUE;
|
||||
break;
|
||||
@@ -109,9 +109,9 @@
|
||||
set = _spectre_strdup_printf ("%d %d translate\n", -x, -y);
|
||||
error = gsapi_run_string_continue (ghostscript_instance, set, strlen (set),
|
||||
0, &exit_code);
|
||||
- error = error == e_NeedInput ? 0 : error;
|
||||
+ error = error == gs_error_NeedInput ? 0 : error;
|
||||
free (set);
|
||||
- if (error != e_NeedInput && critic_error_code (error)) {
|
||||
+ if (error != gs_error_NeedInput && critic_error_code (error)) {
|
||||
fclose (fd);
|
||||
return FALSE;
|
||||
}
|
||||
@@ -126,7 +126,7 @@
|
||||
read = fread (buf, sizeof (char), to_read, fd);
|
||||
error = gsapi_run_string_continue (ghostscript_instance,
|
||||
buf, read, 0, &exit_code);
|
||||
- error = error == e_NeedInput ? 0 : error;
|
||||
+ error = error == gs_error_NeedInput ? 0 : error;
|
||||
left -= read;
|
||||
}
|
||||
@@ -16,8 +16,11 @@
|
||||
<BuildDependencies>
|
||||
<Dependency>ghostscript-devel</Dependency>
|
||||
<!-- Cairo is needed in tests only! -->
|
||||
<Dependency>cairo</Dependency>
|
||||
<Dependency>cairo-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch>libspectre-0.2.7-gs918.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
@@ -51,6 +54,7 @@
|
||||
<BuildType>emul32</BuildType>
|
||||
<BuildDependencies>
|
||||
<Dependency>ghostscript-32bit</Dependency>
|
||||
<Dependency>cairo-32bit</Dependency>
|
||||
</BuildDependencies>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">libspectre</Dependency>
|
||||
|
||||
Reference in New Issue
Block a user