summaryrefslogtreecommitdiffstats
path: root/meta-openembedded/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-remove-configure-options-from-versioninfo.patch
blob: 2d540967e5823f7d4cfc037ab9cd7eb3f9a301a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
From f592398b1c659f84168f5c84f63af3b71454b8f5 Mon Sep 17 00:00:00 2001
From: Hongxu Jia <hongxu.jia@windriver.com>
Date: Fri, 28 Sep 2018 22:59:23 +0800
Subject: [PATCH] remove configure options from versioninfo

Configure options contains host build paths which breaks
binary reproducibility.

It is no harm to remove it from version info.

Upstream-Status: Inappropriate [cross compile specific]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 agent/mibgroup/ucd-snmp/versioninfo.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/agent/mibgroup/ucd-snmp/versioninfo.c b/agent/mibgroup/ucd-snmp/versioninfo.c
index a5151c1..1160382 100644
--- a/agent/mibgroup/ucd-snmp/versioninfo.c
+++ b/agent/mibgroup/ucd-snmp/versioninfo.c
@@ -92,7 +92,7 @@ var_extensible_version(struct variable *vp,
     static char     errmsg[300];
     char           *cptr;
     time_t          curtime;
-#ifdef NETSNMP_CONFIGURE_OPTIONS
+#if 0
     static char     config_opts[] = NETSNMP_CONFIGURE_OPTIONS;
 #endif
 
@@ -126,7 +126,7 @@ var_extensible_version(struct variable *vp,
         *var_len = strlen(errmsg);
         return ((u_char *) errmsg);
     case VERCONFIG:
-#ifdef NETSNMP_CONFIGURE_OPTIONS
+#if 0
         *var_len = strlen(config_opts);
         if (*var_len > 1024)
             *var_len = 1024;    /* mib imposed restriction */
-- 
2.7.4

OpenPOWER on IntegriCloud