Package: tex-guy
Version: 1.3.2-6
Severity: important
Tags: patch pending
User: [email protected]
Usertags: kfreebsd
Hi,
setpgrp() on GNU/kFreeBSD takes 0 parameter. It'd be nice if some
#if/#else/#endif stuff would be replaced with proper setpgrp()
detection, e.g. through some autoconf magic. At the moment, the attached
patch is sufficient to get the package built, provided #527759 is fixed.
For completeness:
| ../libtool --mode=compile \
| gcc -I. -Wall -DDVILIBDIR=\"/usr/share/DVIlib2/\" -c spc_ps.c
| libtool: compile: gcc -I. -Wall -DDVILIBDIR=\"/usr/share/DVIlib2/\" -c
spc_ps.c -fPIC -DPIC -o .libs/spc_ps.o
| spc_ps.c: In function ‘try_start_ghostscript_process’:
| spc_ps.c:1912: error: too many arguments to function ‘setpgrp’
Mraw,
KiBi
--- tex-guy-1.3.2.orig/DVIlib2-2.9.1/spc_ps.c
+++ tex-guy-1.3.2/DVIlib2-2.9.1/spc_ps.c
@@ -1905,7 +1905,7 @@
/*** GS ***/
#if defined(__linux__)
(void) setpgid(0,0);
-#elif defined(__svr4__)||defined(__SVR4__)
+#elif defined(__svr4__)||defined(__SVR4__)||defined(__FreeBSD_kernel__)
(void) setpgrp();
#else
(void) setpgrp(0, getpid());