Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | From f592398b1c659f84168f5c84f63af3b71454b8f5 Mon Sep 17 00:00:00 2001 |
| 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
| 3 | Date: Fri, 28 Sep 2018 22:59:23 +0800 |
| 4 | Subject: [PATCH] remove configure options from versioninfo |
| 5 | |
| 6 | Configure options contains host build paths which breaks |
| 7 | binary reproducibility. |
| 8 | |
| 9 | It is no harm to remove it from version info. |
| 10 | |
| 11 | Upstream-Status: Inappropriate [cross compile specific] |
| 12 | |
| 13 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
| 14 | --- |
| 15 | agent/mibgroup/ucd-snmp/versioninfo.c | 4 ++-- |
| 16 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 17 | |
| 18 | diff --git a/agent/mibgroup/ucd-snmp/versioninfo.c b/agent/mibgroup/ucd-snmp/versioninfo.c |
| 19 | index a5151c1..1160382 100644 |
| 20 | --- a/agent/mibgroup/ucd-snmp/versioninfo.c |
| 21 | +++ b/agent/mibgroup/ucd-snmp/versioninfo.c |
| 22 | @@ -92,7 +92,7 @@ var_extensible_version(struct variable *vp, |
| 23 | static char errmsg[300]; |
| 24 | char *cptr; |
| 25 | time_t curtime; |
| 26 | -#ifdef NETSNMP_CONFIGURE_OPTIONS |
| 27 | +#if 0 |
| 28 | static char config_opts[] = NETSNMP_CONFIGURE_OPTIONS; |
| 29 | #endif |
| 30 | |
| 31 | @@ -126,7 +126,7 @@ var_extensible_version(struct variable *vp, |
| 32 | *var_len = strlen(errmsg); |
| 33 | return ((u_char *) errmsg); |
| 34 | case VERCONFIG: |
| 35 | -#ifdef NETSNMP_CONFIGURE_OPTIONS |
| 36 | +#if 0 |
| 37 | *var_len = strlen(config_opts); |
| 38 | if (*var_len > 1024) |
| 39 | *var_len = 1024; /* mib imposed restriction */ |
| 40 | -- |
| 41 | 2.7.4 |
| 42 | |