From: Ruslan Mahmatkhanov on
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


--
Regards,
Ruslan
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Greg Larkin on
-----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-----

_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"

From: Ruslan Mahmatkhanov on
19.07.2010 20:55, Greg Larkin пишет:
> -----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.

Thank you both for explanation.
Sorry for the noise.

>
> Hope that helps,
> Greg
> - --
> Greg Larkin
>


--
Regards,
Ruslan
_______________________________________________
freebsd-ports(a)freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe(a)freebsd.org"