Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package lsof for openSUSE:Factory checked in 
at 2022-05-22 20:26:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lsof (Old)
 and      /work/SRC/openSUSE:Factory/.lsof.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lsof"

Sun May 22 20:26:21 2022 rev:41 rq:978256 version:4.95.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/lsof/lsof.changes        2022-05-10 
15:11:23.787529655 +0200
+++ /work/SRC/openSUSE:Factory/.lsof.new.1538/lsof.changes      2022-05-22 
20:26:32.790186305 +0200
@@ -1,0 +2,6 @@
+Fri May 20 09:55:56 UTC 2022 - Danilo Spinella <danilo.spine...@suse.com>
+
+- Fix hostname in reproducible builds, bsc#1199709
+  * remove-hostname.patch
+
+-------------------------------------------------------------------

New:
----
  remove-hostname.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ lsof.spec ++++++
--- /var/tmp/diff_new_pack.GERzMv/_old  2022-05-22 20:26:33.266187006 +0200
+++ /var/tmp/diff_new_pack.GERzMv/_new  2022-05-22 20:26:33.270187013 +0200
@@ -24,6 +24,9 @@
 Group:          System/Monitoring
 URL:            https://github.com/lsof-org/lsof
 Source:         
https://github.com/lsof-org/lsof/releases/download/%{version}/lsof_%{version}.linux.tar.bz2
+# PATCH-FIX-UPSTREAM danilo.spine...@suse.com bsc#1199709
+# https://github.com/lsof-org/lsof/pull/217
+Patch0:         remove-hostname.patch
 BuildRequires:  libselinux-devel
 BuildRequires:  xz
 
@@ -37,6 +40,7 @@
 
 %prep
 %setup -q -n %{name}_%{version}.linux
+%patch0 -p1
 
 %build
 ./Configure -n linux

++++++ remove-hostname.patch ++++++
commit 14c51131b961d9fe6a5f474f3171e4893982fc86
Author: Danilo Spinella <danilo.spine...@suse.com>
Date:   Fri May 20 11:13:52 2022 +0200
Url: https://github.com/lsof-org/lsof/pull/217

    Allow setting hostname for reproducible builds

diff --git a/Configure b/Configure
index 9abcc2d..ee94a93 100755
--- a/Configure
+++ b/Configure
@@ -1242,7 +1242,7 @@ case $LSOF_TGT in # {
     then
       DU_SYSDIR=$LSOF_TMP1
     fi # }
-    LSOF_HOST=`uname -n`
+    LSOF_HOST=${HOSTNAME:-`uname -n`}
     if test "X$DU_CDIR" = "X"  # {
     then
       LSOF_CDIR=`expr $LSOF_HOST : '\([^\.]*\)\..*$'`

Reply via email to