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 6D0CE1388C0 for ; Sat, 27 Feb 2016 20:23:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 05E9B21C01C; Sat, 27 Feb 2016 20:23:51 +0000 (UTC) Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CCA0E21C009 for ; Sat, 27 Feb 2016 20:23:44 +0000 (UTC) Received: by mail-wm0-f50.google.com with SMTP id l68so13645554wml.0 for ; Sat, 27 Feb 2016 12:23:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=Hb3wSMArX/SlanWCCo+4lSE9gbiiaZdxGYYbmtYx8wE=; b=NreiyhME/7kUQEzz4xLIdioG/OVWRq311qREYcX1Q/qVUqx4LiDJOPgeUi/b53zmLI 51lSkcOrCVsnDoVicxx5t62dmrMP8AvL/2HqQ23zP2sUs7jOFwJQkfTY7lsoIj64E54e SOLK4OE3OctgwLeGZRuJKEVSsd2rt6HuBqv8NsUloQxVeTJcRdMfna2ObQTaC2RHlULQ PgF723TLqllBId1AkvGc2eSjeehEnYM4RU+mWk6KTxkeo5daZJ9KgwNSSSv/KWiUTpa/ a2yRhh/n/EKdhSaR1a1PSnTDjZBfpUWH4RNHysbmkY0hn+i+IgGg+N8cuIl8y+kbIMXQ 1CXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=Hb3wSMArX/SlanWCCo+4lSE9gbiiaZdxGYYbmtYx8wE=; b=fQPmsTYoK0J/6AKVTuL8ibyBdnBQsbcu1yJWpPjBu0jcSSPrLM89aRvSidFLKYCY4C h1oHEZXQhtBg4+nmFmubfuopHRlyvP1lgCoWybYBc1F0P2UQ9ieTSX8IY1zYafR4SIKE Pg0NmmQIhp9qV+WEev6n/5+1eBQGanhAQYU8BlEQ+S1PuTwKoAbx3aBi+C2gXA8RFfcL 4A/M59f070TcpoZKEeu4T8dZW2hwY67WkTUOHjNCZ4P6xnVNYxQ5R6tD6wL8vd6GF6k9 toEDSFl9m80GfJ66/rQdqpanLdnrQg+E5LmUOjOnKfePp11R2jbe8rzEP6DMnB4w4B54 u7JA== X-Gm-Message-State: AD7BkJJvx6tyG4yk1pw10YwnOb3DHd2kv2Q3XkD0LjdwWQuH99rO9CdE6SeMZIQ+BqbTjA== X-Received: by 10.194.112.34 with SMTP id in2mr8437216wjb.160.1456604623651; Sat, 27 Feb 2016 12:23:43 -0800 (PST) Received: from [172.20.0.40] ([165.255.114.147]) by smtp.googlemail.com with ESMTPSA id p125sm8625921wmd.16.2016.02.27.12.23.40 for (version=TLSv1/SSLv3 cipher=OTHER); Sat, 27 Feb 2016 12:23:41 -0800 (PST) Subject: Re: [gentoo-user] Re: PYTHON_SINGLE_TARGET & libreoffice To: gentoo-user@lists.gentoo.org References: <56D1FB96.8030500@gmail.com> From: Alan McKinnon Message-ID: <56D20562.1040108@gmail.com> Date: Sat, 27 Feb 2016 22:21:54 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 2144a1e5-6769-491d-87d0-0a6884a27e44 X-Archives-Hash: 54e3aa77e4105a4af02e556ffea5546f On 27/02/2016 22:16, Nikos Chantziaras wrote: > On 27/02/16 21:40, Alan McKinnon wrote: >> I don't know much about PYTHON_SINGLE_TARGET and PYTHON_TARGET, it all >> seemed to just work so I never looked further. Until now. Of all >> packages, libreoffice seems to want only python3: >> >> I can set it in make.conf but as expected that causes all manner of >> other packages to fail emerge checks as they need python2.7. >> >> What's the preferred way to deal with this situation? > > PYTHON_TARGETS="python2_7 python3_4" > PYTHON_SINGLE_TARGET="python3_4" > > For packages that require another PYTHON_SINGLE_TARGET version, you can > set "python_single_target_python2_7" in package.use. For example: > > app-text/asciidoc python_single_target_python2_7 > > The reverse is also true. You can set: > > PYTHON_SINGLE_TARGET="python2_7" > > in make.conf, and then set "python_single_target_python3_4" in > package.use for packages that require 3.4: > > app-office/libreoffice python_single_target_python3_4 > > I use the first method. > > Yes, it's a PITA :-) I'll say. Just got another one - sigil. That fails at build time, not at emerge-initial-check-stuff time. So no problem I thought, I'll tweak that one too. Now that causes 20 packages in dev-python like eg pillow, six, etc to want the same tweak. And boost. I have free time, I'll experiment with those now. I just hope it doesn't break everything else using those packages > PS: > Another syntax is also available for package.use: > > app-text/asciidoc PYTHON_SINGLE_TARGET: python2_7 > > Just saw a blog post about it; I think it's undocumented and works for > all USE_EXPAND flags. The downside is that it has to appear at the end > of the line. > > -- Alan McKinnon alan.mckinnon@gmail.com