[gobolinux-devel] Use-flags / Dependencies
Michael Homer
michael at gobolinux.org
Fri Jul 4 17:30:21 NZST 2008
On Friday 04 July 2008 04:18:28 David Karell wrote:
> Hello fellow GoboLinux users/developers!
> Perhaps I want to compile this great package X, which depends on library
> Y. The problem is that X will only compile/link properly if library Y was
> built with a specific use-flag.
>
> It'd be good with a "was_this_other_package_Y_built_with_use_flag_xxx"
> directive in recipes, and then take some action, for instance, print a
> more userfriendly message, explaining to the user what to do.
pre_build() {
grep ssl $curl_path/Resources/UseFlags || Die "Curl must be built +ssl"
}
That could be wrapped in a function or added to UseFlags. It should be used
sparingly, because I really don't want to have recipes end up being
fifty-line tangled messes like ebuilds.
-Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.gobolinux.org/pipermail/gobolinux-devel/attachments/20080704/813e9ea1/attachment.pgp
More information about the gobolinux-devel
mailing list