Date: Fri, 1 Jul 2011 11:37:08 +0200 (CEST) From: Niclas Zeising <niclas.zeising@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/158561: [PATCH] fix net-im/gicq to build using clang Message-ID: <201107010937.p619b8Ha016332@vincent.daemonic.se> Resent-Message-ID: <201107010940.p619e6NH064742@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 158561 >Category: ports >Synopsis: [PATCH] fix net-im/gicq to build using clang >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 01 09:40:06 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Niclas Zeising >Release: FreeBSD 8.2-RELEASE amd64 >Organization: >Environment: System: FreeBSD vincent.daemonic.se 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Wed Apr 20 17:22:47 CEST 2011 root@vincent.daemonic.se:/usr/obj/usr/src/sys/VINCENT amd64 >Description: >How-To-Repeat: >Fix: Attached patch fixes the configure script to make net-im/gicq build with clang. It also renames an old patch for configure in the process. --- net-im.gicq.clangfix.diff begins here --- Index: files/patch-ab =================================================================== RCS file: files/patch-ab diff -N files/patch-ab --- files/patch-ab 7 Jul 2000 19:58:56 -0000 1.2 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,11 +0,0 @@ ---- configure.orig Sat Mar 27 04:11:51 1999 -+++ configure Sat Mar 27 04:12:04 1999 -@@ -3979,7 +3979,7 @@ - echo $ac_n "(cached) $ac_c" 1>&6 - else - ac_save_LIBS="$LIBS" --LIBS="-licq "`glib-config --libs`" $LIBS" -+LIBS="-licq "`$GLIB_CONFIG --libs`" $LIBS" - cat > conftest.$ac_ext <<EOF - #line 3985 "configure" - #include "confdefs.h" Index: files/patch-configure =================================================================== RCS file: files/patch-configure diff -N files/patch-configure --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-configure 1 Jul 2011 09:35:20 -0000 @@ -0,0 +1,20 @@ +--- configure.orig 2011-07-01 11:28:05.000000000 +0200 ++++ configure 2011-07-01 11:31:14.000000000 +0200 +@@ -1340,7 +1340,7 @@ + cat > conftest.$ac_ext <<EOF + #line 1342 "configure" + #include "confdefs.h" +-main(){return(0);} ++int main(){return(0);} + EOF + if { (eval echo configure:1346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then + ac_cv_prog_cxx_works=yes +@@ -3979,7 +3979,7 @@ + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_save_LIBS="$LIBS" +-LIBS="-licq "`glib-config --libs`" $LIBS" ++LIBS="-licq "`$GLIB_CONFIG --libs`" $LIBS" + cat > conftest.$ac_ext <<EOF + #line 3985 "configure" + #include "confdefs.h" --- net-im.gicq.clangfix.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107010937.p619b8Ha016332>