diff options
author | Ross Charles Campbell <rossbridger.cc@gmail.com> | 2020-10-01 10:23:25 +0800 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2020-10-17 16:19:16 +0300 |
commit | e8b5c73c9fe47dddd4359160b9ee6e7d4df46e9f (patch) | |
tree | cd5a955e0e7b21e555422071102eab91da172f6f /sci-electronics/fritzing/files | |
parent | net-libs/libwebsockets: drop 4.1.2 (diff) | |
download | gentoo-e8b5c73c9fe47dddd4359160b9ee6e7d4df46e9f.tar.gz gentoo-e8b5c73c9fe47dddd4359160b9ee6e7d4df46e9f.tar.bz2 gentoo-e8b5c73c9fe47dddd4359160b9ee6e7d4df46e9f.zip |
sci-electronics/fritzing: version bump to 0.9.4
Bug: https://bugs.gentoo.org/633990
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Ross Charles Campbell <rossbridger.cc@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/17724
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'sci-electronics/fritzing/files')
-rw-r--r-- | sci-electronics/fritzing/files/fritzing-0.9.4-fix-libgit2-version.patch | 19 | ||||
-rw-r--r-- | sci-electronics/fritzing/files/fritzing-0.9.4-move-parts-db-path.patch | 55 |
2 files changed, 74 insertions, 0 deletions
diff --git a/sci-electronics/fritzing/files/fritzing-0.9.4-fix-libgit2-version.patch b/sci-electronics/fritzing/files/fritzing-0.9.4-fix-libgit2-version.patch new file mode 100644 index 000000000000..47aea61ae76e --- /dev/null +++ b/sci-electronics/fritzing/files/fritzing-0.9.4-fix-libgit2-version.patch @@ -0,0 +1,19 @@ +commit 472951243d70eeb40a53b1f7e16e6eab0588d079 +Author: PsikoBlock <rramsch@googlemail.com> +Date: Fri Apr 10 21:41:52 2020 +0200 + + Fix libgit2 version check to allow building with versions >= 1.0 + +diff --git a/src/version/partschecker.cpp b/src/version/partschecker.cpp +index 65daf76e..36300fe0 100644 +--- a/src/version/partschecker.cpp ++++ b/src/version/partschecker.cpp +@@ -115,7 +115,7 @@ bool PartsChecker::newPartsAvailable(const QString &repoPath, const QString & sh + /** + * Connect to the remote. + */ +-#if LIBGIT2_VER_MINOR > 24 ++#if LIBGIT2_VER_MAJOR > 0 || (LIBGIT2_VER_MAJOR == 0 && LIBGIT2_VER_MINOR > 24) + 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); diff --git a/sci-electronics/fritzing/files/fritzing-0.9.4-move-parts-db-path.patch b/sci-electronics/fritzing/files/fritzing-0.9.4-move-parts-db-path.patch new file mode 100644 index 000000000000..97835d489cc6 --- /dev/null +++ b/sci-electronics/fritzing/files/fritzing-0.9.4-move-parts-db-path.patch @@ -0,0 +1,55 @@ +diff --git a/src/fapplication.cpp b/src/fapplication.cpp +index 72159c99..d6ba26ef 100644 +--- a/src/fapplication.cpp ++++ b/src/fapplication.cpp +@@ -785,7 +785,7 @@ bool FApplication::loadReferenceModel(const QString & databaseName, bool fullLoa + bool FApplication::loadReferenceModel(const QString & databaseName, bool fullLoad, ReferenceModel * referenceModel) + { + QDir dir = FolderUtils::getAppPartsSubFolder(""); +- QString dbPath = dir.absoluteFilePath("parts.db"); ++ QString dbPath = FolderUtils::getTopLevelDocumentsPath() + "/parts.db"; + + QFileInfo info(dbPath); + bool dbExists = (info.size() > 0) && !fullLoad; +@@ -798,7 +798,11 @@ bool FApplication::loadReferenceModel(const QString & databaseName, bool fullLo + sha = PartsChecker::getSha(dir.absolutePath()); + if (sha.isEmpty()) { + DebugDialog::debug(QString("1.6 SHA empty")); ++#ifdef PARTS_COMMIT ++ sha = PARTS_COMMIT; ++#else + return false; ++#endif + } + referenceModel->setSha(sha); + } +@@ -2042,7 +2046,7 @@ void FApplication::regeneratePartsDatabase() { + void FApplication::regeneratePartsDatabaseAux(QDialog * progressDialog) { + ReferenceModel * referenceModel = new CurrentReferenceModel(); + QDir dir = FolderUtils::getAppPartsSubFolder(""); +- QString dbPath = dir.absoluteFilePath("parts.db"); ++ QString dbPath = FolderUtils::getTopLevelDocumentsPath() + "/parts.db"; + RegenerateDatabaseThread *thread = new RegenerateDatabaseThread(dbPath, progressDialog, referenceModel); + connect(thread, SIGNAL(finished()), this, SLOT(regenerateDatabaseFinished())); + FMessageBox::BlockMessages = true; +diff --git a/src/version/updatedialog.cpp b/src/version/updatedialog.cpp +index 58c71da8..c481cdec 100644 +--- a/src/version/updatedialog.cpp ++++ b/src/version/updatedialog.cpp +@@ -28,6 +28,7 @@ along with Fritzing. If not, see <http://www.gnu.org/licenses/>. + #include "versionchecker.h" + #include "modfiledialog.h" + #include "../debugdialog.h" ++#include "../utils/folderutils.h" + + #include <QVBoxLayout> + #include <QPushButton> +@@ -183,7 +184,7 @@ void UpdateDialog::releasesAvailableSlot() { + permissionTest.close(); + permissionTest.remove(); + if (count > 0) { +- QFile db(repoDir.absoluteFilePath("parts.db")); ++ QFile db(FolderUtils::getTopLevelDocumentsPath() + "/parts.db"); + if (db.open(QFile::Append)) { + canWrite = true; + db.close(); |