From: Brian Harring <ferringb@gentoo.org>
To: gentoo-portage-dev@lists.gentoo.org
Subject: Re: [gentoo-portage-dev] re: confcache
Date: Sat, 09 Oct 2004 05:35:57 -0700 [thread overview]
Message-ID: <1097325349.26805.37.camel@localhost.localdomain> (raw)
In-Reply-To: <200410091145.54054.danarmak@gentoo.org>
On Sat, 2004-10-09 at 02:45, Dan Armak wrote:
> On Friday 08 October 2004 22:08, Brian Harring wrote:
> > Well... that's weird, attempted to send this directly to dan, having it
> > bail due to
> > 'failed: relaying not allowed: danarmak@gentoo.org'
> > I assume I'm being an idiot and screwing up the address (or local
> > configuration)...
> All I can say is, I can receive at that address quite well...
Don't worry about it, I was being an idiot (usually a valid assumption).
> I did, but it's tied to your ability to call back into python from ebuild.sh,
> so I couldn't use it with the main portage tree. Unless there's a way to do
> this in stock portage? I don't have any experience with the python side of
> portage, so please enlighten my ignorance...
Python side of it isn't really required, just how I wrote it
originally. In hindsight, it's bound much too tightly to my daemon
code, should loosen sandbox's treatment of LD_PRELOAD and split
confcache into a seperate script/prog. Course that introduces security
issues, although going userpriv + fakeroot ought to help that (playing
with that now).
> > Also, variables changing _will_ cause
> > configure to bail if they've been cached (cflags fex), so you might want
> > to either filter those entries (they start with ac_cv_env_), or rewrite
> > them (I went for rewrite, works although I worry about other cache
> > entries relying on the vars not changing).
> I dump the cache when they change in the latest revision of my patch. That
> seems safest. The problem is that some ebuilds (eg fftw) modify CFLAGS, thus
> invalidating the cache.
>
> How safe do you think it is to ignore these variables entirely? Some of them
> like LDFLAGS might affect the results of some configure tests. We could have
> separate cache data for different combinations of them...
If the variables change, autoconf catches it- causes the configure to
bail unfortunately. They must be dealt with in some way, although I'm
starting to think filtering them from the cache is a better approach
them rewriting them.
>
> > Aside from that, there is also the md5'ing of /proc/cpuinfo- most users,
> > not an issue, as magnade pointed out, this is a killer for users that
> > have procs that adjust their frequency (laptops fex) for power saving-
> > this changes the md5 of /proc/cpuinfo pretty much continually,
> > invalidating the cache continually.
>
> We'll have to add special treatment for it then.
Haven't really figured out a sane way to do special treatment- a good
portion of /proc and /sys will likely require special handling.
Thoughts?
Not much for just defining a bunch of special cases, but doesn't really
seem to be any other way.
~brian
--
gentoo-portage-dev@gentoo.org mailing list
next prev parent reply other threads:[~2004-10-09 12:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-08 20:08 [gentoo-portage-dev] re: confcache Brian Harring
2004-10-09 9:45 ` Dan Armak
2004-10-09 12:35 ` Brian Harring [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-11-15 1:43 [gentoo-portage-dev] confcache Brian Harring
2005-11-15 2:40 ` [gentoo-portage-dev] confcache Thomas Kirchner
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=1097325349.26805.37.camel@localhost.localdomain \
--to=ferringb@gentoo.org \
--cc=gentoo-portage-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