Package Details: libzim 6.0.2-1

Git Clone URL: https://aur.archlinux.org/libzim.git (read-only)
Package Base: libzim
Description: Reference implementation of the ZIM specification by the openZIM project
Upstream URL: https://github.com/openzim/libzim
Keywords: openzim
Licenses: GPL2
Replaces: zimlib-git
Submitter: hashworks
Maintainer: hashworks
Last Packager: hashworks
Votes: 1
Popularity: 0.000434
First Submitted: 2018-05-30 10:50
Last Updated: 2019-09-26 15:27

Pinned Comments

hashworks commented on 2019-09-25 14:38

Please leave issues at https://git.hashworks.net/aur-packages/libzim

Latest Comments

hashworks commented on 2019-09-25 14:38

Please leave issues at https://git.hashworks.net/aur-packages/libzim

hashworks commented on 2019-09-10 20:36

Bug fixed upstream, install now succeeds with python-pytest installed.

hashworks commented on 2019-09-08 16:05

@yavor_ivanov Thanks. It seems to fail when python-pytest is installed.

I opened an issue: https://github.com/openzim/libzim/issues/280

yavor_ivanov commented on 2019-09-06 18:05

Failed to install for me. Here's an output of everything I'm seeing.

:: Downloaded PKGBUILD (1/1): libzim
  1 libzim                                   (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> N
:: Parsing SRCINFO (1/1): libzim
==> Making package: libzim 5.1.0-1 (Fri 06 Sep 2019 08:53:09 PM EEST)
==> Retrieving sources...
  -> Downloading 5.1.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   121    0   121    0     0    241      0 --:--:-- --:--:-- --:--:--   241
100  374k    0  374k    0     0   209k      0 --:--:--  0:00:01 --:--:--  362k
==> Validating source files with sha256sums...
    5.1.0.tar.gz ... Passed
==> Cleaning up...
==> Making package: libzim 5.1.0-1 (Fri 06 Sep 2019 08:53:12 PM EEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found 5.1.0.tar.gz
==> Validating source files with sha256sums...
    5.1.0.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting 5.1.0.tar.gz with bsdtar
==> Sources are ready.
==> Making package: libzim 5.1.0-1 (Fri 06 Sep 2019 08:53:13 PM EEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
+ exec meson setup --prefix /usr --libexecdir lib --sbindir bin --buildtype plain --auto-features enabled --wrap-mode nodownload -D b_lto=true -D b_pie=true build
The Meson build system
Version: 0.51.2
Source dir: /home/ppm/.cache/yay/libzim/src/libzim-5.1.0
Build dir: /home/ppm/.cache/yay/libzim/src/libzim-5.1.0/build
Build type: native build
Project name: libzim
Project version: 5.1.0
Appending CFLAGS from environment: '-march=x86-64 -mtune=generic -O2 -pipe -fno-plt'
Appending LDFLAGS from environment: '-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Appending CPPFLAGS from environment: '-D_FORTIFY_SOURCE=2'
Appending CXXFLAGS from environment: '-march=x86-64 -mtune=generic -O2 -pipe -fno-plt'
Appending LDFLAGS from environment: '-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Appending CPPFLAGS from environment: '-D_FORTIFY_SOURCE=2'
Appending CFLAGS from environment: '-march=x86-64 -mtune=generic -O2 -pipe -fno-plt'
Appending LDFLAGS from environment: '-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Appending CPPFLAGS from environment: '-D_FORTIFY_SOURCE=2'
C compiler for the host machine: cc (gcc 9.1.0 "cc (GCC) 9.1.0")
Appending CXXFLAGS from environment: '-march=x86-64 -mtune=generic -O2 -pipe -fno-plt'
Appending LDFLAGS from environment: '-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Appending CPPFLAGS from environment: '-D_FORTIFY_SOURCE=2'
C++ compiler for the host machine: c++ (gcc 9.1.0 "c++ (GCC) 9.1.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Checking for size of "off_t" : 8
Found pkg-config: /usr/bin/pkg-config (1.6.3)
Run-time dependency zlib found: YES 1.2.11
Run-time dependency liblzma found: YES 5.2.4
Run-time dependency xapian-core found: YES 1.4.12
Run-time dependency threads found: YES
Run-time dependency icu-i18n found: YES 64.2
Run-time dependency GTest found: YES 1.8.1
Program libzim-compile-resources found: YES (/home/ppm/.cache/yay/libzim/src/libzim-5.1.0/scripts/libzim-compile-resources)
Configuring config.h using configuration
Program cython3 found: YES (/usr/bin/cython3)
Run-time dependency python3 found: YES 3.7
Build targets in project: 10
Found ninja-1.9.0 at /usr/bin/ninja
ninja: Entering directory `build'
[1/49] Generating resources with a custom command.
stopwords/en ['stopwords', 'en']
stopwords/he ['stopwords', 'he']
stopwords/fra ['stopwords', 'fra']
[38/49] Generating libzim_pyx with a custom command.
/usr/lib/python3.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /home/ppm/.cache/yay/libzim/src/libzim-5.1.0/test/pytest/wrapper/libzim_ext.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
[49/49] Linking target test/cluster.
==> Starting check()...
[0/1] Running all tests.
1/6 cluster                                 OK       2.28 s
2/6 dirent                                  OK       0.01 s
3/6 header                                  OK       0.01 s
4/6 uuid                                    OK       1.03 s
5/6 template                                OK       0.01 s
6/6 pytest                                  FAIL     0.42 s (exit status 1)

Ok:                    5
Expected Fail:         0
Fail:                  1
Unexpected Pass:       0
Skipped:               0
Timeout:               0


The output from the failed tests:

6/6 pytest                                  FAIL     0.42 s (exit status 1)

--- command ---
PYTHONPATH='/home/ppm/.cache/yay/libzim/src/libzim-5.1.0/build/test/pytest/wrapper' /usr/bin/python -m pytest
--- stdout ---
============================= test session starts ==============================
platform linux -- Python 3.7.4, pytest-5.1.2, py-1.8.0, pluggy-0.12.0
rootdir: /home/ppm/.cache/yay/libzim/src/libzim-5.1.0/test/pytest
collected 158 items

basic_open_test.py ..................................................
-------

Full log written to /home/ppm/.cache/yay/libzim/src/libzim-5.1.0/build/meson-logs/testlog.txt
FAILED: meson-test
/usr/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in check().
    Aborting...
Error making: libzim

Here's the contents of /home/ppm/.cache/yay/libzim/src/libzim-5.1.0/build/meson-logs/testlog.txt:

Log of Meson test suite run on 2019-09-06T20:53:28.733244

Inherited environment: SHELL='/bin/bash' TEXTDOMAINDIR='/usr/share/locale' PWD='/home/ppm/.cache/yay/libzim/src/libzim-5.1.0/build' SOURCE_DATE_EPOCH='1567792392' LOGNAME='ppm' XDG_SESSION_TYPE='tty' CXXFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fno-plt' _='/usr/bin/meson' COMMAND_MODE='legacy' LDFLAGS='-Wl,-O1,--sort-common,--as-needed,-z,re
lro,-z,now' HOME='/home/ppm' LANG='en_US.UTF-8' CPPFLAGS='-D_FORTIFY_SOURCE=2' SSH_CONNECTION='192.168.1.122 58800 192.168.1.99 22' NVM_DIR='/home/ppm/.nvm' XDG_SESSION_CLASS='user' TERM='xterm-256color' USER='ppm' SHLVL='2' NVM_CD_FLAGS='' XDG_SESSION_ID='230' XDG_RUNTIME_DIR='/run/user/1000' SSH_CLIENT='192.168.1.122 58800 22' XDG_DATA_DIRS='/u
sr/local/share:/usr/share:/var/lib/snapd/desktop' CHOST='x86_64-pc-linux-gnu' PATH='/home/ppm/.nvm/versions/node/v8.11.3/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin:/home/ppm/.gem/ruby/2.6.0/bin' CFLAGS='-march=x86-64 -mtune=generic -O2 -pi
pe -fno-plt' DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/1000/bus' NVM_BIN='/home/ppm/.nvm/versions/node/v8.11.3/bin' MAIL='/var/spool/mail/ppm' SSH_TTY='/dev/pts/0' SKIP_BIG_MEMORY_TEST='1' OLDPWD='/home/ppm/.cache/yay/libzim/src' TEXTDOMAIN='pacman-scripts'

1/6 cluster                                 OK       2.28 s

--- command ---
/home/ppm/.cache/yay/libzim/src/libzim-5.1.0/build/test/cluster
--- stdout ---
[==========] Running 7 tests from 2 test cases.
[----------] Global test environment set-up.
[----------] 5 tests from ClusterTest
[ RUN      ] ClusterTest.create_cluster
[       OK ] ClusterTest.create_cluster (0 ms)
[ RUN      ] ClusterTest.read_write_cluster
[       OK ] ClusterTest.read_write_cluster (0 ms)
[ RUN      ] ClusterTest.read_write_empty
[       OK ] ClusterTest.read_write_empty (0 ms)
[ RUN      ] ClusterTest.read_write_clusterZ
[       OK ] ClusterTest.read_write_clusterZ (1 ms)
[ RUN      ] ClusterTest.read_write_clusterLzma
[       OK ] ClusterTest.read_write_clusterLzma (311 ms)
[----------] 5 tests from ClusterTest (312 ms total)

[----------] 2 tests from CluterTest
[ RUN      ] CluterTest.read_write_extended_cluster
[       OK ] CluterTest.read_write_extended_cluster (0 ms)
[ RUN      ] CluterTest.read_extended_cluster
[       OK ] CluterTest.read_extended_cluster (1917 ms)
[----------] 2 tests from CluterTest (1917 ms total)

[----------] Global test environment tear-down
[==========] 7 tests from 2 test cases ran. (2229 ms total)
[  PASSED  ] 7 tests.
-------

2/6 dirent                                  OK       0.01 s

--- command ---
/home/ppm/.cache/yay/libzim/src/libzim-5.1.0/build/test/dirent
--- stdout ---
[==========] Running 8 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 8 tests from DirentTest
[ RUN      ] DirentTest.set_get_data_dirent
[       OK ] DirentTest.set_get_data_dirent (0 ms)
[ RUN      ] DirentTest.read_write_article_dirent
[       OK ] DirentTest.read_write_article_dirent (0 ms)
[ RUN      ] DirentTest.read_write_article_dirent_unicode
[       OK ] DirentTest.read_write_article_dirent_unicode (0 ms)
[ RUN      ] DirentTest.read_write_redirect_dirent
[       OK ] DirentTest.read_write_redirect_dirent (0 ms)
[ RUN      ] DirentTest.read_write_linktarget_dirent
[       OK ] DirentTest.read_write_linktarget_dirent (0 ms)
[ RUN      ] DirentTest.read_write_deleted_dirent
[       OK ] DirentTest.read_write_deleted_dirent (0 ms)
[ RUN      ] DirentTest.dirent_size
[       OK ] DirentTest.dirent_size (0 ms)
[ RUN      ] DirentTest.redirect_dirent_size
[       OK ] DirentTest.redirect_dirent_size (0 ms)
[----------] 8 tests from DirentTest (0 ms total)

[----------] Global test environment tear-down
[==========] 8 tests from 1 test case ran. (1 ms total)
[  PASSED  ] 8 tests.
-------

3/6 header                                  OK       0.01 s

--- command ---
/home/ppm/.cache/yay/libzim/src/libzim-5.1.0/build/test/header
--- stdout ---
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from HeaderTest
[ RUN      ] HeaderTest.read_write_header
[       OK ] HeaderTest.read_write_header (0 ms)
[----------] 1 test from HeaderTest (0 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (0 ms total)
[  PASSED  ] 1 test.
-------

4/6 uuid                                    OK       1.03 s

--- command ---
/home/ppm/.cache/yay/libzim/src/libzim-5.1.0/build/test/uuid
--- stdout ---
[==========] Running 3 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 3 tests from UuidTest
[ RUN      ] UuidTest.construct
[       OK ] UuidTest.construct (0 ms)
[ RUN      ] UuidTest.generate
[       OK ] UuidTest.generate (1000 ms)
[ RUN      ] UuidTest.output
[       OK ] UuidTest.output (0 ms)
[----------] 3 tests from UuidTest (1000 ms total)

[----------] Global test environment tear-down
[==========] 3 tests from 1 test case ran. (1000 ms total)
[  PASSED  ] 3 tests.
-------

5/6 template                                OK       0.01 s

--- command ---
/home/ppm/.cache/yay/libzim/src/libzim-5.1.0/build/test/template
--- stdout ---
[==========] Running 3 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 3 tests from TemplateTest
[ RUN      ] TemplateTest.ZeroTemplate
[       OK ] TemplateTest.ZeroTemplate (0 ms)
[ RUN      ] TemplateTest.Token
[       OK ] TemplateTest.Token (0 ms)
[ RUN      ] TemplateTest.Link
[       OK ] TemplateTest.Link (0 ms)
[----------] 3 tests from TemplateTest (0 ms total)

[----------] Global test environment tear-down
[==========] 3 tests from 1 test case ran. (0 ms total)
[  PASSED  ] 3 tests.
-------

6/6 pytest                                  FAIL     0.42 s (exit status 1)

--- command ---
PYTHONPATH='/home/ppm/.cache/yay/libzim/src/libzim-5.1.0/build/test/pytest/wrapper' /usr/bin/python -m pytest
--- stdout ---
============================= test session starts ==============================
platform linux -- Python 3.7.4, pytest-5.1.2, py-1.8.0, pluggy-0.12.0
rootdir: /home/ppm/.cache/yay/libzim/src/libzim-5.1.0/test/pytest
collected 158 items

basic_open_test.py ..................................................
-------


Ok:                    5
Expected Fail:         0
Fail:                  1
Unexpected Pass:       0
Skipped:               0
Timeout:               0

I'm not sure what to make of it.

Tio commented on 2019-02-08 19:05

@hashworks it works now. Thank you. Yes I will use ``` in the future for sure!

hashworks commented on 2019-02-08 19:03

I've added xapian-core as a dependency, that should fix your error.

According to the README this is optional, however it requires additional build settings. Since we want to use this with kiwix primarily (which requires xapian-core anyway) I think this is the best way.

@teoretic Please surround terminal output with ``` in the future.

Tio commented on 2019-02-08 18:44

Error in the build:

Synchronizing package databases... Starting full system upgrade... Cloning libzim build files... Checking libzim dependencies... Building libzim... ==> Making package: libzim 4.0.4-3 (vie 08 feb 2019 19:40:45 CET) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found 4.0.4.tar.gz ==> Validating source files with sha256sums... 4.0.4.tar.gz ... Passed ==> Removing existing $srcdir/ directory... ==> Extracting sources... -> Extracting 4.0.4.tar.gz with bsdtar ==> Removing existing $pkgdir/ directory... ==> Starting build()... + exec meson setup --prefix /usr --libdir /usr/lib --libexecdir /usr/lib --bindir /usr/bin --sbindir /usr/bin --includedir /usr/include --datadir /usr/share --mandir /usr/share/man --infodir /usr/share/info --localedir /usr/share/locale --sysconfdir /etc --localstatedir /var --sharedstatedir /var/lib --buildtype release --auto-features enabled --wrap-mode nofallback -D b_lto=true -D b_pie=true build The Meson build system Version: 0.49.0 Source dir: /tmp/pamac-build/libzim/src/libzim-4.0.4 Build dir: /tmp/pamac-build/libzim/src/libzim-4.0.4/build Build type: native build WARNING: Newline character in a string detected, use ''' (three single quotes) for multiline strings instead. This will become a hard error in a future Meson release. description: 'Copy (or use mmap) header index buffers. (default:true) 10 15 Project name: libzim Project version: 4.0.4 Appending CFLAGS from environment: '-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt' Appending LDFLAGS from environment: '-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Appending CPPFLAGS from environment: '-D_FORTIFY_SOURCE=2' Native C compiler: cc (gcc 8.2.1 "cc (GCC) 8.2.1 20181127") Appending CXXFLAGS from environment: '-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt' Appending LDFLAGS from environment: '-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Appending CPPFLAGS from environment: '-D_FORTIFY_SOURCE=2' Native C++ compiler: c++ (gcc 8.2.1 "c++ (GCC) 8.2.1 20181127") Build machine cpu family: x86_64 Build machine cpu: x86_64 Checking for size of "off_t" : 8 Found pkg-config: /usr/bin/pkg-config (1.6.0) Dependency zlib found: YES 1.2.11 Dependency liblzma found: YES 5.2.4 Found CMake: /usr/bin/cmake (3.13.2) Dependency xapian-core found: NO (tried pkgconfig and cmake) Dependency threads found: YES Dependency icu-i18n found: YES 63.1 Program libzim-compile-resources found: YES (/tmp/pamac-build/libzim/src/libzim-4.0.4/scripts/libzim-compile-resources) Configuring config.h using configuration Dependency GTest found: YES 1.8.1 Program cython3 found: NO Dependency python3 found: YES 3.7 Build targets in project: 8 Option werror is: True [default: true] Found ninja-1.8.2 at /usr/bin/ninja ninja: Entering directory `build' [1/42] Compiling C++ object 'src/25a6634@@zim@sha/envvalue.cpp.o'. [2/42] Compiling C++ object 'src/25a6634@@zim@sha/fileheader.cpp.o'. [3/42] Compiling C++ object 'src/25a6634@@zim@sha/dirent.cpp.o'. [4/42] Compiling C object 'src/25a6634@@zim@sha/md5.c.o'. [5/42] Compiling C++ object 'src/25a6634@@zim@sha/blob.cpp.o'. [6/42] Compiling C++ object 'src/25a6634@@zim@sha/file_compound.cpp.o'. [7/42] Compiling C++ object 'src/25a6634@@zim@sha/article.cpp.o'. [8/42] Compiling C++ object 'src/25a6634@@zim@sha/cluster.cpp.o'. [9/42] Compiling C++ object 'src/25a6634@@zim@sha/template.cpp.o'. [10/42] Compiling C++ object 'src/25a6634@@zim@sha/file.cpp.o'. [11/42] Compiling C++ object 'src/25a6634@@zim@sha/md5stream.cpp.o'. [12/42] Compiling C++ object 'src/25a6634@@zim@sha/writer_zimcreator.cpp.o'. FAILED: src/25a6634@@zim@sha/writer_zimcreator.cpp.o c++ -Isrc/25a6634@@zim@sha -Isrc -I../src -Iinclude -I../include -flto -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -Wnon-virtual-dtor -Werror -std=c++11 -O3 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -march=x86-64 -mtune=generic -O2 -fstack-protector-strong -fno-plt -D_FORTIFY_SOURCE=2 -fPIC -pthread -MD -MQ 'src/25a6634@@zim@sha/writer_zimcreator.cpp.o' -MF 'src/25a6634@@zim@sha/writer_zimcreator.cpp.o.d' -o 'src/25a6634@@zim@sha/writer_zimcreator.cpp.o' -c ../src/writer/zimcreator.cpp In file included from ../src/writer/zimcreatordata.h:27, from ../src/writer/zimcreator.cpp:22: ../src/writer/xapianIndexer.h:27:10: fatal error: xapian.h: No such file or directory #include <xapian.h> ^~~~~~~~~~ compilation terminated. [13/42] Compiling C++ object 'src/25a6634@@zim@sha/file_reader.cpp.o'. [14/42] Compiling C++ object 'src/25a6634@@zim@sha/levenshtein.cpp.o'. [15/42] Compiling C++ object 'src/25a6634@@zim@sha/uuid.cpp.o'. [16/42] Compiling C++ object 'src/25a6634@@zim@sha/buffer.cpp.o'. [17/42] Compiling C++ object 'src/25a6634@@zim@sha/search_iterator.cpp.o'. [18/42] Compiling C++ object 'src/25a6634@@zim@sha/search.cpp.o'. [19/42] Compiling C++ object 'src/25a6634@@zim@sha/tools.cpp.o'. [20/42] Compiling C++ object 'src/25a6634@@zim@sha/writer_lzmastream.cpp.o'. [21/42] Compiling C++ object 'src/25a6634@@zim@sha/fileimpl.cpp.o'. ninja: build stopped: subcommand failed. ==> ERROR: A failure occurred in build(). Aborting...

hashworks commented on 2019-02-08 18:05

Done. Thanks for the note.

soloturn commented on 2019-02-08 09:35

can you please put:

SKIP_BIG_MEMORY_TEST=1 ninja meson-test

to skip the cluster test which needs at least 10GB of memory. see here for a reference: https://github.com/openzim/libzim/issues/147

THS commented on 2018-10-01 12:33

It also needs xapian-core to build.