djcb / mu

maildir indexer/searcher + emacs mail client + guile bindings
http://www.djcbsoftware.nl/code/mu
GNU General Public License v3.0
1.62k stars 391 forks source link

A test is failing for 1.0 #1187

Closed magnetophon closed 6 years ago

magnetophon commented 6 years ago

When I try to build version 1.0 on NixOS, a test fails:

nix-env -f $NIXPKGS -iA mu                                                                                                                                                                                            [13:25:25]
installing ‘mu-1.0’
these derivations will be built:
  /nix/store/kjdsrsamrx65wb127rknvx9k84822ykr-source.drv
  /nix/store/8y47wn1zgppys5zhj144xhi2396wgq0y-mu-1.0.drv
these paths will be fetched (40.15 MiB download, 118.59 MiB unpacked):
  /nix/store/ry7wmmg7m3xqp55dvdrnddbwxhpjwzxf-emacs-25.3
fetching path ‘/nix/store/ry7wmmg7m3xqp55dvdrnddbwxhpjwzxf-emacs-25.3’...
building path(s) ‘/nix/store/agkcpjakibgcqzwb79lp9yqlpnlrf889-source’

*** Downloading ‘https://cache.nixos.org/nar/1jj80p7chpjnrgkgq2ywrmyc84kkb5872f2i9dr80syy9c6ga7l4.nar.xz’ (signed by ‘cache.nixos.org-1’) to ‘/nix/store/ry7wmmg7m3xqp55dvdrnddbwxhpjwzxf-emacs-25.3’...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
trying https://github.com/djcb/mu/archive/v1.0.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   113    0   113    0     0    113      0 --:--:-- --:--:-- --:--:--   188
100 2220k  100 2220k    0     0   370k      0  0:00:06  0:00:06 --:--:--  445k
unpacking source archive /tmp/nix-build-source.drv-0/v1.0.tar.gz
100 40.1M  100 40.1M    0     0  2163k      0  0:00:19  0:00:19 --:--:-- 1670k

building path(s) ‘/nix/store/grnfkx9ff14zdzlrjaskzgxqwsfppsk7-mu-1.0’
unpacking sources
unpacking source archive /nix/store/agkcpjakibgcqzwb79lp9yqlpnlrf889-source
source root is source
patching sources
autoreconfPhase
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: creating directory build-aux
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: running: /nix/store/vfvkndfjkgn8c3d1vypr4bdhk8kkxr6n-autoconf-2.69/bin/autoconf --force
autoreconf: running: /nix/store/vfvkndfjkgn8c3d1vypr4bdhk8kkxr6n-autoconf-2.69/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:41: installing 'build-aux/compile'
configure.ac:53: installing 'build-aux/config.guess'
configure.ac:53: installing 'build-aux/config.sub'
configure.ac:30: installing 'build-aux/install-sh'
configure.ac:30: installing 'build-aux/missing'
contrib/Makefile.am: installing 'build-aux/depcomp'
guile/Makefile.am:53: installing 'build-aux/texinfo.tex'
parallel-tests: installing 'build-aux/test-driver'
autoreconf: Leaving directory `.'
configuring
fixing libtool script ./build-aux/ltmain.sh
configure flags: --disable-static --disable-dependency-tracking --prefix=/nix/store/grnfkx9ff14zdzlrjaskzgxqwsfppsk7-mu-1.0
checking for a BSD-compatible install... /nix/store/qd55j183ym04y43aam889xkimq704rdx-coreutils-8.29/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /nix/store/qd55j183ym04y43aam889xkimq704rdx-coreutils-8.29/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '30001' is supported by ustar format... yes
checking whether GID '30000' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... (cached) yes
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... none
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... none
checking for gcc option to accept ISO C99... none needed
checking for gcc option to accept ISO Standard C... (cached) none needed
checking for gcc option to accept ISO C99... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /nix/store/rhbm7javg5n5zmhhld7qbi23n5qc0srf-gnugrep-3.1/bin/grep
checking for egrep... /nix/store/rhbm7javg5n5zmhhld7qbi23n5qc0srf-gnugrep-3.1/bin/grep -E
checking for ANSI C header files... yes
checking whether g++ supports C++14 features by default... yes
checking for valgrind... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /nix/store/zgr9zbw7p8gihn9h0nj8ggkcplrd9g7f-gnused-4.4/bin/sed
checking for fgrep... /nix/store/rhbm7javg5n5zmhhld7qbi23n5qc0srf-gnugrep-3.1/bin/grep -F
checking for ld used by gcc... ld
checking if the linker (ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... nm
checking the name lister (nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse nm output from gcc object... ok
checking for sysroot... no
checking for a working dd... /nix/store/qd55j183ym04y43aam889xkimq704rdx-coreutils-8.29/bin/dd
checking how to truncate binary pipes... /nix/store/qd55j183ym04y43aam889xkimq704rdx-coreutils-8.29/bin/dd bs=4096 count=1
./configure: line 9781: /usr/bin/file: No such file or directory
checking for mt... no
checking if : is a manifest tool... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... ld
checking if the linker (ld) is GNU ld... yes
checking whether the g++ linker (ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for gawk... (cached) gawk
checking for sort... sort
checking wordexp.h usability... yes
checking wordexp.h presence... yes
checking for wordexp.h... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for makeinfo... yes
checking for emacs... emacs
checking where .elc files should go... ${datadir}/emacs/site-lisp
checking for perl... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for struct dirent.d_type... yes
checking for struct dirent.d_ino... yes
checking for memset... yes
checking for memcpy... yes
checking for realpath... yes
checking for setlocale... yes
checking for strerror... yes
checking for getpass... yes
checking for setsid... yes
checking for timegm... yes
checking for pkg-config... /nix/store/r82xfcp0jxvcfz2x47h61n8slwqap3cs-pkg-config-0.29.2/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for glib-2.0 >= 2.32 gobject-2.0 gio-2.0... yes
checking for gmime-2.6 >= 2.6.7... yes
checking for xapian-config... xapian-config
checking for gtk+-3.0... no
Package gtk+-3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-3.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-3.0' found
checking for webkitgtk-3.0 >= 1.8.0... no
checking for guile-2.0... no
Package guile-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `guile-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'guile-2.0' found
checking for makeinfo... (cached) yes
checking for pmccabe... no
configure: WARNING:
   *** Developers: you do not seem to have the pmccabe tool installed.
   *** Please install it if you want to run the automated code checks
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating mu/Makefile
config.status: creating mu/tests/Makefile
config.status: creating lib/Makefile
config.status: creating lib/doxyfile
config.status: creating lib/parser/Makefile
config.status: creating lib/tests/Makefile
config.status: creating mu4e/Makefile
config.status: creating mu4e/mu4e-meta.el
config.status: creating mu4e/texi.texi
config.status: creating guile/Makefile
config.status: creating guile/texi.texi
config.status: creating guile/mu/Makefile
config.status: creating guile/examples/Makefile
config.status: creating guile/tests/Makefile
config.status: creating guile/scripts/Makefile
config.status: creating toys/Makefile
config.status: creating toys/mug/Makefile
config.status: creating toys/msg2pdf/Makefile
config.status: creating man/Makefile
config.status: creating m4/Makefile
config.status: creating contrib/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

mu configuration is complete.
------------------------------------------------
mu version                           : 1.0

Xapian version                       : 1.4.5
GLib version                         : 2.54.2
GMime version                        : 2.6.23
Emacs version                        : GNU Emacs 25.3.1

Have wordexp                         : yes
Build mu4e emacs frontend            : yes
Build 'mug' toy-ui (gtk+/webkit)     : no
McCabe's Cyclomatic Complexity tool  : no

Have direntry->d_ino                 : yes
Have direntry->d_type                : yes
------------------------------------------------

Now, type 'make' (or 'gmake') to build mu

building
build flags: SHELL=/nix/store/i0ay05pqkbnvpfijm52mmlrp6kmkl80c-bash-4.4-p12/bin/bash
make  all-recursive
make[1]: Entering directory '/tmp/nix-build-mu-1.0.drv-0/source'
Making all in m4
make[2]: Entering directory '/tmp/nix-build-mu-1.0.drv-0/source/m4'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/tmp/nix-build-mu-1.0.drv-0/source/m4'
Making all in man
make[2]: Entering directory '/tmp/nix-build-mu-1.0.drv-0/source/man'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/tmp/nix-build-mu-1.0.drv-0/source/man'
Making all in lib
make[2]: Entering directory '/tmp/nix-build-mu-1.0.drv-0/source/lib'
Making all in parser
make[3]: Entering directory '/tmp/nix-build-mu-1.0.drv-0/source/lib/parser'
  CXX      parser.lo
  CXX      tokenizer.lo
  CXX      utils.lo
  CXX      xapian.lo
  CXXLD    libmuxparser.la
ar: `u' modifier ignored since `D' is the default (see `U')
  CXX      tokenize.o
  CXXLD    tokenize
  CXX      parse.o
  CXXLD    parse
  CXX      test-tokenizer.o
  CXXLD    test-tokenizer
  CXX      test-parser.o
  CXXLD    test-parser
  CXX      test-utils.o
  CXXLD    test-utils
make[3]: Leaving directory '/tmp/nix-build-mu-1.0.drv-0/source/lib/parser'
Making all in .
make[3]: Entering directory '/tmp/nix-build-mu-1.0.drv-0/source/lib'
  CC       mu-bookmarks.lo
  CC       mu-contacts.lo
  CC       mu-container.lo
  CC       mu-date.lo
  CC       mu-flags.lo
  CC       mu-index.lo
  CC       mu-log.lo
  CC       mu-maildir.lo
  CC       mu-msg-crypto.lo
  CXX      mu-msg-doc.lo
  CC       mu-msg-fields.lo
  CC       mu-msg-file.lo
  CXX      mu-msg-iter.lo
  CC       mu-msg-part.lo
  CC       mu-msg-prio.lo
  CC       mu-msg-sexp.lo
  CC       mu-msg.lo
  CXX      mu-query.lo
  CC       mu-runtime.lo
  CC       mu-script.lo
  CXX      mu-store.lo
  CXX      mu-store-read.lo
  CXX      mu-store-write.lo
  CC       mu-str.lo
  CC       mu-threader.lo
  CC       mu-util.lo
  CXXLD    libmu.la
ar: `u' modifier ignored since `D' is the default (see `U')
make[3]: Leaving directory '/tmp/nix-build-mu-1.0.drv-0/source/lib'
Making all in tests
make[3]: Entering directory '/tmp/nix-build-mu-1.0.drv-0/source/lib/tests'
make  all-am
make[4]: Entering directory '/tmp/nix-build-mu-1.0.drv-0/source/lib/tests'
  CC       test-mu-common.lo
  CCLD     libtestmucommon.la
ar: `u' modifier ignored since `D' is the default (see `U')
  CC       test-mu-util.o
  CXX      dummy.o
  CXXLD    test-mu-util
  CC       test-mu-str.o
  CXXLD    test-mu-str
  CC       test-mu-maildir.o
  CXXLD    test-mu-maildir
  CC       test-mu-msg-fields.o
  CXXLD    test-mu-msg-fields
  CC       test-mu-msg.o
  CXXLD    test-mu-msg
  CC       test-mu-store.o
  CXXLD    test-mu-store
  CC       test-mu-flags.o
  CXXLD    test-mu-flags
  CC       test-mu-container.o
  CXXLD    test-mu-container
make[4]: Leaving directory '/tmp/nix-build-mu-1.0.drv-0/source/lib/tests'
make[3]: Leaving directory '/tmp/nix-build-mu-1.0.drv-0/source/lib/tests'
make[2]: Leaving directory '/tmp/nix-build-mu-1.0.drv-0/source/lib'
Making all in mu
make[2]: Entering directory '/tmp/nix-build-mu-1.0.drv-0/source/mu'
  GEN      mu-help-strings.h
make  all-recursive
make[3]: Entering directory '/tmp/nix-build-mu-1.0.drv-0/source/mu'
Making all in .
make[4]: Entering directory '/tmp/nix-build-mu-1.0.drv-0/source/mu'
  CXX      mu.o
  CC       mu-cmd-cfind.o
  CC       mu-config.o
  CC       mu-cmd-extract.o
  CC       mu-cmd-find.o
  CC       mu-cmd-index.o
  CC       mu-cmd-server.o
  CC       mu-cmd-script.o
  CC       mu-cmd.o
  CXXLD    mu
 make[4]: Leaving directory '/tmp/nix-build-mu-1.0.drv-0/source/mu'
Making all in tests
make[4]: Entering directory '/tmp/nix-build-mu-1.0.drv-0/source/mu/tests'
touch dummy.cc
make  all-am
make[5]: Entering directory '/tmp/nix-build-mu-1.0.drv-0/source/mu/tests'
  CC       test-mu-query.o
  CXX      dummy.o
  CXXLD    test-mu-query
  CC       test-mu-contacts.o
  CXXLD    test-mu-contacts
  CC       test-mu-cmd.o
  CXXLD    test-mu-cmd
  CC       test-mu-cmd-cfind.o
  CXXLD    test-mu-cmd-cfind
  CC       test-mu-threads.o
  CXXLD    test-mu-threads
make[5]: Leaving directory '/tmp/nix-build-mu-1.0.drv-0/source/mu/tests'
make[4]: Leaving directory '/tmp/nix-build-mu-1.0.drv-0/source/mu/tests'
make[3]: Leaving directory '/tmp/nix-build-mu-1.0.drv-0/source/mu'
make[2]: Leaving directory '/tmp/nix-build-mu-1.0.drv-0/source/mu'
Making all in mu4e
make[2]: Entering directory '/tmp/nix-build-mu-1.0.drv-0/source/mu4e'
make[3]: Entering directory '/tmp/nix-build-mu-1.0.drv-0/source/mu4e'
  MAKEINFO mu4e.info
mu4e.texi:55: warning: undefined flag: mu-version.
cd .. && /nix/store/i0ay05pqkbnvpfijm52mmlrp6kmkl80c-bash-4.4-p12/bin/bash ./config.status mu4e/mu4e-meta.el
config.status: creating mu4e/mu4e-meta.el
if test "emacs" != "no"; then \
  am__dir=. am__subdir_includes=''; \
  case mu4e-actions.elc in */*) \
    am__dir=`echo 'mu4e-actions.elc' | sed 's,/[^/]*$,,'`; \
    am__subdir_includes="-L $am__dir -L ./$am__dir"; \
  esac; \
  test -d "$am__dir" || /nix/store/qd55j183ym04y43aam889xkimq704rdx-coreutils-8.29/bin/mkdir -p "$am__dir" || exit 1; \
  emacs --batch \
      \
    $am__subdir_includes -L . -L . \
    --eval "(defun byte-compile-dest-file (f) \"mu4e-actions.elc\")" \
    --eval "(unless (byte-compile-file \"mu4e-actions.el\") (kill-emacs 1))"; \
else :; fi

In end of data:
mu4e-actions.el:361:1:Warning: the following functions are not known to be
    defined: mu4e~proc-extract, mu4e-headers-search
if test "emacs" != "no"; then \
  am__dir=. am__subdir_includes=''; \
  case mu4e-compose.elc in */*) \
    am__dir=`echo 'mu4e-compose.elc' | sed 's,/[^/]*$,,'`; \
    am__subdir_includes="-L $am__dir -L ./$am__dir"; \
  esac; \
  test -d "$am__dir" || /nix/store/qd55j183ym04y43aam889xkimq704rdx-coreutils-8.29/bin/mkdir -p "$am__dir" || exit 1; \
  emacs --batch \
      \
    $am__subdir_includes -L . -L . \
    --eval "(defun byte-compile-dest-file (f) \"mu4e-compose.elc\")" \
    --eval "(unless (byte-compile-file \"mu4e-compose.el\") (kill-emacs 1))"; \
else :; fi

In mu4e-compose-mode:
mu4e-compose.el:450:13:Warning: `make-variable-buffer-local' not called at
    toplevel
mu4e-speedbar.el: `speedbar-with-attached-buffer' is an obsolete alias (as of 24.4); use `dframe-with-attached-buffer' instead.
mu4e-speedbar.el: `speedbar-with-attached-buffer' is an obsolete alias (as of 24.4); use `dframe-with-attached-buffer' instead.
if test "emacs" != "no"; then \
  am__dir=. am__subdir_includes=''; \
  case mu4e-context.elc in */*) \
    am__dir=`echo 'mu4e-context.elc' | sed 's,/[^/]*$,,'`; \
    am__subdir_includes="-L $am__dir -L ./$am__dir"; \
  esac; \
  test -d "$am__dir" || /nix/store/qd55j183ym04y43aam889xkimq704rdx-coreutils-8.29/bin/mkdir -p "$am__dir" || exit 1; \
  emacs --batch \
      \
    $am__subdir_includes -L . -L . \
    --eval "(defun byte-compile-dest-file (f) \"mu4e-context.elc\")" \
    --eval "(unless (byte-compile-file \"mu4e-context.el\") (kill-emacs 1))"; \
else :; fi

In end of data:
mu4e-context.el:166:1:Warning: the function `mu4e~main-view-real' is not known
    to be defined.
if test "emacs" != "no"; then \
  am__dir=. am__subdir_includes=''; \
  case mu4e-contrib.elc in */*) \
    am__dir=`echo 'mu4e-contrib.elc' | sed 's,/[^/]*$,,'`; \
    am__subdir_includes="-L $am__dir -L ./$am__dir"; \
  esac; \
  test -d "$am__dir" || /nix/store/qd55j183ym04y43aam889xkimq704rdx-coreutils-8.29/bin/mkdir -p "$am__dir" || exit 1; \
  emacs --batch \
      \
    $am__subdir_includes -L . -L . \
    --eval "(defun byte-compile-dest-file (f) \"mu4e-contrib.elc\")" \
    --eval "(unless (byte-compile-file \"mu4e-contrib.el\") (kill-emacs 1))"; \
else :; fi
mu4e-speedbar.el: `speedbar-with-attached-buffer' is an obsolete alias (as of 24.4); use `dframe-with-attached-buffer' instead.
mu4e-speedbar.el: `speedbar-with-attached-buffer' is an obsolete alias (as of 24.4); use `dframe-with-attached-buffer' instead.

In toplevel form:
mu4e-contrib.el:62:21:Warning: assignment to free variable
    `bookmark-make-record-function'

In end of data:
mu4e-contrib.el:216:1:Warning: the following functions are not known to be
    defined: bookmark-make-record-default, bookmark-prop-get,
    bookmark-default-handler, bookmark-get-bookmark-record,
    eshell-flatten-list
if test "emacs" != "no"; then \
  am__dir=. am__subdir_includes=''; \
  case mu4e-draft.elc in */*) \
    am__dir=`echo 'mu4e-draft.elc' | sed 's,/[^/]*$,,'`; \
    am__subdir_includes="-L $am__dir -L ./$am__dir"; \
  esac; \
  test -d "$am__dir" || /nix/store/qd55j183ym04y43aam889xkimq704rdx-coreutils-8.29/bin/mkdir -p "$am__dir" || exit 1; \
  emacs --batch \
      \
    $am__subdir_includes -L . -L . \
    --eval "(defun byte-compile-dest-file (f) \"mu4e-draft.elc\")" \
    --eval "(unless (byte-compile-file \"mu4e-draft.el\") (kill-emacs 1))"; \
else :; fi
if test "emacs" != "no"; then \
  am__dir=. am__subdir_includes=''; \
  case mu4e-headers.elc in */*) \
    am__dir=`echo 'mu4e-headers.elc' | sed 's,/[^/]*$,,'`; \
    am__subdir_includes="-L $am__dir -L ./$am__dir"; \
  esac; \
  test -d "$am__dir" || /nix/store/qd55j183ym04y43aam889xkimq704rdx-coreutils-8.29/bin/mkdir -p "$am__dir" || exit 1; \
  emacs --batch \
      \
    $am__subdir_includes -L . -L . \
    --eval "(defun byte-compile-dest-file (f) \"mu4e-headers.elc\")" \
    --eval "(unless (byte-compile-file \"mu4e-headers.el\") (kill-emacs 1))"; \
else :; fi
mu4e-speedbar.el: `speedbar-with-attached-buffer' is an obsolete alias (as of 24.4); use `dframe-with-attached-buffer' instead.
mu4e-speedbar.el: `speedbar-with-attached-buffer' is an obsolete alias (as of 24.4); use `dframe-with-attached-buffer' instead.

In toplevel form:
mu4e-headers.el:619:1:Warning: global/dynamic var `mu4e~searching' lacks a
    prefix
if test "emacs" != "no"; then \
  am__dir=. am__subdir_includes=''; \
  case mu4e-lists.elc in */*) \
    am__dir=`echo 'mu4e-lists.elc' | sed 's,/[^/]*$,,'`; \
    am__subdir_includes="-L $am__dir -L ./$am__dir"; \
  esac; \
  test -d "$am__dir" || /nix/store/qd55j183ym04y43aam889xkimq704rdx-coreutils-8.29/bin/mkdir -p "$am__dir" || exit 1; \
  emacs --batch \
      \
    $am__subdir_includes -L . -L . \
    --eval "(defun byte-compile-dest-file (f) \"mu4e-lists.elc\")" \
    --eval "(unless (byte-compile-file \"mu4e-lists.el\") (kill-emacs 1))"; \
else :; fi
if test "emacs" != "no"; then \
  am__dir=. am__subdir_includes=''; \
  case mu4e-main.elc in */*) \
    am__dir=`echo 'mu4e-main.elc' | sed 's,/[^/]*$,,'`; \
    am__subdir_includes="-L $am__dir -L ./$am__dir"; \
  esac; \
  test -d "$am__dir" || /nix/store/qd55j183ym04y43aam889xkimq704rdx-coreutils-8.29/bin/mkdir -p "$am__dir" || exit 1; \
  emacs --batch \
      \
    $am__subdir_includes -L . -L . \
    --eval "(defun byte-compile-dest-file (f) \"mu4e-main.elc\")" \
    --eval "(unless (byte-compile-file \"mu4e-main.el\") (kill-emacs 1))"; \
else :; fi
if test "emacs" != "no"; then \
  am__dir=. am__subdir_includes=''; \
  case mu4e-mark.elc in */*) \
    am__dir=`echo 'mu4e-mark.elc' | sed 's,/[^/]*$,,'`; \
    am__subdir_includes="-L $am__dir -L ./$am__dir"; \
  esac; \
  test -d "$am__dir" || /nix/store/qd55j183ym04y43aam889xkimq704rdx-coreutils-8.29/bin/mkdir -p "$am__dir" || exit 1; \
  emacs --batch \
      \
    $am__subdir_includes -L . -L . \
    --eval "(defun byte-compile-dest-file (f) \"mu4e-mark.elc\")" \
    --eval "(unless (byte-compile-file \"mu4e-mark.el\") (kill-emacs 1))"; \
else :; fi

In toplevel form:
mu4e-mark.el:53:1:Warning: defcustom for `mu4e-mark-execute-pre-hook' fails to
    specify containing group
mu4e-mark.el:53:1:Warning: defcustom for `mu4e-mark-execute-pre-hook' fails to
    specify containing group
if test "emacs" != "no"; then \
  am__dir=. am__subdir_includes=''; \
  case mu4e-message.elc in */*) \
    am__dir=`echo 'mu4e-message.elc' | sed 's,/[^/]*$,,'`; \
    am__subdir_includes="-L $am__dir -L ./$am__dir"; \
  esac; \
  test -d "$am__dir" || /nix/store/qd55j183ym04y43aam889xkimq704rdx-coreutils-8.29/bin/mkdir -p "$am__dir" || exit 1; \
  emacs --batch \
      \
    $am__subdir_includes -L . -L . \
    --eval "(defun byte-compile-dest-file (f) \"mu4e-message.elc\")" \
    --eval "(unless (byte-compile-file \"mu4e-message.el\") (kill-emacs 1))"; \
else :; fi

In mu4e-message-outlook-cleanup:
mu4e-message.el:243:13:Warning: reference to free variable `body'
if test "emacs" != "no"; then \
  am__dir=. am__subdir_includes=''; \
  case mu4e-meta.elc in */*) \
    am__dir=`echo 'mu4e-meta.elc' | sed 's,/[^/]*$,,'`; \
    am__subdir_includes="-L $am__dir -L ./$am__dir"; \
  esac; \
  test -d "$am__dir" || /nix/store/qd55j183ym04y43aam889xkimq704rdx-coreutils-8.29/bin/mkdir -p "$am__dir" || exit 1; \
  emacs --batch \
      \
    $am__subdir_includes -L . -L . \
    --eval "(defun byte-compile-dest-file (f) \"mu4e-meta.elc\")" \
    --eval "(unless (byte-compile-file \"mu4e-meta.el\") (kill-emacs 1))"; \
else :; fi
if test "emacs" != "no"; then \
  am__dir=. am__subdir_includes=''; \
  case mu4e-proc.elc in */*) \
    am__dir=`echo 'mu4e-proc.elc' | sed 's,/[^/]*$,,'`; \
    am__subdir_includes="-L $am__dir -L ./$am__dir"; \
  esac; \
  test -d "$am__dir" || /nix/store/qd55j183ym04y43aam889xkimq704rdx-coreutils-8.29/bin/mkdir -p "$am__dir" || exit 1; \
  emacs --batch \
      \
    $am__subdir_includes -L . -L . \
    --eval "(defun byte-compile-dest-file (f) \"mu4e-proc.elc\")" \
    --eval "(unless (byte-compile-file \"mu4e-proc.el\") (kill-emacs 1))"; \
else :; fi
if test "emacs" != "no"; then \
  am__dir=. am__subdir_includes=''; \
  case mu4e-speedbar.elc in */*) \
    am__dir=`echo 'mu4e-speedbar.elc' | sed 's,/[^/]*$,,'`; \
    am__subdir_includes="-L $am__dir -L ./$am__dir"; \
  esac; \
  test -d "$am__dir" || /nix/store/qd55j183ym04y43aam889xkimq704rdx-coreutils-8.29/bin/mkdir -p "$am__dir" || exit 1; \
  emacs --batch \
      \
    $am__subdir_includes -L . -L . \
    --eval "(defun byte-compile-dest-file (f) \"mu4e-speedbar.elc\")" \
    --eval "(unless (byte-compile-file \"mu4e-speedbar.el\") (kill-emacs 1))"; \
else :; fi
mu4e-speedbar.el: `speedbar-with-attached-buffer' is an obsolete alias (as of 24.4); use `dframe-with-attached-buffer' instead.
mu4e-speedbar.el: `speedbar-with-attached-buffer' is an obsolete alias (as of 24.4); use `dframe-with-attached-buffer' instead.

In mu4e~speedbar-maildir:
mu4e-speedbar.el:83:52:Warning: `speedbar-with-attached-buffer' is an obsolete
    alias (as of 24.4); use `dframe-with-attached-buffer' instead.

In mu4e~speedbar-bookmark:
mu4e-speedbar.el:101:53:Warning: `speedbar-with-attached-buffer' is an
    obsolete alias (as of 24.4); use `dframe-with-attached-buffer' instead.
if test "emacs" != "no"; then \
  am__dir=. am__subdir_includes=''; \
  case mu4e-utils.elc in */*) \
    am__dir=`echo 'mu4e-utils.elc' | sed 's,/[^/]*$,,'`; \
    am__subdir_includes="-L $am__dir -L ./$am__dir"; \
  esac; \
  test -d "$am__dir" || /nix/store/qd55j183ym04y43aam889xkimq704rdx-coreutils-8.29/bin/mkdir -p "$am__dir" || exit 1; \
  emacs --batch \
      \
    $am__subdir_includes -L . -L . \
    --eval "(defun byte-compile-dest-file (f) \"mu4e-utils.elc\")" \
    --eval "(unless (byte-compile-file \"mu4e-utils.el\") (kill-emacs 1))"; \
else :; fi
if test "emacs" != "no"; then \
  am__dir=. am__subdir_includes=''; \
  case mu4e-vars.elc in */*) \
    am__dir=`echo 'mu4e-vars.elc' | sed 's,/[^/]*$,,'`; \
    am__subdir_includes="-L $am__dir -L ./$am__dir"; \
  esac; \
  test -d "$am__dir" || /nix/store/qd55j183ym04y43aam889xkimq704rdx-coreutils-8.29/bin/mkdir -p "$am__dir" || exit 1; \
  emacs --batch \
      \
    $am__subdir_includes -L . -L . \
    --eval "(defun byte-compile-dest-file (f) \"mu4e-vars.elc\")" \
    --eval "(unless (byte-compile-file \"mu4e-vars.el\") (kill-emacs 1))"; \
else :; fi

In toplevel form:
mu4e-vars.el:876:1:Warning: global/dynamic var `mu4e~contacts' lacks a prefix

In end of data:
mu4e-vars.el:966:1:Warning: the function `make-mu4e-bookmark' is not known to
    be defined.
if test "emacs" != "no"; then \
  am__dir=. am__subdir_includes=''; \
  case mu4e-view.elc in */*) \
    am__dir=`echo 'mu4e-view.elc' | sed 's,/[^/]*$,,'`; \
    am__subdir_includes="-L $am__dir -L ./$am__dir"; \
  esac; \
  test -d "$am__dir" || /nix/store/qd55j183ym04y43aam889xkimq704rdx-coreutils-8.29/bin/mkdir -p "$am__dir" || exit 1; \
  emacs --batch \
      \
    $am__subdir_includes -L . -L . \
    --eval "(defun byte-compile-dest-file (f) \"mu4e-view.elc\")" \
    --eval "(unless (byte-compile-file \"mu4e-view.el\") (kill-emacs 1))"; \
else :; fi
if test "emacs" != "no"; then \
  am__dir=. am__subdir_includes=''; \
  case mu4e.elc in */*) \
    am__dir=`echo 'mu4e.elc' | sed 's,/[^/]*$,,'`; \
    am__subdir_includes="-L $am__dir -L ./$am__dir"; \
  esac; \
  test -d "$am__dir" || /nix/store/qd55j183ym04y43aam889xkimq704rdx-coreutils-8.29/bin/mkdir -p "$am__dir" || exit 1; \
  emacs --batch \
      \
    $am__subdir_includes -L . -L . \
    --eval "(defun byte-compile-dest-file (f) \"mu4e.elc\")" \
    --eval "(unless (byte-compile-file \"mu4e.el\") (kill-emacs 1))"; \
else :; fi
if test "emacs" != "no"; then \
  am__dir=. am__subdir_includes=''; \
  case org-mu4e.elc in */*) \
    am__dir=`echo 'org-mu4e.elc' | sed 's,/[^/]*$,,'`; \
    am__subdir_includes="-L $am__dir -L ./$am__dir"; \
  esac; \
  test -d "$am__dir" || /nix/store/qd55j183ym04y43aam889xkimq704rdx-coreutils-8.29/bin/mkdir -p "$am__dir" || exit 1; \
  emacs --batch \
      \
    $am__subdir_includes -L . -L . \
    --eval "(defun byte-compile-dest-file (f) \"org-mu4e.elc\")" \
    --eval "(unless (byte-compile-file \"org-mu4e.el\") (kill-emacs 1))"; \
