While testing some of @theuni’s work for iOS cross builds in depends, I found a locale related issue that appears when preprocessing OpenSSL’s Configure
. This is on macOS 10.13.5.
7ac0c67 (a subset of the iOS related build changes) is included to show the issue. When doing a depends build with master (6579d80) + that commit I see:
0cd depends
1make -j5
2<snip>
3Extracting openssl...
4bitcoin/depends/sources/openssl-1.0.1k.tar.gz: OK
5Preprocessing openssl...
6sed: RE error: illegal byte sequence
7make: *** [bitcoin/depends/work/build/x86_64-apple-darwin17.6.0/openssl/1.0.1k-b6eae8817ad/.stamp_preprocessed] Error 1
It seems like the issue could be related to embedded double quotes.
I did try setting other locale related variables:
LANGUAGE=C
LC_ALL=C
LC_CTYPE=C
etc, however LANG=C
was the only one that actually seemed to work.
This is the output of locale
on my machine:
0$ locale
1LANG="en_AU.UTF-8"
2LC_COLLATE="en_AU.UTF-8"
3LC_CTYPE="en_AU.UTF-8"
4LC_MESSAGES="en_AU.UTF-8"
5LC_MONETARY="en_AU.UTF-8"
6LC_NUMERIC="en_AU.UTF-8"
7LC_TIME="en_AU.UTF-8"
8LC_ALL=
Todo:
- Confirm this isn’t a local issue.
- Should we also set other locale related vars?
- Followup other uses of
sed
in/depends/packages
.