From: "Michal Gorny (mgorny)" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog distutils-r1.eclass
Date: Mon, 29 Oct 2012 09:49:54 +0000 (UTC) [thread overview]
Message-ID: <20121029094954.6D3B521600@flycatcher.gentoo.org> (raw)
mgorny 12/10/29 09:49:54
Modified: ChangeLog distutils-r1.eclass
Log:
Use find instead of hard-coded executable locations list when linking the wrapper.
Revision Changes Path
1.479 eclass/ChangeLog
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.479&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.479&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.478&r2=1.479
Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
retrieving revision 1.478
retrieving revision 1.479
diff -u -r1.478 -r1.479
--- ChangeLog 29 Oct 2012 09:47:41 -0000 1.478
+++ ChangeLog 29 Oct 2012 09:49:54 -0000 1.479
@@ -1,6 +1,10 @@
# ChangeLog for eclass directory
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.478 2012/10/29 09:47:41 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.479 2012/10/29 09:49:54 mgorny Exp $
+
+ 29 Oct 2012; Michał Górny <mgorny@gentoo.org> distutils-r1.eclass:
+ Use find instead of hard-coded executable locations list when linking the
+ wrapper.
29 Oct 2012; Michał Górny <mgorny@gentoo.org> distutils-r1.eclass:
Use new python-r1 functions.
1.10 eclass/distutils-r1.eclass
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/distutils-r1.eclass?rev=1.10&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/distutils-r1.eclass?rev=1.10&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/distutils-r1.eclass?r1=1.9&r2=1.10
Index: distutils-r1.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- distutils-r1.eclass 29 Oct 2012 09:47:41 -0000 1.9
+++ distutils-r1.eclass 29 Oct 2012 09:49:54 -0000 1.10
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.9 2012/10/29 09:47:41 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.10 2012/10/29 09:49:54 mgorny Exp $
# @ECLASS: distutils-r1
# @MAINTAINER:
@@ -256,15 +256,14 @@
local EPYTHON
python_export_best EPYTHON
- for f in "${D}"/{bin,sbin,usr/bin,usr/sbin,games/bin}/*-"${EPYTHON}"; do
- if [[ -x ${f} ]]; then
- debug-print "${FUNCNAME}: found executable at ${f#${D}/}"
+ local f
+ while IFS= read -r -d '' f; do
+ debug-print "${FUNCNAME}: found executable at ${f#${D}/}"
- local wrapf=${f%-${EPYTHON}}
+ local wrapf=${f%-${EPYTHON}}
- _python_ln_rel "${ED}"/usr/bin/python-exec "${wrapf}" || die
- fi
- done
+ _python_ln_rel "${ED}"/usr/bin/python-exec "${wrapf}" || die
+ done < <(find "${D}" -type f -executable -name "*-${EPYTHON}" -print0)
}
# @FUNCTION: distutils-r1_run_phase
next reply other threads:[~2012-10-29 9:50 UTC|newest]
Thread overview: 78+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-29 9:49 Michal Gorny (mgorny) [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-07-18 0:07 [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog distutils-r1.eclass Mike Gilbert (floppym)
2015-07-16 14:29 Michal Gorny (mgorny)
2015-01-31 2:49 Patrick Lauer (patrick)
2015-01-13 21:34 Michal Gorny (mgorny)
2014-12-27 19:00 Michal Gorny (mgorny)
2014-12-11 18:32 Michal Gorny (mgorny)
2014-12-11 9:07 Michal Gorny (mgorny)
2014-11-24 1:39 Mike Gilbert (floppym)
2014-08-24 13:23 Michal Gorny (mgorny)
2014-07-08 8:49 Michal Gorny (mgorny)
2014-06-22 7:01 Michal Gorny (mgorny)
2014-06-19 12:54 Michal Gorny (mgorny)
2014-05-19 5:00 Mike Gilbert (floppym)
2014-05-11 7:58 Michal Gorny (mgorny)
2014-01-18 15:06 Mike Gilbert (floppym)
2013-12-03 20:00 Mike Gilbert (floppym)
2013-12-02 13:14 Michal Gorny (mgorny)
2013-11-11 15:58 Michal Gorny (mgorny)
2013-10-26 17:47 Michal Gorny (mgorny)
2013-10-22 19:23 Michal Gorny (mgorny)
2013-10-22 15:15 Michal Gorny (mgorny)
2013-10-10 6:10 Michal Gorny (mgorny)
2013-09-28 19:11 Mike Gilbert (floppym)
2013-09-27 19:21 Michal Gorny (mgorny)
2013-09-27 19:19 Michal Gorny (mgorny)
2013-09-26 11:58 Michal Gorny (mgorny)
2013-09-18 22:48 Michal Gorny (mgorny)
2013-09-17 17:33 Michal Gorny (mgorny)
2013-08-25 21:15 Michal Gorny (mgorny)
2013-08-25 21:13 Michal Gorny (mgorny)
2013-08-25 21:12 Michal Gorny (mgorny)
2013-08-01 13:02 Michal Gorny (mgorny)
2013-07-21 19:00 Michal Gorny (mgorny)
2013-07-09 1:57 Mike Gilbert (floppym)
2013-04-18 15:47 Michal Gorny (mgorny)
2013-04-13 14:01 Michal Gorny (mgorny)
2013-04-10 15:38 Michal Gorny (mgorny)
2013-03-19 6:13 Michal Gorny (mgorny)
2013-03-13 21:51 Mike Gilbert (floppym)
2013-03-09 13:13 Michal Gorny (mgorny)
2013-03-04 19:29 Michal Gorny (mgorny)
2013-03-02 7:17 Michal Gorny (mgorny)
2013-03-02 7:16 Michal Gorny (mgorny)
2013-03-02 7:13 Michal Gorny (mgorny)
2013-02-26 14:34 Michal Gorny (mgorny)
2013-02-21 23:18 Michal Gorny (mgorny)
2013-02-10 16:15 Michal Gorny (mgorny)
2013-02-10 11:41 Michal Gorny (mgorny)
2013-02-10 11:39 Michal Gorny (mgorny)
2013-02-10 11:38 Michal Gorny (mgorny)
2013-01-27 16:39 Michal Gorny (mgorny)
2013-01-27 16:37 Michal Gorny (mgorny)
2013-01-20 21:41 Michal Gorny (mgorny)
2013-01-12 23:18 Michal Gorny (mgorny)
2013-01-12 23:17 Michal Gorny (mgorny)
2013-01-12 23:13 Michal Gorny (mgorny)
2013-01-12 23:13 Michal Gorny (mgorny)
2013-01-11 1:06 Mike Gilbert (floppym)
2013-01-10 22:09 Michal Gorny (mgorny)
2013-01-05 10:02 Michal Gorny (mgorny)
2013-01-05 10:00 Michal Gorny (mgorny)
2013-01-04 3:12 Mike Gilbert (floppym)
2012-12-27 22:57 Michal Gorny (mgorny)
2012-12-09 20:56 Michal Gorny (mgorny)
2012-12-07 22:23 Michal Gorny (mgorny)
2012-12-07 21:09 Michal Gorny (mgorny)
2012-12-07 17:59 Michal Gorny (mgorny)
2012-12-07 17:57 Michal Gorny (mgorny)
2012-12-07 17:56 Michal Gorny (mgorny)
2012-12-01 10:54 Michal Gorny (mgorny)
2012-12-01 10:53 Michal Gorny (mgorny)
2012-12-01 10:52 Michal Gorny (mgorny)
2012-11-01 12:19 Michal Gorny (mgorny)
2012-10-29 13:30 Michal Gorny (mgorny)
2012-10-29 9:54 Michal Gorny (mgorny)
2012-10-25 17:42 Michal Gorny (mgorny)
2012-10-15 12:51 Michal Gorny (mgorny)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121029094954.6D3B521600@flycatcher.gentoo.org \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox