Skip to content

Setting an environment variable, in recipe.rb, not respected during the configure step. #193

@madelaney

Description

@madelaney

I have a recipe in which I want to set a unique value for JAVA_HOME.

I have the following code:

class Package < FPM::Cookery::Recipe
  ...
  def build
    environment['JAVA_HOME'] = '/usr/lib/jvm/openjdk-8-jdk'
    configure 
  end
  ...
end

However, during the configure phase, the build does not see the aforementioned JAVA_HOME value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions