Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package growlight for openSUSE:Factory 
checked in at 2021-04-06 17:31:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/growlight (Old)
 and      /work/SRC/openSUSE:Factory/.growlight.new.2401 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "growlight"

Tue Apr  6 17:31:13 2021 rev:11 rq:883226 version:1.2.31

Changes:
--------
--- /work/SRC/openSUSE:Factory/growlight/growlight.changes      2021-03-08 
15:20:57.574101354 +0100
+++ /work/SRC/openSUSE:Factory/.growlight.new.2401/growlight.changes    
2021-04-06 17:32:48.863329575 +0200
@@ -1,0 +2,6 @@
+Tue Apr  6 09:09:21 UTC 2021 - Martin Hauke <mar...@gmx.de>
+
+- Add patch:
+  * 0001-tests-fix-alignment-of-packed-fields-141.patch
+
+-------------------------------------------------------------------

New:
----
  0001-tests-fix-alignment-of-packed-fields-141.patch

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

Other differences:
------------------
++++++ growlight.spec ++++++
--- /var/tmp/diff_new_pack.trs0nW/_old  2021-04-06 17:32:49.523330320 +0200
+++ /var/tmp/diff_new_pack.trs0nW/_new  2021-04-06 17:32:49.527330325 +0200
@@ -30,6 +30,7 @@
 Group:          System/Monitoring
 URL:            https://nick-black.com/dankwiki/index.php/Growlight
 Source:         
https://github.com/dankamongmen/growlight/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Patch0:         0001-tests-fix-alignment-of-packed-fields-141.patch
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
 %if %{with pandoc}
@@ -70,6 +71,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %cmake -DUSE_LIBZFS=OFF -DUSE_PANDOC=%{with pandoc}

++++++ 0001-tests-fix-alignment-of-packed-fields-141.patch ++++++
>From 9f039f5ee2ffc0412670841169d2c663952a0ec4 Mon Sep 17 00:00:00 2001
From: nick black <dankamong...@gmail.com>
Date: Tue, 6 Apr 2021 00:48:50 -0400
Subject: [PATCH] [tests] fix alignment of packed fields #141

---
 tests/gpt.cpp | 36 +++++++++++++++++++++++-------------
 1 file changed, 23 insertions(+), 13 deletions(-)

diff --git a/tests/gpt.cpp b/tests/gpt.cpp
index 8d2cf9b..adf1981 100644
--- a/tests/gpt.cpp
+++ b/tests/gpt.cpp
@@ -19,14 +19,16 @@ TEST_CASE("GPT") {
   SUBCASE("Revision") {
     gpt_header head;
     CHECK(0 == initialize_gpt(&head, 512, 4194287, 34, nullptr));
-    CHECK(0x00010000 == head.revision);
+    auto revision = head.revision;
+    CHECK(0x00010000 == revision);
   }
 
   // Bytes 0xc--0xf must be >= 92, should be the logical block size
   SUBCASE("HeaderSize") {
     gpt_header head;
     CHECK(0 == initialize_gpt(&head, 512, 4194287, 34, nullptr));
-    CHECK(92 == head.headsize);
+    auto headsize = head.headsize;
+    CHECK(92 == headsize);
   }
 
   // Bytes 0x18--0x1f are the sector of the GPT primary, usually 1
@@ -34,8 +36,10 @@ TEST_CASE("GPT") {
   SUBCASE("GPTLBAs") {
     gpt_header head;
     CHECK(0 == initialize_gpt(&head, 512, 100000, 34, nullptr));
-    CHECK(1 == head.lba);
-    CHECK(100000 == head.backuplba);
+    auto lba = head.lba;
+    CHECK(1 == lba);
+    auto backuplba = head.backuplba;
+    CHECK(100000 == backuplba);
   }
 
   // Verify the 16-byte UUID is as specified
@@ -61,17 +65,22 @@ TEST_CASE("GPT") {
     gpt_header head;
     CHECK(0 == initialize_gpt(&head, 512, 4194287, 34, UUID));
     // partition entry size must be a positive multiple of 128 (usually 128)
-    CHECK(0 < head.partsize);
-    CHECK(0 == (head.partsize % 128));
+    auto partsize = head.partsize;
+    CHECK(0 < partsize);
+    CHECK(0 == (partsize % 128));
     // number of partition entries, usually 128 (MINIMUM_GPT_ENTRIES)
-    CHECK(128 <= head.partcount);
-    auto entries = new gpt_entry[head.partcount];
-    memset(entries, 0, sizeof(*entries) * head.partcount);
+    auto partcount = head.partcount;
+    CHECK(128 <= partcount);
+    auto entries = new gpt_entry[partcount];
+    memset(entries, 0, sizeof(*entries) * partcount);
     CHECK(0 == update_crc(&head, entries));
+    auto crc = head.crc;
     // FIXME fix on big-endian!
-    WARN(2006165414 == head.crc);
-    CHECK(0 == head.reserved);
-    CHECK(2874462854 == head.partcrc);
+    WARN(2006165414 == crc);
+    auto reserved = head.reserved;
+    CHECK(0 == reserved);
+    auto partcrc = head.partcrc;
+    CHECK(2874462854 == partcrc);
     delete[] entries;
   }
 
@@ -85,7 +94,8 @@ TEST_CASE("GPT") {
     memset(sector, 0xff, sizeof(sector));
     gpt_header* head = reinterpret_cast<gpt_header*>(sector);
     CHECK(0 == initialize_gpt(head, sizeof(sector), 4194287, 34, nullptr));
-    CHECK(92 == head->headsize);
+    auto headsize = head->headsize;
+    CHECK(92 == headsize);
     for(size_t idx = 92 ; idx < sizeof(sector) ; ++idx){
       CHECK(0 == sector[idx]);
     }
-- 
2.30.2

Reply via email to