This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: msmtp 1.8.5 built using ${prefix}/${SYSCONFDIR}
- From: Ken Brown <kbrown at cornell dot edu>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Cc: Jari Aalto <jari dot aalto at cante dot net>
- Date: Wed, 9 Oct 2019 20:10:06 +0000
- Subject: Re: msmtp 1.8.5 built using ${prefix}/${SYSCONFDIR}
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ajNY3rLw3UgeaLdfLnWnTEf5Ba8Hpnrbf76QAa+YPhc=; b=TmDUE5FRMamSWn9SGSIc12JFSpu8VW/HmCNPRXkIKSEI5J4lX/2NsdwY+Px5jLXZOE8326XdPtmKTsgz/3lF0HxbE8VYxl1myz1z3Nkx/qzp3In/A//4ilrfmm+XOiAz5PE2gv6VRFBtNXXrc6L4FTuruLmQZDzZlU28kajwO3S0eF9LH7uvDCfzNId662E3ixCgAuv4Oda9V5WWtxJhUhP88giryIdCV6xDvPVWHOOrDQAen0T3p3GZuarkJb84sPPr8iCpft2SQyNAcf0eGiYFSnXo1EmOKuIxzKA/nzYTQiErZ+EWJ6RVBUEVs7cXFlnu+L7OxNFtD4k1D8mwLg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nQY/fYAUTJGFjkOilfqPNUl4XgXiW/kqolcNkp/Lz4YscKZHgqmlbwFZpwtFiadGLw3GjWY10ByKQT3S4eGSxR8p9gvFV+CE/EkZAACFEORGZVTk0ften86FYa73iGBUG6n0mp2ueHe/IObvA7rq4plC9metsHM+CUa8tRf5IRhP6ax/ta9WQAUXSe+hDESj0GD8kS9jOIQWFGQAZjdB0HXIEM/xIp66wRklDar4pAWkD8Ojmkb/jzTGMxHcAuFqdiEsLe9eI2OhP9AJJzoIM23gGS3oMKqxJ4E7bPe2WNs9HrwaD5q/eLokfHkVDy+d0t2q9IUtxzSyfBdOfuTIPw==
- References: <20191002004739.GA5215@zebra> <a43f1570-c87b-6b83-c8bf-b824a1aacc40@SystematicSw.ab.ca> <20191002181838.GA3281@zebra> <eaffbcc1-415d-3cb3-a3f4-445c186d7f27@SystematicSw.ab.ca> <20191009200338.GA3790@zebra>
On 10/9/2019 4:03 PM, Stephen Carrier wrote:
> On Wed, Oct 02, 2019 at 01:38:13PM -0600, Brian Inglis wrote:
>> 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]
>
> Could the package maintainer join in? I don't see how discussing the
> minutae of the build process actually helps without the maintainer's
> participation.
>
> Pre-existing msmtp installations use /etc/msmtprc, and the current
> configuration script creates a valid configuration in that same location.
> Clearly, fixing the binary and not the configuration script is the way
> forward, unless there is compelling reason to move the configuration
> file from where it used to be.
I've added the maintainer, Jari Aalto, to the Cc. I don't think he reads the
list regularly.
Ken
--
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