From owner-freebsd-ports@freebsd.org Fri Sep 15 15:47:43 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 6DB96E1E92D for ; Fri, 15 Sep 2017 15:47:43 +0000 (UTC) (envelope-from adamw@adamw.org) Received: from apnoea.adamw.org (apnoea.adamw.org [104.225.5.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "apnoea.adamw.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CABB66CDEA for ; Fri, 15 Sep 2017 15:47:40 +0000 (UTC) (envelope-from adamw@adamw.org) Received: by apnoea.adamw.org (OpenSMTPD) with ESMTPSA id 314607ca TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Fri, 15 Sep 2017 09:47:39 -0600 (MDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: synth install ... builds but does not always install named packages From: Adam Weinberger In-Reply-To: <4C.CD.25924.D0E8BB95@dnvrco-omsmta02> Date: Fri, 15 Sep 2017 09:47:37 -0600 Cc: freebsd-ports@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <8C.42.25924.3928BB95@dnvrco-omsmta02> <20170915074220.GA1995@gmail.com> <4C.CD.25924.D0E8BB95@dnvrco-omsmta02> To: Thomas Mueller X-Mailer: Apple Mail (2.3273) 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, 15 Sep 2017 15:47:43 -0000 > On 15 Sep, 2017, at 2:23, Thomas Mueller wrote: >=20 >> On Sep 15 07:34, Thomas Mueller wrote: >=20 >> I am building up a system (FreeBSD 11.1-STABLE amd64) using synth, = but even when the packages build and appear in = /var/synth/live_packages/All , some of the packages don't install. >=20 >> When I type "which gnumeric", "which bison", "which abiword", I just = get a blank, and the executable files don't appear in /usr/local/bin . >=20 >> This happened with math/gnumeric, editors/abiword-docs, among others. >=20 >> I subsequently installed those packages by typing "synth install = math/gnumeric" and "synth install editors/abiword-docs", but how do I = find all the others that built and are listed in = /var/synth/live_packages/All but did not install? >=20 >> I see=20 >=20 >> "ls -l /var/synth/live_packages/All" has 657 lines, while >=20 >> "pkg info -a" produces 544 lines. >=20 >> I piped to "more", then hit G to go to the end, then Ctrl-G, which = showed the number of lines. >=20 >> This may not tell the whole story, but makes me believe there is a = disparity, and ask how to find and install those packages that built but = didn't install. >=20 >> Has anybody else been stung by this bug? >=20 > Matt Smith responded: >=20 >> Do you actually want those packages installed? The usual reason is = that=20 >> they are build dependencies only required for building another = package=20 >> and therefore they are in the repo but not installed. If they are run=20= >> dependencies actually required for another package to run then they=20= >> should be installed. >=20 >> Freshports is a good site for looking at this. =20 >> http://www.freshports.org/ >=20 >> If you search for something it tells you what is build and what is = run. =20 >> Alternatively you can look at the ports Makefile for lines such as=20 >> BUILD_DEPENDS, RUN_DEPENDS, LIB_DEPENDS etc. >=20 > In some cases, the named packages failed to install the first time = (math/gnumeric and editors/abiword), and in other cases desired = dependencies didn't install (devel/nasm and sysutils/coreutils, for = instance). >=20 > I need some of those build dependencies for other things like, for = instance, cross-compiling Haiku and cross-compiling Linux toolchains, or = other FreeBSD ports. >=20 > Is there anything I can specify to install those build dependencies, = and how do I go through /var/synth/live-packages/All and pkg info -a to = install those packages that failed to install without missing something? >=20 > Synth runs faster and more gracefully than portmaster, but portmaster = installed everything that it built. Yes. That's the point. Build-only dependencies don't get installed via = synth or poudriere. Portmaster doesn't do clean builds, so it pollutes = your system by installing everything.=20 You can install everything, though for the life of me I can't imagine = why you'd want to, by: pkg install -g '*' # Adam --=20 Adam Weinberger adamw@adamw.org https://www.adamw.org