FROM registry.opensuse.org/opensuse/tumbleweed:latest ARG NOTMUCH_VERSION=0.32.1 ENV NOTMUCH_VERSION=${NOTMUCH_VERSION} ENV CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ENV CXXFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ENV LDFLAGS="" RUN zypper --non-interactive in emacs-el emacs-nox gdb info man pkgconf-pkg-config \ python38-Sphinx python38-base dtach gmime-devel libgcrypt-cavs libtalloc-devel \ libxapian-devel makeinfo valgrind-devel git gcc make wget xz tar bash \ xapian-core openssl RUN wget https://notmuchmail.org/releases/notmuch-${NOTMUCH_VERSION}.tar.xz && \ xz -dc notmuch-${NOTMUCH_VERSION}.tar.xz | tar -xof - && \ cd notmuch-${NOTMUCH_VERSION} && \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --datadir=/usr/share \ --includedir=/usr/include \ --libdir=/usr/lib64 \ --libexecdir=/usr/libexec \ --localstatedir=/var \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-dependency-tracking \ --without-zsh-completion && \ make download-corpus RUN cd notmuch-${NOTMUCH_VERSION} && make -O -j$(nproc) V=1 VERBOSE=1 RUN cd notmuch-${NOTMUCH_VERSION} && make -O V=1 VERBOSE=1 check