From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 4427513877A for ; Tue, 22 Jul 2014 01:43:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 50B94E0CD6; Tue, 22 Jul 2014 01:43:15 +0000 (UTC) Received: from nm17-vm3.bullet.mail.gq1.yahoo.com (nm17-vm3.bullet.mail.gq1.yahoo.com [98.137.177.227]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 47123E0CCF for ; Tue, 22 Jul 2014 01:43:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s2048; t=1405993392; bh=mEKcpKr6Nck4cp5znJ99zq/TxF2jWneiQ5WDkiWAI60=; h=Received:Received:Received:DKIM-Signature:X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:X-Enigmail-Version:Content-Type; b=XgM+8IcZrvHFcNJoMBwkd8WerBtQeb5kRKyYcv8GIxJG2O1Gv1R4Q4tvv99FIhtZfv/HLK5/nX8mjz0ksCpyBnnZM60SJnYvLTHnABatoPiQkoOFKrchLEsmKmLML09sWvwillgkf1+X9LkFwk7wQpaG+UyI/PmjYZ5vJJLZyBA8GQKJH4bmY9K1LesI2ffX+XrY0qb7XQjEx5N93bP6mekmDC7uk1PnQ77lh1irQvK9646fh+Cfje8yODnn10ZvNnBAMAGP9rMnuo/bh/JhnroWoTgH3n9JSiL9+6MtQWqiJvnZvlmPcdMm/TOl/3wOsZiODXTpbqxi5TzucyYo3Q== DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=yahoo.ca; b=qwF4lZTbL2mQvQkHisCyYPcLxOxJNH6/lmmu+lwMRRApFxiXhetrcHnp8/ouYG2XcoXa7nEJpBCzAzJFXDGiWDMhIy3XxakP+UKWxe9P6TfBWs/c9/2HfT0D6tg4to5k+LODL8eHBHp2930ZfsnqvZxqErCb9WtX5100Abl3e/V32hq9wH1PaQKQswdA0L2cUYOc/jerlBV7fIS87W2jD4HwsOke0kEJHwiILIODnKdH9kLlR01dnu7D8OIySs9JJmAtEsPEa/qW5dj1ygof98Sh8p7C5LbxIo/NPJM09GB8L4J9dgTFaqPx978mEIlKsPEtMBkCfysrufXJL7KcfA==; Received: from [98.137.12.191] by nm17.bullet.mail.gq1.yahoo.com with NNFMP; 22 Jul 2014 01:43:12 -0000 Received: from [208.71.42.190] by tm12.bullet.mail.gq1.yahoo.com with NNFMP; 22 Jul 2014 01:43:12 -0000 Received: from [127.0.0.1] by smtp201.mail.gq1.yahoo.com with NNFMP; 22 Jul 2014 01:43:12 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1405993392; bh=mEKcpKr6Nck4cp5znJ99zq/TxF2jWneiQ5WDkiWAI60=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:X-Enigmail-Version:Content-Type; b=xuuInxfvSPbFyCv9LmptT2F2ih180ikNwIH7/rWCIW87jugoimNJMoqrpwRwMx4f6ev1Wh8viICuLZ9w/slV6y5E9A3Ra4QPoKK8TLB7Ezn2EqXCzYVCjAQkJR8uaNDhbX7gUmgMObbyQMzyHUnZEXMf9NOmEzZlP0C3OEHbhZs= X-Yahoo-Newman-Id: 664748.15384.bm@smtp201.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: Xzcei7IVM1myM_Nk_bYSBhX3o4I4BVNi29tkBW2m4Knjb9J Kf_FW4i2Z.a5xnU0E4bMgOvpbi0zTBxi9aTHlKuPTmi.OMMnd4JjYF4GuiTR Fj84lRMPMSvtzAwwlTpM0mFUMhxx..DKvn.blB1m8O.UL1Kovod3U.JlxNfR 9gtVV0GuldigkrpX4TNJGI8oFu2s0A6hf45_.ejZ1sNmv7J6rW6DjW3oORf7 3evarnWsAMtGNs13PDoX66N34tG7UXOyu0QHh0hM0YE4ECDZfI5ZY.w3wxBT vZzn8bXd4SaLquKMfXfZ34ArpWcA70is01dus0axzbyk7Iy4qL8OuBUfNawx vdJvPTdSqyH1ex_wIuSZig8KUx8LkVZUkrCg4QaK5ioGq.n47QAiIratXJrO 5XlJCYOrP3LaUeew0vBju0.1ge_oBg3Wv_51myxhwXwV2.XyGDhuuRlWIaWm TYwNyqkAi_zef6Qs1z6du1m1rp1IFbQarmQ7ALM_jkRK89CgbM06EFG0AbvK CSqb0KJrV5sq_F5D8DXjEKCW5jkh5fQ-- X-Yahoo-SMTP: Zybq.GKswBCVR5oJTLrx1T39m2F9FA-- Message-ID: <53CDC1B5.5000603@yahoo.ca> Date: Mon, 21 Jul 2014 21:43:17 -0400 From: Alex Xu User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Using LINGUAS References: <53CC95D2.6030001@gentoo.org> In-Reply-To: <53CC95D2.6030001@gentoo.org> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tj0NBmNLOJXARQXvoxTuA7xerO7pW42fi" X-Archives-Salt: 03565a9b-9b18-425f-9969-c58bc28f8eac X-Archives-Hash: aff3c9d15bdd6af9e52cfaddfff3f100 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --tj0NBmNLOJXARQXvoxTuA7xerO7pW42fi Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 21/07/14 12:23 AM, Thomas Kahle wrote: > Hi, >=20 > the OCR software tesseract has many different plugins for > language packs used for OCR for different languages. The ebuild > uses the LINGUAS variable to pass the choice of which packages to > install to the user. >=20 > A reverse dependency is app-text/pdfsandwich which roughly puts > OCR'ed text in a scanned pdf. Since it uses tesseract it > supports exactly those languages that tesseract supports. >=20 > Should its ebuild have LINGUAS use flags and then depend on > tesseract with at least those flags set? >=20 > While it seems consistent to put the LINGUAS choice in the most > user facing package, in this case I would actually not put it in > here. It would introduces a point of failure and maintenance > work for the each tesseract upgrade (since the language set > slightly changes from time to time). A typical user would set > LINGUAS in her make.conf anyway. In this case the same choice > applies to both packages anyway. Maybe an einfo is sufficient to > inform the user it? >=20 > Cheers, > Thomas >=20 there are two possible scenarios here. 1. the dependency is COMPILE TIME (ABI, API, whatever). in this scenario, the depender *must* have appropriate LINGUAS, even if that means copying and pasting from the dependee. this is necessary for correct rebuilding, and everything else associated with automagic deps. 2. the dependency is RUN TIME. in this scenario, the case is the same with all other runtime USE dependencies; that is to say, the correct solution is USE_RUNTIME or something along those lines. [0] here, I would say that einfo is superior to copying IUSE, since these flags should be set globally anyways to make sense. [0] please no bikeshedding on whether to call it RUNTIME_USE or =C7=9Dsn=E2= =80=BE=C7=9D=C9=AF=C4=B1=CA=87un=C9=B9. --tj0NBmNLOJXARQXvoxTuA7xerO7pW42fi Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJTzcG1AAoJEOFfLQs172iqnCUQAIhcp3vZOOCjpgAIWvwhyhZ1 7Q/S/ZBNqGVg2s9dENLX+EVDXC7VL124/D9k7kPtJ/tXCSAkXfCHNQZlFhLuIrHV AHnao403DEumdHjn8vP4JBVtWR9EKIlbsynz+ZIOBBqCfwo65BKxnRtms0i1wwCr zmTG99IDSzUFbQjW9pdjuscheCzOQgvNAG1qs5XUm/AY99P8Lj0wy884S2Du6PE0 /7rGJwDelKyh4JYwiAxZ6oEUsthNFaWtOnFfuzbI02T2Js4edKbQs2618zHG803o JgVq0bOncSZCWwWw287EeKjjUVw5OaVfny3jokIq55m4FTJEa6jY9RPDN1fd1jKQ bQwRpaa1/PWPN90osUhNKkUKJ8b7uBMdZyPN6zrPejppLftijGJ8EH4JxpDRONyn kttSgqAGzd9vWmtiN9V0g/E47RmQaa+IBl/jIUfYJZb5aEOLE3YHgcieC6iRxvjl T9vqaKbiyXtSCzcjuoJ2T33yhhHFzSAwwHME1LlxEatb9HKd3sCrKK8xqr55hxbi kWcjtdrLoiOjlAFmbhuIvsqWTWU+47ndDiYbys8G3Kn0yMs3GtCh8bYszmASuvu/ /yH8dMmpo/vFYwNAj6KcmckKLYZqZDahCJUGLOJj+G69jnupXjqxrjzfOmmIcJsG FeB5Z+VvTo3/a7390g+x =41+4 -----END PGP SIGNATURE----- --tj0NBmNLOJXARQXvoxTuA7xerO7pW42fi--