fritzing/0001-Use-system-libgit2.patch
Lars Vogdt 876dbea348 Accepting request 978542 from home:kwk:branches:Education
- rename fritzing-use-system-libgit2.patch to 0001-Use-system-libgit2.patch
- add 0002-Fix-appdata.xml-url-type.patch
- Update to version 0.9.9+git20210922.f0af53a9:
  * Fixed #3882 by fixing power label bus removal.
  * Add keyboard shortcut for rotating by 90 degree, horizontal flip and search
  * Do not add wires if they are too small, fixes #3731. Additionally, this commit fixes the color of the temporal wire that appears when creating a new bend point (the wire needs to not be blue to observe the bug)
  * resize a stripboard following the current layout, fixes #3090 #2998 and #3084. The slow performance is still present but the extended area is not shortcircuited.
  * Added Fritzing Fab links to recent file list in welcome view.
  * Bump version to 0.9.9
  * Merge develop
  * Remove .ts.orig file from merge conflict
  * Increased width of fabuploaddialog to fit translations.
  * Fix swapped url + title, projects could not be selected if language setting is not English
- Update to 0.9.6
  maintenance release, fixed at least ten crashes, several critical
  bugs, and about 30-100 regular bugs

OBS-URL: https://build.opensuse.org/request/show/978542
OBS-URL: https://build.opensuse.org/package/show/Education/fritzing?expand=0&rev=59
2022-06-02 09:23:36 +00:00

44 lines
1.5 KiB
Diff

From 419701acf1ae9a6b6ca175e9e05585264f45b551 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@gmail.com>
Date: Sun, 22 May 2022 13:36:15 +0200
Subject: [PATCH 1/2] Use system libgit2
---
phoenix.pro | 2 +-
src/version/partschecker.cpp | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/phoenix.pro b/phoenix.pro
index dab1ba21..2df1e6c0 100644
--- a/phoenix.pro
+++ b/phoenix.pro
@@ -175,7 +175,7 @@ RC_FILE = fritzing.rc
RESOURCES += phoenixresources.qrc
# Disable this if you have (and want) libgit2 dynamically
-LIBGIT_STATIC = true
+LIBGIT_STATIC = false
include(pri/libgit2detect.pri)
include(pri/boostdetect.pri)
diff --git a/src/version/partschecker.cpp b/src/version/partschecker.cpp
index 581bd491..868c15f5 100644
--- a/src/version/partschecker.cpp
+++ b/src/version/partschecker.cpp
@@ -117,9 +117,10 @@ bool PartsChecker::newPartsAvailable(const QString &repoPath, const QString & sh
/**
* Connect to the remote.
*/
+
DebugDialog::debug(QString("remote %1").arg(git_remote_url(remote)));
-#if LIBGIT2_VER_MAJOR > 0 || (LIBGIT2_VER_MAJOR == 0 && LIBGIT2_VER_MINOR > 24)
- error = git_remote_connect(remote, GIT_DIRECTION_FETCH, &callbacks, NULL, NULL);
+#if LIBGIT2_VER_MINOR > 24 || LIBGIT2_VER_MAJOR >= 1
+ error = git_remote_connect(remote, GIT_DIRECTION_FETCH, &callbacks, NULL, NULL);
#elif LIBGIT2_VER_MINOR == 24
error = git_remote_connect(remote, GIT_DIRECTION_FETCH, &callbacks, NULL);
#else
--
2.36.0