Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:tw_rocks_49
gprolog
gprolog-1.5.0-use-source_date_epoch.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gprolog-1.5.0-use-source_date_epoch.patch of Package gprolog
From c74ba44e1e6ee5e0cb1dda9d1eabf97b725c0a7e Mon Sep 17 00:00:00 2001 From: Antoine Belvire <antoine.belvire@opensuse.org> Date: Sat, 4 Sep 2021 21:11:38 +0200 Subject: [PATCH] Use SOURCE_DATE_EPOCH for reproducible builds --- src/configure | 8 ++++++-- src/configure.in | 9 +++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/configure b/src/configure index 4d448bd0..fe5ca063 100755 --- a/src/configure +++ b/src/configure @@ -2459,15 +2459,19 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu +_date() +{ + LC_ALL=C date --date "@${SOURCE_DATE_EPOCH:-$(date +%s)}" "$@" +} pl_date() { - LC_ALL=C date '+%b %e %Y' + _date '+%b %e %Y' } pl_year() { - LC_ALL=C date '+%Y' + _date '+%Y' } PROLOG_NAME='GNU Prolog' diff --git a/src/configure.in b/src/configure.in index 31072573..08b3d9de 100644 --- a/src/configure.in +++ b/src/configure.in @@ -11,14 +11,19 @@ dnl *************************** dnl * initial variable values * dnl *************************** +_date() +{ + LC_ALL=C date --date "@${SOURCE_DATE_EPOCH:-$(date +%s)}" "$@" +} + pl_date() { - LC_ALL=C date '+%b %e %Y' + _date '+%b %e %Y' } pl_year() { - LC_ALL=C date '+%Y' + _date '+%Y' } PROLOG_NAME='GNU Prolog' -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor