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 AC3F1138247 for ; Thu, 5 Dec 2013 04:32:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7FB7DE0E8B; Thu, 5 Dec 2013 04:32:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A76B6E0E5C for ; Thu, 5 Dec 2013 04:32:16 +0000 (UTC) Received: from moguhome00.in.awa.tohoku.ac.jp (ernie02-dmz.awa.tohoku.ac.jp [130.34.99.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: heroxbd) by smtp.gentoo.org (Postfix) with ESMTPSA id EC9FA33F466 for ; Thu, 5 Dec 2013 04:32:12 +0000 (UTC) From: heroxbd@gentoo.org To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] python versioned libraries or not Date: Thu, 05 Dec 2013 13:32:09 +0900 Message-ID: <86eh5rx6ie.fsf@moguhome00.in.awa.tohoku.ac.jp> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) 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 Content-Type: text/plain X-Archives-Salt: 953daf2c-074a-402e-9306-623b12ebb6e3 X-Archives-Hash: 4e176a2175a8d28c71ca4725ae613611 Dear all, I have only one python-2.7 on my system. Simple and stupid. After boost ebuild is converted to python-r1, libboost_python.so is renamed to libboost_python-2.7.so. This is all cool about python-r1 for multiple python implementation support. At the same time, I don't need this feature. I have a couple of Jamroot's which append "-lboost_python" to LDFLAGS, and I have to manually specify "-lboost_python-2.7". Moreover, libraries depending on boost.python, e.g. Boost.NumPy[1], searches for boost_python and boost_python-mt only. I am forced to patch the build system to pass "-${PYVAR}" to it, which is tedious. I am looking for a way out. Candidates are, 1. scan all python versioned libraries and symlink them to unversioned one. Question: hints to do it systematically in portage? Is there a helper available like python-exec? 2. python-single-r1 is ready for use, but it requires manipulating the boost ebuild to change from python-r1, if I want a python-single-r1 blessed boost. Question: How about merging python-single-r1 with python-r1 and controlling by a global USE flag "python-single". When "python-single" is set, all ebuilds inheriting python-r1 behaves as if being with python-single-r1, so that all python versionings on executables and libraries are disabled. 3. or something I missed Comments? Benda 1. https://github.com/ndarray/Boost.NumPy