Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package lsb-release for openSUSE:Factory 
checked in at 2023-09-06 18:56:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/lsb-release (Old)
 and      /work/SRC/openSUSE:Factory/.lsb-release.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "lsb-release"

Wed Sep  6 18:56:00 2023 rev:23 rq:1109021 version:3.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/lsb-release/lsb-release.changes  2023-08-10 
15:33:25.379985104 +0200
+++ /work/SRC/openSUSE:Factory/.lsb-release.new.1766/lsb-release.changes        
2023-09-06 18:57:01.641064930 +0200
@@ -1,0 +2,6 @@
+Tue Sep  5 11:07:41 UTC 2023 - Dirk Müller <dmuel...@suse.com>
+
+- add 797e459ecaa482bf8e7bfe02cf5f1cea367ba9e9.patch to fix
+  bashisms
+
+-------------------------------------------------------------------

New:
----
  797e459ecaa482bf8e7bfe02cf5f1cea367ba9e9.patch

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

Other differences:
------------------
++++++ lsb-release.spec ++++++
--- /var/tmp/diff_new_pack.4U2Yvn/_old  2023-09-06 18:57:02.653101007 +0200
+++ /var/tmp/diff_new_pack.4U2Yvn/_new  2023-09-06 18:57:02.657101150 +0200
@@ -24,6 +24,7 @@
 Group:          System/Fhs
 URL:            https://github.com/thkukuk/lsb-release_os-release
 Source:         
https://github.com/thkukuk/lsb-release_os-release/archive/refs/tags/v%{version}.tar.gz#/lsb-release-%{version}.tar.gz
+Patch1:         
https://github.com/thkukuk/lsb-release_os-release/commit/797e459ecaa482bf8e7bfe02cf5f1cea367ba9e9.patch
 # for getopt(1)
 Requires:       util-linux
 BuildArch:      noarch
@@ -32,7 +33,7 @@
 Tools from the Linux Standard Base project to determine the used distribution
 
 %prep
-%setup -q -n lsb-release_os-release-%{version}
+%autosetup -p1 -n lsb-release_os-release-%{version}
 
 %build
 %make_build

++++++ 797e459ecaa482bf8e7bfe02cf5f1cea367ba9e9.patch ++++++
>From 797e459ecaa482bf8e7bfe02cf5f1cea367ba9e9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dirk=20M=C3=BCller?= <d...@dmllr.de>
Date: Fri, 4 Aug 2023 13:13:45 +0200
Subject: [PATCH] use printf to be more dash/posix shell compatible

The script is executed with bin/sh, if that isn't bash
then "echo -e" is not actually supported.
---
 lsb_release | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/lsb_release b/lsb_release
index 5cb1c6c..f7fb976 100755
--- a/lsb_release
+++ b/lsb_release
@@ -256,7 +256,7 @@ GetDistribInfo() {
 DisplayVersion() {
     if [ -z "$ARG_S" ]
     then
-        echo -e "$MSG_LSBVER$LSB_VERSION"          # at least "n/a"
+        printf "$MSG_LSBVER$LSB_VERSION\n"          # at least "n/a"
     else
         MSG_RESULT="$MSG_RESULT${MSG_RESULT:+ }$LSB_VERSION"
     fi
@@ -266,7 +266,7 @@ DisplayVersion() {
 DisplayID() {
     if [ -z "$ARG_S" ]
     then
-        echo -e "$MSG_DISTID$DISTRIB_ID"
+        printf "$MSG_DISTID$DISTRIB_ID\n"
     else
         MSG_RESULT="$MSG_RESULT${MSG_RESULT:+ }$DISTRIB_ID"
     fi
@@ -281,7 +281,7 @@ DisplayDescription() {
     fi
     if [ -z "$ARG_S" ]
     then
-        echo -e "$MSG_DISTDESC$DISTRIB_DESCRIPTION"
+        printf "$MSG_DISTDESC$DISTRIB_DESCRIPTION\n"
     else
         MSG_RESULT="$MSG_RESULT${MSG_RESULT:+ }\"$DISTRIB_DESCRIPTION\""
     fi
@@ -291,7 +291,7 @@ DisplayDescription() {
 DisplayRelease() {
     if [ -z "$ARG_S" ]
     then
-        echo -e "$MSG_DISTREL$DISTRIB_RELEASE"
+        printf "$MSG_DISTREL$DISTRIB_RELEASE\n"
     else
         MSG_RESULT="$MSG_RESULT${MSG_RESULT:+ }$DISTRIB_RELEASE"
     fi
@@ -301,8 +301,8 @@ DisplayRelease() {
 DisplayCodename() {
     if [ -z "$ARG_S" ]
     then
-        echo -e "$MSG_DISTCODE$(echo "$DISTRIB_CODENAME" |                    \
-                                tr -d "[:blank:]")" # Remove blanks
+        printf "$MSG_DISTCODE$(echo "$DISTRIB_CODENAME" |                    \
+                               tr -d "[:blank:]")\n" # Remove blanks
     else
         MSG_RESULT="$MSG_RESULT${MSG_RESULT:+ }$(echo "$DISTRIB_CODENAME" |   \
                                                  tr -d "[:blank:]")"

Reply via email to