Dear ports@, Attached you'll find the port for notmuch 0.28.3, a mail indexer similar to mu4e or sup. It also builds the bindings necessary for interfacing it with Emacs, Python 2.7 or 3.6 (only 3.6 tested with afewmail). With a few minor patches to fix some gz calls, to not compress the manpages and to call GNU Make instead of base Make, notmuch builds (build and portcheck log in the attachments) and runs perfectly in OpenBSD -CURRENT. I have been using it for the last 5 months. I am also volunteering for maintainership of this port, since I use notmuch daily and regularly follow the mailing lists.
Please let me know if it lives up the ports standards, i want to learn to create good ports. Cheers, Enric
notmuch.tar.gz
Description: port files
===> Cleaning for notmuch-0.28.3 rm -f /usr/ports/packages/amd64/all/notmuch-0.28.3.tgz /usr/ports/packages/amd64/ftp/notmuch-0.28.3.tgz /usr/ports/packages/amd64/cdrom/notmuch-0.28.3.tgz /usr/ports/packages/amd64/all/notmuch-emacs-0.28.3.tgz /usr/ports/packages/amd64/ftp/notmuch-emacs-0.28.3.tgz /usr/ports/packages/amd64/cdrom/notmuch-emacs-0.28.3.tgz /usr/ports/packages/amd64/all/notmuch-python2.7-0.28.3.tgz /usr/ports/packages/amd64/ftp/notmuch-python2.7-0.28.3.tgz /usr/ports/packages/amd64/cdrom/notmuch-python2.7-0.28.3.tgz /usr/ports/packages/amd64/all/notmuch-python3.6-0.28.3.tgz /usr/ports/packages/amd64/ftp/notmuch-python3.6-0.28.3.tgz /usr/ports/packages/amd64/cdrom/notmuch-python3.6-0.28.3.tgz rm -f /usr/ports/update/amd64/notmuch-0.28.3 /usr/ports/update/amd64/notmuch-emacs-0.28.3 /usr/ports/update/amd64/notmuch-python2.7-0.28.3 /usr/ports/update/amd64/notmuch-python3.6-0.28.3 /usr/ports/packages/amd64/cache/notmuch-0.28.3.tgz /usr/ports/packages/amd64/cache/notmuch-emacs-0.28.3.tgz /usr/ports/packages/amd64/cache/notmuch-python2.7-0.28.3.tgz /usr/ports/packages/amd64/cache/notmuch-python3.6-0.28.3.tgz rm -f /usr/ports/plist/amd64/notmuch-0.28.3 rm -f /usr/ports/plist/amd64/notmuch-emacs-0.28.3 rm -f /usr/ports/plist/amd64/notmuch-python2.7-0.28.3 rm -f /usr/ports/plist/amd64/notmuch-python3.6-0.28.3 ===> notmuch-0.28.3 depends on: doxygen-* -> doxygen-1.8.14p0 ===> notmuch-0.28.3 depends on: xapian-core-* -> xapian-core-1.4.11p1 ===> notmuch-0.28.3 depends on: emacs-* -> emacs-26.1p4-gtk3 ===> notmuch-0.28.3 depends on: python->=3.6,<3.7 -> python-3.6.8p0 ===> notmuch-0.28.3 depends on: python->=2.7,<2.8 -> python-2.7.15p1 ===> notmuch-0.28.3 depends on: py-sphinx-* -> py-sphinx-1.4.8p0 ===> notmuch-0.28.3 depends on: gmake-* -> gmake-4.2.1p0 ===> notmuch-0.28.3 depends on: libtalloc-* -> libtalloc-2.1.14 ===> notmuch-0.28.3 depends on: gmime-* -> gmime-2.6.23p2 ===> Verifying specs: c c++ gio-2.0 glib-2.0 gmime-2.6 gobject-2.0 intl m pthread talloc z ===> found c.95.0 c++.2.1 gio-2.0.4200.8 glib-2.0.4201.1 gmime-2.6.0.2 gobject-2.0.4200.8 intl.6.0 m.10.1 pthread.26.1 talloc.1.1 z.5.0 ===> Checking files for notmuch-0.28.3 `/usr/ports/distfiles/notmuch-0.28.3.tar.gz' is up to date. >> (SHA256) notmuch-0.28.3.tar.gz: OK ===> Extracting for notmuch-0.28.3 ===> Patching for notmuch-0.28.3 ===> Applying OpenBSD patch patch-configure Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$OpenBSD$ |Index: configure |--- configure.orig |+++ configure -------------------------- Patching file configure using Plan A... Hunk #1 succeeded at 42. Hunk #2 succeeded at 534. Hunk #3 succeeded at 582. done ===> Applying OpenBSD patch patch-doc_Makefile_local Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$OpenBSD$ | |Index: doc/Makefile.local |--- doc/Makefile.local.orig |+++ doc/Makefile.local -------------------------- Patching file doc/Makefile.local using Plan A... Hunk #1 succeeded at 22. Hunk #2 succeeded at 34. Hunk #3 succeeded at 49. Hunk #4 succeeded at 75. Hunk #5 succeeded at 98. Hunk #6 succeeded at 131. done ===> Applying OpenBSD patch patch-emacs_Makefile_local Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$OpenBSD$ | |Index: emacs/Makefile.local |--- emacs/Makefile.local.orig |+++ emacs/Makefile.local -------------------------- Patching file emacs/Makefile.local using Plan A... Hunk #1 succeeded at 117. done ===> Applying OpenBSD patch patch-lib_Makefile_local Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$OpenBSD$ |Index: lib/Makefile.local |--- lib/Makefile.local.orig |+++ lib/Makefile.local -------------------------- Patching file lib/Makefile.local using Plan A... Hunk #1 succeeded at 15. Hunk #2 succeeded at 37. Hunk #3 succeeded at 78. done ===> Applying OpenBSD patch patch-notmuch-dump_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$OpenBSD$ | |Index: notmuch-dump.c |--- notmuch-dump.c.orig |+++ notmuch-dump.c -------------------------- Patching file notmuch-dump.c using Plan A... Hunk #1 succeeded at 329. Hunk #2 succeeded at 348. done ===> Applying OpenBSD patch patch-notmuch-restore_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |$OpenBSD$ | |Index: notmuch-restore.c |--- notmuch-restore.c.orig |+++ notmuch-restore.c -------------------------- Patching file notmuch-restore.c using Plan A... Hunk #1 succeeded at 449. done ===> Compiler link: clang -> /usr/bin/clang ===> Compiler link: clang++ -> /usr/bin/clang++ ===> Compiler link: cc -> /usr/bin/cc ===> Compiler link: c++ -> /usr/bin/c++ ===> Generating configure for notmuch-0.28.3 ===> Configuring for notmuch-0.28.3 Welcome to Notmuch, a system for indexing, searching and tagging your email. We hope that the process of building and installing notmuch is quick and smooth so that you can soon be reading and processing your email more efficiently than ever. If anything goes wrong in the configure process, you can override any decisions it makes by manually editing the Makefile.config file that it creates. Also please do as much as you can to figure out what could be different on your machine compared to those of the notmuch developers. Then, please email those details to the Notmuch list ([email protected]) so that we can hopefully make future versions of notmuch easier for you to use. We'll now investigate your system to verify that all required dependencies are available: Sanity checking C compilation environment... OK. Sanity checking C++ compilation environment... OK. Reading libnotmuch version from source... OK. Checking for Xapian development files... Yes (1.4.11). Checking for Xapian compaction support... Yes. Checking for Xapian FieldProcessor API... Yes. Checking for Xapian lock retry support... Yes. Testing default Xapian backend... glass Checking for GMime development files... Yes (2.6). Checking for Glib development files (>= 2.22)... Yes. Checking for zlib (>= 1.2.3)... Yes. Checking for talloc development files... Yes. Checking for bash... Yes (/usr/local/bin/bash). Checking for perl... Yes (/usr/bin/perl). Checking for python... Yes (python2.7). Checking for valgrind development files... No (but that's fine). Checking for bash-completion (>= 1.90)... No (will not install bash completion). Checking if emacs is available... Yes. Checking if doxygen is available... Yes. Checking for ruby development files... No (skipping ruby bindings) Checking if sphinx is available and supports nroff output... Yes. Checking if makeinfo is available... Yes. Checking if install-info is available... Yes. Checking if desktop-file-install is available... Yes. Checking for cppcheck... No. Checking which platform we are on... OpenBSD. Checking for canonicalize_file_name... No (will use our own instead). Checking for getline... Yes. Checking for strcasestr... Yes. Checking for strsep... Yes. Checking for timegm... Yes. Checking for dirent.d_type... Yes. Checking for standard version of getpwuid_r... Yes. Checking for standard version of asctime_r... Yes. Checking for rpath support... Yes. Checking for -Wl,--as-needed... Yes. Checking for -Wl,--no-undefined... Yes. Checking for available C++ compiler warning flags... -Wall -Wextra -Wwrite-strings Checking for available C compiler warning flags... -Wall -Wextra -Wwrite-strings -Wmissing-declarations All required packages were found. You may now run the following commands to compile and install notmuch: make sudo make install ===> Building for notmuch-0.28.3 echo 0.28.3 > version.stamp Use "gmake V=1" to see the verbose compile lines. EMACS emacs/.eldeps Use "gmake V=1" to see the verbose compile lines. EMACS emacs/notmuch-compat.elc EMACS emacs/notmuch-version.elc EMACS emacs/notmuch-lib.elc EMACS emacs/notmuch-parser.elc EMACS emacs/notmuch-tag.elc EMACS emacs/notmuch-query.elc EMACS emacs/coolj.elc EMACS emacs/notmuch-wash.elc EMACS emacs/notmuch-company.elc EMACS emacs/notmuch-address.elc EMACS emacs/notmuch-maildir-fcc.elc In notmuch-maildir-setup-message-for-saving: emacs/notmuch-maildir-fcc.el:172:31:Warning: `message-default-charset' is an obsolete variable (as of 26.1); The default charset comes from the language environment EMACS emacs/notmuch-draft.elc EMACS emacs/notmuch-mua.elc In end of data: emacs/notmuch-mua.el:586:1:Warning: the function `gnus-select-frame-set-input-focus' is not known to be defined. EMACS emacs/notmuch-crypto.elc EMACS emacs/notmuch-print.elc EMACS emacs/notmuch-show.elc In notmuch-show-setup-w3m: emacs/notmuch-show.el:607:9:Warning: assignment to free variable `mm-inline-text-html-with-images' EMACS emacs/notmuch-tree.elc EMACS emacs/notmuch-hello.elc EMACS emacs/notmuch-message.elc EMACS emacs/notmuch.elc EMACS emacs/notmuch-jump.elc CC -O2 -pipe compat/canonicalize_file_name.o CC -O2 -pipe command-line-arguments.o CC -O2 -pipe debugger.o CC -O2 -pipe status.o CC -O2 -pipe gmime-filter-reply.o CC -O2 -pipe hooks.o CC -O2 -pipe notmuch.o CC -O2 -pipe notmuch-compact.o CC -O2 -pipe notmuch-config.o CC -O2 -pipe notmuch-count.o CC -O2 -pipe notmuch-dump.o CC -O2 -pipe notmuch-insert.o CC -O2 -pipe notmuch-new.o CC -O2 -pipe notmuch-reindex.o CC -O2 -pipe notmuch-reply.o CC -O2 -pipe notmuch-restore.o CC -O2 -pipe notmuch-search.o CC -O2 -pipe notmuch-setup.o CC -O2 -pipe notmuch-show.o notmuch-show.c:355:40: warning: implicit conversion from enumeration type 'GMimeSignatureStatus' to different enumeration type 'GMimeSignatureError' [-Wenum-conversion] if (g_mime_signature_status_error (status)) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~ 1 warning generated. CC -O2 -pipe notmuch-tag.o CC -O2 -pipe notmuch-time.o CC -O2 -pipe sprinter-json.o CC -O2 -pipe sprinter-sexp.o CC -O2 -pipe sprinter-text.o CC -O2 -pipe query-string.o CC -O2 -pipe mime-node.o CC -O2 -pipe tag-util.o CC -O2 -pipe lib/filenames.o CC -O2 -pipe lib/string-list.o CC -O2 -pipe lib/message-file.o CC -O2 -pipe lib/message-id.o CC -O2 -pipe lib/messages.o CC -O2 -pipe lib/sha1.o CC -O2 -pipe lib/built-with.o CC -O2 -pipe lib/string-map.o CC -O2 -pipe lib/indexopts.o CC -O2 -pipe lib/tags.o CXX -O2 -pipe lib/database.o CXX -O2 -pipe lib/parse-time-vrp.o CXX -O2 -pipe lib/directory.o CXX -O2 -pipe lib/index.o CXX -O2 -pipe lib/message.o CXX -O2 -pipe lib/add-message.o CXX -O2 -pipe lib/message-property.o CXX -O2 -pipe lib/query.o CXX -O2 -pipe lib/query-fp.o CXX -O2 -pipe lib/config.o CXX -O2 -pipe lib/regexp-fields.o CXX -O2 -pipe lib/thread.o CXX -O2 -pipe lib/thread-fp.o AR lib/libnotmuch.a CC -O2 -pipe util/xutil.o CC -O2 -pipe util/error_util.o CC -O2 -pipe util/hex-escape.o CC -O2 -pipe util/string-util.o CC -O2 -pipe util/talloc-extra.o CC -O2 -pipe util/zlib-extra.o CC -O2 -pipe util/util.o CC -O2 -pipe util/gmime-extra.o CC -O2 -pipe util/crypto.o AR util/libnotmuch_util.a CC -O2 -pipe parse-time-string/parse-time-string.o AR parse-time-string/libparse-time-string.a CXX -O2 -pipe notmuch CXX -O2 -pipe lib/libnotmuch.so.5.2 CXX -O2 -pipe notmuch-shared sphinx-build -b man -d doc/_build/doctrees -q ./doc doc/_build/man for section in 1 5 7; do \ mkdir -p doc/_build/man/man${section}; \ mv doc/_build/man/*.${section} doc/_build/man/man${section}; \ done touch doc/_build/.roff.stamp echo "PROJECT_NAME = \"Notmuch 0.28.3\"" > doc/config.dox echo "INPUT=./lib/notmuch.h" >> doc/config.dox mkdir -p doc/_build/man/man3 doxygen ./doc/doxygen.cfg rm -f doc/_build/man/man3/_*.3 perl -pi -e 's/^[.]RI "\\fI/.RI "\\fP/' doc/_build/man/man3/notmuch.3 sphinx-build -b html -d doc/_build/doctrees -q ./doc doc/_build/html sphinx-build -b texinfo -d doc/_build/doctrees -q ./doc doc/_build/texinfo gmake -C doc/_build/texinfo info gmake[1]: Entering directory '/usr/ports/pobj/notmuch-0.28.3/notmuch-0.28.3/doc/_build/texinfo' makeinfo --no-split -o 'notmuch.info' 'notmuch.texi' notmuch.texi:5: warning: unrecognized encoding name `UTF-8'. makeinfo --no-split -o 'notmuch-insert.info' 'notmuch-insert.texi' notmuch-insert.texi:5: warning: unrecognized encoding name `UTF-8'. makeinfo --no-split -o 'notmuch-properties.info' 'notmuch-properties.texi' notmuch-properties.texi:5: warning: unrecognized encoding name `UTF-8'. makeinfo --no-split -o 'notmuch-show.info' 'notmuch-show.texi' notmuch-show.texi:5: warning: unrecognized encoding name `UTF-8'. makeinfo --no-split -o 'notmuch-emacs.info' 'notmuch-emacs.texi' notmuch-emacs.texi:5: warning: unrecognized encoding name `UTF-8'. makeinfo --no-split -o 'notmuch-emacs-mua.info' 'notmuch-emacs-mua.texi' notmuch-emacs-mua.texi:5: warning: unrecognized encoding name `UTF-8'. makeinfo --no-split -o 'notmuch-search.info' 'notmuch-search.texi' notmuch-search.texi:5: warning: unrecognized encoding name `UTF-8'. makeinfo --no-split -o 'notmuch-count.info' 'notmuch-count.texi' notmuch-count.texi:5: warning: unrecognized encoding name `UTF-8'. makeinfo --no-split -o 'notmuch-tag.info' 'notmuch-tag.texi' notmuch-tag.texi:5: warning: unrecognized encoding name `UTF-8'. makeinfo --no-split -o 'notmuch-address.info' 'notmuch-address.texi' notmuch-address.texi:5: warning: unrecognized encoding name `UTF-8'. makeinfo --no-split -o 'notmuch-dump.info' 'notmuch-dump.texi' notmuch-dump.texi:5: warning: unrecognized encoding name `UTF-8'. makeinfo --no-split -o 'notmuch-new.info' 'notmuch-new.texi' notmuch-new.texi:5: warning: unrecognized encoding name `UTF-8'. makeinfo --no-split -o 'notmuch-restore.info' 'notmuch-restore.texi' notmuch-restore.texi:5: warning: unrecognized encoding name `UTF-8'. makeinfo --no-split -o 'notmuch-reindex.info' 'notmuch-reindex.texi' notmuch-reindex.texi:5: warning: unrecognized encoding name `UTF-8'. makeinfo --no-split -o 'notmuch-hooks.info' 'notmuch-hooks.texi' notmuch-hooks.texi:5: warning: unrecognized encoding name `UTF-8'. makeinfo --no-split -o 'notmuch-reply.info' 'notmuch-reply.texi' notmuch-reply.texi:5: warning: unrecognized encoding name `UTF-8'. makeinfo --no-split -o 'notmuch-config.info' 'notmuch-config.texi' notmuch-config.texi:5: warning: unrecognized encoding name `UTF-8'. makeinfo --no-split -o 'notmuch-compact.info' 'notmuch-compact.texi' notmuch-compact.texi:5: warning: unrecognized encoding name `UTF-8'. makeinfo --no-split -o 'notmuch-search-terms.info' 'notmuch-search-terms.texi' notmuch-search-terms.texi:5: warning: unrecognized encoding name `UTF-8'. gmake[1]: Leaving directory '/usr/ports/pobj/notmuch-0.28.3/notmuch-0.28.3/doc/_build/texinfo' running build running build_py creating build creating build/lib creating build/lib/notmuch copying notmuch/__init__.py -> build/lib/notmuch copying notmuch/compat.py -> build/lib/notmuch copying notmuch/database.py -> build/lib/notmuch copying notmuch/directory.py -> build/lib/notmuch copying notmuch/errors.py -> build/lib/notmuch copying notmuch/filenames.py -> build/lib/notmuch copying notmuch/globals.py -> build/lib/notmuch copying notmuch/message.py -> build/lib/notmuch copying notmuch/messages.py -> build/lib/notmuch copying notmuch/query.py -> build/lib/notmuch copying notmuch/tag.py -> build/lib/notmuch copying notmuch/thread.py -> build/lib/notmuch copying notmuch/threads.py -> build/lib/notmuch copying notmuch/version.py -> build/lib/notmuch running build running build_py [32m[00m time: [34m48.391s[00m, cpu: [34m92%[00m 2 line(s) longer than 80 chars in Makefile mail/notmuch
