Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Dec 2009 02:25:32 GMT
From:      "Carlos A. M. dos Santos" <unixmania@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/141859: www/webkit-gtk2: ensure dependence on the right "flex" program [PATCH]
Message-ID:  <200912220225.nBM2PWmr035835@www.freebsd.org>
Resent-Message-ID: <200912220230.nBM2U5Bq051714@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         141859
>Category:       ports
>Synopsis:       www/webkit-gtk2: ensure dependence on the right "flex" program [PATCH]
>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:   Tue Dec 22 02:30:05 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Carlos A. M. dos Santos
>Release:        9.0-CURRENT
>Organization:
N.A.
>Environment:
FreeBSD avatar 9.0-CURRENT FreeBSD 9.0-CURRENT #4: Mon Dec  7 03:06:31 UTC 2009     root@avatar:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
The BUILD_DEPENDS variable is not set correctly in the webkit-gtk2 port. So if the flex port is not installed previously (possibly to build another port) /usr/bin/flex is used and the build fails. I noticed this because I removed the flex port from my system right before attempting to build webkit-gtk2.
>How-To-Repeat:
cd /usr/ports/www/webkit-gtk2
make depends
pkg_delete flex-2.5.35_1
make depends

It will say "webkit-gtk2-1.1.15.4 depends on executable: flex - found"
>Fix:
Apply the patch contained in the attachment.

Patch attached with submission follows:

diff -durP ../ports/www/webkit-gtk2/Makefile www/webkit-gtk2/Makefile
--- ../ports/www/webkit-gtk2/Makefile	2009-11-29 17:03:54.000000000 -0200
+++ www/webkit-gtk2/Makefile	2009-12-21 23:15:31.000000000 -0200
@@ -15,7 +15,7 @@
 MAINTAINER=	gnome@FreeBSD.org
 COMMENT=	An opensource browser engine
 
-BUILD_DEPENDS=	flex:${PORTSDIR}/textproc/flex
+BUILD_DEPENDS=	${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
 LIB_DEPENDS=	icutu.38:${PORTSDIR}/devel/icu \
 		enchant.1:${PORTSDIR}/textproc/enchant \
 		curl.5:${PORTSDIR}/ftp/curl \


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912220225.nBM2PWmr035835>