Files
ports/lang/ecl/files/extra-patch-src_c_file.d
T
Lorenzo Salvadore ca3686d332 lang/ecl: Add SAGE option
Introduce a new option called SAGE and enabled by default in order to have
ecl working with sage.

Also:

- Move bohem-gc dependency from THREADS_LIB_DEPENDS_OFF to LIB_DEPENDS.
- Build with libatomic_ops from ports rather than with the bundled library.
- Replace explicit settings of CFLAGS and LDFLAGS by USES=localbase.
- Add USES+= autoreconf.

This work is based on https://reviews.freebsd.org/D24958 submitted by
thierry.

Submitted by:	thierry (based on)
Reviewed by:	thierry (original submitter)
Approved by:	olgeni (maintainer), gerald (mentor)
Differential Revision:	https://reviews.freebsd.org/D25096
2020-06-03 08:43:16 +00:00

16 lines
581 B
D

--- src/c/file.d.orig 2016-12-19 10:25:00 UTC
+++ src/c/file.d
@@ -3351,8 +3351,10 @@ output_stream_write_byte8(cl_object strm, unsigned cha
ecl_disable_interrupts();
do {
out = fwrite(c, sizeof(char), n, IO_STREAM_FILE(strm));
- } while (out < n && restartable_io_error(strm, "fwrite"));
- ecl_enable_interrupts();
+ /* Ignore write errors to stderr to avoid an infinite loop - patch from SageMath */
+ } while (out < n && (IO_STREAM_FILE(strm) != stderr) && restartable_io_error(strm, "fwrite"));
+
+ ecl_enable_interrupts();
return out;
}