Ticket #1083 (closed enhancement: wontfix)

Opened 9 years ago

Last modified 9 years ago

Allowing specifing enviroment variables and use at the cave invocation

Reported by: uzytkownik Owned by:
Priority: Sometime Milestone:
Component: clients/cave Version: 0.58.0
Keywords: Cc:
Blocked By: Blocking:
Distribution: Gentoo

Description

I understend that it should not be done during normal workflow but currently if for example we need to rebuild dev-libs/cloog-ppl after upgrading dev-libs/ppl which breaks graphite in gcc it is needed:

  1. Edit /etc/paludis/bashrc to turn off graphite
  2. Rebuild dev-libs/cloog-ppl
  3. Revert change in /etc/paludis/bashrc
  4. Rebuild dev-libs/cloog-ppl

Instead of

# cave resolve -xz1 dev-libs/cloog-ppl -ECFLAGS="-O2 -march=native"
# cave resolve -xz1 dev-libs/cloog-ppl

Similary quick testing enviroment variables allows to check if the particular bug is triggered by particular USE flag to report it to gentoo/upstream.

Change History

comment:1 follow-up: ↓ 2 Changed 9 years ago by ciaranm

  • Status changed from new to closed
  • Resolution set to wontfix

Sorry, I'm not prepared to support this. The feature's too easily abused, the consequences of the abuse are too unpleasant, and doing it properly isn't especially difficult.

comment:2 in reply to: ↑ 1 Changed 9 years ago by uzytkownik

Replying to ciaranm:

Sorry, I'm not prepared to support this. The feature's too easily abused, the consequences of the abuse are too unpleasant, and doing it properly isn't especially difficult.

It depends on one's mindset. As I operate with relativly large number of alpha/beta I find myself caught by various bugs. As I'm busy fixing bug i don't always remember to clean files afterwards.

As alternative proposal - is it possible to ask to add support for adding arguments to hooks/scripts. Say:

# cave resolve ... --hook-arg "CFLAGS=123" "itisanargument"
# It is in hook or configuration.bash
ARG1=... # ARG1="CFLAGS=123"
ARG2=... # ARG2="itisanargument"

comment:3 Changed 9 years ago by ciaranm

No. You can, however, pass in environment variables that can be read by bash config files.

Note: See TracTickets for help on using tickets.