File reproducible.patch of Package librime

Allow to not store last_build_time

so that openSUSE's brise package does not vary for every build
Index: librime-1.3.1+git20180822.19cea07e/src/rime/lever/deployment_tasks.cc
===================================================================
--- librime-1.3.1+git20180822.19cea07e.orig/src/rime/lever/deployment_tasks.cc
+++ librime-1.3.1+git20180822.19cea07e/src/rime/lever/deployment_tasks.cc
@@ -237,7 +237,10 @@ bool WorkspaceUpdate::Run(Deployer* depl
 
   the<Config> user_config(Config::Require("user_config")->Create("user"));
   // TODO: store as 64-bit number to avoid the year 2038 problem
-  user_config->SetInt("var/last_build_time", (int)time(NULL));
+  long long last_build_time = time(NULL);
+  if (getenv("SOURCE_DATE_EPOCH"))
+    last_build_time = 0;
+  user_config->SetInt("var/last_build_time", (int)last_build_time);
 
   return failure == 0;
 }
openSUSE Build Service is sponsored by