From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id E59896DE024C for ; Sun, 27 May 2018 15:20:31 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[AWL=0.011, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TOELLPg4b4ym for ; Sun, 27 May 2018 15:20:31 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 28E396DE01E8 for ; Sun, 27 May 2018 15:20:30 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1fN41Z-0002xF-6f; Sun, 27 May 2018 18:20:25 -0400 Received: (nullmailer pid 10682 invoked by uid 1000); Sun, 27 May 2018 22:20:23 -0000 From: David Bremner To: Tomi Ollila , notmuch@notmuchmail.org Subject: Re: setting LIBDIR_IN_LDCONFIG fails if /lib is a symlink to /usr/lib In-Reply-To: References: <87h8mut5sz.fsf@tethera.net> Date: Sun, 27 May 2018 15:20:23 -0700 Message-ID: <871sdwu4ew.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.26 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: Sun, 27 May 2018 22:20:32 -0000 Tomi Ollila writes: > we could try: > > for path in $ldconfig_paths; do > if [ "$path" = "$libdir_expanded" ]; then > libdir_in_ldconfig=1 > break > fi > if [ "$path" -ef "$libdir_expanded" ]; then > libdir_in_ldconfig=1 > break > fi > done > That looks less horrible than my idea. How portable is it? I guess test -ef is not POSIX. d