else :; fi
if test "emacs" != "no"; then \
  am__dir=. am__subdir_includes=''; \
  case org-old-mu4e.elc in */*) \
    am__dir=`echo 'org-old-mu4e.elc' | sed 's,/[^/]*$,,'`; \
    am__subdir_includes="-L $am__dir -L ./$am__dir"; \
  esac; \
  test -d "$am__dir" || /nix/store/qd55j183ym04y43aam889xkimq704rdx-coreutils-8.29/bin/mkdir -p "$am__dir" || exit 1; \
  emacs --batch \
      \
    $am__subdir_includes -L . -L . \
    --eval "(defun byte-compile-dest-file (f) \"org-old-mu4e.elc\")" \
    --eval "(unless (byte-compile-file \"org-old-mu4e.el\") (kill-emacs 1))"; \
else :; fi

In end of data:
org-old-mu4e.el:290:1:Warning: the function `org-export-string' is not known
    to be defined.
make[3]: Leaving directory '/tmp/nix-build-mu-1.0.drv-0/source/mu4e'
make[2]: Leaving directory '/tmp/nix-build-mu-1.0.drv-0/source/mu4e'
Making all in contrib
make[2]: Entering directory '/tmp/nix-build-mu-1.0.drv-0/source/contrib'
  CC       gmime-test.o
  CCLD     gmime-test
make[2]: Leaving directory '/tmp/nix-build-mu-1.0.drv-0/source/contrib'
Making all in toys
make[2]: Entering directory '/tmp/nix-build-mu-1.0.drv-0/source/toys'
make[3]: Entering directory '/tmp/nix-build-mu-1.0.drv-0/source/toys'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/tmp/nix-build-mu-1.0.drv-0/source/toys'
make[2]: Leaving directory '/tmp/nix-build-mu-1.0.drv-0/source/toys'
make[2]: Entering directory '/tmp/nix-build-mu-1.0.drv-0/source'
make[2]: Leaving directory '/tmp/nix-build-mu-1.0.drv-0/source'
make[1]: Leaving directory '/tmp/nix-build-mu-1.0.drv-0/source'
running tests
check flags: SHELL=/nix/store/i0ay05pqkbnvpfijm52mmlrp6kmkl80c-bash-4.4-p12/bin/bash VERBOSE=y check
Making check in m4
make[1]: Entering directory '/tmp/nix-build-mu-1.0.drv-0/source/m4'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/tmp/nix-build-mu-1.0.drv-0/source/m4'
Making check in man
make[1]: Entering directory '/tmp/nix-build-mu-1.0.drv-0/source/man'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/tmp/nix-build-mu-1.0.drv-0/source/man'
Making check in lib
make[1]: Entering directory '/tmp/nix-build-mu-1.0.drv-0/source/lib'
Making check in parser
make[2]: Entering directory '/tmp/nix-build-mu-1.0.drv-0/source/lib/parser'
make  check-TESTS
make[3]: Entering directory '/tmp/nix-build-mu-1.0.drv-0/source/lib/parser'
make[4]: Entering directory '/tmp/nix-build-mu-1.0.drv-0/source/lib/parser'
PASS: test-tokenizer
PASS: test-parser
../../build-aux/test-driver: line 107: 14500 Aborted                 "$@" > $log_file 2>&1
FAIL: test-utils
=======================================
   mu 1.0: lib/parser/test-suite.log
=======================================

# TOTAL: 3
# PASS:  2
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: test-utils
================

/utils/date-basic: **
ERROR:test-utils.cc:51:void test_cases(const CaseVec&, ProcFunc): 'casus.expected == res' should be TRUE
FAIL test-utils (exit status: 134)

============================================================================
Testsuite summary for mu 1.0
============================================================================
# TOTAL: 3
# PASS:  2
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See lib/parser/test-suite.log
Please report to https://github.com/djcb/mu/issues
============================================================================
make[4]: *** [Makefile:844: test-suite.log] Error 1
make[4]: Leaving directory '/tmp/nix-build-mu-1.0.drv-0/source/lib/parser'
make[3]: *** [Makefile:952: check-TESTS] Error 2
make[3]: Leaving directory '/tmp/nix-build-mu-1.0.drv-0/source/lib/parser'
make[2]: *** [Makefile:1036: check-am] Error 2
make[2]: Leaving directory '/tmp/nix-build-mu-1.0.drv-0/source/lib/parser'
make[1]: *** [Makefile:643: check-recursive] Error 1
make[1]: Leaving directory '/tmp/nix-build-mu-1.0.drv-0/source/lib'
make: *** [Makefile:519: check-recursive] Error 1
builder for ‘/nix/store/8y47wn1zgppys5zhj144xhi2396wgq0y-mu-1.0.drv’ failed with exit code 2
error: build of ‘/nix/store/8y47wn1zgppys5zhj144xhi2396wgq0y-mu-1.0.drv’ failed
djcb commented 6 years ago

Can you try to run that test by hand, ie. lib/parser/test-utils --verbose?

magnetophon commented 6 years ago

@djcb Odd: when I run the test by hand it passes (the above is from inside the pkg build). Must be a NixOS thing. I'll ask there.

Thanks.

djcb commented 6 years ago

Hmm, doubt it's a NixOS thing... are you able to isolate the exact test that fails?

magnetophon commented 6 years ago

How should I do that?

peterhoeg commented 6 years ago

What does lib/parser/test-suite.log say?

magnetophon commented 6 years ago

@peterhoeg how do I read that? When I run the tests from nix-shell, they pass.

peterhoeg commented 6 years ago

nix-build -K -A mu $(pwd) - this will leave the build directory behind for you to inspect.

magnetophon commented 6 years ago

@peterhoeg Thanks.

That command didn't work here, but this one did: nix-build -K -E 'with import <nixpkgs> {}; callPackage ./default.nix {}'.

Unfortunately the log isn't very helpful without --verbose, and I don't know how to pass that.

=======================================
   mu 1.0: lib/parser/test-suite.log
=======================================

# TOTAL: 3
# PASS:  2
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: test-utils
================

/utils/date-basic: **
ERROR:test-utils.cc:51:void test_cases(const CaseVec&, ProcFunc): 'casus.expected == res' should be TRUE
FAIL test-utils (exit status: 134)
sgn commented 4 years ago

Can you check if adding something equivalent to tzdata to nixpkg's check dependencies can help?

In Void Linux, with this new check deps, the test is passed inside chroot environment.

Because the test code use "Europe/Helsinki" as timezone, I think we should change it to "+0200" or something equivalent?

magnetophon commented 4 years ago

Thanks @sgn. Upgrading to 1.4.1 also seemed to have done the trick.