6
0
forked from pool/boringssl
Files
boringssl/0007-fix-go-vendor-embed_test_data.patch
Martin Pluskal b2315a6b2e - Update to version 0.20210430 tag fips-20210429. This pinned
version of boringssl is expected by go1.22 and go1.23 when
  building with GOEXPERIMENT=boringcrypto.
  Refs boo#1236000
- Packaging improvements:
  * _service change disabled to manual per osc deprecation warning:
    WARNING: Command 'disabledrun/dr' is obsolete, please convert
    your _service to use 'manual' and then 'manualrun/mr' instead.
  * Vendor Go build-time utility dependences in go.mod, not yet
    using OBS Service Go Modules.
  * Add BuildRequires: golang(API) >= 1.22 to enable Go related
    utilities used in CMake build steps related to FIPS
    mode. Upstream minimum version per go.mod is go1.13.
  * _service add go_modules to vendor pinned dependences in go.mod
  * Use autosetup -a 1 to unpack source and vendored dependencies
  * Rebase 0001-Compile-for-RISC-V.patch
  * Rebase 0002-crypto-Fix-aead_test-build-on-aarch64.patch
  * Rebase 0003-enable-s390x-builds.patch
  * Rebase 0004-fix-alignment-for-ppc64le.patch
  * Rebase 0005-fix-alignment-for-arm.patch
  * Rebase 0006-gcc-disable-werror.patch
  * Rebase 0007-fix-go-vendor-embed_test_data.patch
  * Rebase 0008-fix-go-vendor-err_data_generate.patch
  * Rebase 0009-soname-sover.patch (was soname-sover.patch)
  * rpmlint fix version-control-internal-file error
  * rpmlint fix script-without-shebang error
  * rpmlint fix non-executable-script error
  * rpmlint fix binary-or-shlib-defines-rpath error use CMAKE_SKIP_RPATH

OBS-URL: https://build.opensuse.org/package/show/security:tls/boringssl?expand=0&rev=41
2025-04-02 14:04:35 +00:00

21 lines
822 B
Diff

commit 84b3970a1a7fa419f305a833effbedb3e53690b7
Author: Jeff Kowalczyk <jkowalczyk@suse.com>
Date: Mon Mar 31 08:40:57 2025 -0700
0007-fix-go-vendor-embed_test_data.patch
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 76a3723..fb2c801 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -585,7 +585,8 @@ file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/embed_test_data_args.txt"
add_custom_command(
OUTPUT crypto_test_data.cc
- COMMAND ${GO_EXECUTABLE} run util/embed_test_data.go -file-list
+ COMMAND ${GO_EXECUTABLE} build -mod=vendor util/embed_test_data.go
+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/embed_test_data -file-list
"${CMAKE_CURRENT_BINARY_DIR}/embed_test_data_args.txt" >
"${CMAKE_CURRENT_BINARY_DIR}/crypto_test_data.cc"
DEPENDS util/embed_test_data.go ${CRYPTO_TEST_DATA}