From 9de0d8a60d627cacd4c3413301e5a15b7c9526ab Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Wed, 19 Aug 2015 16:05:51 +0200 Subject: [PATCH] xbps-create: do not add a build-date property to packages. --- NEWS | 2 ++ bin/xbps-create/main.c | 19 ------------------- data/_xbps | 1 - data/xbps.bash | 1 - doc/xbps_pkg_props_dictionary.dot | 4 ---- 5 files changed, 2 insertions(+), 25 deletions(-) diff --git a/NEWS b/NEWS index 678232ea..6e0b7df3 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,8 @@ xbps-0.48 (???): extra alphanumeric characters in the `reverts' object. Added a new testcase to verify its correctness. + * xbps-create(1): do not add a build-date property to packages. + xbps-0.47 (2015-07-18): * When executing pkg configuration, override the umask with sane defaults. diff --git a/bin/xbps-create/main.c b/bin/xbps-create/main.c index 2735d532..3d7c367b 100644 --- a/bin/xbps-create/main.c +++ b/bin/xbps-create/main.c @@ -585,24 +585,6 @@ process_archive(struct archive *ar, } } -static void -set_build_date(void) -{ - char outstr[64]; - time_t t; - struct tm *tmp; - - t = time(NULL); - tmp = localtime(&t); - assert(tmp); - - if (strftime(outstr, sizeof(outstr)-1, "%F %R %Z", tmp) == 0) - die("failed to set build-date object (strftime):"); - - if (!xbps_dictionary_set_cstring(pkg_propsd, "build-date", outstr)) - die("failed to add build-date object:"); -} - int main(int argc, char **argv) { @@ -778,7 +760,6 @@ main(int argc, char **argv) xbps_dictionary_set_cstring_nocopy(pkg_propsd, "version", version); xbps_dictionary_set_cstring_nocopy(pkg_propsd, "pkgver", pkgver); xbps_dictionary_set_cstring_nocopy(pkg_propsd, "short_desc", desc); - set_build_date(); /* Optional properties */ if (homepage) diff --git a/data/_xbps b/data/_xbps index 16d38d71..a4c8007e 100644 --- a/data/_xbps +++ b/data/_xbps @@ -14,7 +14,6 @@ _xbps_properties=( architecture archive-compression-type automatic-install - build-date build-options conf_files conflicts diff --git a/data/xbps.bash b/data/xbps.bash index 08248894..af36b472 100644 --- a/data/xbps.bash +++ b/data/xbps.bash @@ -45,7 +45,6 @@ _xbps_complete() { local props='architecture archive-compression-type automatic-install - build-date build-options conf_files conflicts diff --git a/doc/xbps_pkg_props_dictionary.dot b/doc/xbps_pkg_props_dictionary.dot index 2c7a90db..b5ccfc12 100644 --- a/doc/xbps_pkg_props_dictionary.dot +++ b/doc/xbps_pkg_props_dictionary.dot @@ -29,10 +29,6 @@ digraph pkg_props_dictionary { instsize -> instsize_value; instsize_value [style=filled,fillcolor="yellowgreen",label="389120"]; instsize [label="installed_size"]; - main -> builddate [label="string"]; - builddate [label="build_date"]; - builddate -> builddate_value; - builddate_value [style=filled,fillcolor="yellowgreen",label="Friday 27 May, 2011, 06:58:13 UTC"]; main -> short_desc [label="string"] short_desc -> shortdesc_val; shortdesc_val [style=filled,fillcolor="yellowgreen",label="The XBPS package system utilities"];