From owner-freebsd-ports@FreeBSD.ORG Thu Mar 17 17:33:12 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C60711065677 for ; Thu, 17 Mar 2011 17:33:12 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mx1.freebsd.org (Postfix) with SMTP id 358D78FC1C for ; Thu, 17 Mar 2011 17:33:11 +0000 (UTC) Received: (qmail invoked by alias); 17 Mar 2011 17:33:09 -0000 Received: from g227133027.adsl.alicedsl.de (EHLO apollo.emma.line.org) [92.227.133.27] by mail.gmx.net (mp066) with SMTP; 17 Mar 2011 18:33:09 +0100 X-Authenticated: #428038 X-Provags-ID: V01U2FsdGVkX19oWMwXePNouGgZ4I0b4Zj3M/FzF/qwNk5Ys1RiZx ifqe356ZuU2kOm Received: from localhost ([127.0.0.1] helo=apollo.emma.line.org) by apollo.emma.line.org with esmtp (Exim 4.74 (FreeBSD)) (envelope-from ) id 1Q0H4O-0003Ep-Kn for freebsd-ports@freebsd.org; Thu, 17 Mar 2011 18:33:08 +0100 Message-ID: <4D8245D4.6070705@gmx.de> Date: Thu, 17 Mar 2011 18:33:08 +0100 From: Matthias Andree User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; de-DE; rv:1.9.2.15) Gecko/20110306 Mnenhy/0.8.3 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <4D7BED01.6000506@FreeBSD.org> <201103160028.01687.avilla@freebsd.org> <241821300263308@web137.yandex.ru> <201103160933.48175.avilla@freebsd.org> <105381300365591@web53.yandex.ru> <123121300367234@web45.yandex.ru> In-Reply-To: <123121300367234@web45.yandex.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Subject: Re: Compiling ports in a post-9.0-RELEASE world X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2011 17:33:12 -0000 Am 17.03.2011 14:07, schrieb Konstantin Tokarev: > > > 17.03.2011, 15:39, "Konstantin Tokarev": >> 16.03.2011, 11:33, "Alberto Villa";: >> >>> On Wednesday 16 March 2011 09:15:07 Konstantin Tokarev wrote: >>>> From http://clang.llvm.org/docs/LanguageExtensions.html >>>> >>>> "In addition to the language extensions listed here, Clang aims to >>> support >>>> a broad range of GCC extensions." >>>> >>>> So GCC extensions may also be considered as missing features. >>> gcc-isms also means "bad code which is nonetheless supported by gcc" >> >> In this case don't hesitate to file a bug against gcc :) Not necessarily. If it's a documented extension that you'd allowed (and even by sticking to the implicit gnu89 language default of GCC) then you'll hardly hear back anything else than "invalid, works as documented". > Let me elaborate my idea a bit. > > One may think that reporting bugs on GCC he supports development of > technology that FreeBSD does not endorse [1]. I don't think so. > > 1) Latest versions of GCC are more standard-compliant than earlier ones, > and bad written code tends to produce compilation errors with newer GCC. > For example, I've seen lots of legacy code written for GCC 3.x but failing > to compile with 4.x. 4.x branch is also being improved. This is based on the implicit assumption that the code were to be compiled with -std=c99 -pedantic-errors [-Wall] or similar. The majority of upstream packages doesn't follow such a purity paradigm, but knowingly or unbeknownst use -std=gnu89, and often GNU libc, extensions. Documented extensions have NOT USUALLY gone away in newer GCC minor releases. > 3) Projects with dead upstreams should be excluded from ports collection > someday, unless maintainers are willing to do "upstream" job. Folks using That's a separate discussion under the "deprecation campaign" subject. Please discuss that there. -- Matthias Andree