forked from pool/boringssl
Compare commits
14 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| bebc004aab | |||
| 30a1ba0843 | |||
| e9940d43bc | |||
| 98ba11df3f | |||
| 6e4d344b98 | |||
| 397b2415f5 | |||
| 874a708b2d | |||
| e490b830d6 | |||
| 528994ad7d | |||
| 9fd028c8a9 | |||
| 80ea3018e7 | |||
| 068b8cacc1 | |||
| 7c1a812136 | |||
| 6f3bfb404e |
2
_service
2
_service
@@ -4,7 +4,7 @@
|
|||||||
<param name="scm">git</param>
|
<param name="scm">git</param>
|
||||||
<param name="changesgenerate">enable</param>
|
<param name="changesgenerate">enable</param>
|
||||||
<param name="filename">boringssl</param>
|
<param name="filename">boringssl</param>
|
||||||
<param name="versionformat">%cd</param>
|
<param name="versionformat">0.%cd</param>
|
||||||
<param name="revision">1ce6682c7f6cfe0426ed54a37c10775bea9d3502</param>
|
<param name="revision">1ce6682c7f6cfe0426ed54a37c10775bea9d3502</param>
|
||||||
</service>
|
</service>
|
||||||
<service mode="disabled" name="recompress">
|
<service mode="disabled" name="recompress">
|
||||||
|
|||||||
BIN
boringssl-0.20200921.tar.xz
LFS
Normal file
BIN
boringssl-0.20200921.tar.xz
LFS
Normal file
Binary file not shown.
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:06c23874008d413073f4ffd8330574e8a5265a8f31609f7400a84f5a695bce9a
|
|
||||||
size 27974920
|
|
||||||
@@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Oct 27 20:24:10 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Change version of the sources to 0.%%cd to avoid problems when
|
||||||
|
upgrading if the versioning changes.
|
||||||
|
- Added patch:
|
||||||
|
* soname-sover.patch
|
||||||
|
+ Replace patchelf run with patch that makes cmake produce the
|
||||||
|
shared libraries with the right SONAME and SOVER.
|
||||||
|
- Remove unnecessary dependencies on go, patchelf, ninja and
|
||||||
|
libunwind, since they are only needed for tests we are not
|
||||||
|
running
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Feb 9 08:08:42 UTC 2024 - Otto Hollmann <otto.hollmann@suse.com>
|
Fri Feb 9 08:08:42 UTC 2024 - Otto Hollmann <otto.hollmann@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
%define libname libboringssl%{sover}
|
%define libname libboringssl%{sover}
|
||||||
%define src_install_dir /usr/src/%{name}
|
%define src_install_dir /usr/src/%{name}
|
||||||
Name: boringssl
|
Name: boringssl
|
||||||
Version: 20200921
|
Version: 0.20200921
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: An SSL/TLS protocol implementation
|
Summary: An SSL/TLS protocol implementation
|
||||||
License: OpenSSL
|
License: OpenSSL
|
||||||
@@ -32,13 +32,10 @@ Patch1: 0003-enable-s390x-builds.patch
|
|||||||
Patch2: 0004-fix-alignment-for-ppc64le.patch
|
Patch2: 0004-fix-alignment-for-ppc64le.patch
|
||||||
Patch3: 0005-fix-alignment-for-arm.patch
|
Patch3: 0005-fix-alignment-for-arm.patch
|
||||||
Patch4: 0001-Compile-for-RISC-V.patch
|
Patch4: 0001-Compile-for-RISC-V.patch
|
||||||
|
Patch5: soname-sover.patch
|
||||||
BuildRequires: cmake >= 3.0
|
BuildRequires: cmake >= 3.0
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: go
|
|
||||||
BuildRequires: libunwind-devel
|
|
||||||
BuildRequires: ninja
|
|
||||||
BuildRequires: patchelf
|
|
||||||
ExclusiveArch: %{ix86} x86_64 aarch64 s390x ppc64le %arm riscv64
|
ExclusiveArch: %{ix86} x86_64 aarch64 s390x ppc64le %arm riscv64
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -85,11 +82,8 @@ Source files for BoringSSL implementation
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
# Install libraries
|
# Install libraries
|
||||||
install -D -m0755 build/libcrypto.so %{buildroot}%{_libdir}/libboringssl_crypto.so.%{sover}
|
install -D -m0755 build/libboringssl_crypto.so.%{sover} %{buildroot}%{_libdir}/libboringssl_crypto.so.%{sover}
|
||||||
install -D -m0755 build/libssl.so %{buildroot}%{_libdir}/libboringssl_ssl.so.%{sover}
|
install -D -m0755 build/libboringssl_ssl.so.%{sover} %{buildroot}%{_libdir}/libboringssl_ssl.so.%{sover}
|
||||||
# Add SOVER to SONAME fields in libraries
|
|
||||||
patchelf --set-soname libboringssl_crypto.so.%{sover} %{buildroot}%{_libdir}/libboringssl_crypto.so.%{sover}
|
|
||||||
patchelf --set-soname libboringssl_ssl.so.%{sover} %{buildroot}%{_libdir}/libboringssl_ssl.so.%{sover}
|
|
||||||
# Create links from *.so to *.so.SOVER
|
# Create links from *.so to *.so.SOVER
|
||||||
ln -sf libboringssl_crypto.so.%{sover} %{buildroot}%{_libdir}/libboringssl_crypto.so
|
ln -sf libboringssl_crypto.so.%{sover} %{buildroot}%{_libdir}/libboringssl_crypto.so
|
||||||
ln -sf libboringssl_ssl.so.%{sover} %{buildroot}%{_libdir}/libboringssl_ssl.so
|
ln -sf libboringssl_ssl.so.%{sover} %{buildroot}%{_libdir}/libboringssl_ssl.so
|
||||||
|
|||||||
46
soname-sover.patch
Normal file
46
soname-sover.patch
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
diff -urEbwB boringssl-20200921.orig/CMakeLists.txt boringssl-20200921/CMakeLists.txt
|
||||||
|
--- boringssl-20200921.orig/CMakeLists.txt 2024-10-27 21:00:08.071155909 +0100
|
||||||
|
+++ boringssl-20200921/CMakeLists.txt 2024-10-27 21:10:35.549252602 +0100
|
||||||
|
@@ -342,7 +342,7 @@
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_library(
|
||||||
|
- crypto
|
||||||
|
+ boringssl_crypto
|
||||||
|
|
||||||
|
${CRYPTO_ARCH_SOURCES}
|
||||||
|
err_data.c
|
||||||
|
@@ -577,8 +577,10 @@
|
||||||
|
src/crypto/x509v3/v3_utl.c
|
||||||
|
)
|
||||||
|
|
||||||
|
+set_target_properties(boringssl_crypto PROPERTIES SOVERSION 1)
|
||||||
|
+
|
||||||
|
add_library(
|
||||||
|
- ssl
|
||||||
|
+ boringssl_ssl
|
||||||
|
|
||||||
|
src/ssl/bio_ssl.cc
|
||||||
|
src/ssl/d1_both.cc
|
||||||
|
@@ -618,6 +620,8 @@
|
||||||
|
src/ssl/tls_record.cc
|
||||||
|
)
|
||||||
|
|
||||||
|
+set_target_properties(boringssl_ssl PROPERTIES SOVERSION 1)
|
||||||
|
+
|
||||||
|
add_executable(
|
||||||
|
bssl
|
||||||
|
|
||||||
|
@@ -639,10 +643,10 @@
|
||||||
|
src/tool/transport_common.cc
|
||||||
|
)
|
||||||
|
|
||||||
|
-target_link_libraries(bssl ssl crypto)
|
||||||
|
+target_link_libraries(bssl boringssl_ssl boringssl_crypto)
|
||||||
|
|
||||||
|
if(NOT WIN32 AND NOT ANDROID)
|
||||||
|
- target_link_libraries(crypto pthread)
|
||||||
|
+ target_link_libraries(boringssl_crypto pthread)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(WIN32)
|
||||||
Reference in New Issue
Block a user