Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package bonnie++ for openSUSE:Factory 
checked in at 2021-07-01 07:05:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/bonnie++ (Old)
 and      /work/SRC/openSUSE:Factory/.bonnie++.new.2625 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "bonnie++"

Thu Jul  1 07:05:34 2021 rev:26 rq:903168 version:1.98

Changes:
--------
--- /work/SRC/openSUSE:Factory/bonnie++/bonnie++.changes        2020-09-14 
12:31:04.065203466 +0200
+++ /work/SRC/openSUSE:Factory/.bonnie++.new.2625/bonnie++.changes      
2021-07-01 07:05:45.343420240 +0200
@@ -1,0 +2,6 @@
+Fri Jun 25 23:37:25 UTC 2021 - Fernando Mattioli <[email protected]>
+
+- Add patch:
+  * bonnie++-1.98-bon_csv2html.patch (fixes gcc11 build).
+
+-------------------------------------------------------------------

New:
----
  bonnie++-1.98-bon_csv2html.patch

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

Other differences:
------------------
++++++ bonnie++.spec ++++++
--- /var/tmp/diff_new_pack.AXNQBa/_old  2021-07-01 07:05:45.979415271 +0200
+++ /var/tmp/diff_new_pack.AXNQBa/_new  2021-07-01 07:05:45.983415241 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package bonnie++
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,7 @@
 Source:         https://www.coker.com.au/bonnie++/bonnie++-%{version}.tgz
 # PATCH-FIX-UPSTREAM bonnie++-1.96-makefile.patch -- fixes make install
 Patch0:         bonnie++-1.96-makefile.patch
+Patch1:         bonnie++-1.98-bon_csv2html.patch
 BuildRequires:  gcc-c++
 
 %description
@@ -34,6 +35,7 @@
 %prep
 %setup -q
 %patch0
+%patch1 -p1
 
 %build
 %configure \

++++++ bonnie++-1.98-bon_csv2html.patch ++++++
bon_csv2html.cpp: renames variable "data" to avoid "reference to data is 
ambiguous" error.
Index: bonnie++-1.98/bon_csv2html.cpp
===================================================================
--- bonnie++-1.98.orig/bon_csv2html.cpp
+++ bonnie++-1.98/bon_csv2html.cpp
@@ -10,7 +10,7 @@
 using namespace std;
 typedef vector<PCCHAR> STR_VEC;
 
-vector<STR_VEC> data;
+vector<STR_VEC> v_data;
 typedef PCCHAR * PPCCHAR;
 PPCCHAR * props;
 
@@ -87,8 +87,8 @@ int main(int argc, char **argv)
     read_in(buf);
   }
 
-  props = new PPCCHAR[data.size()];
-  for(i = 0; i < data.size(); i++)
+  props = new PPCCHAR[v_data.size()];
+  for(i = 0; i < v_data.size(); i++)
   {
     props[i] = new PCCHAR[MAX_ITEMS];
     props[i][0] = NULL;
@@ -109,7 +109,7 @@ int main(int argc, char **argv)
   }
   calc_vals();
   int mid_width = header();
