forked from pool/openvas-smb
Accepting request 1077873 from security:OpenVAS:STABLE
Add reproducible.patch to omit build date (boo#1047218) OBS-URL: https://build.opensuse.org/request/show/1077873 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvas-smb?expand=0&rev=2
This commit is contained in:
commit
5517ddfc8b
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 9 12:08:44 UTC 2022 - Bernhard Wiedemann <bwiedemann@suse.com>
|
||||||
|
|
||||||
|
- Add reproducible.patch to omit build date (boo#1047218)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jan 9 23:23:19 UTC 2020 - Martin Hauke <mardnh@gmx.de>
|
Thu Jan 9 23:23:19 UTC 2020 - Martin Hauke <mardnh@gmx.de>
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ Source: https://github.com/greenbone/%{name}/archive/v%{version}.tar.gz#
|
|||||||
Source98: https://github.com/greenbone/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz.sig
|
Source98: https://github.com/greenbone/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz.sig
|
||||||
Source99: https://www.greenbone.net/GBCommunitySigningKey.asc#/%{name}.keyring
|
Source99: https://www.greenbone.net/GBCommunitySigningKey.asc#/%{name}.keyring
|
||||||
Patch0: 0001-Fix-heimdal-gssapi-dependencies.patch
|
Patch0: 0001-Fix-heimdal-gssapi-dependencies.patch
|
||||||
|
Patch1: reproducible.patch
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
BuildRequires: graphviz
|
BuildRequires: graphviz
|
||||||
@ -86,8 +87,7 @@ This subpackage contains libraries and header files for developing
|
|||||||
applications that want to make use of libopenvas_wmiclient.
|
applications that want to make use of libopenvas_wmiclient.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -p1
|
||||||
%patch0 -p1
|
|
||||||
# Fix libheimdal include path
|
# Fix libheimdal include path
|
||||||
find . -name '*.[c\|h]' -print0 | xargs -0 sed -i 's|heimdal\/||g'
|
find . -name '*.[c\|h]' -print0 | xargs -0 sed -i 's|heimdal\/||g'
|
||||||
|
|
||||||
|
27
reproducible.patch
Normal file
27
reproducible.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
https://github.com/greenbone/openvas-smb/pull/40
|
||||||
|
commit 195440b141e198740d06d1391a9d4de44521855a
|
||||||
|
Author: Bernhard M. Wiedemann <bwiedemann@suse.de>
|
||||||
|
Date: Sat Jun 12 05:42:28 2021 +0200
|
||||||
|
|
||||||
|
Omit timestamp from PE executable
|
||||||
|
|
||||||
|
to make binaries reproducible.
|
||||||
|
See https://reproducible-builds.org/ for why this is good.
|
||||||
|
|
||||||
|
This PR was done while working on reproducible builds for openSUSE.
|
||||||
|
|
||||||
|
Co-authored-by: Jaspar L. <jaspar.loechte@greenbone.net>
|
||||||
|
|
||||||
|
Index: openvas-smb-1.0.5/winexe/CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- openvas-smb-1.0.5.orig/winexe/CMakeLists.txt
|
||||||
|
+++ openvas-smb-1.0.5/winexe/CMakeLists.txt
|
||||||
|
@@ -71,7 +71,7 @@ set (BINTOC_SOURCES
|
||||||
|
|
||||||
|
add_custom_command(
|
||||||
|
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/winexesvc.exe
|
||||||
|
- COMMAND ${MINGW_GCC} ${WINEXESVC_SOURCES} -o winexesvc.exe
|
||||||
|
+ COMMAND ${MINGW_GCC} -Xlinker --no-insert-timestamp ${WINEXESVC_SOURCES} -o winexesvc.exe
|
||||||
|
DEPENDS ${WINEXESVC_SOURCES})
|
||||||
|
|
||||||
|
add_custom_command(
|
Loading…
x
Reference in New Issue
Block a user