ports/160800: Build devel/libdispatch with blocks support fails due to missing clang

Oleksii oleksii.tsai at googlemail.com
Sun Sep 18 11:50:14 UTC 2011


>Number:         160800
>Category:       ports
>Synopsis:       Build devel/libdispatch with blocks support fails due to missing clang
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 18 11:50:13 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Oleksii
>Release:        FreeBSD 8.2
>Organization:
Tsai
>Environment:
FreeBSD zirco.compal.nb 8.2-RELEASE-p2 FreeBSD 8.2-RELEASE-p2 #3: Sat Sep  3 09:44:33 EEST 2011     lyutsai at zirco.compal.nb:/usr/obj/usr/src/sys/COMPAL  i386
>Description:
The build of devel/libdispatch that was configured with blocks support fails because the configure script is unable to find the clang executable.
>How-To-Repeat:
# cd /usr/ports/devel/libdispatch
# make
>Fix:
The configure script looks for /usr/local/clang because the Makefile says so:

CONFIGURE_ENV+=   CC="${LOCALBASE}/clang"

However, LOCALBASE points to /usr/local only and apparently 'bin' is missing.

The attached patch fixes this and in addition to that sets the CPPFLAGS to contain ${LOCALBASE}/include so that Block_private.h and Block.h headers are visible during the build.

Patch attached with submission follows:

*** /usr/ports/devel/libdispatch/Makefile.orig	2011-09-18 13:31:48.000000000 +0300
--- /usr/ports/devel/libdispatch/Makefile	2011-09-18 14:37:11.000000000 +0300
***************
*** 90,96 ****
  RUN_DEPENDS+=	clang:${PORTSDIR}/devel/llvm-devel \
  		${LOCALBASE}/lib/libBlocksRuntime.so:${PORTSDIR}/devel/compiler-rt
  CONFIGURE_ARGS+=	--with-blocks-runtime=${LOCALBASE}/lib
! CONFIGURE_ENV+=	CC="${LOCALBASE}/clang"
  . else
  CONFIGURE_ARGS+=	--with-blocks-runtime=/usr/lib
  CONFIGURE_ENV+=	CC="/usr/bin/clang"
--- 90,96 ----
  RUN_DEPENDS+=	clang:${PORTSDIR}/devel/llvm-devel \
  		${LOCALBASE}/lib/libBlocksRuntime.so:${PORTSDIR}/devel/compiler-rt
  CONFIGURE_ARGS+=	--with-blocks-runtime=${LOCALBASE}/lib
! CONFIGURE_ENV+=	CC="${LOCALBASE}/bin/clang" CPPFLAGS="-I${LOCALBASE}/include"
  . else
  CONFIGURE_ARGS+=	--with-blocks-runtime=/usr/lib
  CONFIGURE_ENV+=	CC="/usr/bin/clang"


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list