Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package fastfetch for openSUSE:Factory 
checked in at 2023-02-05 19:20:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/fastfetch (Old)
 and      /work/SRC/openSUSE:Factory/.fastfetch.new.4462 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "fastfetch"

Sun Feb  5 19:20:34 2023 rev:3 rq:1063234 version:1.9.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/fastfetch/fastfetch.changes      2023-01-24 
20:19:40.912287751 +0100
+++ /work/SRC/openSUSE:Factory/.fastfetch.new.4462/fastfetch.changes    
2023-02-05 19:20:38.859711265 +0100
@@ -1,0 +2,8 @@
+Thu Feb  2 02:54:22 UTC 2023 - Soc Virnyl Estela <socvirnyl.est...@gmail.com>
+
+- Update to version 1.9.1:
+  * Fix builds on s390x (@jonathanspw, #402)
+  * Fix zero refresh rate on some monitors (macOS)
+  * Fix default formatting of Wifi module
+
+-------------------------------------------------------------------

Old:
----
  fastfetch-1.9.0.tar.gz

New:
----
  fastfetch-1.9.1.tar.gz

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

Other differences:
------------------
++++++ fastfetch.spec ++++++
--- /var/tmp/diff_new_pack.SWWJmB/_old  2023-02-05 19:20:39.231713415 +0100
+++ /var/tmp/diff_new_pack.SWWJmB/_new  2023-02-05 19:20:39.235713438 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           fastfetch
-Version:        1.9.0
+Version:        1.9.1
 Release:        0
 Summary:        Neofetch-like tool written in C
 License:        MIT

++++++ fastfetch-1.9.0.tar.gz -> fastfetch-1.9.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/fastfetch-1.9.0/CHANGELOG.md 
new/fastfetch-1.9.1/CHANGELOG.md
--- old/fastfetch-1.9.0/CHANGELOG.md    2023-01-22 01:09:35.000000000 +0100
+++ new/fastfetch-1.9.1/CHANGELOG.md    2023-01-24 10:05:49.000000000 +0100
@@ -1,3 +1,11 @@
+# 1.9.1
+
+Bugfixes:
+
+* Fix builds on s390x (@jonathanspw, #402)
+* Fix zero refresh rate on some monitors (macOS)
+* Fix default formatting of Wifi module
+
 # 1.9.0
 
 Notable Changes:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/fastfetch-1.9.0/CMakeLists.txt 
new/fastfetch-1.9.1/CMakeLists.txt
--- old/fastfetch-1.9.0/CMakeLists.txt  2023-01-22 01:09:35.000000000 +0100
+++ new/fastfetch-1.9.1/CMakeLists.txt  2023-01-24 10:05:49.000000000 +0100
@@ -1,7 +1,7 @@
 cmake_minimum_required(VERSION 3.12.0) # target_link_libraries with OBJECT 
libs & project homepage url
 
 project(fastfetch
-    VERSION 1.9.0
+    VERSION 1.9.1
     LANGUAGES C
     DESCRIPTION "Fast system information tool"
     HOMEPAGE_URL "https://github.com/LinusDierheimer/fastfetch";
@@ -666,6 +666,7 @@
         PRIVATE "-framework OpenCL"
         PRIVATE "-framework Cocoa"
         PRIVATE "-framework CoreWLAN"
+        PRIVATE "-framework CoreVideo"
         PRIVATE "-weak_framework MediaRemote -F 
/System/Library/PrivateFrameworks"
         PRIVATE "-weak_framework DisplayServices -F 
/System/Library/PrivateFrameworks"
     )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/fastfetch-1.9.0/src/detection/displayserver/displayserver_apple.c 
new/fastfetch-1.9.1/src/detection/displayserver/displayserver_apple.c
--- old/fastfetch-1.9.0/src/detection/displayserver/displayserver_apple.c       
2023-01-22 01:09:35.000000000 +0100
+++ new/fastfetch-1.9.1/src/detection/displayserver/displayserver_apple.c       
2023-01-24 10:05:49.000000000 +0100
@@ -6,6 +6,7 @@
 #include <string.h>
 #include <assert.h>
 #include <CoreGraphics/CGDirectDisplay.h>
+#include <CoreVideo/CVDisplayLink.h>
 
 static void detectDisplays(FFDisplayServerResult* ds)
 {
@@ -20,10 +21,25 @@
         CGDisplayModeRef mode = CGDisplayCopyDisplayMode(screen);
         if(mode)
         {
+            
//https://github.com/glfw/glfw/commit/aab08712dd8142b642e2042e7b7ba563acd07a45
+            double refreshRate = CGDisplayModeGetRefreshRate(mode);
+
+            if (refreshRate == 0)
+            {
+                CVDisplayLinkRef link;
+                if(CVDisplayLinkCreateWithCGDisplay(screen, &link) == 
kCVReturnSuccess)
+                {
+                    const CVTime time = 
CVDisplayLinkGetNominalOutputVideoRefreshPeriod(link);
+                    if (!(time.flags & kCVTimeIsIndefinite))
+                        refreshRate = time.timeScale / (double) time.timeValue 
+ 0.5; //59.97...
+                    CVDisplayLinkRelease(link);
+                }
+            }
+
             ffdsAppendDisplay(ds,
                 (uint32_t)CGDisplayModeGetPixelWidth(mode),
                 (uint32_t)CGDisplayModeGetPixelHeight(mode),
-                (uint32_t)CGDisplayModeGetRefreshRate(mode),
+                (uint32_t)refreshRate,
                 (uint32_t)CGDisplayModeGetWidth(mode),
                 (uint32_t)CGDisplayModeGetHeight(mode)
             );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/fastfetch-1.9.0/src/fastfetch.c 
new/fastfetch-1.9.1/src/fastfetch.c
--- old/fastfetch-1.9.0/src/fastfetch.c 2023-01-22 01:09:35.000000000 +0100
+++ new/fastfetch-1.9.1/src/fastfetch.c 2023-01-24 10:05:49.000000000 +0100
@@ -879,7 +879,9 @@
             #define FF_ARCHITECTURE "powerpc"
         #elif defined(__riscv__) || defined(__riscv)
             #define FF_ARCHITECTURE "riscv"
-        #elif
+        #elif defined(__s390x__)
+            #define FF_ARCHITECTURE "s390x"
+        #else
             #define FF_ARCHITECTURE "unknown"
         #endif
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/fastfetch-1.9.0/src/modules/wifi.c 
new/fastfetch-1.9.1/src/modules/wifi.c
--- old/fastfetch-1.9.0/src/modules/wifi.c      2023-01-22 01:09:35.000000000 
+0100
+++ new/fastfetch-1.9.1/src/modules/wifi.c      2023-01-24 10:05:49.000000000 
+0100
@@ -34,9 +34,9 @@
             {
                 ffStrbufWriteTo(&item->conn.ssid, stdout);
                 if(item->conn.protocol.length)
-                    printf("- %s", item->conn.protocol.chars);
+                    printf(" - %s", item->conn.protocol.chars);
                 if(item->conn.security.length)
-                    printf("- %s", item->conn.security.chars);
+                    printf(" - %s", item->conn.security.chars);
                 putchar('\n');
             }
             else

Reply via email to