delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/10/02/15:39:13

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=yDBDlvwCKMRMnD9T
an7QPCgla2gU3H4hZry4fioaTrWvo3i2I4ozt77hZVnsL8m47UxrAqP4jXOOtx/s
ESDO6J67QOuWABT2QUK2dB0JEk5FefDQkDyUH7gM29swSefgmX9rc06JNE6XkRc2
ule8MK3kS66GnIE/EKNhlF78vMg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=y8XapBpo04h6zTBwVJa2l4
gC6zU=; b=skkwDJ3/ka/dFOAkwc+HLJprsQL9Dp36jx4il5W9plOLK+KLaBwafD
gnV5m5pNLqqpA1YlXQuMd9aIXssh79DgwRXh4dfmC0CHoGegjVzB5nPxPFMoueNx
K+ZBuyB1lxIgarukh2bAGUTQO42i6RW9EBF/I0RV87cgOnGVpbgnI=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=
X-HELO: smtp-out-so.shaw.ca
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
Subject: Re: msmtp 1.8.5 built using ${prefix}/${SYSCONFDIR}
To: cygwin AT cygwin DOT com
References: <20191002004739 DOT GA5215 AT zebra> <a43f1570-c87b-6b83-c8bf-b824a1aacc40 AT SystematicSw DOT ab DOT ca> <20191002181838 DOT GA3281 AT zebra>
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Openpgp: preference=signencrypt
Message-ID: <eaffbcc1-415d-3cb3-a3f4-445c186d7f27@SystematicSw.ab.ca>
Date: Wed, 2 Oct 2019 13:38:13 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <20191002181838.GA3281@zebra>
X-IsSubscribed: yes

On 2019-10-02 12:18, Stephen Carrier wrote:
> On Tue, Oct 01, 2019 at 08:43:40PM -0600, Brian Inglis wrote:
>> On 2019-10-01 18:47, Stephen Carrier wrote:
>>> The latest verion of the msmtp package: 1.8.5+20190811+git7912c76-1 .
>>> Differs from the previous version: 1.6.6-1 .
>>>
>>> In that the location of the system-wide configuration file is changed
>>> from /etc/msmtprc to /usr/etc/msmtprc.
>>>
>>> I think this has the potential to break installations during an upgrade.
>>>
>>> In my case it only confused me as I set up a new system.
>>>
>>> Please consider changing this default back to what it was for the
>>> convenience of those who will otherwise need to figure this out.
>>
>> Definitely not a standard location and nothing there currently on my system.
>> The package contents shows only server configuration, nothing on /usr/etc/, no
>> defaults provided in /etc/defaults/usr/etc/, and /usr/bin/msmtp-config defaults
>> the CONFDIR to /etc, so unless you have a symlink, link or junction from /etc to
>> /usr/etc, or changed the location during the server config, /etc/ should have
>> been used.
> 
> This is not what I meant.  The package doesn't provide a configuration
> file.  msmtp-config generates one in /etc/msmtprc, exactly as I would
> want and expect since that's where to find the configuration file for
> previous versions.
> 
> The problem is that the binary looks for its configuration file in a
> different place:

> $ msmtp --version
> msmtp version 1.8.5
> Platform: x86_64-pc-cygwin
> ....
> System configuration file name: /usr/etc/msmtprc

> and only after I moved the configuration file to that nonstandard location
> would msmtp start working instead of complaining that it couldn't find
> any configuration file.
> 
> This seems like something that could be fixed by tweaking the package
> build scripts; I think it would be great to do that.

So this is a discrepancy between the built exe and the config script, which
should be resolved by having the built exe use the standard SYSCONFDIR, by
removing ${prefix} from its definition.
[changing subject]

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019