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

make install fails when GZIP defined in environment #5595

Closed
sambltc opened this issue Jun 12, 2019 · 3 comments
Closed

make install fails when GZIP defined in environment #5595

sambltc opened this issue Jun 12, 2019 · 3 comments

Comments

@sambltc
Copy link

sambltc commented Jun 12, 2019

"env GZIP=-n make install" fails, ending with:

gzip: /bin/gzip.gz: Permission denied
Makefile:151: recipe for target 'install-data' failed
make[1]: *** [install-data] Error 1
Makefile:166: recipe for target 'install-data' failed
make: *** [install-data] Error 1

It seems to be because a variable named "GZIP" is used in the makefiles.
(The existence of GZIP in the environment causes Make to export "GZIP" with it's value (the path to the gzip binary) but gzip itself expects to find command line options in it and fails.)

@michaelrsweet
Copy link
Collaborator

Lovely. But also install-sh looks for GZIPPROG and not GZIP, so that too needs to be corrected.

Will change everything to use GZIPPROG (and do the right configure test for its availability...)

@michaelrsweet
Copy link
Collaborator

[master 3001a14] Use GZIPPROG instead of GZIP to avoid install issues (Issue #5595)

[branch-2.2 3676fc3] Use GZIPPROG instead of GZIP to avoid install issues (Issue #5595)

@sambltc
Copy link
Author

sambltc commented Jun 18, 2019

Thanks so much for the fix! :-)

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

No branches or pull requests

2 participants