Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postprocess script inherits host environment, often incorrectly #277

Closed
copumpkin opened this issue Apr 29, 2016 · 8 comments
Closed

postprocess script inherits host environment, often incorrectly #277

copumpkin opened this issue Apr 29, 2016 · 8 comments

Comments

@copumpkin
Copy link
Contributor

copumpkin commented Apr 29, 2016

In my case, the host PATH is super unusual (NixOS), and nothing like the guest, which is a more traditional CentOS distro. So when rpm-ostree tries to run postprocess-script, it fails because it can't find any binaries (unless I use full paths to all programs or set a PATH inside the script).

@cgwalters
Copy link
Member

GNOME/libglnx@e684ef0

Which has been around quite a while. It's not working for you?

@copumpkin
Copy link
Contributor Author

Oh, didn't notice that. I just ran echo $PATH in my postprocess-script and it printed out my host env. Not sure if it's something weird about my setup.

@cgwalters
Copy link
Member

@copumpkin
Copy link
Contributor Author

Thanks, I'll give it a go later today! Should that commit just work as a replacement for the libglnx submodule in rpm-ostree today?

@cgwalters
Copy link
Member

Yes, should.

copumpkin added a commit to NixOS/nixpkgs that referenced this issue May 4, 2016
@copumpkin
Copy link
Contributor Author

Looks like it worked! Thanks 😄

@copumpkin
Copy link
Contributor Author

Should I close this or wait until you update the submodule ref?

@cgwalters
Copy link
Member

This was fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants