Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id F30BF431FC1 for ; Wed, 16 Jun 2010 10:27:18 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dLhhwcVi72fB for ; Wed, 16 Jun 2010 10:27:08 -0700 (PDT) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 9062340CAE9 for ; Wed, 16 Jun 2010 10:27:08 -0700 (PDT) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 0173319F3412 for ; Wed, 16 Jun 2010 19:27:08 +0200 (CEST) X-Virus-Scanned: IMAP AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id kpg2dNdri3UE for ; Wed, 16 Jun 2010 19:27:06 +0200 (CEST) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id BD29419F3326 for ; Wed, 16 Jun 2010 19:27:06 +0200 (CEST) Received: from steelpick.2x.cz (ip-85-161-203-252.eurotel.cz [85.161.203.252]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id C97A1FA004 for ; Wed, 16 Jun 2010 19:27:01 +0200 (CEST) Received: from wsh by steelpick.2x.cz with local (Exim 4.72) (envelope-from ) id 1OOtNj-0006GX-FE for notmuch@notmuchmail.org; Wed, 16 Jun 2010 16:14:19 +0200 From: Michal Sojka To: notmuch@notmuchmail.org Subject: [PATCH] Do not call ldconfig when building Debian package User-Agent: Notmuch/0.3.1-41-gfac11e2 (http://notmuchmail.org) Emacs/23.2.1 (x86_64-pc-linux-gnu) Date: Wed, 16 Jun 2010 16:14:18 +0200 Message-ID: <87ljaf6p51.fsf@steelpick.2x.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jun 2010 17:27:19 -0000 Hi, If I want to build Debian package, it fails with the following message: ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Permission denied make[1]: *** [install-lib] Error 1 The reason is that I build the package as a non-root user and make install invokes ldconfig unconditionally. The following patch contains a workaround, but I think that a more correct solution would be to check the condition LIBDIR_IN_LDCONFIG directly when make install is invoked rather than in configure as it is done now. Signed-off-by: Michal Sojka --- lib/Makefile.local | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/lib/Makefile.local b/lib/Makefile.local index 9c0facc..564a079 100644 --- a/lib/Makefile.local +++ b/lib/Makefile.local @@ -36,9 +36,11 @@ SONAME = $(LINKER_NAME).$(LIBNOTMUCH_VERSION_MAJOR) LIBNAME = $(SONAME).$(LIBNOTMUCH_VERSION_MINOR).$(LIBNOTMUCH_VERSION_RELEASE) LIBRARY_LINK_FLAG = -shared -Wl,-soname=$(SONAME) ifeq ($(LIBDIR_IN_LDCONFIG),1) +ifeq ($(DESTDIR),) LIBRARY_INSTALL_POST_COMMAND=ldconfig endif endif +endif dir := lib extra_cflags += -I$(dir) -fPIC