File reproducible.patch of Package gputils
Index: gputils-1.5.0/libgputils/gpcofflink.c
===================================================================
--- gputils-1.5.0.orig/libgputils/gpcofflink.c
+++ gputils-1.5.0/libgputils/gpcofflink.c
@@ -146,7 +146,7 @@ gp_cofflink_combine_objects(gp_object_t
gp_object_t *object_list;
/* assign the time the operation occured */
- Object->time = (uint32_t)time(NULL);
+ Object->time = (uint32_t)time(NULL);
/* append the sections onto the list */
object_list = Object->next;
Index: gputils-1.5.0/libgputils/gparchive.c
===================================================================
--- gputils-1.5.0.orig/libgputils/gparchive.c
+++ gputils-1.5.0/libgputils/gparchive.c
@@ -221,7 +221,7 @@ gp_archive_add_member(gp_archive_t *Arch
/* fill in the archive header */
memset(&new_member->header, ' ', AR_HDR_SIZ); /* fill the header with space */
- timer = (int)time(NULL);
+ timer = (int)time(NULL);
snprintf(name, sizeof(name), "%s/", Object_name);
snprintf(date, sizeof(date), "%il", timer);
Index: gputils-1.5.0/gputils/gpstrip.c
===================================================================
--- gputils-1.5.0.orig/gputils/gpstrip.c
+++ gputils-1.5.0/gputils/gpstrip.c
@@ -412,7 +412,7 @@ int main(int argc, char *argv[])
if (!state.preserve_dates) {
/* FIXME: need to update the output file dates */
- state.object->time = (long)time(NULL);
+ state.object->time = (long)time(NULL);
}
if (gp_num_errors == 0) {
Index: gputils-1.5.0/libgputils/gpcod.c
===================================================================
--- gputils-1.5.0.orig/libgputils/gpcod.c
+++ gputils-1.5.0/libgputils/gpcod.c
@@ -33,6 +33,7 @@ _cod_time(uint8_t *Buffer, size_t Sizeof
unsigned int value;
time(&now);
+
local = localtime(&now);
value = (local->tm_hour * 100) + local->tm_min;
gp_putl16(Buffer, value);
@@ -49,6 +50,7 @@ _cod_Pdate(uint8_t *Pascal_str, size_t P
size_t length;
time(&now);
+ now=0x4000000;
#ifdef HAVE_LOCALE_H
setlocale(LC_ALL, "C");
#endif
Index: gputils-1.5.0/libgputils/gpcoffgen.c
===================================================================
--- gputils-1.5.0.orig/libgputils/gpcoffgen.c
+++ gputils-1.5.0/libgputils/gpcoffgen.c
@@ -44,7 +44,7 @@ gp_coffgen_new_object(const char *File_n
object->filename = GP_Strdup(File_name);
object->processor = gp_find_processor("generic");
object->class = PROC_CLASS_GENERIC;
- object->time = (uint32_t)time(NULL);
+ object->time = (uint32_t)2000000;//time(NULL);
object->serial_id = object_serial_id++;
gp_list_set_delete_node_func(&object->section_list, (gp_node_del_t)gp_coffgen_free_section);