public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Anton Starikov <antst@ifm.liu.se>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] per-package environment variables.
Date: Wed, 01 Sep 2004 02:51:41 +0200	[thread overview]
Message-ID: <41351D1D.60207@ifm.liu.se> (raw)
In-Reply-To: <20040901002625.GA32006@twobit.net>

Nicholas Jones wrote:
>>1) Possibility to change ENV during building some packages.
> 
> 
> I certainly hope you realize the depths to which people go to
> make your life miserable when attempting to do support.
Yes :) There is something
> The idea is that it takes effort. If it's not trivial, you have to
> LEARN to make it work. Having super-easy things is great, but not
> when it happens to make FIXING it super complicated, developers lose.
Yes, but sollution can be simple...some kind of, probably, limitation 
applied, at first (for example ONLY env variables, nothing more in this 
script, onle A=B syntax). And second, idea to get this environment 
BEFORE something. So, it should be absolutely equal, theoretically, to 
something like this:
CC="bla-bla-bla" CFLAGS="bla-bla-bla" I_WANT_THAT="bla-bla-bla" emerge 
nice_package
I thing that is OK, because anyway users can do it now :)

> Some of this might be nice. If you're going to make this kind of
> effort, why not integrate it into the ebuild?
If I uderstand right, you mean make copy of 10 ebuilds into local 
overlay and edit them twice a week? When new version of ebuild is 
coming? :) And in the middle have troubles, because fresh version will 
be at first automatically updated with standard ENV and at morning I'll 
reallize that my code don't want to be linked against of library XXX, 
which was compiled at night with g77 instead ifc or lf95 or pgf90 or 
something else ? :) That is boring. I've checked already :)


>>4) BTW, in such case it also not bad to have option to include something 
>>like
>>USE="ifc"
>>into this environment, and it should be parsed in proper way. I hope 
>>that this is clear. If we want to build something with IFC and set 
>>proper variables, we really don't want to go and edit one more file 
>>(/etc/portage/package.use). And we don't want to edit also two files, 
>>when we will figure out that we like coming gfortran :)
> 
> 
> Absolutely not. This violates portage's dep calculations and is
> completely wrong. Please do not change any variables that are
> READONLY inside of ebuild.sh after the depend phase.
Again. Idea of this way is to have something equal to
CC="bla-bla-bla" CFLAGS="bla-bla-bla" I_WANT_THAT="bla-bla-bla" 
USE="I_dont_want_that" emerge nice_package
This way is OK and works now. Yes, it probably going to be a bit 
complicated and probably you will need to parse it twice...that is 
subject of dicussion.


> Some of the ideas actually look trackable, which I happen
> to like. Inline definitions of variables, I am not
> particularly fond of.
> 
> If portage has a way to accurately track these files and
> there is a way to avoid arbitary inclusion, then it might
> be a lot more feasable.
Keep in mind, it was a first iteration :) Not really well designed
Just wanted to rise discussion. After which idea could take shape of 
brilliant :)


> Eh. That is all I have to say.
> I'm going to go home and take a nap now.
:)

-- 
Anton Starikov

--
gentoo-dev@gentoo.org mailing list


  reply	other threads:[~2004-09-01  0:51 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-31 22:26 [gentoo-dev] per-package environment variables Antst GD
2004-08-31 22:34 ` Mike Frysinger
2004-08-31 22:44 ` Antst GD
2004-09-08 18:19   ` Ned Ludd
2004-08-31 23:28 ` Mike Frysinger
2004-09-01  0:00   ` Anton Starikov
2004-09-01  0:13   ` Anton Starikov
2004-09-01  3:05   ` Olivier Fisette
2004-09-01 11:08     ` Anton Starikov
2004-09-01 15:53       ` Robin H. Johnson
2004-09-01 19:56       ` Olivier Fisette
2004-09-01 22:39         ` Anton Starikov
2004-09-02 22:49         ` Anton Starikov
2004-09-02 23:30           ` Olivier Fisette
2004-09-03  1:36             ` Anton Starikov
2004-09-03  1:35               ` Robin H. Johnson
2004-09-03  2:05               ` Olivier Fisette
2004-09-03  2:53                 ` Anton Starikov
2004-09-01  0:26 ` Nicholas Jones
2004-09-01  0:51   ` Anton Starikov [this message]
2004-09-01 14:02 ` aye
2004-09-01 14:22   ` Anton Starikov
2004-09-01 15:59   ` Robin H. Johnson
2004-09-01 18:42     ` aye
2004-09-01 18:46       ` Robin H. Johnson

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=41351D1D.60207@ifm.liu.se \
    --to=antst@ifm.liu.se \
    --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