Drop date attribute from our appdata files
authorBernhard M. Wiedemann <bwiedemann@suse.de>
Mon, 6 Sep 2021 08:05:31 +0000 (10:05 +0200)
committerBernhard M. Wiedemann <bwiedemann@suse.de>
Tue, 19 Oct 2021 07:38:36 +0000 (09:38 +0200)
in order to make builds reproducible.
See https://reproducible-builds.org/ for why this is good

This was suggested by Matthias Clasen as an alternative to MR !3929

demos/gtk-demo/org.gtk.Demo4.appdata.xml.in
demos/icon-browser/org.gtk.IconBrowser4.appdata.xml.in
demos/meson.build
demos/widget-factory/org.gtk.WidgetFactory4.appdata.xml.in

index a1a468c40754ea93aa382984da78af5da42fbd55..87f9267e677990e2c9ce553a81485a71f47e30ef 100644 (file)
@@ -33,7 +33,7 @@
   <developer_name>Matthias Clasen and others</developer_name>
   <content_rating type="oars-1.1"/>
   <releases>
-    <release version="@BUILD_VERSION@" date="@BUILD_DATE@">
+    <release version="@BUILD_VERSION@">
       <description>
         <p>A new build of GTK.</p>
       </description>
index 8cfaaa2b49acbd61c4ef0c0d1e87b53eed396a2b..87add813245daa39b42643f0ed722c7b5dd5d944 100644 (file)
@@ -32,7 +32,7 @@
   <developer_name>Matthias Clasen and others</developer_name>
   <content_rating type="oars-1.1"/>
   <releases>
-    <release version="@BUILD_VERSION@" date="@BUILD_DATE@">
+    <release version="@BUILD_VERSION@">
       <description>
         <p>A new build of GTK.</p>
       </description>
index de720925f6cd49a52f0e2dfd0bd7b1e2530293a3..550f90b0de9928cb73816359a70ff648224378d0 100644 (file)
@@ -12,19 +12,9 @@ demo_conf_h = declare_dependency(
 )
 
 # appdata
-today = 'unknown'
-date = find_program('date',
-         required: false)
-if date.found()
-  r = run_command(date, '-I')
-  if r.returncode() == 0
-    today = r.stdout().strip()
-  endif
-endif
 
 appdata_config = configuration_data()
 appdata_config.set('BUILD_VERSION', meson.project_version())
-appdata_config.set('BUILD_DATE', today)
 
 subdir('constraint-editor')
 subdir('gtk-demo')
index 7f8c4e56177e8799e2e52edba38cecdd0b5aeada..284b7419c2f6c311da5cc74356e9869fc8584c75 100644 (file)
@@ -34,7 +34,7 @@
   <developer_name>Matthias Clasen and others</developer_name>
   <content_rating type="oars-1.1"/>
   <releases>
-    <release version="@BUILD_VERSION@" date="@BUILD_DATE@">
+    <release version="@BUILD_VERSION@">
       <description>
         <p>A new build of GTK.</p>
       </description>