unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Luis Ressel <aranea@aixah.de>
To: David Bremner <david@tethera.net>
Cc: Tomi Ollila <tomi.ollila@iki.fi>, notmuch@notmuchmail.org
Subject: Re: [PATCH] Add a configure flag to disable rpaths
Date: Sun, 10 Mar 2019 20:28:01 +0100	[thread overview]
Message-ID: <20190310192801.7ud4d34m4iouofur@deneb.skynet.aixah.de> (raw)
In-Reply-To: <8736o6zs3m.fsf@tethera.net>

On Fri, Mar 01, 2019 at 08:39:25AM -0400, David Bremner wrote:
> Tomi Ollila <tomi.ollila@iki.fi> writes:
> 
> > On Tue, Feb 26 2019, Luis Ressel wrote:
> >
> > although the commit message is a bit terse, this change looks simple and
> > reasonable enough to be pushed (i.e. if i think hard I can see reason
> > for this change even it is not described in commit message ;D)
> >
> 
> For those of us too lazy to think hard, what is the reason? I can add to
> the commit message.
> 

Packagers often disable rpaths wherever possible. They can cause
confusion and, used carelessly, even security issues, and in the vast
majority of cases they're wholly unneccessary. notmuch's usage of rpaths
is rather innocuous, but I would still prefer to disable them when
they're not strictly needed.

Now, notmuch's configure script already tries to detect whether $libdir
is path of the standard library search path and disables -rpath in this
case. However, this detection logic invokes /sbin/ldconfig, which may
not be present on musl-based systems or at least not work as the
configure script expects. On my host, configure thus arrives at the
conclusion it needs to use -rpath even though $libdir is set to
/usr/lib/.

Since it seemed easy and straightforward to just add an option to
explicitly disable rpaths, and I wanted to avoid adding musl-specific
code to the autodetection logic, I decided to go this route.

Cheers,
Luis Ressel

(Resending due to trouble with my new MUA; apologies if you receive this
mail twice.)

  reply	other threads:[~2019-03-10 19:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-26  2:06 [PATCH] Add a configure flag to disable rpaths Luis Ressel
2019-02-28 19:41 ` Tomi Ollila
2019-03-01 12:39   ` David Bremner
2019-03-10 19:28     ` Luis Ressel [this message]
2019-03-13  0:02 ` David Bremner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190310192801.7ud4d34m4iouofur@deneb.skynet.aixah.de \
    --to=aranea@aixah.de \
    --cc=david@tethera.net \
    --cc=notmuch@notmuchmail.org \
    --cc=tomi.ollila@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).