Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package nextcloud-desktop for 
openSUSE:Factory checked in at 2023-07-05 15:31:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nextcloud-desktop (Old)
 and      /work/SRC/openSUSE:Factory/.nextcloud-desktop.new.23466 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nextcloud-desktop"

Wed Jul  5 15:31:37 2023 rev:53 rq:1096922 version:3.9.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/nextcloud-desktop/nextcloud-desktop.changes      
2023-06-24 20:14:15.556256211 +0200
+++ 
/work/SRC/openSUSE:Factory/.nextcloud-desktop.new.23466/nextcloud-desktop.changes
   2023-07-05 15:32:19.551194863 +0200
@@ -1,0 +2,16 @@
+Thu Jun 29 18:50:15 UTC 2023 - Atri Bhattacharya <badshah...@gmail.com>
+
+- Add nextcloud-fix-HiDPI-window-size.patch -- Fix huge sized
+  windows for nextcloud client settings and crash-reporter on
+  HiDPI systems.
+- Set SOURCE_DATE_EPOCH from the last modified time of source
+  files to avoid non-reproducible builds due to __DATE__/__TIME__;
+  this replaces nextcloud-desktop-remove-datetime.patch which is
+  therefore dropped. Requires cmake >= 3.8.0. Using
+  SOURCE_DATE_EPOCH seems to be a better solution than the patch
+  as this still preserves the date and time shown on the Settings
+  window and could prove useful for debugging upstream. On the
+  contrary, the patch simply removed __DATE__/__TIME__ from the
+  sources and was not going to be accepted by upstream anyway.
+
+-------------------------------------------------------------------

Old:
----
  nextcloud-desktop-remove-datetime.patch

New:
----
  nextcloud-fix-HiDPI-window-size.patch

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

Other differences:
------------------
++++++ nextcloud-desktop.spec ++++++
--- /var/tmp/diff_new_pack.WyeGHu/_old  2023-07-05 15:32:20.223198850 +0200
+++ /var/tmp/diff_new_pack.WyeGHu/_new  2023-07-05 15:32:20.231198898 +0200
@@ -27,10 +27,10 @@
 URL:            https://nextcloud.com/
 Source:         
https://github.com/nextcloud/desktop/archive/v%{version}/%{name}-%{version}.tar.gz
 Source1:        sysctl-sync-inotify.conf
-# PATCH-FIX-OPENSUSE nextcloud-desktop-remove-datetime.patch 
sor.ale...@meowr.ru -- Remove __TIME__ and __DATE__.
-Patch1:         nextcloud-desktop-remove-datetime.patch
+# PATCH-FIX-UPSTREAM nextcloud-fix-HiDPI-window-size.patch 
badshah...@gmail.com -- Fix huge size of the nextcloud client settings and 
crash-reporter windows on HiDPI systems
+Patch0:         nextcloud-fix-HiDPI-window-size.patch
 BuildRequires:  AppStream
-BuildRequires:  cmake >= 3.2
+BuildRequires:  cmake >= 3.8.0
 BuildRequires:  extra-cmake-modules
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
@@ -201,7 +201,8 @@
 cp -a %{SOURCE1} sysctl-sync-inotify.conf
 
 %build
-
+# Set SOURCE_DATE_EPOCH to set __DATE__/__TIME__ based on tarball creation 
date and make build reproducible
+export SOURCE_DATE_EPOCH=`date -r VERSION.cmake +"%s"`
 %cmake \
 %if 0%{?is_opensuse}
   -DWITH_DOC=ON \

++++++ nextcloud-fix-HiDPI-window-size.patch ++++++
Index: desktop-3.9.0/src/gui/main.cpp
===================================================================
--- desktop-3.9.0.orig/src/gui/main.cpp
+++ desktop-3.9.0/src/gui/main.cpp
@@ -65,6 +65,8 @@ int main(int argc, char **argv)
 
     QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true);
     QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
+    QApplication::setHighDpiScaleFactorRoundingPolicy(
+            Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
 #ifdef Q_OS_MAC
     Mac::CocoaInitializer cocoaInit; // RIIA
 #endif
Index: desktop-3.9.0/src/crashreporter/main.cpp
===================================================================
--- desktop-3.9.0.orig/src/crashreporter/main.cpp
+++ desktop-3.9.0/src/crashreporter/main.cpp
@@ -25,6 +25,8 @@
 int main(int argc, char *argv[])
 {
     QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true);
+    QApplication::setHighDpiScaleFactorRoundingPolicy(
+            Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
 #ifdef Q_OS_WIN
     QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
 #endif // !Q_OS_WIN

Reply via email to