Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
erlang
1198-snmp-Make-snmp-build-reproducibly.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1198-snmp-Make-snmp-build-reproducibly.patch of Package erlang
From 4c14087401703d3094c52c7e9387643ab565e979 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20de=20Bretagne?= <jerome.debretagne@gmail.com> Date: Sun, 28 Mar 2021 16:04:49 +0200 Subject: [PATCH] snmp: Make snmp build reproducibly Remove the current date/time and snmp version from the header section of .hrl files generated by snmpc_mib_to_hrl. Contributes to #4417 (ERL-1445) and #4482 (ERL-1446). --- lib/snmp/src/compile/snmpc_mib_to_hrl.erl | 31 +++++------------------ 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/lib/snmp/src/compile/snmpc_mib_to_hrl.erl b/lib/snmp/src/compile/snmpc_mib_to_hrl.erl index bc18afbdc9..c214bca93c 100644 --- a/lib/snmp/src/compile/snmpc_mib_to_hrl.erl +++ b/lib/snmp/src/compile/snmpc_mib_to_hrl.erl @@ -1,8 +1,8 @@ -%% +%% %% %CopyrightBegin% -%% -%% Copyright Ericsson AB 1996-2016. All Rights Reserved. -%% +%% +%% Copyright Ericsson AB 1996-2021. All Rights Reserved. +%% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. %% You may obtain a copy of the License at @@ -14,9 +14,9 @@ %% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. %% See the License for the specific language governing permissions and %% limitations under the License. -%% +%% %% %CopyrightEnd% -%% +%% -module(snmpc_mib_to_hrl). @@ -84,11 +84,7 @@ resolve(Types, MEs, Traps, HrlFile, MibName) -> insert_header(Fd) -> ?vdebug("insert file header", []), io:format(Fd, "%%% This file was automatically generated by " - "snmpc_mib_to_hrl version ~s~n", [?version]), - {Y,Mo,D} = date(), - {H,Mi,S} = time(), - io:format(Fd, "%%% Date: ~2.2.0w-~s-~w::~2.2.0w:~2.2.0w:~2.2.0w~n", - [D,month(Mo),Y,H,Mi,S]). + "snmpc_mib_to_hrl~n", []). insert_begin(Fd, MibName) -> ?vdebug("insert file begin", []), @@ -309,19 +305,6 @@ insert_range2([_|T],Fd) -> insert_range2([],_Fd) -> ok. -month(1) -> "Jan"; -month(2) -> "Feb"; -month(3) -> "Mar"; -month(4) -> "Apr"; -month(5) -> "May"; -month(6) -> "Jun"; -month(7) -> "Jul"; -month(8) -> "Aug"; -month(9) -> "Sep"; -month(10) -> "Oct"; -month(11) -> "Nov"; -month(12) -> "Dec". - %%%----------------------------------------------------------------- %%% Interface for erl_compile. %%%----------------------------------------------------------------- -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor