<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/compat/Makefile.local, branch 0.35</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.35</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.35'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2021-04-24T11:07:00Z</updated>
<entry>
<title>compat: rename {,notmuch_}canonicalize_file_name</title>
<updated>2021-04-24T11:07:00Z</updated>
<author>
<name>Đoàn Trần Công Danh</name>
<email>congdanhqx@gmail.com</email>
</author>
<published>2021-04-24T01:05:37Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=441a327051f5357175029709030a0ee51131379d'/>
<id>urn:sha1:441a327051f5357175029709030a0ee51131379d</id>
<content type='text'>
When compat canonicalize_file_name was introduced, it was limited to
C code only because it was used by C code only during that time.

&gt;From 5ec6fd4d, (lib/open: check for split configuration when creating
database., 2021-02-16), lib/open.cc, which is C++, relies on the
existent of canonicalize_file_name.

However, we can't blindly enable canonicalize_file_name for C++ code,
because different implementation has different additional signature for
C++ and users can arbitrarily add -DHAVE_CANONICALIZE_FILE_NAME=0 to
{C,CXX}FLAGS.

Let's move our implementation into a util library.

Helped-by: Tomi Ollila &lt;tomi.ollila@iki.fi&gt;
Signed-off-by: Đoàn Trần Công Danh &lt;congdanhqx@gmail.com&gt;
</content>
</entry>
<entry>
<title>emacs: Use makefile-gmake-mode in Makefile*s</title>
<updated>2020-08-10T00:14:36Z</updated>
<author>
<name>Jonas Bernoulli</name>
<email>jonas@bernoul.li</email>
</author>
<published>2020-08-08T11:49:49Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=c4541353765dec837c1c2f912b1bf6661827429c'/>
<id>urn:sha1:c4541353765dec837c1c2f912b1bf6661827429c</id>
<content type='text'>
Use `makefile-gmake-mode' instead of `makefile-mode' because the
former also highlights ifdef et al. while the latter does not.

"./Makefile.global" and one "Makefile.local" failed to specify any
major mode at all but doing so is necessary because Emacs does not
automatically figure out that these are Makefiles (of any flavor).
</content>
</entry>
<entry>
<title>compat: add canonicalize_file_name</title>
<updated>2014-04-08T10:27:14Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2014-01-27T14:12:12Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=af5c3afa91cc29268c6754ea70f15cae30f22403'/>
<id>urn:sha1:af5c3afa91cc29268c6754ea70f15cae30f22403</id>
<content type='text'>
the POSIX 2008 behaviour of realpath is not available everywhere so we
provide a simple wrapper function.  We use (and provide) the gnu
extension canonicalize_file_name to make it cleaner to test for the
feature we need; otherwise we have to rely on realpath segfaulting if
the second argument is null.
</content>
</entry>
<entry>
<title>timegm: add portable implementation (Solaris support)</title>
<updated>2013-08-23T15:57:35Z</updated>
<author>
<name>Blake Jones</name>
<email>blakej@foo.net</email>
</author>
<published>2013-08-21T11:09:54Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=8c6b2e7e9d30bb3a9ef4fd8632cbf6d8d0673bb7'/>
<id>urn:sha1:8c6b2e7e9d30bb3a9ef4fd8632cbf6d8d0673bb7</id>
<content type='text'>
The timegm(3) function is a non-standard extension to libc which is
available in GNU libc and on some BSDs.  Although SunOS had this
function in its libc, Solaris (unfortunately) removed it.  This patch
implements a very simple version of timegm() which is good enough for
parse-time-string.c.

Signed-off-by: Vladimir Marek &lt;vlmarek@volny.cz&gt;
</content>
</entry>
<entry>
<title>strsep: check for availability (Solaris support)</title>
<updated>2013-08-23T15:55:39Z</updated>
<author>
<name>Blake Jones</name>
<email>blakej@foo.net</email>
</author>
<published>2013-08-16T14:38:16Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=43843745dcbf31e96f447410e335a8d2aa21b00d'/>
<id>urn:sha1:43843745dcbf31e96f447410e335a8d2aa21b00d</id>
<content type='text'>
Solaris does not ship a version of the strsep() function.  This change
adds a check to "configure" to see whether notmuch needs to provide its
own implementation, and if so, it uses the new version in
"compat/strsep.c" (which was copied from Mutt, and apparently before
that from glibc).

Signed-off-by: Vladimir Marek &lt;vlmarek@volny.cz&gt;
</content>
</entry>
<entry>
<title>Fix dependency generation for compat, test, and util</title>
<updated>2012-01-19T13:19:12Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2012-01-15T20:20:42Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5c12ee4b5d942b5c9efc79922d25b1cf9934aab0'/>
<id>urn:sha1:5c12ee4b5d942b5c9efc79922d25b1cf9934aab0</id>
<content type='text'>
This adds source files in compat, test, and util to SRCS so that the
top-level Makefile.local will generate dependency files for them.
</content>
</entry>
<entry>
<title>build: Add support for non-source-directory builds.</title>
<updated>2011-03-09T23:10:03Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2011-03-09T23:02:42Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=3e4a9d60a9419621b08c647a306843d76c47c2cb'/>
<id>urn:sha1:3e4a9d60a9419621b08c647a306843d76c47c2cb</id>
<content type='text'>
Such as:

     mkdir build
     cd build
     ../configure
     make

This is implemented by having the configure script set a srcdir
variable in Makefile.config, and then sprinkling $(srcdir) into
various make rules. We also use vpath directives to convince GNU make
to find the source files from the original source directory.
</content>
</entry>
<entry>
<title>Add simplistic reimplementation of strcasestr to compat library</title>
<updated>2010-04-14T18:34:12Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>hohndel@x200.gr8dns.org</email>
</author>
<published>2010-04-13T16:47:48Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d09154465aeae727e93a4abf54ff8f3bf0bdab76'/>
<id>urn:sha1:d09154465aeae727e93a4abf54ff8f3bf0bdab76</id>
<content type='text'>
While all systems that I have access to support strcasestr, it is
in fact not part of POSIX. So here's a fallback reimplementation
based on POSIX functions.

Signed-off-by: Dirk Hohndel &lt;hohndel@infradead.org&gt;

Tested-by: Tomas Carnecky &lt;tom@dbservice.com&gt; (on OpenSolaris snv_134)
</content>
</entry>
<entry>
<title>Fix up Makefile for build.</title>
<updated>2010-04-14T17:46:36Z</updated>
<author>
<name>Aaron Ecay</name>
<email>aaronecay@gmail.com</email>
</author>
<published>2010-04-11T23:44:52Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=c10085c77b407d9ea704f8b4f9e0a805f63e72cb'/>
<id>urn:sha1:c10085c77b407d9ea704f8b4f9e0a805f63e72cb</id>
<content type='text'>
Must set extra_c(xx)flags before including subdir Makefile.local's,
so that there is a blank slate that the subdirs can add on to.

Must include subdir Makefile.local's before global one, otherwise
the compat sources are not added to the list of those to be
compiled.

Signed-off-by: Aaron Ecay &lt;aaronecay@gmail.com&gt;
</content>
</entry>
<entry>
<title>Makefile.local: Automatically use makefile mode</title>
<updated>2010-04-03T19:31:49Z</updated>
<author>
<name>David Edmondson</name>
<email>dme@dme.org</email>
</author>
<published>2010-03-21T09:54:08Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d3884a5984c26159169d58b9cc8fb2a137fb48a2'/>
<id>urn:sha1:d3884a5984c26159169d58b9cc8fb2a137fb48a2</id>
<content type='text'>
We add a magic line to the beginning of each Makefile.local file to
help the editor know that it should use makefile mode for editing the
file, (even though the filename isn't exactly "Makefile").

Edited-by: Carl Worth &lt;cworth@cworth.org&gt;: Expand treatment from
emacs/Makefile.local to each instance of Makefile.local.
</content>
</entry>
</feed>
