Hello community,

here is the log from the commit of package bcal for openSUSE:Factory checked in 
at 2019-06-05 11:46:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/bcal (Old)
 and      /work/SRC/openSUSE:Factory/.bcal.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "bcal"

Wed Jun  5 11:46:22 2019 rev:3 rq:707649 version:2.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/bcal/bcal.changes        2019-04-17 
10:09:17.494843902 +0200
+++ /work/SRC/openSUSE:Factory/.bcal.new.5148/bcal.changes      2019-06-05 
11:46:28.606991091 +0200
@@ -1,0 +2,7 @@
+Tue Jun  4 10:29:03 UTC 2019 - Luigi Baldoni <[email protected]>
+
+- Added bcal-2.1_gcc9.patch to fix Factory build
+- Limit build to 64-bit systems (as per README.md)
+- Spec cleanup
+
+-------------------------------------------------------------------

New:
----
  bcal-2.1_gcc9.patch

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

Other differences:
------------------
++++++ bcal.spec ++++++
--- /var/tmp/diff_new_pack.3OWy4t/_old  2019-06-05 11:46:29.514990864 +0200
+++ /var/tmp/diff_new_pack.3OWy4t/_new  2019-06-05 11:46:29.522990862 +0200
@@ -25,12 +25,10 @@
 Version:        2.1
 Release:        0
 Source0:        
https://github.com/jarun/bcal/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
-BuildRequires:  gcc
+# PATCH-FIX-UPSTREAM bcal-2.1_gcc9.patch
+Patch0:         bcal-2.1_gcc9.patch
 BuildRequires:  readline-devel
-
-%if 0%{?fedora_version} > 26 
-BuildRequires:  generic-release
-%endif
+ExcludeArch:    %ix86 %arm %ppc
 
 %description
 bcal (Byte CALculator) is a command-line utility for storage, hardware and
@@ -41,6 +39,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 export CFLAGS="%{optflags}"

++++++ bcal-2.1_gcc9.patch ++++++
>From f9056e556778fe5dd594e0e3607b6caed5b17f4d Mon Sep 17 00:00:00 2001
From: Arun Prakash Jana <[email protected]>
Date: Thu, 21 Feb 2019 23:05:06 +0530
Subject: [PATCH] Fix #30

---
 src/bcal.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bcal.c b/src/bcal.c
index eac4497..80dedcb 100644
--- a/src/bcal.c
+++ b/src/bcal.c
@@ -1925,7 +1925,8 @@ static int evaluate(char *exp, ulong sectorsz)
        char *expr = fixexpr(exp, &ret);  /* Make parsing compatible */
        char *ptr;
 
-       log(DEBUG, "expr: %s\n", expr);
+       if (expr)
+               log(DEBUG, "expr: %s\n", expr);
 
        if (expr == NULL) {
                if (ret)

Reply via email to