From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20215 invoked by alias); 13 May 2014 18:54:15 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 20201 invoked by uid 89); 13 May 2014 18:54:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ig0-f169.google.com Received: from mail-ig0-f169.google.com (HELO mail-ig0-f169.google.com) (209.85.213.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 13 May 2014 18:54:13 +0000 Received: by mail-ig0-f169.google.com with SMTP id hl10so6260025igb.2 for ; Tue, 13 May 2014 11:54:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=0CpV91+z+x5Un+yM93v62s/wJAC+TB6hZrem17j2OnE=; b=ax85w24oMlPhUJV9IUIolnhI2V6kFNNr0Tkb2a5b+DfvcJXiMxXOM+I/9F4dXEFfTt Tla8m6QBB3GTfQhnjCDDRvw/aqRAr76LAPzzGbiCdt/+s3XqSQzqjfXPw/E/9EtiahvJ 6w8997pw+qh7+DPNexa8nukE6q4UZ/qElWCf0s3j1gDTmePndRqs9nyPK5BeqQ/cXmYU NWO2Cx8sFafdBRPWuQ0zCKFTkvcLnck3p/WAMAPpdg5fHIGGo2l3rrJN3nDmmJZbl3Cy fLt0h+pJQeYrIR1rJwcINI3HPu6vMd3sM++azcGk1trSTSxHRK0RDRqyTZMIWfK/QNUH ElLQ== X-Gm-Message-State: ALoCoQnozz5XNmwG5a+Ys4kpRL1sJXyaPkor2lowsS7trUwWsx7vbltouMn+Zxvd9fTrbMHne9jP X-Received: by 10.50.28.101 with SMTP id a5mr59698007igh.46.1400007251409; Tue, 13 May 2014 11:54:11 -0700 (PDT) Received: from [10.10.15.33] ([174.47.110.34]) by mx.google.com with ESMTPSA id g1sm31952466igt.14.2014.05.13.11.54.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 13 May 2014 11:54:11 -0700 (PDT) Message-ID: <53726A51.3010105@breisch.org> Date: Tue, 13 May 2014 18:57:00 -0000 From: "Chris J. Breisch" User-Agent: Postbox 3.0.9 (Windows/20140128) MIME-Version: 1.0 To: "cygwin@cygwin.com" Subject: Does /etc/profile need to set MANPATH? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg00284.txt.bz2 I've been working on getting man-db in a state where I can submit a package for it. I had been baffled by the failure of one of the tests that was dealing with overriding the man_db.conf file, so had been struggling to get a version that passes everything before I submitted it. I finally discovered that the root cause was that MANPATH was being set from /etc/profile and that this value was conflicting with the test and causing it to fail. Unsetting MANPATH allowed the test to succeed[1]. My question is then, is it necessary to set this value? Is it something required by the current version of man that we're using? If so, man-db seems to override this necessity as it makes considerable effort to work out a reasonable manpath on it's own. Perhaps this discussion belongs in cygwin-apps. I'll be happy to take it elsewhere. ----------- [1] The failure of this test also seems to me to indicate an upstream bug. If MANPATH is set, man-db always ignores the data in the man_db.conf file, even if the conf file is specified on the command line. Worse, man-db actually reads the conf file, but then ignores the data. Perhaps this is working as designed, but if so, the design seems flawed from my perspective. From my research, this does not appear to be a Cygwin specific issue, although I haven't yet tried to reproduce it on a Linux system. -- Chris J. Breisch -- 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