From owner-freebsd-questions@freebsd.org Sun Jan 28 23:59:52 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6EEA7EC5A31 for ; Sun, 28 Jan 2018 23:59:52 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.117.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 92CA074AB1 for ; Sun, 28 Jan 2018 23:59:51 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from liminal.local (unknown [IPv6:2001:8b0:151:1:e930:bf41:9abc:521e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 942E712DA6 for ; Sun, 28 Jan 2018 23:59:44 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none (p=none dis=none) header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/942E712DA6; dkim=none; dkim-atps=neutral Subject: Re: problem with upgrade and unable to build openjdk8 in poudriere To: freebsd-questions@freebsd.org References: <20180115151549.GA9923@localhost.org> <20180128130433.GA2196@localhost.org> From: Matthew Seaman Message-ID: Date: Sun, 28 Jan 2018 23:59:43 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20180128130433.GA2196@localhost.org> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="LtZ1B9UqGQJl9Ti3FMGF8b1zxUbldS1mP" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jan 2018 23:59:52 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --LtZ1B9UqGQJl9Ti3FMGF8b1zxUbldS1mP Content-Type: multipart/mixed; boundary="Ddpf5f1FX3h7tQzLlnnv5rVfyUGRAaPc8"; protected-headers="v1" From: Matthew Seaman To: freebsd-questions@freebsd.org Message-ID: Subject: Re: problem with upgrade and unable to build openjdk8 in poudriere References: <20180115151549.GA9923@localhost.org> <20180128130433.GA2196@localhost.org> In-Reply-To: <20180128130433.GA2196@localhost.org> --Ddpf5f1FX3h7tQzLlnnv5rVfyUGRAaPc8 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: quoted-printable On 28/01/2018 13:04, johannes-maria@t-online.de wrote: > On Mon, Jan 15, 2018 at 04:15:49PM +0100, johannes-maria@t-online.de wr= ote: >> Hello, >> >> I'm still working with 9.3 and thought it's time to install 11.1 >> but there are two problems I couldn't solve myself. >> >> I've never worked with jails or poudriere before and probably >> made some errors so I first describe in detail what I've done. >> >> To not destroy my working system I made this on a separate >> (clear) slice of my hard disk. >> >> First I installed the basic 11.1 system with the boot disk >> (FreeBSD-11.1-RELEASE-amd64-disc1.iso) without problems. >> >> Then I installed poudriere (pkg install poudriere) >> and created a jail with poudriere: >> poudriere jail -c -v 11.1-RELEASE -a amd64 -j 11amd64 >> and installed the ports tree: >> poudriere ports -c >> I created a list of ports to install and started poudriere: >> poudriere -v bulk -j 11amd64 -f list_of_ports_to_install >> >> >> First problem: >> >> One of the ports to install is x11/kde4 which as a dependency >> adds java/openjdk8 to the list but poudriere seems to be >> unable to build it: >> =3D>> Failed ports: java/openjdk8:build >> [excerpt from the log-file: >> gmake[2]: *** No rule to make target '1'. Stop. >> gmake[2]: Leaving directory '/wrkdirs/usr/ports/java/openjdk8/work/ope= njdk/langtools/make' >> ] I can't really give you much help with this: openjdk8 is building just fine for me on 11.1-RELEASE. This is probably some small configuration mistake that will have you face-palming once you find it... >> And therefore >> =3D>> Skipped ports: devel/antlr devel/kdesdk4 devel/poxml x11/kde4 >> >> On the other hand a direct make in ports/java/openjdk8 is successful >> but it fails repeatedly when called by poudriere. >> >> >> Second problem: >> >> I tried to install the successfully built software >> (i. e. my list without kde4) with >> pkg -j 11amd64 upgrade >> but this fails with >> pkg: jail "11amd64" not found >> >> and jls doesn't list any jails >> whereas >> poudriere jail -l >> displays >> JAILNAME VERSION ARCH METHOD ... PATH >> 11amd64 11.1-RELEASE-p6 amd64 ftp ... /usr/local/poudriere/jails/1= 1amd64 >> OK. Confusion over jails here. The '-j' flag to pkg(8) allows you to install files into a jail from the host system. As you don't have any actual jails configured, you don't want to use this flag. These are completely different to the jails used by poudriere. In fact, when you "create a jail" by eg. poudriere jail -c -j 11amd64 -v 11.1-RELEASE -a amd64 -m ftp What you are actually doing is creating a template. 'poudriere jail -l' will list all the templates poudriere knows about. It's only during a poudriere run that jails are actually created from these templates -- in fact, as many jails as the degree of parallelism you've allowed in poudriere.conf. Try running jls(1) while poudriere is compiling stuff and you'll see. These build jails are only temporary and are destroyed as soon as the poudriere run ends. Now, poudriere will collect all the packages it has built into a repository. It's typical to set up a webserver (nginx recommended) to allow distribution of those packages, and you will need to write a configuration file for pkg(8) giving the correct URL for your custom repository. You'll probably also want to turn off the default FreeBSD package repository -- see the comment in /etc/pkg/FreeBSD.conf for how to do that. Then you can just upgrade your system by: pkg upgrade Hint: try 'pkg -vv' to see your pkg(8) configuration including all the repositories you have configured. Cheers, Matthew --Ddpf5f1FX3h7tQzLlnnv5rVfyUGRAaPc8-- --LtZ1B9UqGQJl9Ti3FMGF8b1zxUbldS1mP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQKoBAEBCgCSFiEEGfFU7L8RLlBUTj8wAFE/EOCp5OcFAlpuY/BfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDE5 RjE1NEVDQkYxMTJFNTA1NDRFM0YzMDAwNTEzRjEwRTBBOUU0RTcUHG1hdHRoZXdA ZnJlZWJzZC5vcmcACgkQAFE/EOCp5OdaYw//Rzuyi9Vk54jS7QOOLSMLWyZIQVno RH7/YjA4uBxI/xzD1wbQuvQEhF1CJj6I54zWyvvkXF07h73QQciPledmdHZ5NifU VwiF3m3WSDYvbowS9IcorXLc2Nk/dj1u5tPNeD4t4k1p9BBP//eQ7/NdDWUt7bK2 mtm6SReYMJTCUmGJzFpvVrIuN/VRTLGYdo01IsXosk2VBKuKqnRQz9CYcIat0cFH ynfCLJ2UsWiv+TAIMzmj7scf0EhvSRKpiQXw4u0FjpjFhkqAwAaLL+ueVmKco/Dk B5tW33YKm0J3kYQR/xkfgvInJiRbM2JAj8zVi8Nrqr+EKKk2zWyaKKasxi/xeMC/ 13uYidm9+ws0UOKIFn39iiZL/GXgUZouWDhsGsIqWxtgigBwXcINa70967VQlJVV TcI5+p4oDp5ELaBCyjf4MDKZsYn8UTANC8MREoAKWlsbWinytYV6o0Xxc8Vl+hE6 lB6vr8PlwdKtSld6f60Kibq8LRbU7yyA8VG5OHGMuBN5/xUT2is1PPogg9ENz8f3 KMlVEwYY2SZ/GYrXHoX2OeNKJ44EbgwKqhu5CHxXePccoL7Lx7pdabkXfafqJ65I 8mp5LtvqQ86WeGqZfS+ptOHwMC4iZTxAP+zofuSvqOORdFqTdEy+LCPdZAoE5jeF nQLnvVbPDdKEbJE= =Z29n -----END PGP SIGNATURE----- --LtZ1B9UqGQJl9Ti3FMGF8b1zxUbldS1mP--