Skip to content

Fix maketgz to resolve sed issues on OSX#2660

Closed
upadhyaym wants to merge 1 commit intocurl:masterfrom
upadhyaym:hotfix/maketgz-update
Closed

Fix maketgz to resolve sed issues on OSX#2660
upadhyaym wants to merge 1 commit intocurl:masterfrom
upadhyaym:hotfix/maketgz-update

Conversation

@upadhyaym
Copy link

Curl build uses maketgz to create release tarball and removes the -DEV string in curl version (e.g. 7.58.0-DEV), else -DEV shows up on command line when curl is run. Upstream provided
maketgz works fine on linux but fails on OSX. Problem is with the sed commands that use option -i without an extension. Maketgz expects GNU sed instead of BSD and this simply won't work on OSX. Adding a backup extension .bak after -i fixes this issue

Running the script as is on OSX gives this error:

sed: -e: No such file or directory

Adding a .bak extension resolves it

Overall, maketgz uses lot of stuff from the path and ignores
environment variables. Might be something the upstream team should
consider

Curl build uses maketgz to create release tarball and removes
the -DEV string in curl version (e.g. 7.58.0-DEV), else
-DEV shows up on command line when curl is run. Upstream provided
maketgz works fine on linux but fails on OSX. Problem is with the
sed commands that use option -i without an extension. Maketgz expects
GNU sed instead of BSD and this simply won't work on OSX. Adding
a backup extension .bak after -i fixes this issue

Running the script as if on OSX gives this error:

sed: -e: No such file or directory

Adding a .bak extension resolves it

Overall, maketgz uses lot of stuff from the path and ignores
environment variables. Might be something the upstream team should
consider
@bagder bagder added the build label Jun 14, 2018
@bagder
Copy link
Member

bagder commented Jun 14, 2018

Thanks! Yes this script was never really designed nor intended for wide-spread use... it assumes a sensible build setup working and present.

@bagder bagder closed this in cf44843 Jun 14, 2018
@upadhyaym
Copy link
Author

Thanks. We use tagged source for our builds. Unfortunately, tagged sources keep -DEV string in the version. So we have to run maketgz to remove the string

vszakats added a commit to vszakats/curl that referenced this pull request Jun 15, 2018
vszakats added a commit that referenced this pull request Jun 15, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Sep 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Development

Successfully merging this pull request may close these issues.

2 participants