Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package hub for openSUSE:Factory checked in at 2024-01-22 20:34:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/hub (Old) and /work/SRC/openSUSE:Factory/.hub.new.16006 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "hub" Mon Jan 22 20:34:57 2024 rev:12 rq:1140389 version:2.14.2 Changes: -------- --- /work/SRC/openSUSE:Factory/hub/hub.changes 2020-03-07 21:41:38.708410160 +0100 +++ /work/SRC/openSUSE:Factory/.hub.new.16006/hub.changes 2024-01-22 20:35:05.383114238 +0100 @@ -1,0 +2,5 @@ +Sun Jan 7 16:01:26 UTC 2024 - Bernhard Wiedemann <[email protected]> + +- Add reproducible.patch for reproducible builds (boo#1062303) + +------------------------------------------------------------------- New: ---- reproducible.patch BETA DEBUG BEGIN: New: - Add reproducible.patch for reproducible builds (boo#1062303) BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ hub.spec ++++++ --- /var/tmp/diff_new_pack.N74PQq/_old 2024-01-22 20:35:05.987136298 +0100 +++ /var/tmp/diff_new_pack.N74PQq/_new 2024-01-22 20:35:05.991136444 +0100 @@ -25,6 +25,8 @@ Group: Development/Tools/Version Control URL: https://github.com/github/hub Source: https://github.com/github/%{name}/archive/v%{ver}.tar.gz#/%{name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM https://github.com/mislav/hub/pull/3344 +Patch0: reproducible.patch BuildRequires: fish BuildRequires: go BuildRequires: groff @@ -38,7 +40,7 @@ extra features and commands that make working with GitHub easier. %prep -%setup -q -n %{name}-%{ver} +%autosetup -p1 -n %{name}-%{ver} sed -i -e 's#bin/ronn --#ronn --#' -e 's#script/bootstrap#true#' Makefile chmod +x script/install.sh sed -i -e 's#cd .*#true#' script/install.sh ++++++ reproducible.patch ++++++ https://github.com/mislav/hub/pull/3344 >From 64805c5e92fc270ce01afd6980a8fa8a604f2ac8 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" <[email protected]> Date: Sat, 11 Nov 2023 03:06:48 +0100 Subject: [PATCH] Use go -trimpath per golang/go#63851 this is the recommended way to achieve reproducible builds. This patch was done while working on reproducible builds for openSUSE. --- Makefile | 4 ++-- script/build | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) Index: hub-2.14.2/Makefile =================================================================== --- hub-2.14.2.orig/Makefile +++ hub-2.14.2/Makefile @@ -9,8 +9,8 @@ export GO111MODULE=on unexport GOPATH export LDFLAGS := -extldflags '$(LDFLAGS)' -export GCFLAGS := all=-trimpath '$(PWD)' -export ASMFLAGS := all=-trimpath '$(PWD)' +export GCFLAGS := +export ASMFLAGS := MIN_COVERAGE = 90.2 Index: hub-2.14.2/script/build =================================================================== --- hub-2.14.2.orig/script/build +++ hub-2.14.2/script/build @@ -17,6 +17,7 @@ build_hub() { -ldflags "-X github.com/github/hub/version.Version=`./script/version` $LDFLAGS" \ -gcflags "$GCFLAGS" \ -asmflags "$ASMFLAGS" \ + -trimpath \ -o "$1" }
