Source: gfarm Version: 2.6.11+dfsg-1 Severity: important Justification: fails to build from source but built in the past Tags: patch User: [email protected] Usertags: alpha
gfarm FTBFS on alpha with [1]: cc -D_REENTRANT -pthread -g -O2 -fPIE -Wformat -Werror=format-security -Wall -D_GNU_SOURCE -I../../include -I../../include -DCOMPAT_GFARM_2_3 -I../../lib/libgfarm/gfutil -I../../lib/libgfarm/gfsl -I../../lib/libgfarm/gfarm -I. -I/usr/include/postgresql -DGFMD_CONFIG='"/etc/gfmd.conf"' -Wdate-time -D_FORTIFY_SOURCE=2 -c -o gfmd.o gfmd.c gfmd.c: In function 'sigs_handler': gfmd.c:1423:3: error: duplicate case value case SIGPWR: ^ gfmd.c:1399:3: error: previously used here case SIGINFO: ^ This is because on Alpha SIGPWR is defined by the system headers to be the same value as SIGINFO. I attach a patch that conditional includes the SIGPWR case only if SIGPWR is defined AND (SIGINFO is not defined OR SIGINFO is defined and not the same value as SIGPWR). This fixes the FTBFS on Alpha. Cheers Michael [1] https://buildd.debian.org/status/fetch.php?pkg=gfarm&arch=alpha&ver=2.6.11%2Bdfsg-1&stamp=1465135023
Index: gfarm-2.6.11+dfsg/server/gfmd/gfmd.c =================================================================== --- gfarm-2.6.11+dfsg.orig/server/gfmd/gfmd.c +++ gfarm-2.6.11+dfsg/server/gfmd/gfmd.c @@ -1420,8 +1420,10 @@ sigs_handler(void *p) case SIGXCPU: case SIGXFSZ: #ifdef SIGPWR +#if !defined(SIGINFO) || (SIGPWR != SIGINFO) case SIGPWR: #endif +#endif /* terminate gfmd */ break; default:

