unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#45194] [PATCH] gnu: Add okular.
       [not found] <87360bjnvc.fsf@qq.com>
@ 2020-12-12 10:54 ` Z572
  2020-12-12 23:23 ` Leo Famulari
       [not found] ` <87ft47a1ek.fsf@qq.com>
  2 siblings, 0 replies; 4+ messages in thread
From: Z572 @ 2020-12-12 10:54 UTC (permalink / raw)
  To: 45194

[-- Attachment #1: ebook-tools.patch --]
[-- Type: text/x-patch, Size: 1823 bytes --]

diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm
index a23c677880..b533ea96c1 100644
--- a/gnu/packages/ebook.scm
+++ b/gnu/packages/ebook.scm
@@ -7,6 +7,7 @@
 ;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
 ;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
 ;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
+;;; Copyright © 2020 Zheng Junjie <873216071@qq.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -29,6 +30,7 @@
   #:use-module (guix download)
   #:use-module (guix utils)
   #:use-module (guix git-download)
+  #:use-module (guix build-system cmake)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system meson)
   #:use-module (guix build-system python)
@@ -314,6 +316,31 @@ e-books for convenient reading.")
                    license:silofl1.1
                    license:cc-by-sa3.0))))
 
+(define-public ebook-tools
+  (package
+    (name "ebook-tools")
+    (version "0.2.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://sourceforge/ebook-tools/"
+                           name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1bi7wsz3p5slb43kj7lgb3r6lb91lvb6ldi556k4y50ix6b5khyb"))))
+    (arguments
+     `(#:tests? #f))
+    (build-system cmake-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("libzip" ,libzip)
+       ("libxml2" ,libxml2)))
+    (home-page "http://ebook-tools.sourceforge.net")
+    (synopsis "Tools and library for dealing with various ebook file formats")
+    (description "Tools and library for dealing with various ebook file formats")
+    (license license:expat)))
+
 (define-public liblinebreak
   (package
     (name "liblinebreak")

[-- Attachment #2: kdegraphics-mobipocket.patch --]
[-- Type: text/x-patch, Size: 1641 bytes --]

diff --git a/gnu/packages/kde.scm b/gnu/packages/kde.scm
index 1f747ecfd4..5bde6ebcc8 100644
--- a/gnu/packages/kde.scm
+++ b/gnu/packages/kde.scm
@@ -11,6 +11,7 @@
 ;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
 ;;; Copyright © 2020 Prafulla Giri <pratheblackdiamond@gmail.com>
+;;; Copyright © 2020 Zheng Junjie <873216071@qq.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -765,6 +766,30 @@ Python, PHP, and Perl.")
     (description "Runtime library for kdegames")
     (license (list license:gpl2+  license:fdl1.2+))))
 
+(define-public kdegraphics-mobipocket
+  (package
+    (name "kdegraphics-mobipocket")
+    (version "20.12.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://kde/stable/release-service/" version
+                           "/src/" name "-" version ".tar.xz"))
+       (file-name (string-append name "-" version "-checkout"))
+       (sha256
+        (base32 "0fm880lp9g60zgrkjyh4jxws6x0s77l9ia4f8pza3w8sxcbbswk5"))))
+    (arguments
+     `(#:tests? #f))
+    (build-system cmake-build-system)
+    (native-inputs
+     `(("extra-cmake-modules" ,extra-cmake-modules)))
+    (inputs
+     `(("kio" ,kio)
+       ("qtbase" ,qtbase)))
+    (home-page "https://apps.kde.org/graphics/")
+    (synopsis "Tools and library for dealing with various ebook file formats")
+    (description "Tools and library for dealing with various ebook file formats")
+    (license license:gpl2+)))
 (define-public zeroconf-ioslave
   (package
     (name "zeroconf-ioslave")

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: libkexiv2.patch --]
[-- Type: text/x-patch, Size: 1323 bytes --]

diff --git a/gnu/packages/kde.scm b/gnu/packages/kde.scm
index 5bde6ebcc8..acb5b4da30 100644
--- a/gnu/packages/kde.scm
+++ b/gnu/packages/kde.scm
@@ -790,6 +790,30 @@ Python, PHP, and Perl.")
     (synopsis "Tools and library for dealing with various ebook file formats")
     (description "Tools and library for dealing with various ebook file formats")
     (license license:gpl2+)))
+(define-public libkexiv2
+  (package
+    (name "libkexiv2")
+    (version "20.12.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://kde/stable/release-service/" version
+                           "/src/" name "-" version ".tar.xz"))
+       (file-name (string-append name "-" version "-checkout"))
+       (sha256
+        (base32 "0k0iinf7s8qlk3fwvq7iic1b4zn2gm65rfd58q7d3wb1i1j2hjjk"))))
+    (build-system cmake-build-system)
+    (native-inputs
+     `(("extra-cmake-modules" ,extra-cmake-modules)
+       ("pkg-config" ,pkg-config)))
+    (inputs
+     `(("exiv2" ,exiv2)
+       ("qtbase" ,qtbase)))
+    (home-page "https://apps.kde.org/graphics/")
+    (synopsis "A library to manipulate pictures metadata")
+    (description "A library to manipulate pictures metadata")
+    (license license:gpl2+)))
+
 (define-public zeroconf-ioslave
   (package
     (name "zeroconf-ioslave")

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #4: okular.patch --]
[-- Type: text/x-patch, Size: 2809 bytes --]

diff --git a/gnu/packages/kde.scm b/gnu/packages/kde.scm
index acb5b4da30..55a78a62ad 100644
--- a/gnu/packages/kde.scm
+++ b/gnu/packages/kde.scm
@@ -62,6 +62,9 @@
   #:use-module (gnu packages llvm)
   #:use-module (gnu packages maths)
   #:use-module (gnu packages pdf)
+  #:use-module (gnu packages ebook)
+  #:use-module (gnu packages djvu)
+  #:use-module (gnu packages markup)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages photo)
   #:use-module (gnu packages pkg-config)
@@ -790,6 +793,67 @@ Python, PHP, and Perl.")
     (synopsis "Tools and library for dealing with various ebook file formats")
     (description "Tools and library for dealing with various ebook file formats")
     (license license:gpl2+)))
+
+(define-public okular
+  (package
+    (name "okular")
+    (version "20.12.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://kde/stable/release-service/" version
+                           "/src/" name "-" version ".tar.xz"))
+       (file-name (string-append name "-" version "-checkout"))
+       (sha256
+        (base32 "1kib8zqfd9qgqn7bz88hay2j3kcvarnlfyr3a417pi6rvaam6b4p"))))
+    (build-system qt-build-system)
+    (arguments
+     `(#:tests? #f))
+    (native-inputs
+     `(("extra-cmake-modules" ,extra-cmake-modules)
+       ("pkg-config" ,pkg-config)))
+    (inputs
+     `(("ebook-tools" ,ebook-tools)
+       ("discount" ,discount)
+       ("djvulibre" ,djvulibre)
+       ("kactivities" ,kactivities)
+       ("khtml" ,khtml)
+       ("chmlib" ,chmlib)
+       ("kdoctools" ,kdoctools)
+       ("kdegraphics-mobipocket" ,kdegraphics-mobipocket)
+       ("karchive" ,karchive)
+       ("kbookmarks" ,kbookmarks)
+       ("kcompletion" ,kcompletion)
+       ("kconfig" ,kconfig)
+       ("qtbase" ,qtbase)
+       ("kconfigwidgets" ,kconfigwidgets)
+       ("kcoreaddons" ,kcoreaddons)
+       ("kdbusaddons" ,kdbusaddons)
+       ("kiconthemes" ,kiconthemes)
+       ("kio" ,kio)
+       ("kparts" ,kparts)
+       ("kpty" ,kpty)
+       ("kwallet" ,kwallet)
+       ("kwindowsystem" ,kwindowsystem)
+       ("libkexiv2" ,libkexiv2)
+       ("libspectre" ,libspectre)
+       ("libzip" ,libzip)
+       ("phonon" ,phonon)
+       ("poppler" ,poppler)
+       ("qca" ,qca)
+       ("qtdeclarative" ,qtdeclarative)
+       ("qtsvg" ,qtsvg)
+       ("threadweaver" ,threadweaver)
+       ("kcrash" ,kcrash)
+       ("kjs" ,kjs)))
+    (home-page "https://kde.org/applications/graphics/okular/")
+    (synopsis "Document Viewer")
+    (description "
+Okular is a universal document viewer developed by KDE.
+ Okular works on multiple platforms, including but not limited to
+ Linux, Windows, macOS, *BSD, etc.")
+    (license license:gpl2+)))
+
 (define-public libkexiv2
   (package
     (name "libkexiv2")

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#45194] [PATCH] gnu: Add okular.
       [not found] <87360bjnvc.fsf@qq.com>
  2020-12-12 10:54 ` [bug#45194] [PATCH] gnu: Add okular Z572
@ 2020-12-12 23:23 ` Leo Famulari
       [not found] ` <87ft47a1ek.fsf@qq.com>
  2 siblings, 0 replies; 4+ messages in thread
From: Leo Famulari @ 2020-12-12 23:23 UTC (permalink / raw)
  To: Z572; +Cc: 45194

[-- Attachment #1: Type: text/plain, Size: 2289 bytes --]

Thank you for these patches!

On Sat, Dec 12, 2020 at 06:54:31PM +0800, Z572 wrote:
> +(define-public ebook-tools

> +       (uri (string-append "mirror://sourceforge/ebook-tools/"
> +                           name "-" version ".tar.gz"))

I corrected this to:

(uri (string-append "mirror://sourceforge/ebook-tools/ebook-tools/"
                    version "/ebook-tools-" version ".tar.gz"))

> +    (description "Tools and library for dealing with various ebook file formats")

Thanks! I made the description use "complete sentences" and pushed.

> +(define-public kdegraphics-mobipocket

> +       (file-name (string-append name "-" version "-checkout"))

I removed this line.

> +    (arguments
> +     `(#:tests? #f))

I removed this. There are no tests but it's better to "use the defaults"
when they work.

> +    (home-page "https://apps.kde.org/graphics/")

I changed this to <https://apps.kde.org/en/kdegraphics_mobipocket>

> +    (synopsis "Tools and library for dealing with various ebook file formats")
> +    (description "Tools and library for dealing with various ebook file formats")

I changed these to describe kdegraphics-mobipocket.

> +(define-public libkexiv2

> +       (file-name (string-append name "-" version "-checkout"))

I removed this line.

> +    (native-inputs
> +     `(("extra-cmake-modules" ,extra-cmake-modules)
> +       ("pkg-config" ,pkg-config)))

I removed pkg-config, which seems to be unusued.

> +    (home-page "https://apps.kde.org/graphics/")

I changed this to <https://invent.kde.org/graphics/libkexiv2>.

> +    (synopsis "A library to manipulate pictures metadata")
> +    (description "A library to manipulate pictures metadata")

I adjusted these to be more descriptive.

With those changes, I pushed libkexiv2, kdegraphics-mobipocket, and
ebook-tools as commit fdfa25ed7b993597993f0afb355d1da928143e17.

> +(define-public okular

Overall, the Okular package looks good.

> +    (arguments
> +     `(#:tests? #f))

The only problem is that the test suite fails. In Guix, we aim for our
packages to pass upstream test suites unless there is a good reason not to.

I've attached the log of the test failures. Most of the failures seem to
caused by missing mimetype plugins. Does anyone know how to fix it?
Should we skip the tests?

[-- Attachment #2: tests.log --]
[-- Type: text/plain, Size: 30432 bytes --]

starting phase `check'
Running tests...
/gnu/store/89rj5fqcg48afgk99639ds602pgf92k4-cmake-minimal-3.16.5/bin/ctest --force-new-ctest-process 
Test project /tmp/guix-build-okular-20.12.0.drv-0/build
      Start  1: kimgiotest
 1/21 Test  #1: kimgiotest .......................***Failed    0.17 sec
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/guix-build-okular-20.12.0.drv-0/runtime-nixbld'
********* Start testing of KIMGIOTest *********
Config: Using QtTest library 5.14.2, Qt 5.14.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.5.0)
PASS   : KIMGIOTest::initTestCase()
QWARN  : KIMGIOTest::testExifOrientation(No Exif metadata) org.kde.okular.core: No plugin for mimetype '"image/jpeg"'.
FAIL!  : KIMGIOTest::testExifOrientation(No Exif metadata) Compared values are not the same
   Actual   ((int)m_document->openDocument(imgPath, QUrl(), mime)): 1
   Expected ((int)Okular::Document::OpenSuccess)                  : 0
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/generators/kimgio/tests/kimgiotest.cpp(88)]
QDEBUG : KIMGIOTest::testExifOrientation(Unspecified) SettingsCore::instance called after the first use - ignoring
QWARN  : KIMGIOTest::testExifOrientation(Unspecified) org.kde.okular.core: No plugin for mimetype '"image/jpeg"'.
FAIL!  : KIMGIOTest::testExifOrientation(Unspecified) Compared values are not the same
   Actual   ((int)m_document->openDocument(imgPath, QUrl(), mime)): 1
   Expected ((int)Okular::Document::OpenSuccess)                  : 0
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/generators/kimgio/tests/kimgiotest.cpp(88)]
QDEBUG : KIMGIOTest::testExifOrientation(Horizontal (normal)) SettingsCore::instance called after the first use - ignoring
QWARN  : KIMGIOTest::testExifOrientation(Horizontal (normal)) org.kde.okular.core: No plugin for mimetype '"image/jpeg"'.
FAIL!  : KIMGIOTest::testExifOrientation(Horizontal (normal)) Compared values are not the same
   Actual   ((int)m_document->openDocument(imgPath, QUrl(), mime)): 1
   Expected ((int)Okular::Document::OpenSuccess)                  : 0
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/generators/kimgio/tests/kimgiotest.cpp(88)]
QDEBUG : KIMGIOTest::testExifOrientation(Mirror horizontal) SettingsCore::instance called after the first use - ignoring
QWARN  : KIMGIOTest::testExifOrientation(Mirror horizontal) org.kde.okular.core: No plugin for mimetype '"image/jpeg"'.
FAIL!  : KIMGIOTest::testExifOrientation(Mirror horizontal) Compared values are not the same
   Actual   ((int)m_document->openDocument(imgPath, QUrl(), mime)): 1
   Expected ((int)Okular::Document::OpenSuccess)                  : 0
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/generators/kimgio/tests/kimgiotest.cpp(88)]
QDEBUG : KIMGIOTest::testExifOrientation(Rotate 90 CW) SettingsCore::instance called after the first use - ignoring
QWARN  : KIMGIOTest::testExifOrientation(Rotate 90 CW) org.kde.okular.core: No plugin for mimetype '"image/jpeg"'.
FAIL!  : KIMGIOTest::testExifOrientation(Rotate 90 CW) Compared values are not the same
   Actual   ((int)m_document->openDocument(imgPath, QUrl(), mime)): 1
   Expected ((int)Okular::Document::OpenSuccess)                  : 0
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/generators/kimgio/tests/kimgiotest.cpp(88)]
QDEBUG : KIMGIOTest::testExifOrientation(Mirror horizontal and rotate 90 CW) SettingsCore::instance called after the first use - ignoring
QWARN  : KIMGIOTest::testExifOrientation(Mirror horizontal and rotate 90 CW) org.kde.okular.core: No plugin for mimetype '"image/jpeg"'.
FAIL!  : KIMGIOTest::testExifOrientation(Mirror horizontal and rotate 90 CW) Compared values are not the same
   Actual   ((int)m_document->openDocument(imgPath, QUrl(), mime)): 1
   Expected ((int)Okular::Document::OpenSuccess)                  : 0
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/generators/kimgio/tests/kimgiotest.cpp(88)]
QDEBUG : KIMGIOTest::testExifOrientation(Rotate 180) SettingsCore::instance called after the first use - ignoring
QWARN  : KIMGIOTest::testExifOrientation(Rotate 180) org.kde.okular.core: No plugin for mimetype '"image/jpeg"'.
FAIL!  : KIMGIOTest::testExifOrientation(Rotate 180) Compared values are not the same
   Actual   ((int)m_document->openDocument(imgPath, QUrl(), mime)): 1
   Expected ((int)Okular::Document::OpenSuccess)                  : 0
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/generators/kimgio/tests/kimgiotest.cpp(88)]
QDEBUG : KIMGIOTest::testExifOrientation(Mirror vertical) SettingsCore::instance called after the first use - ignoring
QWARN  : KIMGIOTest::testExifOrientation(Mirror vertical) org.kde.okular.core: No plugin for mimetype '"image/jpeg"'.
FAIL!  : KIMGIOTest::testExifOrientation(Mirror vertical) Compared values are not the same
   Actual   ((int)m_document->openDocument(imgPath, QUrl(), mime)): 1
   Expected ((int)Okular::Document::OpenSuccess)                  : 0
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/generators/kimgio/tests/kimgiotest.cpp(88)]
QDEBUG : KIMGIOTest::testExifOrientation(Rotate 270 CW) SettingsCore::instance called after the first use - ignoring
QWARN  : KIMGIOTest::testExifOrientation(Rotate 270 CW) org.kde.okular.core: No plugin for mimetype '"image/jpeg"'.
FAIL!  : KIMGIOTest::testExifOrientation(Rotate 270 CW) Compared values are not the same
   Actual   ((int)m_document->openDocument(imgPath, QUrl(), mime)): 1
   Expected ((int)Okular::Document::OpenSuccess)                  : 0
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/generators/kimgio/tests/kimgiotest.cpp(88)]
QDEBUG : KIMGIOTest::testExifOrientation(Mirror horizontal and rotate 270 CW) SettingsCore::instance called after the first use - ignoring
QWARN  : KIMGIOTest::testExifOrientation(Mirror horizontal and rotate 270 CW) org.kde.okular.core: No plugin for mimetype '"image/jpeg"'.
FAIL!  : KIMGIOTest::testExifOrientation(Mirror horizontal and rotate 270 CW) Compared values are not the same
   Actual   ((int)m_document->openDocument(imgPath, QUrl(), mime)): 1
   Expected ((int)Okular::Document::OpenSuccess)                  : 0
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/generators/kimgio/tests/kimgiotest.cpp(88)]
PASS   : KIMGIOTest::cleanupTestCase()
Totals: 2 passed, 10 failed, 0 skipped, 0 blacklisted, 95ms
********* Finished testing of KIMGIOTest *********

      Start  2: chmgeneratortest
 2/21 Test  #2: chmgeneratortest .................***Failed    0.13 sec
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/guix-build-okular-20.12.0.drv-0/runtime-nixbld'
********* Start testing of ChmGeneratorTest *********
Config: Using QtTest library 5.14.2, Qt 5.14.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.5.0)
QWARN  : ChmGeneratorTest::initTestCase() org.kde.okular.core: No plugin for mimetype '"application/octet-stream"'.
FAIL!  : ChmGeneratorTest::initTestCase() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/generators/chm/autotests/chmgeneratortest.cpp(38)]
PASS   : ChmGeneratorTest::cleanupTestCase()
Totals: 1 passed, 1 failed, 0 skipped, 0 blacklisted, 87ms
********* Finished testing of ChmGeneratorTest *********

      Start  3: comicbooktest
 3/21 Test  #3: comicbooktest ....................   Passed    0.14 sec
      Start  4: epubgeneratortest
 4/21 Test  #4: epubgeneratortest ................***Failed    0.13 sec
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/guix-build-okular-20.12.0.drv-0/runtime-nixbld'
********* Start testing of EpubGeneratorTest *********
Config: Using QtTest library 5.14.2, Qt 5.14.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.5.0)
QWARN  : EpubGeneratorTest::initTestCase() org.kde.okular.core: No plugin for mimetype '"application/epub+zip"'.
FAIL!  : EpubGeneratorTest::initTestCase() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/generators/epub/autotests/epubgeneratortest.cpp(38)]
PASS   : EpubGeneratorTest::cleanupTestCase()
Totals: 1 passed, 1 failed, 0 skipped, 0 blacklisted, 94ms
********* Finished testing of EpubGeneratorTest *********

      Start  5: editdrawingtooldialogtest
 5/21 Test  #5: editdrawingtooldialogtest ........   Passed    0.08 sec
      Start  6: shelltest
 6/21 Test  #6: shelltest ........................   Passed    0.03 sec
      Start  7: documenttest
 7/21 Test  #7: documenttest .....................***Failed    0.13 sec
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/guix-build-okular-20.12.0.drv-0/runtime-nixbld'
********* Start testing of DocumentTest *********
Config: Using QtTest library 5.14.2, Qt 5.14.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.5.0)
PASS   : DocumentTest::initTestCase()
QWARN  : DocumentTest::testCloseDuringRotationJob() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
PASS   : DocumentTest::testCloseDuringRotationJob()
QDEBUG : DocumentTest::testDocdataMigration() SettingsCore::instance called after the first use - ignoring
FAIL!  : DocumentTest::testDocdataMigration() 'QFile::copy(KDESRCDIR "data/file1-docdata.xml", docDataPath)' returned FALSE. ()
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/documenttest.cpp(83)]
PASS   : DocumentTest::cleanupTestCase()
Totals: 3 passed, 1 failed, 0 skipped, 0 blacklisted, 88ms
********* Finished testing of DocumentTest *********

      Start  8: searchtest
 8/21 Test  #8: searchtest .......................***Failed    0.13 sec
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/guix-build-okular-20.12.0.drv-0/runtime-nixbld'
********* Start testing of SearchTest *********
Config: Using QtTest library 5.14.2, Qt 5.14.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.5.0)
PASS   : SearchTest::initTestCase()
PASS   : SearchTest::testNextAndPrevious()
QWARN  : SearchTest::test311232() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : SearchTest::test311232() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/searchtest.cpp(178)]
PASS   : SearchTest::test323262()
PASS   : SearchTest::test323263()
PASS   : SearchTest::testDottedI()
PASS   : SearchTest::testHyphenAtEndOfLineWithoutYOverlap()
PASS   : SearchTest::testHyphenWithYOverlap()
PASS   : SearchTest::testHyphenAtEndOfPage()
PASS   : SearchTest::testOneColumn()
PASS   : SearchTest::testTwoColumns()
PASS   : SearchTest::cleanupTestCase()
Totals: 11 passed, 1 failed, 0 skipped, 0 blacklisted, 88ms
********* Finished testing of SearchTest *********

      Start  9: annotationstest
 9/21 Test  #9: annotationstest ..................***Failed    0.13 sec
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/guix-build-okular-20.12.0.drv-0/runtime-nixbld'
********* Start testing of AnnotationTest *********
Config: Using QtTest library 5.14.2, Qt 5.14.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.5.0)
QWARN  : AnnotationTest::initTestCase() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : AnnotationTest::initTestCase() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/annotationstest.cpp(47)]
PASS   : AnnotationTest::cleanupTestCase()
Totals: 1 passed, 1 failed, 0 skipped, 0 blacklisted, 89ms
********* Finished testing of AnnotationTest *********

      Start 10: urldetecttest
10/21 Test #10: urldetecttest ....................   Passed    0.02 sec
      Start 11: editannotationcontentstest
11/21 Test #11: editannotationcontentstest .......***Failed    0.13 sec
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/guix-build-okular-20.12.0.drv-0/runtime-nixbld'
********* Start testing of EditAnnotationContentsTest *********
Config: Using QtTest library 5.14.2, Qt 5.14.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.5.0)
PASS   : EditAnnotationContentsTest::initTestCase()
QWARN  : EditAnnotationContentsTest::testConsecutiveCharBackspacesMerged() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : EditAnnotationContentsTest::testConsecutiveCharBackspacesMerged() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/editannotationcontentstest.cpp(118)]
QWARN  : EditAnnotationContentsTest::testConsecutiveNewlineBackspacesNotMerged() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : EditAnnotationContentsTest::testConsecutiveNewlineBackspacesNotMerged() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/editannotationcontentstest.cpp(118)]
QWARN  : EditAnnotationContentsTest::testConsecutiveCharInsertionsMerged() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : EditAnnotationContentsTest::testConsecutiveCharInsertionsMerged() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/editannotationcontentstest.cpp(118)]
QWARN  : EditAnnotationContentsTest::testConsecutiveNewlineInsertionsNotMerged() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : EditAnnotationContentsTest::testConsecutiveNewlineInsertionsNotMerged() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/editannotationcontentstest.cpp(118)]
QWARN  : EditAnnotationContentsTest::testConsecutiveCharDeletesMerged() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : EditAnnotationContentsTest::testConsecutiveCharDeletesMerged() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/editannotationcontentstest.cpp(118)]
QWARN  : EditAnnotationContentsTest::testConsecutiveNewlineDeletesNotMerged() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : EditAnnotationContentsTest::testConsecutiveNewlineDeletesNotMerged() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/editannotationcontentstest.cpp(118)]
QWARN  : EditAnnotationContentsTest::testConsecutiveEditsNotMergedAcrossDifferentAnnotations() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : EditAnnotationContentsTest::testConsecutiveEditsNotMergedAcrossDifferentAnnotations() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/editannotationcontentstest.cpp(118)]
QWARN  : EditAnnotationContentsTest::testInsertWithSelection() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : EditAnnotationContentsTest::testInsertWithSelection() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/editannotationcontentstest.cpp(118)]
QWARN  : EditAnnotationContentsTest::testCombinations() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : EditAnnotationContentsTest::testCombinations() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/editannotationcontentstest.cpp(118)]
PASS   : EditAnnotationContentsTest::cleanupTestCase()
Totals: 2 passed, 9 failed, 0 skipped, 0 blacklisted, 89ms
********* Finished testing of EditAnnotationContentsTest *********

      Start 12: addremoveannotationtest
12/21 Test #12: addremoveannotationtest ..........***Failed    0.13 sec
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/guix-build-okular-20.12.0.drv-0/runtime-nixbld'
********* Start testing of AddRemoveAnnotationTest *********
Config: Using QtTest library 5.14.2, Qt 5.14.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.5.0)
PASS   : AddRemoveAnnotationTest::initTestCase()
QWARN  : AddRemoveAnnotationTest::testAddAnnotations() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : AddRemoveAnnotationTest::testAddAnnotations() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/addremoveannotationtest.cpp(45)]
QWARN  : AddRemoveAnnotationTest::testAddAnnotationUndoWithRotate_Bug318091() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : AddRemoveAnnotationTest::testAddAnnotationUndoWithRotate_Bug318091() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/addremoveannotationtest.cpp(45)]
QWARN  : AddRemoveAnnotationTest::testRemoveAnnotations() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : AddRemoveAnnotationTest::testRemoveAnnotations() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/addremoveannotationtest.cpp(45)]
PASS   : AddRemoveAnnotationTest::cleanupTestCase()
Totals: 2 passed, 3 failed, 0 skipped, 0 blacklisted, 89ms
********* Finished testing of AddRemoveAnnotationTest *********

      Start 13: translateannotationtest
13/21 Test #13: translateannotationtest ..........***Failed    0.13 sec
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/guix-build-okular-20.12.0.drv-0/runtime-nixbld'
********* Start testing of TranslateAnnotationTest *********
Config: Using QtTest library 5.14.2, Qt 5.14.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.5.0)
PASS   : TranslateAnnotationTest::initTestCase()
QWARN  : TranslateAnnotationTest::testTranslateAnnotation() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : TranslateAnnotationTest::testTranslateAnnotation() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/translateannotationtest.cpp(97)]
QWARN  : TranslateAnnotationTest::testSequentialTranslationsMergedIfBeingMovedIsSet() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : TranslateAnnotationTest::testSequentialTranslationsMergedIfBeingMovedIsSet() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/translateannotationtest.cpp(97)]
QWARN  : TranslateAnnotationTest::testSequentialTranslationsNotMergedIfBeingMovedIsNotSet() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : TranslateAnnotationTest::testSequentialTranslationsNotMergedIfBeingMovedIsNotSet() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/translateannotationtest.cpp(97)]
QWARN  : TranslateAnnotationTest::testAlternateTranslationsNotMerged() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : TranslateAnnotationTest::testAlternateTranslationsNotMerged() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/translateannotationtest.cpp(97)]
PASS   : TranslateAnnotationTest::cleanupTestCase()
Totals: 2 passed, 4 failed, 0 skipped, 0 blacklisted, 88ms
********* Finished testing of TranslateAnnotationTest *********

      Start 14: modifyannotationpropertiestest
14/21 Test #14: modifyannotationpropertiestest ...***Failed    0.13 sec
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/guix-build-okular-20.12.0.drv-0/runtime-nixbld'
********* Start testing of ModifyAnnotationPropertiesTest *********
Config: Using QtTest library 5.14.2, Qt 5.14.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.5.0)
PASS   : ModifyAnnotationPropertiesTest::initTestCase()
QWARN  : ModifyAnnotationPropertiesTest::testModifyAnnotationProperties() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : ModifyAnnotationPropertiesTest::testModifyAnnotationProperties() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/modifyannotationpropertiestest.cpp(54)]
QWARN  : ModifyAnnotationPropertiesTest::testModifyDefaultAnnotationProperties() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : ModifyAnnotationPropertiesTest::testModifyDefaultAnnotationProperties() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/modifyannotationpropertiestest.cpp(54)]
QWARN  : ModifyAnnotationPropertiesTest::testModifyAnnotationPropertiesWithRotation_Bug318828() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : ModifyAnnotationPropertiesTest::testModifyAnnotationPropertiesWithRotation_Bug318828() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/modifyannotationpropertiestest.cpp(54)]
PASS   : ModifyAnnotationPropertiesTest::cleanupTestCase()
Totals: 2 passed, 3 failed, 0 skipped, 0 blacklisted, 88ms
********* Finished testing of ModifyAnnotationPropertiesTest *********

      Start 15: editformstest
15/21 Test #15: editformstest ....................***Failed    0.13 sec
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/guix-build-okular-20.12.0.drv-0/runtime-nixbld'
********* Start testing of EditFormsTest *********
Config: Using QtTest library 5.14.2, Qt 5.14.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.5.0)
PASS   : EditFormsTest::initTestCase()
QWARN  : EditFormsTest::testRadioButtonForm() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : EditFormsTest::testRadioButtonForm() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/editformstest.cpp(71)]
QWARN  : EditFormsTest::testCheckBoxForm() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : EditFormsTest::testCheckBoxForm() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/editformstest.cpp(71)]
QWARN  : EditFormsTest::testTextLineForm() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : EditFormsTest::testTextLineForm() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/editformstest.cpp(71)]
QWARN  : EditFormsTest::testTextAreaForm() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : EditFormsTest::testTextAreaForm() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/editformstest.cpp(71)]
QWARN  : EditFormsTest::testFileEditForm() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : EditFormsTest::testFileEditForm() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/editformstest.cpp(71)]
QWARN  : EditFormsTest::testComboEditForm() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : EditFormsTest::testComboEditForm() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/editformstest.cpp(71)]
QWARN  : EditFormsTest::testListSingleEdit() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : EditFormsTest::testListSingleEdit() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/editformstest.cpp(71)]
QWARN  : EditFormsTest::testListMultiEdit() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : EditFormsTest::testListMultiEdit() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/editformstest.cpp(71)]
PASS   : EditFormsTest::cleanupTestCase()
Totals: 2 passed, 8 failed, 0 skipped, 0 blacklisted, 89ms
********* Finished testing of EditFormsTest *********

      Start 16: calculatetexttest
16/21 Test #16: calculatetexttest ................***Failed    0.13 sec
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/guix-build-okular-20.12.0.drv-0/runtime-nixbld'
********* Start testing of CalculateTextTest *********
Config: Using QtTest library 5.14.2, Qt 5.14.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.5.0)
PASS   : CalculateTextTest::initTestCase()
QWARN  : CalculateTextTest::testSimpleCalculate() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : CalculateTextTest::testSimpleCalculate() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/calculatetexttest.cpp(58)]
PASS   : CalculateTextTest::cleanupTestCase()
Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 87ms
********* Finished testing of CalculateTextTest *********

      Start 17: mainshelltest
17/21 Test #17: mainshelltest ....................***Failed    0.05 sec
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/guix-build-okular-20.12.0.drv-0/runtime-nixbld'
********* Start testing of MainShellTest *********
Config: Using QtTest library 5.14.2, Qt 5.14.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.5.0)
QWARN  : MainShellTest::initTestCase() Unable to open DrawingTools XML definition
QWARN  : MainShellTest::initTestCase() Unable to open AnnotatingTools XML definition
QWARN  : MainShellTest::initTestCase() Unable to open QuickAnnotatingTools XML definition
FAIL!  : MainShellTest::initTestCase() 'bus->registerService(serviceName) == QDBusConnectionInterface::ServiceRegistered' returned FALSE. ()
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/mainshelltest.cpp(145)]
PASS   : MainShellTest::cleanupTestCase()
Totals: 1 passed, 1 failed, 0 skipped, 0 blacklisted, 2ms
********* Finished testing of MainShellTest *********

      Start 18: annotationtoolbartest
18/21 Test #18: annotationtoolbartest ............Child aborted***Exception: 300.05 sec
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/guix-build-okular-20.12.0.drv-0/runtime-nixbld'
********* Start testing of AnnotationToolBarTest *********
Config: Using QtTest library 5.14.2, Qt 5.14.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.5.0)
QWARN  : AnnotationToolBarTest::initTestCase() Unable to open DrawingTools XML definition
QWARN  : AnnotationToolBarTest::initTestCase() Unable to open AnnotatingTools XML definition
QWARN  : AnnotationToolBarTest::initTestCase() Unable to open QuickAnnotatingTools XML definition
PASS   : AnnotationToolBarTest::initTestCase()
QWARN  : AnnotationToolBarTest::testAnnotationToolBar(first tab) org.kde.kwindowsystem: Could not find any platform plugin
QWARN  : AnnotationToolBarTest::testAnnotationToolBar(first tab) kf5.kxmlgui: cannot find .rc file "shell.rc" for component "okular"
QDEBUG : AnnotationToolBarTest::testAnnotationToolBar(first tab) Settings::instance called after the first use - ignoring
QWARN  : AnnotationToolBarTest::testAnnotationToolBar(first tab) Icon theme "breeze" not found.
QWARN  : AnnotationToolBarTest::testAnnotationToolBar(first tab) kf5.kxmlgui: cannot find .rc file "part.rc" for component "okular"
QWARN  : AnnotationToolBarTest::testAnnotationToolBar(first tab) This plugin does not support propagateSizeHints()
QWARN  : AnnotationToolBarTest::testAnnotationToolBar(first tab) kf5.kxmlgui: cannot find .rc file "shell.rc" for component "okular"
QWARN  : AnnotationToolBarTest::testAnnotationToolBar(first tab) Icon theme "breeze" not found.
QWARN  : AnnotationToolBarTest::testAnnotationToolBar(first tab) This plugin does not support propagateSizeHints()
QWARN  : AnnotationToolBarTest::testAnnotationToolBar(first tab) org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
QWARN  : AnnotationToolBarTest::testAnnotationToolBar(first tab) This plugin does not support propagateSizeHints()
QWARN  : AnnotationToolBarTest::testAnnotationToolBar(first tab) This plugin does not support propagateSizeHints()
QWARN  : AnnotationToolBarTest::testAnnotationToolBar(first tab) This plugin does not support propagateSizeHints()
QWARN  : AnnotationToolBarTest::testAnnotationToolBar(first tab) This plugin does not support propagateSizeHints()

=== Received signal at function time: 300000ms, total time: 300002ms, dumping stack ===
=== End of stack trace ===
QFATAL : AnnotationToolBarTest::testAnnotationToolBar(first tab) Test function timed out
FAIL!  : AnnotationToolBarTest::testAnnotationToolBar(first tab) Received a fatal error.
   Loc: [Unknown file(0)]
Totals: 1 passed, 1 failed, 0 skipped, 0 blacklisted, 300004ms
********* Finished testing of AnnotationToolBarTest *********

      Start 19: generatorstest
19/21 Test #19: generatorstest ...................   Passed    0.04 sec
      Start 20: signatureformtest
20/21 Test #20: signatureformtest ................***Failed    0.12 sec
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/guix-build-okular-20.12.0.drv-0/runtime-nixbld'
********* Start testing of SignatureFormTest *********
Config: Using QtTest library 5.14.2, Qt 5.14.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.5.0)
PASS   : SignatureFormTest::initTestCase()
QWARN  : SignatureFormTest::testSignatureForm() org.kde.okular.core: No plugin for mimetype '"application/pdf"'.
FAIL!  : SignatureFormTest::testSignatureForm() Compared values are not the same
   Loc: [/tmp/guix-build-okular-20.12.0.drv-0/okular-20.12.0/autotests/signatureformtest.cpp(49)]
PASS   : SignatureFormTest::cleanupTestCase()
Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 86ms
********* Finished testing of SignatureFormTest *********

      Start 21: markdowntest
21/21 Test #21: markdowntest .....................   Passed    0.35 sec

29% tests passed, 15 tests failed out of 21

Total Test time (real) = 302.47 sec

The following tests FAILED:
	  1 - kimgiotest (Failed)
	  2 - chmgeneratortest (Failed)
	  4 - epubgeneratortest (Failed)
	  7 - documenttest (Failed)
	  8 - searchtest (Failed)
	  9 - annotationstest (Failed)
	 11 - editannotationcontentstest (Failed)
	 12 - addremoveannotationtest (Failed)
	 13 - translateannotationtest (Failed)
	 14 - modifyannotationpropertiestest (Failed)
	 15 - editformstest (Failed)
	 16 - calculatetexttest (Failed)
	 17 - mainshelltest (Failed)
	 18 - annotationtoolbartest (Child aborted)
	 20 - signatureformtest (Failed)
Errors while running CTest
make: *** [Makefile:133: test] Error 8

Test suite failed, dumping logs.
command "make" "test" failed with status 2

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#45194] (no subject)
       [not found] ` <87ft47a1ek.fsf@qq.com>
@ 2020-12-15  9:01   ` Z572
  2020-12-15 20:35   ` bug#45194: " Leo Famulari
  1 sibling, 0 replies; 4+ messages in thread
From: Z572 @ 2020-12-15  9:01 UTC (permalink / raw)
  To: 45194

[-- Attachment #1: Type: text/plain, Size: 286 bytes --]


Hi

This is an updated patch, increasing several missed inputs, remove
several invalid inputs.

> I've attached the log of the test failures. Most of the failures seem to
> caused by missing mimetype plugins. Does anyone know how to fix it?
> Should we skip the tests?

I don't know.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: okular.patch --]
[-- Type: text/x-patch, Size: 2971 bytes --]

diff --git a/gnu/packages/kde.scm b/gnu/packages/kde.scm
index 3a15aa6554..710efd34e8 100644
--- a/gnu/packages/kde.scm
+++ b/gnu/packages/kde.scm
@@ -62,6 +62,10 @@
   #:use-module (gnu packages llvm)
   #:use-module (gnu packages maths)
   #:use-module (gnu packages pdf)
+  #:use-module (gnu packages fontutils)
+  #:use-module (gnu packages ebook)
+  #:use-module (gnu packages markup)
+  #:use-module (gnu packages djvu)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages photo)
   #:use-module (gnu packages pkg-config)
@@ -766,6 +770,71 @@ Python, PHP, and Perl.")
     (description "Runtime library for kdegames")
     (license (list license:gpl2+  license:fdl1.2+))))
 
+(define-public okular
+  (package
+    (name "okular")
+    (version "20.12.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://kde/stable/release-service/" version
+                           "/src/" name "-" version ".tar.xz"))
+       (file-name (string-append name "-" version "-checkout"))
+       (sha256
+        (base32 "1kib8zqfd9qgqn7bz88hay2j3kcvarnlfyr3a417pi6rvaam6b4p"))))
+    (build-system qt-build-system)
+    (arguments
+     `(#:tests? #f
+       #:configure-flags
+       (list "-DBUILD_TESTING=OFF")))
+    (native-inputs
+     `(("extra-cmake-modules" ,extra-cmake-modules)
+       ("kdoctools" ,kdoctools)
+       ("pkg-config" ,pkg-config)))
+    (inputs
+     `(("ebook-tools" ,ebook-tools)
+       ("breeze-icons" ,breeze-icons)
+       ("discount" ,discount)
+       ("djvulibre" ,djvulibre)
+       ("kactivities" ,kactivities)
+       ("khtml" ,khtml)
+       ("chmlib" ,chmlib)
+       ("kdegraphics-mobipocket" ,kdegraphics-mobipocket)
+       ("karchive" ,karchive)
+       ("kbookmarks" ,kbookmarks)
+       ("kcompletion" ,kcompletion)
+       ("kconfig" ,kconfig)
+       ("qtbase" ,qtbase)
+       ("libjpeg-turbo" ,libjpeg-turbo)
+       ("libtiff" ,libtiff)
+       ("kirigami" ,kirigami)
+       ("purpose" ,purpose)
+       ("freetype" ,freetype)
+       ("kiconthemes" ,kiconthemes)
+       ("kio" ,kio)
+       ("kparts" ,kparts)
+       ("kpty" ,kpty)
+       ("qtspeech" ,qtspeech)
+       ("kwallet" ,kwallet)
+       ("kwindowsystem" ,kwindowsystem)
+       ("libkexiv2" ,libkexiv2)
+       ("libspectre" ,libspectre)
+       ("libzip" ,libzip)
+       ("phonon" ,phonon)
+       ("poppler-qt5" ,poppler-qt5)
+       ("qca" ,qca)
+       ("qtdeclarative" ,qtdeclarative)
+       ("qtsvg" ,qtsvg)
+       ("threadweaver" ,threadweaver)
+       ("kcrash" ,kcrash)
+       ("kjs" ,kjs)))
+    (home-page "https://kde.org/applications/graphics/okular/")
+    (synopsis "Document Viewer")
+    (description "Okular is a universal document viewer developed by KDE.
+ Okular works on multiple platforms, including but not limited to
+ Linux, Windows, macOS, *BSD, etc.")
+    (license license:gpl2+)))
+
 (define-public kdegraphics-mobipocket
   (package
     (name "kdegraphics-mobipocket")

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#45194: (no subject)
       [not found] ` <87ft47a1ek.fsf@qq.com>
  2020-12-15  9:01   ` [bug#45194] (no subject) Z572
@ 2020-12-15 20:35   ` Leo Famulari
  1 sibling, 0 replies; 4+ messages in thread
From: Leo Famulari @ 2020-12-15 20:35 UTC (permalink / raw)
  To: Z572; +Cc: 45194-done

On Tue, Dec 15, 2020 at 05:01:23PM +0800, Z572 wrote:
> > Should we skip the tests?
> 
> I don't know.

Okay, I added a comment explaining why they are skipped.

> +       (uri (string-append "mirror://kde/stable/release-service/" version
> +                           "/src/" name "-" version ".tar.xz"))
> +       (file-name (string-append name "-" version "-checkout"))

This file-name field is extraneous, so I removed it. We only set the
file-name when building from a Git checkout.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-12-15 20:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <87360bjnvc.fsf@qq.com>
2020-12-12 10:54 ` [bug#45194] [PATCH] gnu: Add okular Z572
2020-12-12 23:23 ` Leo Famulari
     [not found] ` <87ft47a1ek.fsf@qq.com>
2020-12-15  9:01   ` [bug#45194] (no subject) Z572
2020-12-15 20:35   ` bug#45194: " Leo Famulari

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).