1 Return-Path: <sojkam1@fel.cvut.cz>
\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 F30BF431FC1
\r
6 for <notmuch@notmuchmail.org>; Wed, 16 Jun 2010 10:27:18 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5
\r
12 tests=[BAYES_00=-1.9] autolearn=ham
\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 dLhhwcVi72fB for <notmuch@notmuchmail.org>;
\r
16 Wed, 16 Jun 2010 10:27:08 -0700 (PDT)
\r
17 Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 9062340CAE9
\r
19 for <notmuch@notmuchmail.org>; Wed, 16 Jun 2010 10:27:08 -0700 (PDT)
\r
20 Received: from localhost (unknown [192.168.200.4])
\r
21 by max.feld.cvut.cz (Postfix) with ESMTP id 0173319F3412
\r
22 for <notmuch@notmuchmail.org>; Wed, 16 Jun 2010 19:27:08 +0200 (CEST)
\r
23 X-Virus-Scanned: IMAP AMAVIS
\r
24 Received: from max.feld.cvut.cz ([192.168.200.1])
\r
25 by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,
\r
26 port 10044) with ESMTP id kpg2dNdri3UE for <notmuch@notmuchmail.org>;
\r
27 Wed, 16 Jun 2010 19:27:06 +0200 (CEST)
\r
28 Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])
\r
29 by max.feld.cvut.cz (Postfix) with ESMTP id BD29419F3326
\r
30 for <notmuch@notmuchmail.org>; Wed, 16 Jun 2010 19:27:06 +0200 (CEST)
\r
31 Received: from steelpick.2x.cz (ip-85-161-203-252.eurotel.cz [85.161.203.252])
\r
32 (Authenticated sender: sojkam1)
\r
33 by imap.feld.cvut.cz (Postfix) with ESMTPSA id C97A1FA004
\r
34 for <notmuch@notmuchmail.org>; Wed, 16 Jun 2010 19:27:01 +0200 (CEST)
\r
35 Received: from wsh by steelpick.2x.cz with local (Exim 4.72)
\r
36 (envelope-from <sojkam1@fel.cvut.cz>) id 1OOtNj-0006GX-FE
\r
37 for notmuch@notmuchmail.org; Wed, 16 Jun 2010 16:14:19 +0200
\r
38 From: Michal Sojka <sojkam1@fel.cvut.cz>
\r
39 To: notmuch@notmuchmail.org
\r
40 Subject: [PATCH] Do not call ldconfig when building Debian package
\r
41 User-Agent: Notmuch/0.3.1-41-gfac11e2 (http://notmuchmail.org) Emacs/23.2.1
\r
42 (x86_64-pc-linux-gnu)
\r
43 Date: Wed, 16 Jun 2010 16:14:18 +0200
\r
44 Message-ID: <87ljaf6p51.fsf@steelpick.2x.cz>
\r
46 Content-Type: text/plain; charset=us-ascii
\r
47 X-BeenThere: notmuch@notmuchmail.org
\r
48 X-Mailman-Version: 2.1.13
\r
50 List-Id: "Use and development of the notmuch mail system."
\r
51 <notmuch.notmuchmail.org>
\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
55 List-Post: <mailto:notmuch@notmuchmail.org>
\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
58 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
59 X-List-Received-Date: Wed, 16 Jun 2010 17:27:19 -0000
\r
63 If I want to build Debian package, it fails with the following message:
\r
65 ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Permission denied
\r
66 make[1]: *** [install-lib] Error 1
\r
68 The reason is that I build the package as a non-root user and make
\r
69 install invokes ldconfig unconditionally. The following patch contains a
\r
70 workaround, but I think that a more correct solution would be to check
\r
71 the condition LIBDIR_IN_LDCONFIG directly when make install is invoked
\r
72 rather than in configure as it is done now.
\r
74 Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>
\r
77 lib/Makefile.local | 2 ++
\r
78 1 files changed, 2 insertions(+), 0 deletions(-)
\r
80 diff --git a/lib/Makefile.local b/lib/Makefile.local
\r
81 index 9c0facc..564a079 100644
\r
82 --- a/lib/Makefile.local
\r
83 +++ b/lib/Makefile.local
\r
84 @@ -36,9 +36,11 @@ SONAME = $(LINKER_NAME).$(LIBNOTMUCH_VERSION_MAJOR)
\r
85 LIBNAME = $(SONAME).$(LIBNOTMUCH_VERSION_MINOR).$(LIBNOTMUCH_VERSION_RELEASE)
\r
86 LIBRARY_LINK_FLAG = -shared -Wl,-soname=$(SONAME)
\r
87 ifeq ($(LIBDIR_IN_LDCONFIG),1)
\r
89 LIBRARY_INSTALL_POST_COMMAND=ldconfig
\r
95 extra_cflags += -I$(dir) -fPIC
\r