From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C283A139694 for ; Tue, 11 Apr 2017 17:47:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 85C6E21C08B; Tue, 11 Apr 2017 17:47:23 +0000 (UTC) Received: from mail-io0-x241.google.com (mail-io0-x241.google.com [IPv6:2607:f8b0:4001:c06::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4299A21C04E for ; Tue, 11 Apr 2017 17:47:23 +0000 (UTC) Received: by mail-io0-x241.google.com with SMTP id h41so1790502ioi.1 for ; Tue, 11 Apr 2017 10:47:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=U7NHRHSkdpZdfVG3cyiLLi4LeA2z85S0XGtYd4ccWWg=; b=LOTeMz4U1E7g3yX7SGCUI3z7+nyUGYV8Q0GRpCWERMfAEhFChzzUpMjJVcLF1bFJVm FwGpl2B3m2UpdYbDctjTDM2WddBdv2DjsHwD77K2C/d6CDHBf5pMbp7uy3WqdrnTTiCt slNyMH0Jeh6SRrr+4WUHPDCo1lVBr1B4zG76s70c2pHb6ab3cWRfmBY+RnV33WA5QHWX sxfENkhmc0mK8MVtmeS6nReM+kE/J3w5RD9Mk3Fm886LdowlqK0a7Z3mAWLRXGYkcDI1 EHSYQSr/kgtuNyfFObfoqflEE9rWnKZTC69ZayO/CdRvpt5koTpcwpt7I0gRO8LMUNTJ 4itQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=U7NHRHSkdpZdfVG3cyiLLi4LeA2z85S0XGtYd4ccWWg=; b=LaAcVbagO2twseubmyS64iSCKn1gjGVBxQSLTOd6Csz3lGfNwz98TaCi277j2eRUsn WCsB7PvhBvuBAXI0Y6Btlsi7e7HIUaiMCa5/09oBtnrwJznTJsHSL6AxLHhJE2S9j2NP pnVMNhrHaqiuHeicRF5Rhk5ftL70yroljGNMCWRexRXHOWqhn/U/TLXxvVGPtKLmMbVz 3CQtphlyjWeZ0Z4ViT0TMVkhSZzQJ/rdIKOVWm/pV/rYmvMuwg6dwZ/h1lbTmLvBIS1D kLMC/g+QDWu1DRmH89oO/ixs72JbnJ7/PBJxJItX3iBS5PJTeavjJXTfO7ucKKFcRoRI eGfg== X-Gm-Message-State: AN3rC/7IMd1RWqCabyCiXC4FOcIFrba8K0E5LtyzwQ4Lz6h1MrCd5I9RGyzRUYVE/m7iebjc79Zdu4wHnvLD+w== X-Received: by 10.36.69.16 with SMTP id y16mr18198029ita.25.1491932842276; Tue, 11 Apr 2017 10:47:22 -0700 (PDT) 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 Received: by 10.36.78.7 with HTTP; Tue, 11 Apr 2017 10:47:21 -0700 (PDT) In-Reply-To: References: <20170410203822.2cbc440b@snowblower> <5950999.Gx5BNhHzAl@note> <1491857471.1661.16.camel@gentoo.org> <1491859986.1661.19.camel@gentoo.org> From: James Potts Date: Tue, 11 Apr 2017 12:47:21 -0500 Message-ID: Subject: Re: [gentoo-dev] Re: Reverse use of Python/Ruby versions To: gentoo-dev@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 7c065d55-2e8d-4c16-b379-2c6c16de40b0 X-Archives-Hash: 964ff3e0a21fc4b45774bea9ba943e3c As another user, I have an interesting thought: Keep *_TARGETS and *_COMPAT, but add useflags called "[python|php|ruby]-compat-testing", which is at least use.stable.mask'ed (possibly straight-up use.mask'ed), to any ebuild that uses *_COMPAT. Setting the appropriate useflag would allow such ebuilds to build against any interpreter version listed in the appropriate *_TARGETS variable, even those the ebuild doesn't explicitly support. To help with keeping things reasonable, support for both ranges and negation could be added to *_COMPAT. This way, for example, an ebuild for a Python 2.7-only program, could specify PYTHON_COMPAT="2.7 ->=3.0", and the ebuild for a ruby app that's known to be broken in 2.2 but works fine in both 2.1 and 2.3 could specify RUBY_COMPAT="-2.2". Obviously, the *-compat-testing flags should not allow building against a known-incompatible TARGET if this is implemented. :) This keeps the benefits of *_COMPAT and *_TARGETS while allowing people to test a new python/php/ruby interpreter without having to manually edit dozens (potentially hundreds or thousands) of ebuilds. --James