-  for(i = 0; i < data.size(); i++)
+  for(i = 0; i < v_data.size(); i++)
   {
 // First print the average speed line
     printf("<tr>");
@@ -171,23 +171,23 @@ int compar(const void *a, const void *b)
 
 void calc_vals()
 {
-  ITEM *arr = new ITEM[data.size()];
+  ITEM *arr = new ITEM[v_data.size()];
   for(unsigned int column_ind = 0; column_ind < MAX_ITEMS; column_ind++)
   {
     switch(vals[column_ind])
     {
     case eNoCols:
     {
-      for(unsigned int row_ind = 0; row_ind < data.size(); row_ind++)
+      for(unsigned int row_ind = 0; row_ind < v_data.size(); row_ind++)
       {
         if(column_ind == COL_CONCURRENCY)
         {
-          if(data[row_ind][column_ind] && strcmp("1", 
data[row_ind][column_ind]))
+          if(v_data[row_ind][column_ind] && strcmp("1", 
v_data[row_ind][column_ind]))
             col_used[column_ind] = true;
         }
         else
         {
-          if(data[row_ind][column_ind] && strlen(data[row_ind][column_ind]))
+          if(v_data[row_ind][column_ind] && 
strlen(v_data[row_ind][column_ind]))
             col_used[column_ind] = true;
         }
       }
@@ -195,22 +195,22 @@ void calc_vals()
     break;
     case eCPU:
     {
-      for(unsigned int row_ind = 0; row_ind < data.size(); row_ind++)
+      for(unsigned int row_ind = 0; row_ind < v_data.size(); row_ind++)
       {
         double work, cpu;
         arr[row_ind].val = 0.0;
-        if(data[row_ind].size() > column_ind
-         && sscanf(data[row_ind][column_ind - 1], "%lf", &work) == 1
-         && sscanf(data[row_ind][column_ind], "%lf", &cpu) == 1)
+        if(v_data[row_ind].size() > column_ind
+         && sscanf(v_data[row_ind][column_ind - 1], "%lf", &work) == 1
+         && sscanf(v_data[row_ind][column_ind], "%lf", &cpu) == 1)
         {
           arr[row_ind].val = cpu / work;
         }
         arr[row_ind].pos = row_ind;
       }
-      qsort(arr, data.size(), sizeof(ITEM), compar);
+      qsort(arr, v_data.size(), sizeof(ITEM), compar);
       int col_count = -1;
       double min_col = -1.0, max_col = -1.0;
-      for(unsigned int sort_ind = 0; sort_ind < data.size(); sort_ind++)
+      for(unsigned int sort_ind = 0; sort_ind < v_data.size(); sort_ind++)
       {
         // if item is different from previous or if the first row
         // (sort_ind == 0) then increment col count
@@ -239,7 +239,7 @@ void calc_vals()
           min_col /= mult;
         }
         double range_col = max_col - min_col;
-        for(unsigned int sort_ind = 0; sort_ind < data.size(); sort_ind++)
+        for(unsigned int sort_ind = 0; sort_ind < v_data.size(); sort_ind++)
         {
           if(arr[sort_ind].col_ind > -1)
           {
@@ -250,7 +250,7 @@ void calc_vals()
       }
       else
       {
-        for(unsigned int sort_ind = 0; sort_ind < data.size(); sort_ind++)
+        for(unsigned int sort_ind = 0; sort_ind < v_data.size(); sort_ind++)
         {
           if(vals[column_ind] == eLatency)
           {
@@ -263,25 +263,25 @@ void calc_vals()
     case eSpeed:
     case eLatency:
     {
-      for(unsigned int row_ind = 0; row_ind < data.size(); row_ind++)
+      for(unsigned int row_ind = 0; row_ind < v_data.size(); row_ind++)
       {
         arr[row_ind].val = 0.0;
-        if(data[row_ind].size() <= column_ind
-         || sscanf(data[row_ind][column_ind], "%lf", &arr[row_ind].val) == 0)
+        if(v_data[row_ind].size() <= column_ind
+         || sscanf(v_data[row_ind][column_ind], "%lf", &arr[row_ind].val) == 0)
           arr[row_ind].val = 0.0;
         if(vals[column_ind] == eLatency && arr[row_ind].val != 0.0)
         {
-          if(strstr(data[row_ind][column_ind], "ms"))
+          if(strstr(v_data[row_ind][column_ind], "ms"))
             arr[row_ind].val *= 1000.0;
-          else if(!strstr(data[row_ind][column_ind], "us"))
+          else if(!strstr(v_data[row_ind][column_ind], "us"))
             arr[row_ind].val *= 1000000.0; // is !us && !ms then secs!
         }
         arr[row_ind].pos = row_ind;
       }
-      qsort(arr, data.size(), sizeof(ITEM), compar);
+      qsort(arr, v_data.size(), sizeof(ITEM), compar);
       int col_count = -1;
       double min_col = -1.0, max_col = -1.0;
-      for(unsigned int sort_ind = 0; sort_ind < data.size(); sort_ind++)
+      for(unsigned int sort_ind = 0; sort_ind < v_data.size(); sort_ind++)
       {
         // if item is different from previous or if the first row
         // (sort_ind == 0) then increment col count
@@ -310,7 +310,7 @@ void calc_vals()
           min_col /= mult;
         }
         double range_col = max_col - min_col;
-        for(unsigned int sort_ind = 0; sort_ind < data.size(); sort_ind++)
+        for(unsigned int sort_ind = 0; sort_ind < v_data.size(); sort_ind++)
         {
           if(arr[sort_ind].col_ind > -1)
           {
@@ -332,7 +332,7 @@ void calc_vals()
       }
       else
       {
-        for(unsigned int sort_ind = 0; sort_ind < data.size(); sort_ind++)
+        for(unsigned int sort_ind = 0; sort_ind < v_data.size(); sort_ind++)
         {
           if(vals[column_ind] == eLatency)
           {
@@ -481,16 +481,16 @@ void read_in(CPCCHAR buf)
     free((void *)arr[0]);
     return;
   }
-  data.push_back(arr);
+  v_data.push_back(arr);
 }
 
 void print_item(int num, int item, CPCCHAR extra)
 {
   PCCHAR line_data;
   char buf[1024];
-  if(int(data[num].size()) > item)
+  if(int(v_data[num].size()) > item)
   {
-    line_data = data[num][item];
+    line_data = v_data[num][item];
     switch(item)
     {
     case COL_PUT_BLOCK:

Reply via email to