From: Ned Ludd <solar@gentoo.org>
To: gentoo-portage-dev@lists.gentoo.org
Cc: Markus Duft <mduft@gentoo.org>
Subject: Re: [gentoo-portage-dev] ia64 rpaths and python building...
Date: Thu, 17 Dec 2009 03:17:19 -0800 [thread overview]
Message-ID: <1261048639.5675.5.camel@localhost> (raw)
In-Reply-To: <200912170521.26384.vapier@gentoo.org>
On Thu, 2009-12-17 at 05:21 -0500, Mike Frysinger wrote:
> On Thursday 17 December 2009 04:38:36 Markus Duft wrote:
> > I recently did some ia64-hpux hacking in prefix, and i stumbled over
> > alittle problem:
> >
> > the native linker collects -L options on the command line, and python
> > uses -L. while building. this results in . beeing in rpath.
> >
> > now when $PWD == $S, there is libpython-*.so, and executing the already
> > installed python finds (through rpath ".") this local libpython. this
> > (although binary exactly the same) refuses to load installed extensions
> > (Fatal Python Error: ....).
> >
> > The problem was caused by the filter-bash-environment.py call in
> > ebuild.sh, _only_ during the "test" phase seemingly.
> >
> > the attached patch fixes the problem for me - what do you think? I guess
> > there are better ways to tackle the problem, but i needed to get this to
> > work ;)
>
> this ignores the real problem. there should never be an installed binary
> whose rpath includes $PWD. this is a terrible security issues waiting to bite
> you in the ass, or cause random failures depending on what the user's cwd is
> at any point in time.
>
> the second change (adding the || exit) is a good idea in theory, but the
> proposed change is incorrect. use the assert helper so that the exit values
> of all commands in the pipeline are checked.
> -mike
Yep to everything Mike said..
prev parent reply other threads:[~2009-12-17 11:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-17 9:38 [gentoo-portage-dev] ia64 rpaths and python building Markus Duft
2009-12-17 10:21 ` Mike Frysinger
2009-12-17 11:17 ` Ned Ludd [this message]
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=1261048639.5675.5.camel@localhost \
--to=solar@gentoo.org \
--cc=gentoo-portage-dev@lists.gentoo.org \
--cc=mduft@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