do not execute go while regenerating boringssl files because we don't need it

This commit is contained in:
robert 2023-01-22 08:23:45 +00:00
parent 9edc8b0121
commit 0e51b18e8e
6 changed files with 105 additions and 3 deletions

View File

@ -73,7 +73,6 @@ RUN_DEPENDS= devel/xdg-utils \
BUILD_DEPENDS= archivers/bzip2 \
devel/gperf \
devel/bison \
lang/go \
lang/node \
shells/bash \
sysutils/flock \

View File

@ -0,0 +1,35 @@
Index: third_party/boringssl/src/util/generate_build_files.py
--- third_party/boringssl/src/util/generate_build_files.py.orig
+++ third_party/boringssl/src/util/generate_build_files.py
@@ -863,10 +863,10 @@ def main(platforms):
]
# Generate err_data.c
- with open('err_data.c', 'w+') as err_data:
- subprocess.check_call(['go', 'run', 'err_data_generate.go'],
- cwd=os.path.join('src', 'crypto', 'err'),
- stdout=err_data)
+# with open('err_data.c', 'w+') as err_data:
+# subprocess.check_call(['go', 'run', 'err_data_generate.go'],
+# cwd=os.path.join('src', 'crypto', 'err'),
+# stdout=err_data)
crypto_c_files.append('err_data.c')
crypto_c_files.sort()
@@ -879,11 +879,11 @@ def main(platforms):
crypto_test_files = []
if EMBED_TEST_DATA:
# Generate crypto_test_data.cc
- with open('crypto_test_data.cc', 'w+') as out:
- subprocess.check_call(
- ['go', 'run', 'util/embed_test_data.go'] + cmake['CRYPTO_TEST_DATA'],
- cwd='src',
- stdout=out)
+# with open('crypto_test_data.cc', 'w+') as out:
+# subprocess.check_call(
+# ['go', 'run', 'util/embed_test_data.go'] + cmake['CRYPTO_TEST_DATA'],
+# cwd='src',
+# stdout=out)
crypto_test_files += ['crypto_test_data.cc']
crypto_test_files += FindCFiles(os.path.join('src', 'crypto'), OnlyTests)

View File

@ -71,7 +71,6 @@ RUN_DEPENDS= devel/xdg-utils \
BUILD_DEPENDS= archivers/bzip2 \
devel/gperf \
devel/bison \
lang/go \
lang/node \
shells/bash \
sysutils/flock \

View File

@ -0,0 +1,35 @@
Index: third_party/boringssl/src/util/generate_build_files.py
--- third_party/boringssl/src/util/generate_build_files.py.orig
+++ third_party/boringssl/src/util/generate_build_files.py
@@ -863,10 +863,10 @@ def main(platforms):
]
# Generate err_data.c
- with open('err_data.c', 'w+') as err_data:
- subprocess.check_call(['go', 'run', 'err_data_generate.go'],
- cwd=os.path.join('src', 'crypto', 'err'),
- stdout=err_data)
+# with open('err_data.c', 'w+') as err_data:
+# subprocess.check_call(['go', 'run', 'err_data_generate.go'],
+# cwd=os.path.join('src', 'crypto', 'err'),
+# stdout=err_data)
crypto_c_files.append('err_data.c')
crypto_c_files.sort()
@@ -879,11 +879,11 @@ def main(platforms):
crypto_test_files = []
if EMBED_TEST_DATA:
# Generate crypto_test_data.cc
- with open('crypto_test_data.cc', 'w+') as out:
- subprocess.check_call(
- ['go', 'run', 'util/embed_test_data.go'] + cmake['CRYPTO_TEST_DATA'],
- cwd='src',
- stdout=out)
+# with open('crypto_test_data.cc', 'w+') as out:
+# subprocess.check_call(
+# ['go', 'run', 'util/embed_test_data.go'] + cmake['CRYPTO_TEST_DATA'],
+# cwd='src',
+# stdout=out)
crypto_test_files += ['crypto_test_data.cc']
crypto_test_files += FindCFiles(os.path.join('src', 'crypto'), OnlyTests)

View File

@ -77,7 +77,6 @@ BUILD_DEPENDS= archivers/bzip2 \
devel/gpatch \
devel/gperf \
devel/bison \
lang/go \
lang/node \
shells/bash \
sysutils/flock \

View File

@ -0,0 +1,35 @@
Index: third_party/boringssl/src/util/generate_build_files.py
--- third_party/boringssl/src/util/generate_build_files.py.orig
+++ third_party/boringssl/src/util/generate_build_files.py
@@ -863,10 +863,10 @@ def main(platforms):
]
# Generate err_data.c
- with open('err_data.c', 'w+') as err_data:
- subprocess.check_call(['go', 'run', 'err_data_generate.go'],
- cwd=os.path.join('src', 'crypto', 'err'),
- stdout=err_data)
+# with open('err_data.c', 'w+') as err_data:
+# subprocess.check_call(['go', 'run', 'err_data_generate.go'],
+# cwd=os.path.join('src', 'crypto', 'err'),
+# stdout=err_data)
crypto_c_files.append('err_data.c')
crypto_c_files.sort()
@@ -879,11 +879,11 @@ def main(platforms):
crypto_test_files = []
if EMBED_TEST_DATA:
# Generate crypto_test_data.cc
- with open('crypto_test_data.cc', 'w+') as out:
- subprocess.check_call(
- ['go', 'run', 'util/embed_test_data.go'] + cmake['CRYPTO_TEST_DATA'],
- cwd='src',
- stdout=out)
+# with open('crypto_test_data.cc', 'w+') as out:
+# subprocess.check_call(
+# ['go', 'run', 'util/embed_test_data.go'] + cmake['CRYPTO_TEST_DATA'],
+# cwd='src',
+# stdout=out)
crypto_test_files += ['crypto_test_data.cc']
crypto_test_files += FindCFiles(os.path.join('src', 'crypto'), OnlyTests)