Package: plan Severity: important Tags: patch Hi,
currently your package FTBFS on GNU/kFreeBSD with the following error: > gcc -O2 -DPLANHOME=\"".plan.dir"\" -DPLANLOCK=\""~/.plan.dir/lock.plan"\" > -DPLANDLOCK=\""~/.plan.dir/lock.pland"\" -W -Wall -Wcast-align > -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes > -Wpointer-arith -Wreturn-type -Wcast-qual -I/usr/X11R6/include -DNOLOCK > -DLINUX -DRABBITS -o plan main.o popup.o print.o gotomenu.o network.o > calmenu.o monmenu.o mondraw.o editmenu.o editdraw.o edit.o msgmenu.o > cycmenu.o cyccalc.o keymenu.o excmenu.o cnfmenu.o yearmenu.o yeardraw.o > holmenu.o adjmenu.o weekmenu.o weekdraw.o weekcalc.o servmenu.o usermenu.o > confmenu.o yovmenu.o yovdraw.o yovcalc.o daymenu.o daydraw.o daycalc.o > usersel.o psdraw.o xutil.o help.o dbase.o file_r.o file_w.o convert.o util.o > time.o sublist.o parser.o lex.yy.o holiday.o language.o g_dbase.o g_dbfile.o > g_formfile.o g_formop.o vcalendar_w.o -L/usr/X11R6/lib -L/usr/lib/X11R6/lib > -lSM -lXm -lXt -lX11 -lXpm -lc -lXext -lSM -lICE -lX11 > sublist.o: In function `keymatch': > sublist.c:(.text+0x1e0): undefined reference to `regex' > sublist.o: In function `create_sublist': > sublist.c:(.text+0x5cf): undefined reference to `regcmp' > collect2: ld returned 1 exit status > make[2]: *** [plan] Error 1 > make[2]: Leaving directory `/build/buildd/plan-1.9/src' > make[1]: *** [linux] Error 2 > make[1]: Leaving directory `/build/buildd/plan-1.9/src' > make: *** [build-stamp] Error 2 Full build logs are available at <http://experimental.ftbfs.de/build.php?arch=kfreebsd-i386&pkg=plan>. Please find attached a patch to make it build on GNU/kFreeBSD. I'd say that a check on __GLIBC__ (instead of __FreeBSD_kernel__) works also OK and should be more portable (and will help GNU/Hurd too). Cheers, -- Cyril Brulebois
--- plan-1.9/src/sublist.c 2007-03-09 13:35:44.087551000 +0100 +++ plan-1.9/src/sublist.c 2007-03-09 13:35:56.000000000 +0100 @@ -23,7 +23,7 @@ #define regcmp re_comp #define regex re_exec #endif -#if defined(linux) || defined(__EMX__) +#if defined(linux) || defined(__EMX__) || defined(__FreeBSD_kernel__) #define regcmp regcomp #define regex regexec #endif