Package: avarice / 2.13+svn347-4

reproducible-build.patch Patch series | download
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
Description: Reproducible builds: Remove usage of __DATE__ and __TIME__
Author: Tobias Frost <tobi@debian.org>
Forwarded: no, Debian specific
Last-Update: 2015-06-16
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/main.cc
+++ b/src/main.cc
@@ -371,8 +371,8 @@
     unsigned int bits_before = 0;
     unsigned int bits_after = 0;
 
-    statusOut("AVaRICE version %s, %s %s\n\n",
-	      PACKAGE_VERSION, __DATE__, __TIME__);
+    statusOut("AVaRICE version %s\n\n",
+	      PACKAGE_VERSION);
 
     device_name = 0;
 
@@ -673,7 +673,7 @@
             if( (program) || (verify))
             {
 #if ENABLE_TARGET_PROGRAMMING
-                fprintf(stderr, 
+                fprintf(stderr,
                    "\nERROR: Filename not specified."
                    " Use the --file option.\n");
                 throw jtag_exception();
--- a/src/remote.cc
+++ b/src/remote.cc
@@ -168,7 +168,7 @@
     }
 
     return (int)c;
-}    
+}
 
 static const unsigned char hexchars[] = "0123456789abcdef";
 
@@ -441,7 +441,7 @@
     if (theJtagICE->codeBreakpointAt(newPC))
 	return true;
     // assume interrupt when PC goes into interrupt table
-    if (ignoreInterrupts && newPC < theJtagICE->deviceDef->vectors_end) 
+    if (ignoreInterrupts && newPC < theJtagICE->deviceDef->vectors_end)
 	return handleInterrupt();
 
     return true;
@@ -619,8 +619,8 @@
     if (strncmp(cmd, "version", ln) == 0)
     {
         char reply[80];
-        sprintf(reply, "AVaRICE version %s, %s %s\n",
-                PACKAGE_VERSION, __DATE__, __TIME__);
+        sprintf(reply, "AVaRICE version %s\n",
+                PACKAGE_VERSION);
         replyString(reply);
         return true;
     }
@@ -865,7 +865,7 @@
 
         // Read in SPL SPH SREG
         jtagBuffer = theJtagICE->jtagRead(theJtagICE->statusAreaAddress(), 0x03);
-     
+
         if (jtagBuffer)
         {
             // We have SPL SPH SREG and need SREG SPL SPH
@@ -940,7 +940,7 @@
                 {
                     // Request for a sequence of io registers
                     int offset;
-                    i = 0; 
+                    i = 0;
                     j = 0;
                     int count;
                     unsigned int addr;
@@ -982,7 +982,7 @@
 
                             for (count = 0; count < j; count++)
                             {
-                                if ((io_reg_defs[i+count].name == 0x00) 
+                                if ((io_reg_defs[i+count].name == 0x00)
                                     || (io_reg_defs[i+count].flags != 0x00)
                                     || (io_reg_defs[i+count].reg_addr != addr))
                                 {
@@ -990,14 +990,14 @@
                                 }
                                 addr++;
                             }
-								
+
                             if (count)
                             {
                                 // Read consecutive address io_registers
                                 jtagBuffer = theJtagICE->jtagRead(DATA_SPACE_ADDR_OFFSET +
                                                       io_reg_defs[i].reg_addr,
                                                       count);
-								
+
                                 if (jtagBuffer)
                                 {
                                     int k = 0;