[prev in list] [next in list] [prev in thread] [next in thread]
List: gentoo-dev
Subject: [gentoo-dev] Re: gentoo-x86 commit in eclass: distutils.eclass
From: Ali Polatel <hawking () gentoo ! org>
Date: 2008-01-31 14:51:58
Message-ID: 20080131145158.GA32199 () trippin
[Download RAW message or body]
Donnie Berkholz yazmış:
> On 22:19 Wed 23 Jan , Ali Polatel (hawking) wrote:
> > hawking 08/01/23 22:19:05
> >
> > Modified: distutils.eclass
> > Log:
> > Fixed ROOT usage for distutils_pkg_postinst failing when ROOT ends with slash
>
> > @@ -99,11 +99,14 @@
> > distutils_pkg_postinst() {
> > PYTHON_MODNAME=${PYTHON_MODNAME:-${PN}}
> >
> > + # strip trailing slash
> > + myroot="${ROOT%/}"
> > +
> > if has_version ">=dev-lang/python-2.3"; then
> > python_version
> > for pymod in ${PYTHON_MODNAME}; do
> > - if [ -d "${ROOT}usr/$(get_libdir)/python${PYVER}/site-packages/${pymod}" ]; then
> > - python_mod_optimize ${ROOT}usr/$(get_libdir)/python${PYVER}/site-packages/${pymod}
> > + if [ -d "${myroot}/usr/$(get_libdir)/python${PYVER}/site-packages/${pymod}" ]; then
> > + python_mod_optimize ${myroot}/usr/$(get_libdir)/python${PYVER}/site-packages/${pymod}
> > fi
> > done
> > fi
>
> Seems like this might be better fixed by properly handling ROOT in
> python.eclass instead of hacking around it.
>
You're right. dev-zero has made some changes to these eclasses in python
overlay[1] which I'll merge to the tree after some more testing.
[1]: http://overlays.gentoo.org/proj/python/browser/overlays/testing/eclass
-ali
[Attachment #3 (application/pgp-signature)]
--
gentoo-dev@lists.gentoo.org mailing list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic