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 796E2138334 for ; Wed, 3 Oct 2018 10:01:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 418E7E09ED; Wed, 3 Oct 2018 10:00:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 179B9E09ED for ; Wed, 3 Oct 2018 10:00:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1B483335D0F for ; Wed, 3 Oct 2018 10:00:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 31EE8397 for ; Wed, 3 Oct 2018 10:00:54 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1538560846.898c59b8f44218f5d42ed8c696fe424fcb424988.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-evdev/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/python-evdev/python-evdev-0.7.0-r1.ebuild dev-python/python-evdev/python-evdev-0.7.0.ebuild X-VCS-Directories: dev-python/python-evdev/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 898c59b8f44218f5d42ed8c696fe424fcb424988 X-VCS-Branch: master Date: Wed, 3 Oct 2018 10:00:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 6df23161-888b-4c1f-a3fa-9eff28cdc223 X-Archives-Hash: abdafbb794cec969895ce08ec2bd26a5 commit: 898c59b8f44218f5d42ed8c696fe424fcb424988 Author: Brian Norris chromium org> AuthorDate: Wed Sep 26 22:59:20 2018 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Oct 3 10:00:46 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=898c59b8 dev-python/python-evdev: specify header locations, EAPI 7 setup.py hardcodes /usr/include/linux/... paths. This doesn't work if cross-compiling or otherwise using a different $ROOT with a different set of headers, as the setup stage might pick up one set of headers, while the compilation might pick up another. Fortunately, setup.py supports an --evdev-headers arg so we can fix this. Let's use it. At the same time, bump to EAPI 7 to support ${SYSROOT}. Tested with pytest -- 1 existing test_uinput.py (test_abs_values()) failed before and after this change. Signed-off-by: Brian Norris chromium.org> Signed-off-by: Michał Górny gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/9978 .../{python-evdev-0.7.0.ebuild => python-evdev-0.7.0-r1.ebuild} | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dev-python/python-evdev/python-evdev-0.7.0.ebuild b/dev-python/python-evdev/python-evdev-0.7.0-r1.ebuild similarity index 71% rename from dev-python/python-evdev/python-evdev-0.7.0.ebuild rename to dev-python/python-evdev/python-evdev-0.7.0-r1.ebuild index 4a7a95efeda..8f45fd510f8 100644 --- a/dev-python/python-evdev/python-evdev-0.7.0.ebuild +++ b/dev-python/python-evdev/python-evdev-0.7.0-r1.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) inherit distutils-r1 @@ -16,3 +16,9 @@ KEYWORDS="~amd64 ~arm ~x86" IUSE="" DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" + +python_compile() { + distutils-r1_python_compile build_ecodes \ + --evdev-headers \ + "${SYSROOT}"/usr/include/linux/input.h:"${SYSROOT}"/usr/include/linux/input-event-codes.h +}