From owner-freebsd-ports@FreeBSD.ORG Mon Jul 19 16:56:00 2010 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 01B231065672 for ; Mon, 19 Jul 2010 16:56:00 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (113901-app1.sourcehosting.net [72.32.213.11]) by mx1.freebsd.org (Postfix) with ESMTP id D2D668FC1E for ; Mon, 19 Jul 2010 16:55:59 +0000 (UTC) Received: from 68-189-245-235.dhcp.oxfr.ma.charter.com ([68.189.245.235] helo=cube.entropy.prv) by mail1.sourcehosting.net with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1OatdB-0000ih-3O; Mon, 19 Jul 2010 12:55:58 -0400 Received: from [127.0.0.1] (fireball.entropy.prv [192.168.1.12]) by cube.entropy.prv (Postfix) with ESMTP id 37DC142AFE1D; Mon, 19 Jul 2010 12:55:53 -0400 (EDT) Message-ID: <4C448399.8040109@FreeBSD.org> Date: Mon, 19 Jul 2010 12:55:53 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Ruslan Mahmatkhanov References: <4C4477FE.4060001@yandex.ru> In-Reply-To: <4C4477FE.4060001@yandex.ru> X-Enigmail-Version: 0.96.0 OpenPGP: id=1C940290 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -0.3 (/) Cc: FreeBSD Ports Mailing List Subject: Re: Using ">" sign in LIB_DEPENDS X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2010 16:56:00 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ruslan Mahmatkhanov wrote: > Hi. > > Using ">" sign in LIB_DEPENDS in port's Makefile triggers this error: > Syntax error: redirection unexpected > *** Error code 2 > > While defined in BUILD_DEPENDS and RUN_DEPENDS works fine. > Is this expected behaviour? > > Test sample: > > LIB_DEPENDS= rubygem-dnsruby>=1.47:${PORTSDIR}/dns/rubygem-dnsruby > > Hi Ruslan, Yes, you can only check for the shared library version itself, not the version of the port/package that installed it: http://www.freebsd.org/doc/en/books/porters-handbook/makefile-depend.html However, there's nothing preventing you from adding the version check above to BUILD_/RUN_DEPENDS and a LIB_DEPENDS with a specific library version. There might be a situation where the shared library version hasn't changed, but you need a minimal version check on the upstream distro. Hope that helps, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFMRIOZ0sRouByUApARAozaAKDNlPXvkWAjxZq3J9cWbnbetXK/SwCgyx5f fW4sX3B+Vv62tem5WY/gBYs= =YFW4 -----END PGP SIGNATURE-----