ports/75442: gnokii port does not include ical support

Sven Berkvens-Matthijsse sven at berkvens.net
Thu Dec 23 19:00:48 UTC 2004


>Number:         75442
>Category:       ports
>Synopsis:       gnokii port does not include ical support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 23 19:00:47 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Sven Berkvens-Matthijsse
>Release:        FreeBSD 4.10-RELEASE
>Organization:
>Environment:
FreeBSD cat.berkvens.net 4.10-STABLE FreeBSD 4.10-STABLE #4: Sun Oct 31 01:46:30 CEST 2004     sven at cat.berkvens.net:/extra0/usr_obj/usr/src/sys/CAT  i386
>Description:
The gnokii port does not patch the file "configure" so that it may correctly check (on FreeBSD) if the ical library is installed on the system. Normally, the program has a fallback for this library, but the support for the fallback in gnokii itself is broken. This causes problems for me, for example, while restoring calendar information to my phone. If gnokii uses the ical library, everything works as expected.
>How-To-Repeat:
Install gnokii on your system. It will not include ical support, even if you the ical library installed.
>Fix:
Use this "files/patch-configure" file instead of the one in the ports tree:

--- configure.orig      Sun Oct 17 21:44:38 2004
+++ configure   Thu Dec 23 19:48:31 2004
@@ -26348,13 +26348,15 @@
 # First of all, check if the user has set any of the PTHREAD_LIBS,
 # etcetera environment variables, and if threads linking works using
 # them:
-if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
+if test x"-pthread-D_THREAD_SAFE" != x; then
+       PTHREAD_CFLAGS="-D_THREAD_SAFE"
+       PTHREAD_LIBS="-pthread"
         save_CFLAGS="$CFLAGS"
-        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+        CFLAGS="$CFLAGS -D_THREAD_SAFE"
         save_LIBS="$LIBS"
-        LIBS="$PTHREAD_LIBS $LIBS"
-        echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
-echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
+        LIBS="-pthread $LIBS"
+        echo "$as_me:$LINENO: checking for pthread_join in LIBS=-pthread with CFLAGS=-D_THREAD_SAFE" >&5
+echo $ECHO_N "checking for pthread_join in LIBS=-pthread with CFLAGS=-D_THREAD_SAFE... $ECHO_C" >&6
         cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -26726,7 +26728,7 @@
 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
         flag=no
         case "${host_cpu}-${host_os}" in
-                *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
+                *-aix* | *-darwin*) flag="-D_THREAD_SAFE";;
                 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
         esac
         echo "$as_me:$LINENO: result: ${flag}" >&5
@@ -27570,7 +27572,7 @@
 USE_LIBICAL="no"
 OLD_LIBS="$LIBS"
 OLD_CFLAGS="$CFLAGS"
-LIBS="$LIBS $ICAL_LIBS -lpthread -lical"
+LIBS="$LIBS $ICAL_LIBS -L/usr/local -pthread -lical"
 CFLAGS="$CFLAGS $ICAL_CFLAGS"
 echo "$as_me:$LINENO: checking whether libical is installed" >&5
 echo $ECHO_N "checking whether libical is installed... $ECHO_C" >&6


It's all about the lines with -lical on them.
The rest of the stuff was already in the ports tree file.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list