ddollar / heroku-buildpack-apt

120 stars 327 forks source link

the binaries are not exposed to the cli interface? #2

Closed rolandjitsu closed 10 years ago

rolandjitsu commented 10 years ago

Hey,

I was trying to install cMake with this buildpack and use it, but it seems as if it cannot run the command. Is it because is not available until all buildpacks are done installing?

I created this small buildpack: heroku-buildpack-mosquitto; which relies on the cmake command, but when it gets to execute it it tells me that it does not exist.

Could it be because of this buildpack, since I use the Aptfile to install cMake, or could it be because of heroku-buildpack-multi which I use to install multiple buildpacks?

public commented 10 years ago

buildpack-apt does this https://github.com/ddollar/heroku-buildpack-apt/blob/master/bin/compile#L65 which I assume is intended to make it so that subsequent buildpacks can access to the newly installed packages.

However this doesn't work because buildpack-multi doesn't source this bin/compile steps of the buildpacks it runs. It executes them, and export doesn't inject the variable into the parent process, it makes them available to child processes.

rolandjitsu commented 10 years ago

@public, that is right. The owner replied to the issue posted on the other buildpack and it is because of what you just mentioned.