diff options
author | joerg <joerg@pkgsrc.org> | 2013-05-28 19:03:49 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2013-05-28 19:03:49 +0000 |
commit | 32f82ff9325b3fddb6cf4d032fc0709e0431ccfa (patch) | |
tree | 0600e1ad37a7fe30b0441652d7f08ebf903d2ce9 /net/tinyfugue/patches/patch-ac | |
parent | 61218d799d6d119c43868b4fd2e9d0e59cfa6a67 (diff) | |
download | pkgsrc-32f82ff9325b3fddb6cf4d032fc0709e0431ccfa.tar.gz |
Pick output name that is going to work. Make signal handler test more
resilient.
Diffstat (limited to 'net/tinyfugue/patches/patch-ac')
-rw-r--r-- | net/tinyfugue/patches/patch-ac | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/net/tinyfugue/patches/patch-ac b/net/tinyfugue/patches/patch-ac index f0566048c6c..3375b020df8 100644 --- a/net/tinyfugue/patches/patch-ac +++ b/net/tinyfugue/patches/patch-ac @@ -1,11 +1,20 @@ -$NetBSD: patch-ac,v 1.5 2011/08/18 05:03:10 dholland Exp $ +$NetBSD: patch-ac,v 1.6 2013/05/28 19:03:49 joerg Exp $ Config for pkgsrc. DESTDIR support. Make the SYMLINK relative. ---- unix/tfconfig.orig 2011-08-18 04:45:11.000000000 +0000 +--- unix/tfconfig.orig 2013-05-28 16:51:21.000000000 +0000 +++ unix/tfconfig +@@ -35,7 +35,7 @@ echo "Configuring $TFVERSION"; echo + + ### Initialize variables, just in case they're already defined. + +-AOUT=tfconfig.out ++AOUT=`pwd`/tfconfig.out + BINDIR='' + # CC='' ;# Use the value from the environment if there is one. + CCFLAGS=${TFDEV_CCFLAGS-'-O'} @@ -168,18 +168,18 @@ fi # The cd;pwd is needed to normalize the directory name in case of links, etc. @@ -69,3 +78,19 @@ Make the SYMLINK relative. echo "LIBDIR = ${LIBDIR}" >&5 echo "MAILDIR = ${MAILDIR}" >&5 echo "MANPAGE = ${MANPAGE}" >&5 +@@ -654,11 +656,13 @@ echo "Testing type of signal handlers... + cat >test.c <<EOF + #include <sys/types.h> + #include <signal.h> ++#include <stdlib.h> + #undef signal +-extern void (*signal())(); ++typedef void (*my_sighandler_t)(int); ++extern my_sighandler_t signal(int, my_sighandler_t); + main() { exit(0); } + EOF +-if ${CC} ${CCFLAGS} -c test.c -o ${AOUT}>/dev/null 2>&1; then ++if ${CC} ${CCFLAGS} -c test.c -o ${AOUT}; then + echo "Signal handlers return void, as they should." + echo '#define RETSIG void' >&4 + else |