From ef8a50cd94de20b9d81935f73e65f06a74b0bcf427d6ff7f97c00ef5f51a7edc Mon Sep 17 00:00:00 2001 From: Nicolas Morey Date: Wed, 3 Jan 2024 09:25:28 +0000 Subject: [PATCH] Accepting request 1133866 from home:bmwiedemann:branches:science:HPC - Add reproducible.patch to override build date (boo#1047218) and switch to autosetup (needed adaption of patch4) OBS-URL: https://build.opensuse.org/request/show/1133866 OBS-URL: https://build.opensuse.org/package/show/science:HPC/mpi-selector?expand=0&rev=4 --- mpi-selector-no_bang_line.patch | 8 ++++---- mpi-selector.changes | 5 +++++ mpi-selector.spec | 5 ++--- reproducible.patch | 13 +++++++++++++ 4 files changed, 24 insertions(+), 7 deletions(-) create mode 100644 reproducible.patch diff --git a/mpi-selector-no_bang_line.patch b/mpi-selector-no_bang_line.patch index b32dc88..801bdda 100644 --- a/mpi-selector-no_bang_line.patch +++ b/mpi-selector-no_bang_line.patch @@ -1,7 +1,7 @@ Index: mpi-selector.csh.in =================================================================== ---- mpi-selector.csh.in.orig 2009-08-02 09:58:22.000000000 +0200 -+++ mpi-selector.csh.in 2010-12-10 16:44:40.618387677 +0100 +--- a/mpi-selector.csh.in.orig 2009-08-02 09:58:22.000000000 +0200 ++++ b/mpi-selector.csh.in 2010-12-10 16:44:40.618387677 +0100 @@ -1,4 +1,3 @@ -#!/bin/csh # Copyright (c) 2007 Cisco Systems, Inc. All rights reserved. @@ -9,8 +9,8 @@ Index: mpi-selector.csh.in # File installed for Bourne-shell startups to select which MPI Index: mpi-selector.sh.in =================================================================== ---- mpi-selector.sh.in.orig 2009-08-02 09:58:22.000000000 +0200 -+++ mpi-selector.sh.in 2010-12-10 16:44:44.690098294 +0100 +--- a/mpi-selector.sh.in.orig 2009-08-02 09:58:22.000000000 +0200 ++++ b/mpi-selector.sh.in 2010-12-10 16:44:44.690098294 +0100 @@ -1,4 +1,3 @@ -#!/bin/sh # Copyright (c) 2007 Cisco Systems, Inc. All rights reserved. diff --git a/mpi-selector.changes b/mpi-selector.changes index c400c6a..195f84e 100644 --- a/mpi-selector.changes +++ b/mpi-selector.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Dec 18 13:34:45 UTC 2023 - Bernhard Wiedemann + +- Add reproducible.patch to override build date (boo#1047218) + ------------------------------------------------------------------- Wed Oct 5 08:17:39 UTC 2022 - Nicolas Morey-Chaisemartin diff --git a/mpi-selector.spec b/mpi-selector.spec index 1e4ec8b..0846d55 100644 --- a/mpi-selector.spec +++ b/mpi-selector.spec @@ -29,6 +29,7 @@ Group: System/Console Source: http://www.openfabrics.org/downloads/mpi-selector/%{name}-%{version}.tar.gz Patch3: mpi-selector-perl_path.patch Patch4: mpi-selector-no_bang_line.patch +Patch5: reproducible.patch BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf @@ -46,9 +47,7 @@ The default can be changed easily via the mpi-selector command -- editing of shell startup files is not required. %prep -%setup -q -%patch3 -p1 -%patch4 +%autosetup -p1 %build %configure --with-shell-startup-dir=/etc/profile.d --localstatedir=%{data_dir} diff --git a/reproducible.patch b/reproducible.patch new file mode 100644 index 0000000..a85aebb --- /dev/null +++ b/reproducible.patch @@ -0,0 +1,13 @@ +Index: mpi-selector-1.0.3/configure +=================================================================== +--- mpi-selector-1.0.3.orig/configure ++++ mpi-selector-1.0.3/configure +@@ -1730,7 +1730,7 @@ MPI_SELECTOR_MPIVARS_BASENAME="mpivars" + prefix=$prefix_save + + # Information for the man page +-MAN_DATE=`date "+%B %d, %Y"` ++MAN_DATE=`date -r README "+%B %d, %Y"` + + + # Party on