Four years have passed and now QCA 2.1.0 released. Please update package in Fedora. http://delta.affinix.com/download/qca/2.0/qca-2.1.0.tar.gz http://delta.affinix.com/qca/ QCA now uses only CMake. qmake was dropped. Also all plugins now are part of sources. It's mean that need to make subpackages qca-ossl, qca-gnupg, qca-logger and so on. Standalone packages for plugins must be removed. Be careful with cmake options, read INSTALL I tried to explain all options.
Thanks! I'll take a close look over the coming days.
Ivan, I see qca-2.1.0 (for Qt4 builds at least), plugins install to: /usr/lib/qca/plugins/crypto but prior releases installed to: /usr/lib/qt4/plugins/crypto/ Is that expected?
Nevermind, I found QCA_INSTALL_IN_QT_PREFIX option, which I think is what we want.
use QCA_PLUGINS_INSTALL_DIR or not use CMAKE_INSTALL_PREFIX. QCA_INSTALL_IN_QT_PREFIX is not option. It is internal variable.
OK, though consider this a request from a downstream packager to make QCA_INSTALL_IN_QT_PREFIX a public option (and not just an internal variable)
I'm also seeing unittest failures (Qt4 mode, building on f20 i686 host), is that expected? + make test -C i686-redhat-linux-gnu 'ARGS=--timeout 300 --output-on-failure' make: Entering directory `/var/tmp/kdecache-rdieter1/BUILDROOT/qca-2.1.0/i686-redhat-linux-gnu' Running tests... /usr/bin/ctest --force-new-ctest-process --timeout 300 --output-on-failure Test project /var/tmp/kdecache-rdieter1/BUILDROOT/qca-2.1.0/i686-redhat-linux-gnu Start 1: Base64 1/24 Test #1: Base64 ........................... Passed 0.00 sec Start 2: BigInteger 2/24 Test #2: BigInteger ....................... Passed 0.14 sec Start 3: Certificate 3/24 Test #3: Certificate ......................***Failed 0.06 sec ********* Start testing of CertUnitTest ********* Config: Using QTest library 4.8.6, Qt 4.8.6 PASS : CertUnitTest::initTestCase() QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 669 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 795 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 795 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 795 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 795 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 669 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 795 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 795 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 795 QDEBUG : CertUnitTest::checkSystemStore() Unknown signature value: 668 PASS : CertUnitTest::checkSystemStore() PASS : CertUnitTest::nullCert() PASS : CertUnitTest::noSuchFile() PASS : CertUnitTest::CAcertstest() PASS : CertUnitTest::derCAcertstest() PASS : CertUnitTest::qualitysslcatest() PASS : CertUnitTest::checkExpiredClientCerts() PASS : CertUnitTest::checkClientCerts() PASS : CertUnitTest::altName() PASS : CertUnitTest::extXMPP() PASS : CertUnitTest::checkExpiredServerCerts() PASS : CertUnitTest::checkServerCerts() PASS : CertUnitTest::altNames76() QDEBUG : CertUnitTest::sha256cert() Unknown signature value: 668 FAIL! : CertUnitTest::sha256cert() Compared values are not the same Loc: [/Net/mathstat/Users/Staff/rdieter/pkgs.fedoraproject.org/BUILDROOT/qca-2.1.0/unittest/certunittest/certunittest.cpp(750)] FAIL! : CertUnitTest::crl() Compared values are not the same Actual (crl1.thisUpdate()): 2001/08/17 11:12:03.000[local time] Expected (QDateTime(QDate(2001, 8, 17), QTime(11, 12, 03), Qt::UTC)): 2001/08/17 11:12:03.000[UTC] Loc: [/Net/mathstat/Users/Staff/rdieter/pkgs.fedoraproject.org/BUILDROOT/qca-2.1.0/unittest/certunittest/certunittest.cpp(1004)] FAIL! : CertUnitTest::crl2() Compared values are not the same Actual (crl1.thisUpdate()): 2001/04/19 14:57:20.000[local time] Expected (QDateTime(QDate(2001, 4, 19), QTime(14, 57, 20), Qt::UTC)): 2001/04/19 14:57:20.000[UTC] Loc: [/Net/mathstat/Users/Staff/rdieter/pkgs.fedoraproject.org/BUILDROOT/qca-2.1.0/unittest/certunittest/certunittest.cpp(1060)] PASS : CertUnitTest::csr() PASS : CertUnitTest::csr2() PASS : CertUnitTest::cleanupTestCase() Totals: 17 passed, 3 failed, 0 skipped ********* Finished testing of CertUnitTest ********* Start 4: SymmetricCipher 4/24 Test #4: SymmetricCipher .................. Passed 0.10 sec Start 5: ClientSidePlugin 5/24 Test #5: ClientSidePlugin ................. Passed 0.01 sec Start 6: CryptographicMessageSyntax 6/24 Test #6: CryptographicMessageSyntax ....... Passed 0.07 sec Start 7: DigitalSignatureAlgorithm 7/24 Test #7: DigitalSignatureAlgorithm ........***Failed 0.14 sec ********* Start testing of DSAUnitTest ********* Config: Using QTest library 4.8.6, Qt 4.8.6 PASS : DSAUnitTest::initTestCase() FAIL! : DSAUnitTest::testdsa() Compared values are not the same Actual (group.isNull()): 1 Expected (false): 0 Loc: [/Net/mathstat/Users/Staff/rdieter/pkgs.fedoraproject.org/BUILDROOT/qca-2.1.0/unittest/dsaunittest/dsaunittest.cpp(83)] PASS : DSAUnitTest::cleanupTestCase() Totals: 2 passed, 1 failed, 0 skipped ********* Finished testing of DSAUnitTest ********* Start 8: FileWatch 8/24 Test #8: FileWatch ........................ Passed 56.04 sec Start 9: Hashing 9/24 Test #9: Hashing .......................... Passed 0.12 sec Start 10: HexadecimalConversion 10/24 Test #10: HexadecimalConversion ............ Passed 0.01 sec Start 11: KeyDerivationFunction 11/24 Test #11: KeyDerivationFunction ............***Exception: Other 0.16 sec ********* Start testing of KDFUnitTest ********* Config: Using QTest library 4.8.6, Qt 4.8.6 PASS : KDFUnitTest::initTestCase() WARNING: KDFUnitTest::pbkdf1md2Tests(1) PBKDF version 1 with MD2 not supported for qca-botan WARNING: KDFUnitTest::pbkdf1md2Tests(2) PBKDF version 1 with MD2 not supported for qca-botan WARNING: KDFUnitTest::pbkdf1md2Tests(3) PBKDF version 1 with MD2 not supported for qca-botan WARNING: KDFUnitTest::pbkdf1md2Tests(4) PBKDF version 1 with MD2 not supported for qca-botan PASS : KDFUnitTest::pbkdf1md2Tests() WARNING: KDFUnitTest::pbkdf1sha1Tests(1) PBKDF version 1 with SHA1 not supported for qca-botan WARNING: KDFUnitTest::pbkdf1sha1Tests(2) PBKDF version 1 with SHA1 not supported for qca-botan WARNING: KDFUnitTest::pbkdf1sha1Tests(3) PBKDF version 1 with SHA1 not supported for qca-botan WARNING: KDFUnitTest::pbkdf1sha1Tests(4) PBKDF version 1 with SHA1 not supported for qca-botan WARNING: KDFUnitTest::pbkdf1sha1Tests(5) PBKDF version 1 with SHA1 not supported for qca-botan PASS : KDFUnitTest::pbkdf1sha1Tests() QFATAL : KDFUnitTest::pbkdf1sha1TimeTest() Received signal 11 FAIL! : KDFUnitTest::pbkdf1sha1TimeTest() Received a fatal error. Loc: [Unknown file(0)] Totals: 3 passed, 1 failed, 0 skipped ********* Finished testing of KDFUnitTest ********* Start 12: KeyBundle 12/24 Test #12: KeyBundle ........................ Passed 0.03 sec Start 13: KeyGeneration 13/24 Test #13: KeyGeneration ....................***Exception: Other 0.27 sec ********* Start testing of KeyGenUnitTest ********* Config: Using QTest library 4.8.6, Qt 4.8.6 PASS : KeyGenUnitTest::initTestCase() PASS : KeyGenUnitTest::testRSA() QFATAL : KeyGenUnitTest::testDSA() Received signal 11 FAIL! : KeyGenUnitTest::testDSA() Received a fatal error. Loc: [Unknown file(0)] Totals: 2 passed, 1 failed, 0 skipped ********* Finished testing of KeyGenUnitTest ********* Start 14: KeyLength 14/24 Test #14: KeyLength ........................ Passed 0.01 sec Start 15: KeyStore 15/24 Test #15: KeyStore ......................... Passed 0.01 sec Start 16: MessageAuthenticationCode 16/24 Test #16: MessageAuthenticationCode ........ Passed 0.02 sec Start 17: MetaTypeUnittest 17/24 Test #17: MetaTypeUnittest ................. Passed 0.01 sec Start 18: PGP 18/24 Test #18: PGP .............................. Passed 0.02 sec Start 19: PublicKeyInfrastructure 19/24 Test #19: PublicKeyInfrastructure .......... Passed 0.05 sec Start 20: RSA 20/24 Test #20: RSA ..............................***Exception: Other 0.39 sec ********* Start testing of RSAUnitTest ********* Config: Using QTest library 4.8.6, Qt 4.8.6 PASS : RSAUnitTest::initTestCase() PASS : RSAUnitTest::testrsa() QFATAL : RSAUnitTest::testAsymmetricEncryption() Received signal 11 FAIL! : RSAUnitTest::testAsymmetricEncryption() Received a fatal error. Loc: [Unknown file(0)] Totals: 2 passed, 1 failed, 0 skipped ********* Finished testing of RSAUnitTest ********* Start 21: SecureArray 21/24 Test #21: SecureArray ...................... Passed 0.01 sec Start 22: StaticFunctions 22/24 Test #22: StaticFunctions .................. Passed 0.01 sec Start 23: SymmetricKey 23/24 Test #23: SymmetricKey ..................... Passed 0.01 sec Start 24: TransportLayerSecurity 24/24 Test #24: TransportLayerSecurity ........... Passed 0.01 sec 79% tests passed, 5 tests failed out of 24 Total Test time (real) = 57.71 sec The following tests FAILED: 3 - Certificate (Failed) 7 - DigitalSignatureAlgorithm (Failed) 11 - KeyDerivationFunction (OTHER_FAULT) 13 - KeyGeneration (OTHER_FAULT) 20 - RSA (OTHER_FAULT)
If you get a chance and a few free moments, mind dropping by freenode/#fedora-kde , I've a few other packaging-related questions. One of which, how do you/upstream recommend packaging plugins? Each separately? Or do consider some of them core/essential enough to package along with libqca by default?
Created attachment 957643 [details] Fedora 20 x86_64 QCA tests On my system all tests passed
You need check that properly plugins used. What show './bin/qcatool --debug plugins' ?
Each separately.
Great, interestingly, under f21 koji builds those tests do not fail, but this one does: 8/24 Test #8: FileWatch ........................***Failed 56.04 sec ********* Start testing of FileWatchUnitTest ********* Config: Using QTest library 4.8.6, Qt 4.8.6 PASS : FileWatchUnitTest::initTestCase() WARNING: FileWatchUnitTest::filewatchTest() Unittest will take about 1 minute. Please wait. FAIL! : FileWatchUnitTest::filewatchTest() Compared values are not the same Actual (spy.count()): 5 Expected (4): 4 Loc: [/builddir/build/BUILD/qca-2.1.0/unittest/filewatchunittest/filewatchunittest.cpp(93)] PASS : FileWatchUnitTest::cleanupTestCase() Totals: 2 passed, 1 failed, 0 skipped ********* Finished testing of FileWatchUnitTest ********* Scratch build and all logs: http://koji.fedoraproject.org/koji/taskinfo?taskID=8143408 I'll submit a pkg review shortly
pkg review bug #1164348 *** This bug has been marked as a duplicate of bug 1164348 ***