From owner-freebsd-ports@freebsd.org Wed Jun 14 07:39:36 2017 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 4B34FD87CDE for ; Wed, 14 Jun 2017 07:39:36 +0000 (UTC) (envelope-from lylecorman@gmail.com) Received: from mail-wr0-x230.google.com (mail-wr0-x230.google.com [IPv6:2a00:1450:400c:c0c::230]) (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 D19247D943 for ; Wed, 14 Jun 2017 07:39:35 +0000 (UTC) (envelope-from lylecorman@gmail.com) Received: by mail-wr0-x230.google.com with SMTP id 77so28815394wrb.1 for ; Wed, 14 Jun 2017 00:39:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=sqwiLdhl8DL8nJp3174Y6AZr1tCHrWoxIUP99/Pqgzc=; b=NYVzmeJd/CR93Y6DjKmT9m/QcwCX3YA0ncw0Y4WpPeRt1c81+SoP6tr0ZV5niOFQQ2 RUh3fSfgFJz6QOB5R7YPcDC4P5hHzXtOw95w65wJ7i50qwjuliZd+M2KKtSrRAyJHsu/ gOT12zNwCtvPkq3opZZQfw8FFGmBLoDpY76+ysmHvvbL1+rN98//NRq40xfk0j8IrN5Y 8LQdsFWO7re71/Xu7IqQER30+3gTZz/oUzhkScXAFlPHYui00tCOquUruEI3Zb+KzJVE 7TRvuul71hPAqTnlyrtdcW0+KJa5RHeKGD2hXinJPlvpmCgoOVqa8cxhDbGTGv+J04cI aPfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=sqwiLdhl8DL8nJp3174Y6AZr1tCHrWoxIUP99/Pqgzc=; b=rwIiFkOWiL42cmTMbc6IdV4D110/X8PLxsnIPxqJo6RiKuYpviqtFLW0vqOGenSv5M juGWG38M+tCa4PqOt0EqMo1jwcBNBZ4fRRgEy2a2sVWKdGS3At7+V5Xlooqs6+XVFHiA 4NMNhSxNxkCFBnmksUKWe8fC8cImJNLIp8GmKbY29Jx1pI1k9wBRsPxlTr74/57AXvso ZCs/lUJFLA2Y6iU+CH/7J1/YxGxcXoMLycJ86tKhNtiI70rolWWN4eYsvUfSUj0D8bxf MZTFe+3HZaC/sFpu0XGHaN9MCWq09zYgqQnF16BF0MdW05m8ZpXW6iJTPEDYftrqq9Jt Ca3g== X-Gm-Message-State: AKS2vOwhoKVakA5Pls4TwvlQvBBIqFVh93Xx2QkYRmXvQS3lN0mvqmAP T5b/a3/kEdCZLnMDQuA= X-Received: by 10.223.136.201 with SMTP id g9mr6186310wrg.42.1497425973903; Wed, 14 Jun 2017 00:39:33 -0700 (PDT) Received: from [192.168.0.35] (cable-178-148-5-95.dynamic.sbb.rs. [178.148.5.95]) by smtp.gmail.com with ESMTPSA id r24sm152089wrc.16.2017.06.14.00.39.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Jun 2017 00:39:33 -0700 (PDT) Subject: Re: How to stop ports recompiling gcc, llvm, etc.? To: Kevin Oberman Cc: FreeBSD Ports ML References: <9DD17DEF-D6EB-496B-95AB-DC2C8EE4156B@FreeBSD.org> <594005E1.70608@grosbein.net> <4aeaa9da-1e52-812f-fddd-fda24cfa0ee5@gmail.com> <44vanzx4qd.fsf@lowell-desk.lan> <56bafdb9-9e01-c158-63d7-f3d4c3daa0c5@gmail.com> From: Rastko P Message-ID: <4663d950-5f57-607e-995b-348802d84904@gmail.com> Date: Wed, 14 Jun 2017 09:39:31 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US 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: Wed, 14 Jun 2017 07:39:36 -0000 Thanks a lot Kevin, a lot of valuable info, and I think it'll solve my problems in the long r= un. I haven't been using portmaster to build ports, but "make". I'll have a l= ook in the manpages. As to your confusion for why LLVM isn't there, the comma= nd is supposed to list all the packages with rev-depends > 0. As to why gcc5= is listed as gcc5-0, is beyond quant theory. And yes, I am dual-booting, = so only 64 GiB for FreeBSD here. Already on 37%, and I haven't even started coding yet. Thanks for the info. On 14.06.2017 02:00, Kevin Oberman wrote: > On Tue, Jun 13, 2017 at 3:07 PM, Rastko P > wrote: > > I used the portsnap fetch>extract>fetch>update > > then built portmaster, > > then used pkg version -l "<", which gave 2 out-of-date, > > then used portmaster -L, which gave 2 matching out-of-date, > > then used portmaster -a to update all ports, which pulled in a lot = of > > dependencies, including llvm, cairo, openjdk, etc. > > then used 'df', just to find out not much space has been taken, > > then used postmaster --clean-distfiles, > > then used pkg clean (-a), > > then did some pkg and portsnap updates again, so forth. > > > The compilation of thunderbird52.1.1 has stopped with an error > > mentioning a void reference, AFAIR, and I used make only, not make > install, > > however, I am left with gcc5 installed, 2 versions of llvm > installed, etc. > > > Here's some output from pkg: > > > Manually installed packages > > ################# > > > $ pkg query -e '%a =3D 0' %o > security/openssh-askpass > ports-mgmt/dialog4ports > misc/freebsd-doc-en > www/firefox > www/firefox-i18n > security/gnome-ssh-askpass > x11/gnome3 > editors/nano > ports-mgmt/pkg > ports-mgmt/portmaster > lang/python > lang/python36 > misc/freebsd-doc-sr > security/sudo > mail/thunderbird > mail/thunderbird-i18n > x11-fonts/urwfonts > multimedia/vlc-qt4 > security/xca > x11-drivers/xf86-video-intel > x11/xorg > graphics/xpdf > > > Devel/Lang category automatically installed with -N dependencies > at the end > > ############################################## > > > $ pkg query -e '%a =3D 1 && %o ~ lang* || %o ~ devel* && %#r > 0' > %o-%#r | > sort > devel/autoconf-1 > devel/autoconf-wrapper-2 > devel/automake-wrapper-1 > devel/binutils-1 > devel/boehm-gc-2 > devel/boehm-gc-threaded-1 > devel/boost-libs-2 > devel/cmake-modules-1 > devel/dbus-20 > devel/dbus-glib-30 > devel/dconf-5 > devel/dconf-editor-1 > devel/desktop-file-utils-24 > devel/dotconf-2 > devel/gamin-1 > devel/gconf2-7 > devel/gettext-runtime-301 > devel/gettext-tools-2 > devel/glib20-255 > devel/glibmm-7 > devel/gobject-introspection-18 > devel/gsettings-desktop-schemas-15 > devel/gstreamer1-plugins-soup-1 > devel/gvfs-6 > devel/icu-9 > > devel/json-glib-14 > devel/jsoncpp-1 > devel/libdaemon-1 > devel/libedit-3 > devel/libevent-2 > devel/libffi-13 > devel/libgdata-7 > devel/libgee-7 > devel/libgit2-1 > devel/libgit2-glib-1 > devel/libglade2-3 > devel/libgsf-27 > devel/libgtop-4 > devel/libical-2 > devel/libIDL-9 > devel/libinotify-1 > devel/libltdl-9 > devel/libnotify-15 > devel/libpciaccess-4 > devel/libpeas-7 > devel/libpthread-stubs-1 > devel/librest-5 > devel/libsigc++20-8 > devel/libsoup-17 > devel/libsoup-gnome-8 > devel/libunistring-4 > devel/libunwind-1 > devel/libuv-1 > devel/libvolume_id-1 > devel/llvm39-2 > > devel/lua-bitop-1 > devel/lua-lpeg-1 > devel/m4-5 > devel/npth-1 > devel/nspr-9 > devel/ORBit2-8 > devel/orc-36 > devel/p5-Locale-gettext-1 > devel/pcre-3 > devel/popt-2 > devel/ptlib-1 > devel/py-babel-2 > devel/py-cffi-1 > devel/py-dbus-5 > devel/py-enum34-2 > devel/py-gobject-5 > devel/py-gobject3-6 > devel/py-iso8601-1 > devel/py-Jinja2-1 > devel/py-libpeas-1 > devel/py-notify-1 > devel/py-pyasn1-1 > devel/py-pycparser-1 > devel/py-pytz-1 > devel/py-six-4 > devel/py-xdg-1 > devel/py27-setuptools-29 > devel/py3-dbus-2 > devel/py3-gobject3-6 > devel/py3-libpeas-3 > > devel/py3-xdg-2 > devel/py35-setuptools-1 > devel/pydbus-common-2 > devel/pygobject3-common-2 > devel/qt4-corelib-2 > devel/readline-11 > devel/sdl12-2 > devel/spice-protocol-1 > devel/talloc-3 > devel/tevent-2 > devel/xdg-utils-2 > lang/gcc-ecj45-1 > lang/gcc5-0 > lang/gjs-7 > lang/guile2-1 > lang/lua52-11 > lang/perl5.24-23 > lang/python2-31 > lang/python27-76 > lang/python3-14 > lang/python35-17 > lang/spidermonkey170-1 > lang/spidermonkey24-1 > lang/vala-1 > > > > On 13.06.2017 20:09, Kevin Oberman wrote: > > On Tue, Jun 13, 2017 at 9:19 AM, Rastko P > > >> wrot= e: > > > > Nope, none of those, funny as it may sound, I was going by th= e > > "Handbook" and tried to use "portmaster", as it reported some= > > upgradeable 'ports'. > > > > However, that was the first time I launched portmaster, and > it was > > weird, because it kept prompting me to delete newer versions = of > > software > > than that which had been built by the portmaster session, to > which I > > replied 'oh, no [n]o', which was the default. > > > > But in the end, it seems to have not installed anything > (?!). Why > > did it > > pull in all those dependencies? Where are the binaries? > > > > > > On 13.06.2017 17:54, Lowell Gilbert wrote: > > > Rastko P >> > > writes: > > > > > >> I have a fresh 11-RELEASE dist. I am 'bootstrapping' the > > environment. > > >> > > >> I am in the process of building mail/thunderbird-52.1.1, > > because the > > >> binary doesn't have support for Lightning calendar extensi= on. > > >> > > >> Yesterday, a documentation port build pulled in a lot of > > dependencies, > > >> including GCC, LLVM, and a lot of others. 6+ hours of > compile-time. > > >> > > >> After it finished I immediately issued a 'df' cmd, and > > lo-and-behold, > > >> not more than 1GB was taken by the build process. Now > that you've > > >> mentioned it, pkg says GCC or LLVM are not to be found > > installed. I am > > >> missing something huge here. > > > Are you using synth, or poudriere? A normal port build woul= d > > leave those > > > things installed if it needed them at build time. > > > > > > What command are you using? Specifically, what options are you us= ing > > with portmaster? Are you installing from /usr/ports? Installing i= nto > > /usr/local? > > > > Clearly, something odd is going on. While building llvm is big, I= > > don't have to do it very often. Only when the port, itself, is > > updated. Anything in you environment that might be unexpected? > > > > When you run portmaster, you should get a list of ports to be > > installed and a request for confirmation that you want to > proceed. Are > > you seeing this? Or, is the build of the port triggering the rebu= ild > > of the compiler. > > > First, I think "pkg clean is a reasoable thing to do but "pkg clean > -a" is a bit excessive unless you are seriously tight on disk space. > This is just a comment and orthogonal to your issue. > > Next, you will need multiple version of llvm snd may need more than > one version of gcc. Some ports are simply won't build with other than > some specific version. Also, some ports combinations may cause both > lang/gcc and lang/gcc5 to be built. (Not sure of this.) > > You are mixing port and package installs which is a bit dangerous and > may cause issues. That is why it is not recommended. That said, they > are often needed unless you use synth or poudriere. You can at least > minimize this by only using ports for those cases where the packaged > version won't do. > > When you run portmaster to install a port, it should provide a list of > all ports it will install. If none of these require special options, I > would suggest responding "n" and then using pkg install to take care > of the dependencies. No need to build them unless you need a > non-standard option which is fairly unlikely for most of them. I am > unsure why I don't see lang/llvm, though. > > Also, do you really need vlc-qt4? qt4 is getting very long of tooth > and starting to suffer bit rot. I still have a couple of ports that > require qt4, but I am working on writing updates to the ports to move > them to qt5. In both cases the upstream supports qt5, but our port has > not been updated to take advantage of this. > > Finally, use "pkg lock" to lock your custom ports so you can then just > use "pkg upgrade" to maintain all of the rest. I do a daily: > pkg upgrade > portsnap update > pkg version -vL=3D > > with a nightly cron job in /etc/crontab: > # Fetch updates to the ports tree > 0 4 * * * root /usr/sbin/portsnap cron > > These are some suggestions to make you life a bit easier. Whether they > can resolve the root issue, I am not sure. > -- > Kevin Oberman, Part time kid herder and retired Network Engineer > E-mail: rkoberman@gmail.com > PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683