From mboxrd@z Thu Jan 1 00:00:00 1970 From: ison Subject: Re: Version of package fontforge Date: Thu, 6 Jun 2019 22:53:12 -0600 Message-ID: <20190607045311.2aiuulc5f6p6eibk@cf0> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="cgmzll3m4gl75noo" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38554) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hZ6sT-0002V6-Gq for help-guix@gnu.org; Fri, 07 Jun 2019 00:53:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hZ6sS-0003Vd-Es for help-guix@gnu.org; Fri, 07 Jun 2019 00:53:21 -0400 Received: from mx1.cock.li ([185.10.68.5]:58101 helo=cock.li) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hZ6sR-0003Ah-2e for help-guix@gnu.org; Fri, 07 Jun 2019 00:53:19 -0400 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Tilman List Cc: help-guix@gnu.org --cgmzll3m4gl75noo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Here's a patch to set the version date based on the packages version string. I also added a comment above the version to note that the version date depends on its format, in case it ever changes in the future. Does someone want to look it over and make sure it looks ok, and follows the right conventions? --cgmzll3m4gl75noo Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-Fix-fontforge-source-date-epoch.patch" >From e2fe29485a1f65d65fd7db5b6111d4cfe8ca1485 Mon Sep 17 00:00:00 2001 From: ison Date: Thu, 6 Jun 2019 22:46:12 -0600 Subject: [PATCH] Fix fontforge source date epoch --- gnu/packages/fontutils.scm | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/gnu/packages/fontutils.scm b/gnu/packages/fontutils.scm index 1982d0bf4b..44107277cb 100644 --- a/gnu/packages/fontutils.scm +++ b/gnu/packages/fontutils.scm @@ -555,6 +555,8 @@ definitions.") (define-public fontforge (package (name "fontforge") + ;; SOURCE_DATE_EPOCH generated from version string + ;; expects format YYYYMMDD (version "20190317") (source (origin (method url-fetch) @@ -592,7 +594,18 @@ definitions.") ("python" ,python-2) ("zlib" ,zlib))) (arguments - '(#:phases + `(#:modules ((guix build utils) + (guix build gnu-build-system) + (srfi srfi-19)) + #:configure-flags + (list (format #f "SOURCE_DATE_EPOCH=~a" + (time-second + (date->time-utc + (string->date + (string-append ,version + "-0000") + "~Y~m~d~z"))))) + #:phases (modify-phases %standard-phases (add-after 'install 'set-library-path (lambda* (#:key inputs outputs #:allow-other-keys) -- 2.21.0 --cgmzll3m4gl75noo--