You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After cloning the repo and typing ./config in the terminal the expected result is to have a successful configuration.
Actual result
Got some errors complaining about the syntax of the config file:
s@!!CC_HOST!!@gcc@g; ...": bad flag in substitute command: '.'
Steps to reproduce
Install OpenSSL using brew
Clone the latest version of OpenTTD and try to configure it
If you do that homebrew will add an "@" symbol after OpenSSL to separate the name of the package from the version. That will break the config file because it will get confused with the "@" used in the config file.
How to fix it for good
My idea is to escape the strings you're getting from the environment, so you have control over the input strings so they don't interact with the special characters.
How to fix it in a hacky way
Go to your config.lib file, find the line that contains s@!!LDFLAGS!!@$T_LDFLAGS@g; and substitute the "@"s for something else like s^!!LDFLAGS!!^$T_LDFLAGS^g; . Now it works.
The text was updated successfully, but these errors were encountered:
I think I'm gonna wait for the patch =)
If anyone have problems with it they can find this issue and fix it the hacky way.
Thanks @glx22, I'm gonna close this one then.
Version of OpenTTD
I'm using master 9d5dd89
Expected result
After cloning the repo and typing
./config
in the terminal the expected result is to have a successful configuration.Actual result
Got some errors complaining about the syntax of the config file:
Steps to reproduce
If you do that homebrew will add an "@" symbol after OpenSSL to separate the name of the package from the version. That will break the config file because it will get confused with the "@" used in the config file.
How to fix it for good
My idea is to escape the strings you're getting from the environment, so you have control over the input strings so they don't interact with the special characters.
How to fix it in a hacky way
Go to your
config.lib
file, find the line that containss@!!LDFLAGS!!@$T_LDFLAGS@g;
and substitute the "@"s for something else likes^!!LDFLAGS!!^$T_LDFLAGS^g;
. Now it works.The text was updated successfully, but these errors were encountered: