From owner-freebsd-pkg@freebsd.org Fri Nov 20 14:38:06 2015 Return-Path: Delivered-To: freebsd-pkg@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 5BBAEA34270 for ; Fri, 20 Nov 2015 14:38:06 +0000 (UTC) (envelope-from dan@langille.org) Received: from clavin2.langille.org (clavin2.langille.org [199.233.228.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "clavin.langille.org", Issuer "StartCom Class 2 Primary Intermediate Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 138DD1602 for ; Fri, 20 Nov 2015 14:38:05 +0000 (UTC) (envelope-from dan@langille.org) Received: from (clavin2.int.langille.org (clavin2.int.unixathome.org [10.4.7.7]) (Authenticated sender: hidden) with ESMTPSA id 9093442EA for ; Fri, 20 Nov 2015 14:38:03 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Subject: Re: Cannot upgrade from custom repo From: Dan Langille In-Reply-To: <564ED623.5060005@FreeBSD.org> Date: Fri, 20 Nov 2015 09:37:16 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <9E018871-ECE4-45AA-849B-BA2DCF2EEB41@langille.org> References: <9D053084-3D0D-4CAF-A309-37D3C5766D43@langille.org> <564E3C62.8070306@FreeBSD.org> <9EE4925F-1E32-4162-8E32-4A285D9E30B5@langille.org> <564E5142.4020408@FreeBSD.org> <564ED623.5060005@FreeBSD.org> To: freebsd-pkg@freebsd.org X-Mailer: Apple Mail (2.3096.5) X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Nov 2015 14:38:06 -0000 > On Nov 20, 2015, at 3:13 AM, Matthew Seaman = wrote: >=20 > On 20/11/2015 03:12, Dan Langille wrote: >>> That is annoying. Looks like the error message is telling you the = wrong >>>> reason about why pkg(8) doesn't want to upgrade mysql56-server. >>>>=20 >>>> What do you get if you tell pkg(8) to plan an upgrade of = everything? >>>> ie. what does 'pkg upgrade -n' produce? I wonder if there's a = conflict >>>> somewhere that's making pkg(8) want to install a different version = of >>>> mysql or some such. >=20 >> $ sudo pkg upgrade -n >> Updating local repository catalogue... >> local repository is up-to-date. >> All repositories are up-to-date. >> Checking for upgrades (11 candidates): 100% >> Processing candidates (11 candidates): 100% >> The following 10 package(s) will be affected (of 0 checked): >>=20 >> Installed packages to be UPGRADED: >> perl5: 5.18.4_17 -> 5.20.3_8 >>=20 >> Installed packages to be REINSTALLED: >> pam_ssh_agent_auth-0.10.2_1 (direct dependency changed: perl5) >> p5-Proc-WaitStat-1.00_1 (direct dependency changed: perl5) >> p5-MIME-Types-2.12 (direct dependency changed: perl5) >> p5-MIME-Base64-3.15 (direct dependency changed: perl5) >> p5-IPC-Signal-1.00_1 (direct dependency changed: perl5) >> nagios-plugins-2.1.1_3,1 (direct dependency changed: perl5) >> mime-construct-1.11_2 (direct dependency changed: perl5) >> logcheck-1.3.17 (direct dependency changed: perl5) >> aspell-0.60.6.1_5 (direct dependency changed: perl5) >>=20 >> The operation will free 494 KiB. >> 14 MiB to be downloaded. >=20 > Hmmm... So your repo has perl5-5.20.x but your machine is still on = 5.18.x? >=20 > On my own machine: >=20 > % pkg info -dr mysql56-server > mysql56-server-5.6.27 > Depends on : > mysql56-client-5.6.27 > perl5-5.22.0_4 >=20 > mysql server has a dependency on perl5, so pkg(8) should be proposing = to > upgrade perl5 as part of the update of mysql56-server. >=20 > Is there any reason you can't upgrade perl5 on this machine? I've a > feeling doing that will help. Or if you can't upgrade perl5, how = about > changing the default version back to 5.18 in your repo? Perl is one = of > those packages that (almost) everything depends on, and pkg(8) will = find > it difficult to handle updates if it can't bring perl up to the = version > all the other packages in the repo are expecting. I can do that: [root@zuul-mysql:~] # pkg upgrade perl5 Updating local repository catalogue... local repository is up-to-date. All repositories are up-to-date. The following 1 package(s) will be affected (of 0 checked): Installed packages to be UPGRADED: perl5: 5.18.4_17 -> 5.20.3_8 The operation will free 494 KiB. 13 MiB to be downloaded. Proceed with this action? [y/N]: y [zuul-mysql.vpn.unixathome.org] Fetching perl5-5.20.3_8.txz: 100% 13 = MiB 4.6MB/s 00:03 =20 Checking integrity... done (0 conflicting) [zuul-mysql.vpn.unixathome.org] [1/1] Upgrading perl5 from 5.18.4_17 to = 5.20.3_8... [zuul-mysql.vpn.unixathome.org] [1/1] Extracting perl5-5.20.3_8: 100% Message from perl5-5.20.3_8: The /usr/bin/perl symlink has been removed starting with Perl 5.20. For shebangs, you should either use: #!/usr/local/bin/perl or #!/usr/bin/env perl The first one will only work if you have a /usr/local/bin/perl, the second will work as long as perl is in PATH. [root@zuul-mysql:~] # pkg info -x mysql56-client mysql56-client-5.6.27 [root@zuul-mysql:~] # pkg install mysql56-client Updating local repository catalogue... local repository is up-to-date. All repositories are up-to-date. Checking integrity... done (0 conflicting) The most recent version of packages are already installed [root@zuul-mysql:~] #=20 FYI, someone tried working with repo, and they were able to=20 install mysql56 5.6.27 from my repo; they succeeded: = https://forums.freebsd.org/threads/cannot-upgrade-pkg-from-custom-repo.540= 80/#post-304454 That tells me it's an issue wth the box, not with the repo. Agreed? =E2=80=94=20 Dan Langille http://langille.org/