[PATCH 4/4] Update NEWS for user.other_name
[notmuch-archives.git] / de / cd00fe3e86857f2d8e49e1597de6d89cb8806e
1 Return-Path: <blakej@foo.net>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 00026431FD2\r
6         for <notmuch@notmuchmail.org>; Sat,  3 Nov 2012 20:24:26 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id GvpLSAfqxW+T for <notmuch@notmuchmail.org>;\r
16         Sat,  3 Nov 2012 20:24:25 -0700 (PDT)\r
17 Received: from foo.net (70-36-235-136.dsl.static.sonic.net [70.36.235.136])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id B4265431FAE\r
21         for <notmuch@notmuchmail.org>; Sat,  3 Nov 2012 20:24:21 -0700 (PDT)\r
22 Received: from foo.net (localhost [127.0.0.1])\r
23         by foo.net (8.14.5+Sun/8.14.5) with ESMTP id qA43GFop025680;\r
24         Sat, 3 Nov 2012 20:16:15 -0700 (PDT)\r
25 Received: (from blakej@localhost)\r
26         by foo.net (8.14.5+Sun/8.14.5/Submit) id qA43GF5q025678;\r
27         Sat, 3 Nov 2012 20:16:15 -0700 (PDT)\r
28 From: Blake Jones <blakej@foo.net>\r
29 To: notmuch@notmuchmail.org\r
30 Subject: [PATCH 05/10] install: check for non-SysV version (Solaris support)\r
31 Date: Sat,  3 Nov 2012 20:15:57 -0700\r
32 Message-Id: <1351998962-25135-6-git-send-email-blakej@foo.net>\r
33 X-Mailer: git-send-email 1.7.3.2\r
34 In-Reply-To: <1351998962-25135-1-git-send-email-blakej@foo.net>\r
35 References: <1351998962-25135-1-git-send-email-blakej@foo.net>\r
36 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2\r
37         (foo.net [127.0.0.1]); Sat, 03 Nov 2012 20:16:15 -0700 (PDT)\r
38 X-Mailman-Approved-At: Sun, 04 Nov 2012 01:30:19 -0800\r
39 Cc: Blake Jones <blakej@foo.net>\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.13\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44         <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Sun, 04 Nov 2012 03:24:27 -0000\r
53 \r
54 Solaris ships a program called "install" in /usr/sbin, which performs a\r
55 task that's fairly similar to the GNU and BSD "install" programs but\r
56 which uses very different command line arguments.  In particular, if it\r
57 is invoked without "-c", "-f", or "-n", it will search the target\r
58 directory for a file with the same name as the one being installed, and\r
59 it will only install the file if it finds a matching name.  More\r
60 excitingly, if it doesn't find a match, it will look in /bin, /usr/bin,\r
61 /etc, /lib, and /usr/lib and try to do the same there.\r
62 \r
63 The standard workaround for this is to use GNU install.\r
64 It is available via the standard Solaris packaging system (in\r
65 "file/gnu-coreutils"), and installs itself as /usr/bin/ginstall.\r
66 \r
67 This patch adds a check to "configure" to see if "install" behaves in a\r
68 way that's compatible with GNU and BSD install, and if not, it uses a\r
69 program called "ginstall" instead.  It also modifies "configure" to set\r
70 the $(INSTALL) variable, and changes various Makefiles to use it.\r
71 ---\r
72  Makefile.local            |    2 +-\r
73  completion/Makefile.local |    4 ++--\r
74  configure                 |   19 +++++++++++++++++++\r
75  emacs/Makefile.local      |    6 +++---\r
76  lib/Makefile.local        |    4 ++--\r
77  man/Makefile.local        |    6 +++---\r
78  vim/Makefile              |    6 ++----\r
79  7 files changed, 32 insertions(+), 15 deletions(-)\r
80 \r
81 diff --git a/Makefile.local b/Makefile.local\r
82 index 2b91946..7ccb1cd 100644\r
83 --- a/Makefile.local\r
84 +++ b/Makefile.local\r
85 @@ -286,7 +286,7 @@ notmuch-shared: $(notmuch_client_modules) lib/$(LINKER_NAME)\r
86  .PHONY: install\r
87  install: all install-man\r
88         mkdir -p "$(DESTDIR)$(prefix)/bin/"\r
89 -       install notmuch-shared "$(DESTDIR)$(prefix)/bin/notmuch"\r
90 +       $(INSTALL) notmuch-shared "$(DESTDIR)$(prefix)/bin/notmuch"\r
91  ifeq ($(MAKECMDGOALS), install)\r
92         @echo ""\r
93         @echo "Notmuch is now installed to $(DESTDIR)$(prefix)"\r
94 diff --git a/completion/Makefile.local b/completion/Makefile.local\r
95 index dfc1271..a648a78 100644\r
96 --- a/completion/Makefile.local\r
97 +++ b/completion/Makefile.local\r
98 @@ -14,9 +14,9 @@ install-$(dir):\r
99         @echo $@\r
100  ifeq ($(WITH_BASH),1)\r
101         mkdir -p "$(DESTDIR)$(bash_completion_dir)"\r
102 -       install -m0644 $(bash_script) "$(DESTDIR)$(bash_completion_dir)/notmuch"\r
103 +       $(INSTALL) -m0644 $(bash_script) "$(DESTDIR)$(bash_completion_dir)/notmuch"\r
104  endif\r
105  ifeq ($(WITH_ZSH),1)\r
106         mkdir -p "$(DESTDIR)$(zsh_completion_dir)"\r
107 -       install -m0644 $(zsh_script) "$(DESTDIR)$(zsh_completion_dir)/_notmuch"\r
108 +       $(INSTALL) -m0644 $(zsh_script) "$(DESTDIR)$(zsh_completion_dir)/_notmuch"\r
109  endif\r
110 diff --git a/configure b/configure\r
111 index 5c5139f..dae837e 100755\r
112 --- a/configure\r
113 +++ b/configure\r
114 @@ -591,6 +591,21 @@ for flag in -Wmissing-declarations; do\r
115  done\r
116  printf "\n\t${WARN_CFLAGS}\n"\r
117  \r
118 +INSTALL="install"\r
119 +printf "Checking for working \"install\" program... "\r
120 +mkdir _tmp_\r
121 +cd _tmp_\r
122 +echo 1 > 1\r
123 +mkdir dest\r
124 +if install 1 dest > /dev/null 2>&1 ; then\r
125 +      printf "\"install\" works fine.\n"\r
126 +else\r
127 +      INSTALL="ginstall"\r
128 +      printf "using \"ginstall\".\n"\r
129 +fi\r
130 +cd ..\r
131 +rm -rf _tmp_\r
132 +\r
133  rm -f minimal minimal.c\r
134  \r
135  cat <<EOF\r
136 @@ -777,4 +792,8 @@ CONFIGURE_CXXFLAGS = -DHAVE_GETLINE=\$(HAVE_GETLINE) \$(GMIME_CFLAGS)    \\\r
137                      -DSTD_ASCTIME=\$(STD_ASCTIME)\r
138  CONFIGURE_LDFLAGS =  \$(GMIME_LDFLAGS) \$(TALLOC_LDFLAGS) \$(XAPIAN_LDFLAGS) \\\r
139                      \$(LIBNSL_LDFLAGS)\r
140 +\r
141 +# Which "install" program to use\r
142 +INSTALL = ${INSTALL}\r
143 +\r
144  EOF\r
145 diff --git a/emacs/Makefile.local b/emacs/Makefile.local\r
146 index fb82247..ee778cb 100644\r
147 --- a/emacs/Makefile.local\r
148 +++ b/emacs/Makefile.local\r
149 @@ -36,11 +36,11 @@ endif\r
150  .PHONY: install-emacs\r
151  install-emacs:\r
152         mkdir -p "$(DESTDIR)$(emacslispdir)"\r
153 -       install -m0644 $(emacs_sources) "$(DESTDIR)$(emacslispdir)"\r
154 +       $(INSTALL) -m0644 $(emacs_sources) "$(DESTDIR)$(emacslispdir)"\r
155  ifeq ($(HAVE_EMACS),1)\r
156 -       install -m0644 $(emacs_bytecode) "$(DESTDIR)$(emacslispdir)"\r
157 +       $(INSTALL) -m0644 $(emacs_bytecode) "$(DESTDIR)$(emacslispdir)"\r
158  endif\r
159         mkdir -p "$(DESTDIR)$(emacsetcdir)"\r
160 -       install -m0644 $(emacs_images) "$(DESTDIR)$(emacsetcdir)"\r
161 +       $(INSTALL) -m0644 $(emacs_images) "$(DESTDIR)$(emacsetcdir)"\r
162  \r
163  CLEAN := $(CLEAN) $(emacs_bytecode)\r
164 diff --git a/lib/Makefile.local b/lib/Makefile.local\r
165 index 7785944..0c6b258 100644\r
166 --- a/lib/Makefile.local\r
167 +++ b/lib/Makefile.local\r
168 @@ -89,11 +89,11 @@ install: install-$(dir)\r
169  \r
170  install-$(dir): $(dir)/$(LIBNAME)\r
171         mkdir -p "$(DESTDIR)$(libdir)/"\r
172 -       install -m0644 "$(lib)/$(LIBNAME)" "$(DESTDIR)$(libdir)/"\r
173 +       $(INSTALL) -m0644 "$(lib)/$(LIBNAME)" "$(DESTDIR)$(libdir)/"\r
174         ln -sf $(LIBNAME) "$(DESTDIR)$(libdir)/$(SONAME)"\r
175         ln -sf $(LIBNAME) "$(DESTDIR)$(libdir)/$(LINKER_NAME)"\r
176         mkdir -p "$(DESTDIR)$(includedir)"\r
177 -       install -m0644 "$(srcdir)/$(lib)/notmuch.h" "$(DESTDIR)$(includedir)/"\r
178 +       $(INSTALL) -m0644 "$(srcdir)/$(lib)/notmuch.h" "$(DESTDIR)$(includedir)/"\r
179         $(LIBRARY_INSTALL_POST_COMMAND)\r
180  \r
181  SRCS  := $(SRCS) $(libnotmuch_c_srcs) $(libnotmuch_cxx_srcs)\r
182 diff --git a/man/Makefile.local b/man/Makefile.local\r
183 index 72e2a18..07dcf4c 100644\r
184 --- a/man/Makefile.local\r
185 +++ b/man/Makefile.local\r
186 @@ -38,9 +38,9 @@ install-man: $(COMPRESSED_MAN)\r
187         mkdir -p "$(DESTDIR)$(mandir)/man1"\r
188         mkdir -p "$(DESTDIR)$(mandir)/man5"\r
189         mkdir -p "$(DESTDIR)$(mandir)/man7"\r
190 -       install -m0644 $(MAN1_GZ) $(DESTDIR)/$(mandir)/man1\r
191 -       install -m0644 $(MAN5_GZ) $(DESTDIR)/$(mandir)/man5\r
192 -       install -m0644 $(MAN7_GZ) $(DESTDIR)/$(mandir)/man7\r
193 +       $(INSTALL) -m0644 $(MAN1_GZ) $(DESTDIR)/$(mandir)/man1\r
194 +       $(INSTALL) -m0644 $(MAN5_GZ) $(DESTDIR)/$(mandir)/man5\r
195 +       $(INSTALL) -m0644 $(MAN7_GZ) $(DESTDIR)/$(mandir)/man7\r
196         cd $(DESTDIR)/$(mandir)/man1 && ln -sf notmuch.1.gz notmuch-setup.1.gz\r
197  \r
198  update-man-versions: $(MAN_SOURCE)\r
199 diff --git a/vim/Makefile b/vim/Makefile\r
200 index f17bebf..7ceba7a 100644\r
201 --- a/vim/Makefile\r
202 +++ b/vim/Makefile\r
203 @@ -5,8 +5,6 @@ files = plugin/notmuch.vim \\r
204  prefix = $(HOME)/.vim\r
205  destdir = $(prefix)/plugin\r
206  \r
207 -INSTALL = install -D -m644\r
208 -\r
209  all: help\r
210  \r
211  help:\r
212 @@ -17,7 +15,7 @@ help:\r
213         @echo "    make symlink     - create symlinks in ~/.vim (useful for development)"\r
214  \r
215  install:\r
216 -       @for x in $(files); do $(INSTALL) $(CURDIR)/$$x $(prefix)/$$x; done\r
217 +       @for x in $(files); do $(INSTALL) -D -m644 $(CURDIR)/$$x $(prefix)/$$x; done\r
218  \r
219 -link symlink: INSTALL = ln -fs\r
220  link symlink: install\r
221 +       @for x in $(files); do ln -fs $(CURDIR)/$$x $(prefix)/$$x; done\r
222 -- \r
223 1.7.9.2\r
224 \r