From ehood Wed Sep 5 08:28:37 2007 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by lorien2.mallorn.com (8.14.1/8.14.1) with ESMTP id l847awOk010443 for ; Tue, 4 Sep 2007 03:37:03 -0400 Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISSxz-0002DM-Cv for earl@earlhood.com; Tue, 04 Sep 2007 03:36:55 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ISSxl-0002D7-5J for nmh-workers@nongnu.org; Tue, 04 Sep 2007 03:36:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ISSxj-0002Cv-VG for nmh-workers@nongnu.org; Tue, 04 Sep 2007 03:36:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISSxj-0002Cs-Rr for nmh-workers@nongnu.org; Tue, 04 Sep 2007 03:36:39 -0400 Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ISSxi-00076f-SX for nmh-workers@nongnu.org; Tue, 04 Sep 2007 03:36:39 -0400 Received: from c83-252-203-115.bredband.comhem.se ([83.252.203.115]:4822 helo=tippex.mynet.homeunix.org) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.66) (envelope-from ) id 1ISSil-0006Mn-7C for nmh-workers@nongnu.org; Tue, 04 Sep 2007 09:21:13 +0200 Received: from tippex (localhost [127.0.0.1]) by tippex.mynet.homeunix.org (Postfix) with ESMTP id 9041A93C025 for ; Tue, 4 Sep 2007 09:21:03 +0200 (CEST) X-Mailer: exmh version 2.7.2 04/02/2003 (gentoo 2.7.2) with nmh-1.2 To: nmh-workers@nongnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 04 Sep 2007 09:21:03 +0200 From: aeriksson@fastmail.fm Message-Id: <20070904072103.9041A93C025@tippex.mynet.homeunix.org> X-Originating-IP: 83.252.203.115 X-Scan-Result: No virus found in message 1ISSil-0006Mn-7C. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1ISSil-0006Mn-7C 2a4acff953f5de725eeccb44f094b0be X-Detected-Kernel: Linux 2.6? (barebone, rare!) Subject: [Nmh-workers] nmh leaving gentoo? X-BeenThere: nmh-workers@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: nmh-workers.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nmh-workers-bounces+earl=earlhood.com@nongnu.org Errors-To: nmh-workers-bounces+earl=earlhood.com@nongnu.org X-mallorn-MailScanner-Information: Please contact the ISP for more information X-mallorn-MailScanner: Found to be clean Status: O Hi, It seems the nmh ebuild is getting old and is considered for removal. I'm sending this to you nmh folks to see if there are any nmh & gentoo users out there interested in making this not happen. http://bugs.gentoo.org/show_bug.cgi?id=189519 It appears the particular thing that triggered this is that it's packaged to require sys-libs/db-1 which, looking at configure.in, is not really true. That file says: NMH_CHECK_DBM(,, NMH_CHECK_DBM(ndbm,, NMH_CHECK_DBM(dbm,, NMH_CHECK_DBM(db1,, NMH_CHECK_DBM(db,, NMH_CHECK_DBM(gdbm,, AC_CHECK_LIB(gdbm,gdbm_open, NMH_CHECK_DBM(gdbm_compat,LIBS="-lgdbm_compat -lgdbm $LIBS", AC_MSG_ERROR([cannot find a library providing dbm_open()]),-lgdbm), AC_MSG_ERROR([cannot find a library providing dbm_open()])))))))) Anybody knows what all of these database libs correspond to in terms of gentoo packages? I've built nmh vs. the gentoo gdbm package and it built fine (although the only db usage in nmh is slocal, which I don't use, so I cannot vouch for the correctness of it). My thinking is to create an nmh-1.2 ebuild, fixing this db stuff, and attach it to the gentoo bug. Hopefully that's enough to keep it in gentoo. /Anders _______________________________________________ Nmh-workers mailing list Nmh-workers@nongnu.org http://lists.nongnu.org/mailman/listinfo/nmh-workers From ehood Wed Sep 5 08:28:38 2007 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by lorien2.mallorn.com (8.14.1/8.14.1) with ESMTP id l848iqcn021124 for ; Tue, 4 Sep 2007 04:44:57 -0400 Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISU1h-0001ca-Lm for earl@earlhood.com; Tue, 04 Sep 2007 04:44:49 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ISU1R-0001cJ-75 for nmh-workers@nongnu.org; Tue, 04 Sep 2007 04:44:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ISU1P-0001bn-Hu for nmh-workers@nongnu.org; Tue, 04 Sep 2007 04:44:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISU1P-0001bk-A9 for nmh-workers@nongnu.org; Tue, 04 Sep 2007 04:44:31 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ISU1O-0006ku-JG for nmh-workers@nongnu.org; Tue, 04 Sep 2007 04:44:31 -0400 Received: from pm215 by mnementh.archaic.org.uk with local-esmtp (Exim 3.36 #1) id 1ISU1E-0005PT-00 (Debian); Tue, 04 Sep 2007 09:44:20 +0100 To: aeriksson@fastmail.fm Subject: Re: [Nmh-workers] nmh leaving gentoo? In-reply-to: Your message of "Tue, 04 Sep 2007 09:21:03 +0200." <20070904072103.9041A93C025@tippex.mynet.homeunix.org> From: Peter Maydell Date: Tue, 04 Sep 2007 09:44:20 +0100 Message-Id: X-Detected-Kernel: Genre and OS details not recognized. Cc: nmh-workers@nongnu.org X-BeenThere: nmh-workers@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: nmh-workers.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nmh-workers-bounces+earl=earlhood.com@nongnu.org Errors-To: nmh-workers-bounces+earl=earlhood.com@nongnu.org X-mallorn-MailScanner-Information: Please contact the ISP for more information X-mallorn-MailScanner: Found to be clean Status: O aeriksson@fastmail.fm wrote: >It appears the particular thing that triggered this is that it's packaged to >require sys-libs/db-1 which, looking at configure.in, is not really true. That >file says: > > >NMH_CHECK_DBM(,, > NMH_CHECK_DBM(ndbm,, > NMH_CHECK_DBM(dbm,, > NMH_CHECK_DBM(db1,, > NMH_CHECK_DBM(db,, > NMH_CHECK_DBM(gdbm,, > AC_CHECK_LIB(gdbm,gdbm_open, > NMH_CHECK_DBM(gdbm_compat,LIBS="-lgdbm_compat -lgdbm $LIBS", > AC_MSG_ERROR([cannot find a library providing dbm_open()]),-lgdbm), > AC_MSG_ERROR([cannot find a library providing dbm_open()])))))))) This is an out of date version of the configure.in. The one in CVS says: dnl There are at least four implementations of ndbm, and dnl several of those can be in different places at the whim dnl of the system integrator. A good summary of this mess dnl can be found at http://www.unixpapa.com/incnote/dbm.html dnl Classic ndbm with no library required (eg NetBSD): try this dnl first so we don't accidentally link in a pointless but harmless dnl library in one of the later ndbm.h+libfoo tests: NMH_CHECK_NDBM(ndbm.h,,, dnl Berkeley DBv2 emulating ndbm: header in db.h: NMH_CHECK_NDBM(db.h,db,, dnl Berkeley DBv1 emulating ndbm: NMH_CHECK_NDBM(ndbm.h,db,, NMH_CHECK_NDBM(ndbm.h,db1,, dnl Classic ndbm: NMH_CHECK_NDBM(ndbm.h,ndbm,, dnl glibc2.1 systems put db1 in a subdir: NMH_CHECK_NDBM(db1/ndbm.h,db1,, dnl GNU gdbm emulating ndbm, with header possibly in gdbm/ dnl and possibly needing gbdm_compat library: NMH_CHECK_NDBM(gdbm/ndbm.h,gdbm,, NMH_CHECK_NDBM(gdbm/ndbm.h,gdbm_compat -lgdbm,, NMH_CHECK_NDBM(ndbm.h,gdbm,, NMH_CHECK_NDBM(ndbm.h,gdbm_compat -lgdbm)))))))))) (plus some logic I haven't quoted for allowing the user to override the autodetection.) There were some errors in this dbm checking logic which I spotted and fixed shortly after we released 1.2 (mostly applicable to the BSDs). Unfortunately it looks like we never got round to actually making a proper release with the fixes in :-( (There was talk of another release but it seems to have petered out.) >My thinking is to create an nmh-1.2 ebuild, fixing this db stuff, and attach >it to the gentoo bug. Hopefully that's enough to keep it in gentoo. Head of CVS might be your best bet. Gentoo users like the bleeding edge, right? :-) Having said that, I don't think there's anything wrong with the original 1.2 configure on a Linux system -- it just looks for what's present and goes with the first plausible thing it finds. If you don't want it to link with libdb1, don't have the library and headers on your system... (Or with the head of CVS, override the guessing algorithm with configure arguments.) -- PMM _______________________________________________ Nmh-workers mailing list Nmh-workers@nongnu.org http://lists.nongnu.org/mailman/listinfo/nmh-workers From nmh-workers-bounces+ehood=mallorn.com@nongnu.org Tue Sep 4 03:37:40 2007 X-mallorn-MailScanner-Watermark: 1189496229.51433@2SWnuUZq6I1NxwDrlgip2Q X-Envelope-From: nmh-workers-bounces+ehood=mallorn.com@nongnu.org X-Envelope-To: Return-Path: Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by lorien2.mallorn.com (8.14.1/8.14.1) with ESMTP id l847b2Up010422 for ; Tue, 4 Sep 2007 03:37:07 -0400 Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISSxv-0002DM-Lp for ehood@mallorn.com; Tue, 04 Sep 2007 03:36:51 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ISSxl-0002D7-5J for nmh-workers@nongnu.org; Tue, 04 Sep 2007 03:36:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ISSxj-0002Cv-VG for nmh-workers@nongnu.org; Tue, 04 Sep 2007 03:36:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISSxj-0002Cs-Rr for nmh-workers@nongnu.org; Tue, 04 Sep 2007 03:36:39 -0400 Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ISSxi-00076f-SX for nmh-workers@nongnu.org; Tue, 04 Sep 2007 03:36:39 -0400 Received: from c83-252-203-115.bredband.comhem.se ([83.252.203.115]:4822 helo=tippex.mynet.homeunix.org) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.66) (envelope-from ) id 1ISSil-0006Mn-7C for nmh-workers@nongnu.org; Tue, 04 Sep 2007 09:21:13 +0200 Received: from tippex (localhost [127.0.0.1]) by tippex.mynet.homeunix.org (Postfix) with ESMTP id 9041A93C025 for ; Tue, 4 Sep 2007 09:21:03 +0200 (CEST) X-Mailer: exmh version 2.7.2 04/02/2003 (gentoo 2.7.2) with nmh-1.2 To: nmh-workers@nongnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 04 Sep 2007 09:21:03 +0200 From: aeriksson@fastmail.fm Message-Id: <20070904072103.9041A93C025@tippex.mynet.homeunix.org> X-Originating-IP: 83.252.203.115 X-Scan-Result: No virus found in message 1ISSil-0006Mn-7C. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1ISSil-0006Mn-7C 2a4acff953f5de725eeccb44f094b0be X-Detected-Kernel: Linux 2.6? (barebone, rare!) Subject: [Nmh-workers] nmh leaving gentoo? X-BeenThere: nmh-workers@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: nmh-workers.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nmh-workers-bounces+ehood=mallorn.com@nongnu.org Errors-To: nmh-workers-bounces+ehood=mallorn.com@nongnu.org X-mallorn-MailScanner-Information: Please contact the ISP for more information X-mallorn-MailScanner: Found to be clean X-Deliver-To: ehood Content-Length: 1425 Lines: 42 Hi, It seems the nmh ebuild is getting old and is considered for removal. I'm sending this to you nmh folks to see if there are any nmh & gentoo users out there interested in making this not happen. http://bugs.gentoo.org/show_bug.cgi?id=189519 It appears the particular thing that triggered this is that it's packaged to require sys-libs/db-1 which, looking at configure.in, is not really true. That file says: NMH_CHECK_DBM(,, NMH_CHECK_DBM(ndbm,, NMH_CHECK_DBM(dbm,, NMH_CHECK_DBM(db1,, NMH_CHECK_DBM(db,, NMH_CHECK_DBM(gdbm,, AC_CHECK_LIB(gdbm,gdbm_open, NMH_CHECK_DBM(gdbm_compat,LIBS="-lgdbm_compat -lgdbm $LIBS", AC_MSG_ERROR([cannot find a library providing dbm_open()]),-lgdbm), AC_MSG_ERROR([cannot find a library providing dbm_open()])))))))) Anybody knows what all of these database libs correspond to in terms of gentoo packages? I've built nmh vs. the gentoo gdbm package and it built fine (although the only db usage in nmh is slocal, which I don't use, so I cannot vouch for the correctness of it). My thinking is to create an nmh-1.2 ebuild, fixing this db stuff, and attach it to the gentoo bug. Hopefully that's enough to keep it in gentoo. /Anders _______________________________________________ Nmh-workers mailing list Nmh-workers@nongnu.org http://lists.nongnu.org/mailman/listinfo/nmh-workers From nmh-workers-bounces+ehood=mallorn.com@nongnu.org Tue Sep 4 04:44:54 2007 X-mallorn-MailScanner-Watermark: 1189500294.12136@45/spdSE6ez0WQ0G3bwVog X-Envelope-From: nmh-workers-bounces+ehood=mallorn.com@nongnu.org X-Envelope-To: Return-Path: Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by lorien2.mallorn.com (8.14.1/8.14.1) with ESMTP id l848impx021123 for ; Tue, 4 Sep 2007 04:44:53 -0400 Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISU1d-0001ca-Ki for ehood@mallorn.com; Tue, 04 Sep 2007 04:44:45 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ISU1R-0001cJ-75 for nmh-workers@nongnu.org; Tue, 04 Sep 2007 04:44:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ISU1P-0001bn-Hu for nmh-workers@nongnu.org; Tue, 04 Sep 2007 04:44:32 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISU1P-0001bk-A9 for nmh-workers@nongnu.org; Tue, 04 Sep 2007 04:44:31 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ISU1O-0006ku-JG for nmh-workers@nongnu.org; Tue, 04 Sep 2007 04:44:31 -0400 Received: from pm215 by mnementh.archaic.org.uk with local-esmtp (Exim 3.36 #1) id 1ISU1E-0005PT-00 (Debian); Tue, 04 Sep 2007 09:44:20 +0100 To: aeriksson@fastmail.fm Subject: Re: [Nmh-workers] nmh leaving gentoo? In-reply-to: Your message of "Tue, 04 Sep 2007 09:21:03 +0200." <20070904072103.9041A93C025@tippex.mynet.homeunix.org> From: Peter Maydell Date: Tue, 04 Sep 2007 09:44:20 +0100 Message-Id: X-Detected-Kernel: Genre and OS details not recognized. Cc: nmh-workers@nongnu.org X-BeenThere: nmh-workers@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: nmh-workers.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nmh-workers-bounces+ehood=mallorn.com@nongnu.org Errors-To: nmh-workers-bounces+ehood=mallorn.com@nongnu.org X-mallorn-MailScanner-Information: Please contact the ISP for more information X-mallorn-MailScanner: Found to be clean X-Deliver-To: ehood Content-Length: 3069 Lines: 73 aeriksson@fastmail.fm wrote: >It appears the particular thing that triggered this is that it's packaged to >require sys-libs/db-1 which, looking at configure.in, is not really true. That >file says: > > >NMH_CHECK_DBM(,, > NMH_CHECK_DBM(ndbm,, > NMH_CHECK_DBM(dbm,, > NMH_CHECK_DBM(db1,, > NMH_CHECK_DBM(db,, > NMH_CHECK_DBM(gdbm,, > AC_CHECK_LIB(gdbm,gdbm_open, > NMH_CHECK_DBM(gdbm_compat,LIBS="-lgdbm_compat -lgdbm $LIBS", > AC_MSG_ERROR([cannot find a library providing dbm_open()]),-lgdbm), > AC_MSG_ERROR([cannot find a library providing dbm_open()])))))))) This is an out of date version of the configure.in. The one in CVS says: dnl There are at least four implementations of ndbm, and dnl several of those can be in different places at the whim dnl of the system integrator. A good summary of this mess dnl can be found at http://www.unixpapa.com/incnote/dbm.html dnl Classic ndbm with no library required (eg NetBSD): try this dnl first so we don't accidentally link in a pointless but harmless dnl library in one of the later ndbm.h+libfoo tests: NMH_CHECK_NDBM(ndbm.h,,, dnl Berkeley DBv2 emulating ndbm: header in db.h: NMH_CHECK_NDBM(db.h,db,, dnl Berkeley DBv1 emulating ndbm: NMH_CHECK_NDBM(ndbm.h,db,, NMH_CHECK_NDBM(ndbm.h,db1,, dnl Classic ndbm: NMH_CHECK_NDBM(ndbm.h,ndbm,, dnl glibc2.1 systems put db1 in a subdir: NMH_CHECK_NDBM(db1/ndbm.h,db1,, dnl GNU gdbm emulating ndbm, with header possibly in gdbm/ dnl and possibly needing gbdm_compat library: NMH_CHECK_NDBM(gdbm/ndbm.h,gdbm,, NMH_CHECK_NDBM(gdbm/ndbm.h,gdbm_compat -lgdbm,, NMH_CHECK_NDBM(ndbm.h,gdbm,, NMH_CHECK_NDBM(ndbm.h,gdbm_compat -lgdbm)))))))))) (plus some logic I haven't quoted for allowing the user to override the autodetection.) There were some errors in this dbm checking logic which I spotted and fixed shortly after we released 1.2 (mostly applicable to the BSDs). Unfortunately it looks like we never got round to actually making a proper release with the fixes in :-( (There was talk of another release but it seems to have petered out.) >My thinking is to create an nmh-1.2 ebuild, fixing this db stuff, and attach >it to the gentoo bug. Hopefully that's enough to keep it in gentoo. Head of CVS might be your best bet. Gentoo users like the bleeding edge, right? :-) Having said that, I don't think there's anything wrong with the original 1.2 configure on a Linux system -- it just looks for what's present and goes with the first plausible thing it finds. If you don't want it to link with libdb1, don't have the library and headers on your system... (Or with the head of CVS, override the guessing algorithm with configure arguments.) -- PMM _______________________________________________ Nmh-workers mailing list Nmh-workers@nongnu.org http://lists.nongnu.org/mailman/listinfo/nmh-workers From nmh-workers-bounces+ehood=mallorn.com@nongnu.org Wed Sep 5 13:16:45 2007 X-mallorn-MailScanner-Watermark: 1189617404.70357@ZnM7RGKrzcU9/3BxQErZ2g X-Envelope-From: nmh-workers-bounces+ehood=mallorn.com@nongnu.org X-Envelope-To: Return-Path: Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by lorien2.mallorn.com (8.14.1/8.14.1) with ESMTP id l85HGafH012503 for ; Wed, 5 Sep 2007 13:16:42 -0400 Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISyUT-0004S7-Uc for ehood@mallorn.com; Wed, 05 Sep 2007 13:16:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ISyUJ-0004Qa-Ei for nmh-workers@nongnu.org; Wed, 05 Sep 2007 13:16:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ISyUH-0004Pv-BI for nmh-workers@nongnu.org; Wed, 05 Sep 2007 13:16:22 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISyUH-0004Pr-6w for nmh-workers@nongnu.org; Wed, 05 Sep 2007 13:16:21 -0400 Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ISyUG-0005Ed-KV for nmh-workers@nongnu.org; Wed, 05 Sep 2007 13:16:21 -0400 Received: from c83-252-203-115.bredband.comhem.se ([83.252.203.115]:4327 helo=tippex.mynet.homeunix.org) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.66) (envelope-from ) id 1ISyU8-0001np-7Y; Wed, 05 Sep 2007 19:16:14 +0200 Received: from tippex (localhost [127.0.0.1]) by tippex.mynet.homeunix.org (Postfix) with ESMTP id 216D993C066; Wed, 5 Sep 2007 19:15:55 +0200 (CEST) X-Mailer: exmh version 2.7.2 04/02/2003 (gentoo 2.7.2) with nmh-1.2 To: Peter Maydell In-reply-to: References: Comments: In-reply-to Peter Maydell message dated "Tue, 04 Sep 2007 09:44:20 +0100." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 05 Sep 2007 19:15:54 +0200 From: Anders Eriksson Message-Id: <20070905171555.216D993C066@tippex.mynet.homeunix.org> X-Originating-IP: 83.252.203.115 X-Scan-Result: No virus found in message 1ISyU8-0001np-7Y. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1ISyU8-0001np-7Y be8db290342e4b69d0e3bd421c7ac7f4 X-Detected-Kernel: Linux 2.6? (barebone, rare!) Cc: nmh-workers@nongnu.org X-BeenThere: nmh-workers@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: nmh-workers.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nmh-workers-bounces+ehood=mallorn.com@nongnu.org Errors-To: nmh-workers-bounces+ehood=mallorn.com@nongnu.org X-mallorn-MailScanner-Information: Please contact the ISP for more information X-mallorn-MailScanner: Found to be clean Subject: Re: [Nmh-workers] nmh leaving gentoo? X-Deliver-To: ehood Content-Length: 2960 Lines: 69 > This is an out of date version of the configure.in. The one in CVS says: > dnl There are at least four implementations of ndbm, and > dnl several of those can be in different places at the whim > dnl of the system integrator. A good summary of this mess > dnl can be found at http://www.unixpapa.com/incnote/dbm.html > > dnl Classic ndbm with no library required (eg NetBSD): try this > dnl first so we don't accidentally link in a pointless but harmless > dnl library in one of the later ndbm.h+libfoo tests: > NMH_CHECK_NDBM(ndbm.h,,, > dnl Berkeley DBv2 emulating ndbm: header in db.h: > NMH_CHECK_NDBM(db.h,db,, > dnl Berkeley DBv1 emulating ndbm: > NMH_CHECK_NDBM(ndbm.h,db,, > NMH_CHECK_NDBM(ndbm.h,db1,, > dnl Classic ndbm: > NMH_CHECK_NDBM(ndbm.h,ndbm,, > dnl glibc2.1 systems put db1 in a subdir: > NMH_CHECK_NDBM(db1/ndbm.h,db1,, > dnl GNU gdbm emulating ndbm, with header possibly in gdbm/ > dnl and possibly needing gbdm_compat library: > NMH_CHECK_NDBM(gdbm/ndbm.h,gdbm,, > NMH_CHECK_NDBM(gdbm/ndbm.h,gdbm_compat -lgdbm,, > NMH_CHECK_NDBM(ndbm.h,gdbm,, > NMH_CHECK_NDBM(ndbm.h,gdbm_compat -lgdbm)))))))))) > > (plus some logic I haven't quoted for allowing the user to override the > autodetection.) > > There were some errors in this dbm checking logic which I spotted and fixed > shortly after we released 1.2 (mostly applicable to the BSDs). Unfortunately > it looks like we never got round to actually making a proper release with > the fixes in :-( > > (There was talk of another release but it seems to have petered out.) > > >My thinking is to create an nmh-1.2 ebuild, fixing this db stuff, and attach > >it to the gentoo bug. Hopefully that's enough to keep it in gentoo. > > Head of CVS might be your best bet. Gentoo users like the bleeding edge, > right? :-) > I'll see to that once I get a 1.2 build in decent shape. It seems swapping a dependecy on berkdb for one on gdbm is the easy way out, though it'd be better to be able to support any of the ones supported by nmh. Do you know what the official package names are for that impressive pile of libs and headers? > Having said that, I don't think there's anything wrong with the original > 1.2 configure on a Linux system -- it just looks for what's present and > goes with the first plausible thing it finds. If you don't want it to > link with libdb1, don't have the library and headers on your system... > (Or with the head of CVS, override the guessing algorithm with configure > arguments.) > Yep. But that's not quite how gentoo works. If there's an optional dependecy on a lib, that should be accounted for. BR, /Anders _______________________________________________ Nmh-workers mailing list Nmh-workers@nongnu.org http://lists.nongnu.org/mailman/listinfo/nmh-workers From nmh-workers-bounces+ehood=mallorn.com@nongnu.org Wed Sep 5 13:32:25 2007 X-mallorn-MailScanner-Watermark: 1189618344.88056@JsuJJsfMdPOgwBLlp1THCw X-Envelope-From: nmh-workers-bounces+ehood=mallorn.com@nongnu.org X-Envelope-To: Return-Path: Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by lorien2.mallorn.com (8.14.1/8.14.1) with ESMTP id l85HWICC015039 for ; Wed, 5 Sep 2007 13:32:23 -0400 Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISyjf-0004eL-Kb for ehood@mallorn.com; Wed, 05 Sep 2007 13:32:15 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ISyjW-0004eA-Fs for nmh-workers@nongnu.org; Wed, 05 Sep 2007 13:32:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ISyjT-0004da-OO for nmh-workers@nongnu.org; Wed, 05 Sep 2007 13:32:06 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISyjT-0004dW-Lx for nmh-workers@nongnu.org; Wed, 05 Sep 2007 13:32:03 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ISyjT-00006F-95 for nmh-workers@nongnu.org; Wed, 05 Sep 2007 13:32:03 -0400 Received: from pm215 by mnementh.archaic.org.uk with local-esmtp (Exim 3.36 #1) id 1ISyjC-0007lR-00 (Debian); Wed, 05 Sep 2007 18:31:46 +0100 To: Anders Eriksson Subject: Re: [Nmh-workers] nmh leaving gentoo? In-reply-to: Your message of "Wed, 05 Sep 2007 19:15:54 +0200." <20070905171555.216D993C066@tippex.mynet.homeunix.org> From: Peter Maydell Date: Wed, 05 Sep 2007 18:31:46 +0100 Message-Id: X-Detected-Kernel: Genre and OS details not recognized. Cc: nmh-workers@nongnu.org X-BeenThere: nmh-workers@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: nmh-workers.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nmh-workers-bounces+ehood=mallorn.com@nongnu.org Errors-To: nmh-workers-bounces+ehood=mallorn.com@nongnu.org X-mallorn-MailScanner-Information: Please contact the ISP for more information X-mallorn-MailScanner: Found to be clean X-Deliver-To: ehood Content-Length: 717 Lines: 17 Anders Eriksson wrote: >I'll see to that once I get a 1.2 build in decent shape. It seems swapping a >dependecy on berkdb for one on gdbm is the easy way out, though it'd be better >to be able to support any of the ones supported by nmh. Do you know what the >official package names are for that impressive pile of libs and headers? Most of them are for non-Linux targets (eg BSDs) or for archaic versions of Linux or for systems where the dbm library has been installed by the sysadmin in some weird location. Go for gdbm, it's the only sensible thing. -- PMM _______________________________________________ Nmh-workers mailing list Nmh-workers@nongnu.org http://lists.nongnu.org/mailman/listinfo/nmh-workers From nmh-workers-bounces+ehood=mallorn.com@nongnu.org Thu Sep 6 09:54:25 2007 X-mallorn-MailScanner-Watermark: 1189691664.85384@ZAM1ZsaPemQ46SbadwaPtQ X-Envelope-From: nmh-workers-bounces+ehood=mallorn.com@nongnu.org X-Envelope-To: Return-Path: Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by lorien2.mallorn.com (8.14.1/8.14.1) with ESMTP id l86DsHdw030486 for ; Thu, 6 Sep 2007 09:54:22 -0400 Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITHoE-0002G5-VJ for ehood@mallorn.com; Thu, 06 Sep 2007 09:54:15 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ITHo2-0002Ec-9M for nmh-workers@nongnu.org; Thu, 06 Sep 2007 09:54:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ITHo0-0002DF-AH for nmh-workers@nongnu.org; Thu, 06 Sep 2007 09:54:01 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITHo0-0002Cs-1P for nmh-workers@nongnu.org; Thu, 06 Sep 2007 09:54:00 -0400 Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ITHnz-0007fN-2G for nmh-workers@nongnu.org; Thu, 06 Sep 2007 09:53:59 -0400 Received: from c83-252-203-115.bredband.comhem.se ([83.252.203.115]:4105 helo=tippex.mynet.homeunix.org) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.66) (envelope-from ) id 1ITHnx-0007zo-4b for nmh-workers@nongnu.org; Thu, 06 Sep 2007 15:53:57 +0200 Received: from tippex (localhost [127.0.0.1]) by tippex.mynet.homeunix.org (Postfix) with ESMTP id ACA1C93C025 for ; Thu, 6 Sep 2007 15:53:54 +0200 (CEST) X-Mailer: exmh version 2.7.2 04/02/2003 (gentoo 2.7.2) with nmh-1.2 To: nmh-workers@nongnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 06 Sep 2007 15:53:54 +0200 From: Anders Eriksson Message-Id: <20070906135354.ACA1C93C025@tippex.mynet.homeunix.org> X-Originating-IP: 83.252.203.115 X-Scan-Result: No virus found in message 1ITHnx-0007zo-4b. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1ITHnx-0007zo-4b c984f966b25a5c01bcb62f7641d96b2d X-Detected-Kernel: Linux 2.6? (barebone, rare!) Subject: [Nmh-workers] strcasecmp.c and gcc -O2 X-BeenThere: nmh-workers@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: nmh-workers.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nmh-workers-bounces+ehood=mallorn.com@nongnu.org Errors-To: nmh-workers-bounces+ehood=mallorn.com@nongnu.org X-mallorn-MailScanner-Information: Please contact the ISP for more information X-mallorn-MailScanner: Found to be clean X-Deliver-To: ehood Content-Length: 3478 Lines: 143 strcasecomp(a,b) segfaults if a=NULL and compiled with -O2 and gcc >= 4.1.1. The code in question is: int mh_strcasecmp (const char *s1, const char *s2) { const unsigned char *us1, *us2; us1 = (const unsigned char *) s1, us2 = (const unsigned char *) s2; if (!us1) us1 = ""; if (!us2) us2 = ""; while (tolower(*us1) == tolower(*us2++)) if (*us1++ == '\0') return (0); return (tolower(*us1) - tolower(*--us2)); } It seems the compiler (using -O2) totally optimizes away the two if clauses. Looking at the assembler: gcc-4.2.0 -S -DHAVE_CONFIG_H -I.. -I. -I.. -march=i386 -pipe -O2 strcasecmp.c strcasecmp: pushl %ebp movl %esp, %ebp pushl %edi pushl %esi pushl %ebx subl $12, %esp movl 8(%ebp), %esi movl 12(%ebp), %ebx call __ctype_tolower_loc <------- the gcc internal tolower called immediately movl (%eax), %ecx jmp .L15 .p2align 2,,3 .L17: incl %esi .L15: movb (%esi), %dl movzbl %dl, %eax movl (%ecx,%eax,4), %edi movzbl (%ebx), %eax incl %ebx cmpl (%ecx,%eax,4), %edi jne .L22 testb %dl, %dl jne .L17 xorl %eax, %eax addl $12, %esp popl %ebx popl %esi popl %edi leave ret .L22: movzbl -1(%ebx), %eax subl (%ecx,%eax,4), %edi movl %edi, %eax addl $12, %esp popl %ebx popl %esi popl %edi leave ret gcc-4.2.0 -S -DHAVE_CONFIG_H -I.. -I. -I.. -march=i386 -pipe -O1 strcasecmp.c strcasecmp: pushl %ebp movl %esp, %ebp pushl %edi pushl %esi pushl %ebx subl $12, %esp movl 8(%ebp), %eax movl 12(%ebp), %edx testl %eax, %eax <-- Test for null je .L12 <-- jump to assignment movl %eax, %esi jmp .L14 .L12: movl $.LC0, %esi .L14: testl %edx, %edx <-- Test for null jne .L15 movl $.LC0, %edi <-- do the assignment jmp .L17 .L18: testb %dl, %dl jne .L19 movl $0, %eax jmp .L21 .L19: incl %esi jmp .L22 .L15: movl %edx, %edi .L17: call __ctype_tolower_loc <-- And _here_ we do the tolower stuff movl (%eax), %ecx .L22: movb (%esi), %dl movzbl %dl, %eax movl (%ecx,%eax,4), %ebx movzbl (%edi), %eax incl %edi cmpl (%ecx,%eax,4), %ebx je .L18 movzbl -1(%edi), %eax subl (%ecx,%eax,4), %ebx movl %ebx, %eax .L21: addl $12, %esp popl %ebx popl %esi popl %edi leave ret Now, not being a C expert, is there anything wrong with the c code? If not, is there some mismagics with the tolower use? (now using the gcc internal, rather than the external one). Is the compiler busted on the optimization and it should be reported to the gcc crew? /Anders _______________________________________________ Nmh-workers mailing list Nmh-workers@nongnu.org http://lists.nongnu.org/mailman/listinfo/nmh-workers From nmh-workers-bounces+ehood=mallorn.com@nongnu.org Thu Sep 6 10:15:21 2007 X-mallorn-MailScanner-Watermark: 1189692921.39122@BnZj4umVhIr90nJYQFhQHw X-Envelope-From: nmh-workers-bounces+ehood=mallorn.com@nongnu.org X-Envelope-To: Return-Path: Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by lorien2.mallorn.com (8.14.1/8.14.1) with ESMTP id l86EFFcQ003125 for ; Thu, 6 Sep 2007 10:15:20 -0400 Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITI8X-0004NQ-1H for ehood@mallorn.com; Thu, 06 Sep 2007 10:15:13 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ITI8O-0004NG-JY for nmh-workers@nongnu.org; Thu, 06 Sep 2007 10:15:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ITI8M-0004Mn-Ig for nmh-workers@nongnu.org; Thu, 06 Sep 2007 10:15:03 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITI8M-0004Mi-Ex for nmh-workers@nongnu.org; Thu, 06 Sep 2007 10:15:02 -0400 Received: from evolution.bress.net ([72.9.228.27]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ITI8L-0004sV-KC for nmh-workers@nongnu.org; Thu, 06 Sep 2007 10:15:01 -0400 Received: from evolution.bress.net (localhost [127.0.0.1]) by evolution.bress.net (Postfix) with ESMTP id 106B93F2A6A2; Thu, 6 Sep 2007 10:15:00 -0400 (EDT) To: Anders Eriksson From: Josh Bressers Subject: Re: [Nmh-workers] strcasecmp.c and gcc -O2 In-reply-to: <20070906135354.ACA1C93C025@tippex.mynet.homeunix.org> References: <20070906135354.ACA1C93C025@tippex.mynet.homeunix.org> Comments: In-reply-to Anders Eriksson message dated "Thu, 06 Sep 2007 15:53:54 +0200." Date: Thu, 06 Sep 2007 10:15:00 -0400 Message-ID: <9307.1189088100@evolution.bress.net> X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) Cc: nmh-workers@nongnu.org X-BeenThere: nmh-workers@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: nmh-workers.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nmh-workers-bounces+ehood=mallorn.com@nongnu.org Errors-To: nmh-workers-bounces+ehood=mallorn.com@nongnu.org X-mallorn-MailScanner-Information: Please contact the ISP for more information X-mallorn-MailScanner: Found to be clean X-Deliver-To: ehood Content-Length: 1060 Lines: 43 > > strcasecomp(a,b) segfaults if a=NULL and compiled with -O2 and gcc >= 4.1.1. > > The code in question is: > > > int > mh_strcasecmp (const char *s1, const char *s2) > { > const unsigned char *us1, *us2; > > us1 = (const unsigned char *) s1, > us2 = (const unsigned char *) s2; > > if (!us1) > us1 = ""; > if (!us2) > us2 = ""; > > while (tolower(*us1) == tolower(*us2++)) > if (*us1++ == '\0') > return (0); > return (tolower(*us1) - tolower(*--us2)); > } > > > It seems the compiler (using -O2) totally optimizes away the two if clauses. > Looking at the assembler: > I don't see this behavior with gcc 4.1.2 on Fedora 7. It's quite possible you're seeing a gcc bug. I'd suggest writing a minimalistic freestanding testcase. If that testcase still exhibits this behavior, submit a bug report to the gcc folks. -- JB _______________________________________________ Nmh-workers mailing list Nmh-workers@nongnu.org http://lists.nongnu.org/mailman/listinfo/nmh-workers From nmh-workers-bounces+ehood=mallorn.com@nongnu.org Thu Sep 6 10:25:14 2007 X-mallorn-MailScanner-Watermark: 1189693514.14182@Fajt5ebmtB67FGWq0bI1ow X-Envelope-From: nmh-workers-bounces+ehood=mallorn.com@nongnu.org X-Envelope-To: Return-Path: Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by lorien2.mallorn.com (8.14.1/8.14.1) with ESMTP id l86EP8Dg005762 for ; Thu, 6 Sep 2007 10:25:13 -0400 Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITII6-0005Zs-1y for ehood@mallorn.com; Thu, 06 Sep 2007 10:25:06 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ITIHv-0005W7-0j for nmh-workers@nongnu.org; Thu, 06 Sep 2007 10:24:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ITIHt-0005TF-SE for nmh-workers@nongnu.org; Thu, 06 Sep 2007 10:24:54 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ITIHt-0005Si-MP for nmh-workers@nongnu.org; Thu, 06 Sep 2007 10:24:53 -0400 Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ITIHs-0007X8-Pf for nmh-workers@nongnu.org; Thu, 06 Sep 2007 10:24:53 -0400 Received: from c83-252-203-115.bredband.comhem.se ([83.252.203.115]:4330 helo=tippex.mynet.homeunix.org) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.66) (envelope-from ) id 1ITIHr-0000D9-71; Thu, 06 Sep 2007 16:24:51 +0200 Received: from tippex (localhost [127.0.0.1]) by tippex.mynet.homeunix.org (Postfix) with ESMTP id 1BE9993C025; Thu, 6 Sep 2007 16:24:46 +0200 (CEST) X-Mailer: exmh version 2.7.2 04/02/2003 (gentoo 2.7.2) with nmh-1.2 To: Josh Bressers In-reply-to: <9307.1189088100@evolution.bress.net> References: <20070906135354.ACA1C93C025@tippex.mynet.homeunix.org> <9307.1189088100@evolution.bress.net> Comments: In-reply-to Josh Bressers message dated "Thu, 06 Sep 2007 10:15:00 -0400." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 06 Sep 2007 16:24:45 +0200 From: Anders Eriksson Message-Id: <20070906142446.1BE9993C025@tippex.mynet.homeunix.org> X-Originating-IP: 83.252.203.115 X-Scan-Result: No virus found in message 1ITIHr-0000D9-71. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1ITIHr-0000D9-71 0b19fb03ae7d2ac9e8070afe95d2c9fd X-Detected-Kernel: Linux 2.6? (barebone, rare!) Cc: nmh-workers@nongnu.org X-BeenThere: nmh-workers@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: nmh-workers.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nmh-workers-bounces+ehood=mallorn.com@nongnu.org Errors-To: nmh-workers-bounces+ehood=mallorn.com@nongnu.org X-mallorn-MailScanner-Information: Please contact the ISP for more information X-mallorn-MailScanner: Found to be clean Subject: Re: [Nmh-workers] strcasecmp.c and gcc -O2 X-Deliver-To: ehood Content-Length: 473 Lines: 19 josh@bress.net said: > I don't see this behavior with gcc 4.1.2 on Fedora 7. It's quite possible > you're seeing a gcc bug. I'd suggest writing a minimalistic freestanding > testcase. If that testcase still exhibits this behavior, submit a bug report > to the gcc folks. Ok, good news. I'll see what I can do. /A _______________________________________________ Nmh-workers mailing list Nmh-workers@nongnu.org http://lists.nongnu.org/mailman/listinfo/nmh-workers