From owner-freebsd-ports@freebsd.org Wed Aug 5 06:15:39 2015 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B73A29B4A4E for ; Wed, 5 Aug 2015 06:15:39 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7BC551F6C for ; Wed, 5 Aug 2015 06:15:39 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [89.204.135.10] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1ZMrz8-0000uI-B1; Wed, 05 Aug 2015 08:15:30 +0200 Received: from localhost.my.domain (c720-r276659 [127.0.0.1]) by localhost.unixarea.de (8.14.9/8.14.9) with ESMTP id t756FT87015879 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 5 Aug 2015 08:15:29 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.9/8.14.9/Submit) id t756FTQ8015878; Wed, 5 Aug 2015 08:15:29 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Wed, 5 Aug 2015 08:15:29 +0200 From: Matthias Apitz To: freebsd-ports@freebsd.org Subject: Re: broken strings compiled-in into mutt Message-ID: <20150805061529.GA15864@c720-r276659> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: FreeBSD 11.0-CURRENT r269739 (i386) User-Agent: Mutt/1.5.23 (2014-03-12) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.135.10 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Aug 2015 06:15:39 -0000 El día Tuesday, August 04, 2015 a las 09:48:24PM +0200, Kurt Jaeger escribió: > Hi! > > > Hello Udo (as maintainer), > > > > Maybe it's a FreeBSD issue, rather than a mutt one? > > I see similar effects on 10.1-amd64. > > Mutt 1.5.23 (2014-03-12) > Copyright (C) 1996-2009 Michael R. Elkins and others. > Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'. > Mutt is free software, and you are welcome to redistribute it > under certain conditions; type `mutt -vv' for details. > > System: FreeBSD 10.2-RC2 (amd64) > ncurses: ncurses 5.7.20081102 (compiled with 5.7) > libiconv: 1.14 > libidn: 1.31 (compiled with 1.29) > > Compiler: > F > eeBSD clang ve > ... Hello, I digged into this and the reason is in the source tree of mutt itself. The option (...) strings get punched into a file conststrings.c and if you build mutt with 'make' it gives an error due to a gmake'ish construct in the Makefile / Makefile.in: # make conststrings.c cc -I/usr/local/include -o txt2c cc: error: no input files *** Error code 1 (ignored) ( cc -I/usr/local/include -v || cc -I/usr/local/include --version || cc -I/usr/local/include -V || echo "unknown compiler"; ) 2>&1 | ./txt2c.sh cc_version >conststrings_c echo "-pipe -DLIBICONV_PLUG -g -fno-strict-aliasing" | ./txt2c.sh cc_cflags >>conststrings_c grep ac_cs_config= config.status | cut -d= -f2- | sed -e 's/^"//' -e 's/"$//' | ./txt2c.sh configure_options >>conststrings_c mv -f conststrings_c conststrings.c i.e. because it can not build txt2c from txt2c.c it falles back to use some shell script txt2c.sh; this, in turn, has another error: it contains a sed pipeline and among others it does (here as an example with some string): $ echo "FreeBSD is the better system" | sed -e 's/\t/\\t/'g -e 's/\r/\\r/g' F\reeBSD is \the be\t\te\r sys\tem The workaround is to make mutt with gmake (the default on Linux); The bugs should be fixed im mutt, ofc. matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ ☎ +49-176-38902045 No! Nein! ¡No! Όχι! -- Ευχαριστούμε!