Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package cpufetch for openSUSE:Factory 
checked in at 2024-10-01 17:20:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/cpufetch (Old)
 and      /work/SRC/openSUSE:Factory/.cpufetch.new.29891 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "cpufetch"

Tue Oct  1 17:20:03 2024 rev:3 rq:1204916 version:1.06

Changes:
--------
--- /work/SRC/openSUSE:Factory/cpufetch/cpufetch.changes        2024-09-30 
15:42:32.438369536 +0200
+++ /work/SRC/openSUSE:Factory/.cpufetch.new.29891/cpufetch.changes     
2024-10-01 17:20:32.495549844 +0200
@@ -1,0 +2,6 @@
+Tue Oct  1 09:26:11 UTC 2024 - Guillaume GARDET <guillaume.gar...@opensuse.org>
+
+- Add upstream patch to fix arm %check:
+  * cpufetch-aa94389.patch
+
+-------------------------------------------------------------------

New:
----
  cpufetch-aa94389.patch

BETA DEBUG BEGIN:
  New:- Add upstream patch to fix arm %check:
  * cpufetch-aa94389.patch
BETA DEBUG END:

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

Other differences:
------------------
++++++ cpufetch.spec ++++++
--- /var/tmp/diff_new_pack.eJTaS7/_old  2024-10-01 17:20:32.967569524 +0200
+++ /var/tmp/diff_new_pack.eJTaS7/_new  2024-10-01 17:20:32.971569691 +0200
@@ -25,7 +25,8 @@
 Group:          Productivity/Text/Utilities
 URL:            https://github.com/Dr-Noob/%{name}
 Source0:        
%{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
-
+# PATCH-FIX-UPSTREAM - Fix arm tests
+Patch1:         cpufetch-aa94389.patch
 # Supports only x86_64, ARM and PowerPC
 ExclusiveArch:  %{arm} aarch64 x86_64 ppc ppc64 ppc64le
 
@@ -34,7 +35,7 @@
 in a clean and beautiful way.
 
 %prep
-%setup -q
+%autosetup -p1
 
 %build
 %set_build_flags

++++++ cpufetch-aa94389.patch ++++++
>From aa94389bbe1209faa0f98b031d5cc6b39ec22e74 Mon Sep 17 00:00:00 2001
From: Dr-Noob <peibo...@gmail.com>
Date: Mon, 19 Aug 2024 08:38:53 +0100
Subject: [PATCH] [v1.06][ARM] Fix two off-by-one bugs (#264)

---
 src/arm/midr.c   | 2 +-
 src/common/pci.c | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/arm/midr.c b/src/arm/midr.c
index b0b578d5..b869a17a 100644
--- a/src/arm/midr.c
+++ b/src/arm/midr.c
@@ -448,7 +448,7 @@ char* get_str_topology(struct cpuInfo* cpu, struct 
topology* topo, bool dual_soc
 
 char* get_str_features(struct cpuInfo* cpu) {
   struct features* feat = cpu->feat;
-  uint32_t max_len = strlen("NEON,SHA1,SHA2,AES,CRC32,SVE,SVE2") + 1;
+  uint32_t max_len = strlen("NEON,SHA1,SHA2,AES,CRC32,SVE,SVE2,") + 1;
   uint32_t len = 0;
   char* string = ecalloc(max_len, sizeof(char));
 
diff --git a/src/common/pci.c b/src/common/pci.c
index f23bc5ac..c6931fb8 100644
--- a/src/common/pci.c
+++ b/src/common/pci.c
@@ -98,9 +98,9 @@ void populate_pci_devices(struct pci_devices * pci) {
     int path_size = strlen(PCI_PATH) + strlen(dev->path) + 2;
 
     // Read vendor_id
-    char *vendor_id_path = emalloc(sizeof(char) * (path_size + 
strlen("vendor")));
+    char *vendor_id_path = emalloc(sizeof(char) * (path_size + 
strlen("vendor") + 1));
     sprintf(vendor_id_path, "%s/%s/%s", PCI_PATH, dev->path, "vendor");
-    
+
     if ((buf = read_file(vendor_id_path, &filelen)) == NULL) {
       printWarn("read_file: %s: %s\n", vendor_id_path, strerror(errno));
       dev->vendor_id = 0;
@@ -110,7 +110,7 @@ void populate_pci_devices(struct pci_devices * pci) {
     }
 
     // Read device_id
-    char *device_id_path = emalloc(sizeof(char) * (path_size + 
strlen("device")));
+    char *device_id_path = emalloc(sizeof(char) * (path_size + 
strlen("device") + 1));
     sprintf(device_id_path, "%s/%s/%s", PCI_PATH, dev->path, "device");
 
     if ((buf = read_file(device_id_path, &filelen)) == NULL) {

Reply via email to