From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtprelay02.ispgateway.de ([80.67.31.25]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1S1iKc-0001jw-Fz for ptxdist@pengutronix.de; Sun, 26 Feb 2012 18:56:23 +0100 Received: from [88.217.117.217] (helo=localhost) by smtprelay02.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1S1iKc-0002Pm-3J for ptxdist@pengutronix.de; Sun, 26 Feb 2012 18:56:22 +0100 From: Bernhard Walle Date: Sun, 26 Feb 2012 18:56:18 +0100 Message-Id: <1330278978-2991-1-git-send-email-bernhard@bwalle.de> Subject: [ptxdist] [PATCH] {os-release, rootfs}.make: Don't rely on GNU date Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de date -Iseconds is a GNU extension. Since that one is only used in two places, don't check for GNU date but use the portable variant (format specifiers). Signed-off-by: Bernhard Walle --- rules/os-release.make | 2 +- rules/rootfs.make | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rules/os-release.make b/rules/os-release.make index 3f41374..eb32535 100644 --- a/rules/os-release.make +++ b/rules/os-release.make @@ -46,7 +46,7 @@ $(STATEDIR)/os-release.targetinstall: $(PTXDIST_PTXCONFIG) $(PTXDIST_PLATFORMCON @PTXDIST_VERSION@, $(PTXDIST_VERSION_FULL)) @$(call install_replace, os-release, /etc/os-release, \ - @DATE@, $(shell date -Iseconds)) + @DATE@, $(shell date +%Y-%M-%dT%H:%M:%S%z)) @$(call install_finish,os-release) diff --git a/rules/rootfs.make b/rules/rootfs.make index 13a5f2c..ed30235 100644 --- a/rules/rootfs.make +++ b/rules/rootfs.make @@ -185,7 +185,7 @@ ifdef PTXCONF_ROOTFS_ISSUE @$(call install_replace, rootfs, /etc/issue, \ @EXTRAVERSION@, $(PTXDIST_VERSION_SCM)) @$(call install_replace, rootfs, /etc/issue, \ - @DATE@, $(shell date -Iseconds)) + @DATE@, $(shell date +%Y-%M-%dT%H:%M:%S%z)) @$(call install_replace, rootfs, /etc/issue, \ @VENDOR@, $(PTXCONF_PROJECT_VENDOR)) @$(call install_replace, rootfs, /etc/issue, \ -- 1.7.9 -- ptxdist mailing list ptxdist@pengutronix.de