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
pgpCu6HnGDj6D.pgp
Description: PGP signature
