-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.7.8 fails to build on Windows with GCC and Clang #10730
Milestone
Comments
lazka
added a commit
to lazka/MINGW-packages
that referenced
this issue
May 11, 2024
Building tests fails, so disable them: keepassxreboot/keepassxc#10730
We disabled building the tests downstream now, to work around this. |
That's interesting, hadn't failed anywhere with our CI or even GitHub Actions. |
This seems to be Windows only code, so maybe just a MSVC vs mingw thing (?) |
Good point, I never built tests on mingw, only use it for release of the legacy windows package |
I can confirm that this makes it work: --- keepassxc-2.7.8/tests/TestDatabase.cpp.orig 2024-05-05 22:40:29.000000000 +0200
+++ keepassxc-2.7.8/tests/TestDatabase.cpp 2024-05-11 13:43:53.916506400 +0200
@@ -124,10 +124,10 @@
QCOMPARE(spyFilePathChanged.count(), 1);
QVERIFY(QFile::exists(newDbFileName));
#ifdef Q_OS_WIN
- QVERIFY(!QFileInfo::QFileInfo(newDbFileName).isHidden());
+ QVERIFY(!QFileInfo(newDbFileName).isHidden());
SetFileAttributes(newDbFileName.toStdString().c_str(), FILE_ATTRIBUTE_HIDDEN);
QVERIFY2(db->saveAs(newDbFileName, Database::Atomic, QString(), &error), error.toLatin1());
- QVERIFY(QFileInfo::QFileInfo(newDbFileName).isHidden());
+ QVERIFY(QFileInfo(newDbFileName).isHidden());
#endif
QFile::remove(newDbFileName);
QVERIFY(!QFile::exists(newDbFileName)); |
c4rlo
added a commit
to c4rlo/keepassxc
that referenced
this issue
Jun 2, 2024
Fixes keepassxreboot#10730. I've not actually tested this, let alone on Windows, but it seems very straightforward, and I'm going off keepassxreboot#10730 (comment). Co-authored-by: Christoph Reiter <[email protected]>
droidmonkey
added a commit
to c4rlo/keepassxc
that referenced
this issue
Jun 2, 2024
droidmonkey
added a commit
to c4rlo/keepassxc
that referenced
this issue
Jun 2, 2024
pull bot
pushed a commit
to tigerwill90/keepassxc
that referenced
this issue
Jun 15, 2024
Fixes keepassxreboot#10730. Co-authored-by: Christoph Reiter <[email protected]>
droidmonkey
pushed a commit
that referenced
this issue
Jun 16, 2024
Fixes #10730. Co-authored-by: Christoph Reiter <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Overview
2.7.7 builds fine, 2.7.8 fails.
GCC fails with:
Clang fails with:
The text was updated successfully, but these errors were encountered: