From owner-freebsd-ports@freebsd.org Fri Oct 14 10:23:29 2016 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 8B4A3C11185 for ; Fri, 14 Oct 2016 10:23:29 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pa0-x22d.google.com (mail-pa0-x22d.google.com [IPv6:2607:f8b0:400e:c03::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 586E2890 for ; Fri, 14 Oct 2016 10:23:29 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mail-pa0-x22d.google.com with SMTP id ry6so46419159pac.3 for ; Fri, 14 Oct 2016 03:23:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:reply-to:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=t1CB1XlXjyRgqpqPeMuCLnCGE0Feb8QVWNS7raTqK3M=; b=wnq1O7P7cJ0EBkOA6m/GLHaHDZ6DnuZNdUpU2j5H6Nm9G2HInHIyEBSEllxg0nzAIY hAjGKSP4r//hsHRvK0A9oTXFU1xwpCsnPYvyKTtjFgDAWEjPD91oci7UeJ5//lzfLQra MFnj5Z3/uE5kACsGx+NdsJu4kuOauUJub2TIeUtx0Ls0mfxwJhff1Jed/TzD2Qz3eBTw Kk4pkMbTTKaIZu3OdHryC6mwoBfQSEj3SLp1l+bC0llGzhKsrpyV/gUOZYMdXHnvlD3H XJXXlkFLWmcNtdJpoq9wVrQvFzHkHColrfOsQAemlbIuhJkR+3faGW4v3PLXFfty/G38 Wiiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:reply-to:subject:to:references:from :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=t1CB1XlXjyRgqpqPeMuCLnCGE0Feb8QVWNS7raTqK3M=; b=lbKmenyXUeds7lRI3Qv1bHmZHk6AOJ5aphU/DoLQ53yc6U7lNdoANvUzJzNFD8fs2s 0+FcyMlKgu9cBUcsD+00kNURIBZq7JJE/LaQc7q370SHTZw043cAXIBN2+LEXoy5yio8 dHYbZz1I3ejChd/UdCwrdscdaDnyNN5siiVsH/7WMEsbEIqD53vk4oxilnIy05gyx+b4 NUKyedR2kGXa3irWa+5y30M1YEPhkJinRQ4qoC4U5VM5AJRXrZeMYVQO7aTfUYyRVJCm elHUh/1UTAAWFOQERBGfsg4AxTorj+91MDws9nxyeED1LUwN8ptfyE1hkJ3h2fDgW4RB 5Vfw== X-Gm-Message-State: AA6/9Rn9J3/HOtX+uPIADEvtVykiPF4FqoE7w14/ZJ5lBE6Q9qRqwbSfSyu0wp1H3ItVKg== X-Received: by 10.67.16.46 with SMTP id ft14mr14330924pad.173.1476440608779; Fri, 14 Oct 2016 03:23:28 -0700 (PDT) Received: from ?IPv6:2001:44b8:31ae:7b01:1c1a:5103:265d:bfaf? (2001-44b8-31ae-7b01-1c1a-5103-265d-bfaf.static.ipv6.internode.on.net. [2001:44b8:31ae:7b01:1c1a:5103:265d:bfaf]) by smtp.gmail.com with ESMTPSA id zh13sm26319113pab.4.2016.10.14.03.23.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Oct 2016 03:23:28 -0700 (PDT) Sender: Kubilay Kocak Reply-To: koobs@FreeBSD.org Subject: Re: gcc5 dependency challenges To: Dewayne Geraghty , ports-list freebsd References: From: Kubilay Kocak Message-ID: <053f7002-8195-c907-dfc7-c790a563da26@FreeBSD.org> Date: Fri, 14 Oct 2016 21:22:31 +1100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:51.0) Gecko/20100101 Thunderbird/51.0a2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-AU Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2016 10:23:29 -0000 On 14/10/2016 6:48 PM, Dewayne Geraghty wrote: > After some rudimentary performance testing I note that we get up > around 3% improvement in application performance when we use gcc5 for > our package builds. > > However building ports with gcc results in gcc5 being a dependency. > Examining ldd, we find that rarely does anything require gcc5's > shared libs for their execution. Even simple things like ftp/wget > and devel/ccache depend on gcc5 for building but NOT runtime. As we > aren't allowed to install compilers onto production systems, what is > the best course of action to address? (We could just install gcc5 and > then remove it but then of course, the base pkg wants to remove > everything (600+ packages) that depends on gcc5!) > > So the question is - how should we build our packages or install them > so that gcc5 is not (unnecessarily) installed? > > We've added to our /etc/make.conf USE_GCC= 5 but I wonder if there's > something like a build_depends mechanism? > > > Background: Our FreeBSD 10.3 Stable uses pkg 1.8.3; whereas ports > uses 1.8.7_3, minor point. > > Why gcc5? Well most ports use clang 3.4.1 to compile, some ports do > use gcc 4.8.5; and if we move to FreeBSD11 then we also need to add > llvm3.6 into the build/migrating equation. So to aid our migration > effort we "think" choosing gcc5 now is a good idea; particularly as > /usr/ports/base/gcc uses gcc 5.4.0 (rather than /usr/ports/lang/gcc > which is 4.8.5) > > All production systems use local package repositories (as heimdal is > widely used as are non-default options). > > Kind regards, Dewayne This (in progress thing) may help: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211154 See dependent Bugzilla issue: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211079 ./koobs