From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-dev+bounces-83943-garchives=archives.gentoo.org@lists.gentoo.org> 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 9CFA61382C5 for <garchives@archives.gentoo.org>; Wed, 28 Feb 2018 22:04:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AA97FE0882; Wed, 28 Feb 2018 22:03:56 +0000 (UTC) Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (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 31CA2E0878 for <gentoo-dev@lists.gentoo.org>; Wed, 28 Feb 2018 22:03:56 +0000 (UTC) Received: by mail-wm0-x234.google.com with SMTP id 139so7951098wmn.2 for <gentoo-dev@lists.gentoo.org>; Wed, 28 Feb 2018 14:03:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=kJUM+x53kUTuJBxMInWdVGTGcX5zNcKOsIMJpyYKnJI=; b=e/t3urTSG1KFkTE1YXJHGEUxJK5HVl8y4/hM6ppvKvtGsQzojO7qnFS8cJtwpz+sYF qF1shyFYGmGoLQeZ4JJxm8LIn/TTZXjPQx2ZhWfS4hrP24vf/JnrlrdL8Q6wnnpDjNbG y5iDACfFyVl8rVPnNWxPZnR5E5dwpWAVcqwYeeB2r/snjy1CKjN7T2MNLM6Q86p5WL4z I86k3wsSyY9oz0A25JtOtzca6Hzp9rrUZHIFTjSH0KqTvJO/UHr6Z5XPY1N9gSpz6i9e 8Ss7khoQYJoIqdEOv/Tf2raYwaDP0XDNO0eU8lRzR02iwZ0JKcUXKBM5AP+Cmq9uSrWi aNSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=kJUM+x53kUTuJBxMInWdVGTGcX5zNcKOsIMJpyYKnJI=; b=ij7Hrfg80LRUXj6x4HavptXwnFJ5mmn+LljrD9OvqoKWLdfBOCsc6/jc89teKUIH6O C7tdXFgWMjVM9f1y40D9M3K2i9B/+ZYWmJc6MaJr7iZ5fBk+HHEsL66o6wAjNlTWbMYy 7qYotMlaYNun5y91rPN0/SndwBggopXtxaoUY2tQo3/EefjIxr/wK0rnwGfjyRo1ZiMs Ccpa6U/gAl8tA0OIA18KdwHoM91rP+5O/QXq6cSyLm2ILn+M8kofqUsEpkDBhTGRCgLH NExruA/efsuRPlCGuLWwNYL5/ODBqbv2JAhyLiPXPQzrt+XlIL4Nepkm3uahG8w/Vw8p rhSA== X-Gm-Message-State: AElRT7ECj1CnRo1kXyg9h6lAgme9tQ+MKvbnWQkIQFljz0giZnf7zez6 PB0+SiusAG3WoEFGH3Rs6mZ2CxmH X-Google-Smtp-Source: AG47ELvDrzdrHBSbzL98dKMQuOFg6EVPnw0P9aPW/CGp3e9yWytWhpmCTBi17vqt3q3L/kp97SlyRA== X-Received: by 10.28.208.70 with SMTP id h67mr13668wmg.95.1519855434512; Wed, 28 Feb 2018 14:03:54 -0800 (PST) Received: from ?IPv6:2a01:4f8:130:732f::200:1002? ([2a01:4f8:130:732f::200:1002]) by smtp.gmail.com with ESMTPSA id y34sm5967508wry.19.2018.02.28.14.03.52 for <gentoo-dev@lists.gentoo.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Feb 2018 14:03:53 -0800 (PST) To: gentoo development <gentoo-dev@lists.gentoo.org> From: Francesco Riosa <vivo75@gmail.com> Subject: [gentoo-dev] python-any-r1 deps used only for testing Message-ID: <c8cca730-9482-90ee-ce1e-11722bafa970@gmail.com> Date: Wed, 28 Feb 2018 23:03:50 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 Precedence: bulk List-Post: <mailto:gentoo-dev@lists.gentoo.org> List-Help: <mailto:gentoo-dev+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org> X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Archives-Salt: 89e552a8-cedb-4907-b422-4726b2e0d0c0 X-Archives-Hash: d08aff26b757c0f14144618532410d2c hi, sys-devel/automake would to depend on python:2.7 if and only if "test" are enabled. For the tast it inherit python-any-r1 eclass than depend conditionally with test? ( ${PYTHON_DEPS} )" Additionally the ebuild call python_setup() in src_test() However this does not work, because eclass python-any-r1_pkg_setup() call python_setup() itself and automake ebuild does NOT define it's own pkg_setup() (thus python-any-r1 pkg setup is used). Result is that with no python:2.7 installed ebuild will fail, always both with test enabled or disabled. I've realized all this after bug https://bugs.gentoo.org/648940 was closed, that discussion didn't go very well, so I'd like to ask before opening a different bug It's correct to ask the maintainer to define pkg_setup() in automake ebuild? if so should it be empty like: pkg_setup() { : } or it should contain default like pkg_setup() { default } or another solution is preferred? Thanks in advance, Francesco (vivo)