Skip to content

configure: set PATH_SEPARATOR to colon for PATH w/o separator#2265

Closed
bagder wants to merge 1 commit into
masterfrom
bagder/configure-path-separator
Closed

configure: set PATH_SEPARATOR to colon for PATH w/o separator#2265
bagder wants to merge 1 commit into
masterfrom
bagder/configure-path-separator

Conversation

@bagder
Copy link
Copy Markdown
Member

@bagder bagder commented Jan 25, 2018

The logic tries to figure out what the path separator in the $PATH
variable is, but if there's only one directory in the $PATH it
fails. This change make configure guess on colon instead of erroring
out, simply because that is probably the more common character.

PATH_SEPARATOR can always be set by the user to override the guessing.

(tricky bug to reproduce, as in my case for example the configure script
requires binaries in more than one directory so passing in a PATH with a
single dir fails.)

Reported-by: Earnestly on github
Fixes #2202

The logic tries to figure out what the path separator in the $PATH
variable is, but if there's only one directory in the $PATH it
fails. This change make configure *guess* on colon instead of erroring
out, simply because that is probably the more common character.

PATH_SEPARATOR can always be set by the user to override the guessing.

(tricky bug to reproduce, as in my case for example the configure script
requires binaries in more than one directory so passing in a PATH with a
single dir fails.)

Reported-by: Earnestly on github
Fixes #2202
@bagder bagder closed this in b7db284 Jan 29, 2018
@bagder bagder deleted the bagder/configure-path-separator branch January 29, 2018 23:02
@lock lock Bot locked as resolved and limited conversation to collaborators May 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant