From owner-freebsd-stable@freebsd.org Fri Dec 28 05:12:31 2018 Return-Path: Delivered-To: freebsd-stable@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 079DF142DBF3 for ; Fri, 28 Dec 2018 05:12:31 +0000 (UTC) (envelope-from walterp@gmail.com) Received: from mail-it1-x142.google.com (mail-it1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 13DA873201; Fri, 28 Dec 2018 05:12:30 +0000 (UTC) (envelope-from walterp@gmail.com) Received: by mail-it1-x142.google.com with SMTP id p197so26066049itp.0; Thu, 27 Dec 2018 21:12:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xsj54bXNeP0yp16HTLH9urUKXySypLJEJIqT0qM56d0=; b=Hv2PQQumDGAnMGetg9CdoOJpmrSDzMe7PoS96ALcy8JVfTBI/B4DQFrpgzPJFLtvxv XLjFM+q+ajrCxpv5wlt7YKWKVzfxIu4Ptb81uUOkRN7z85Cs24bfRpEbwZuYh9S6WVRW 5tOiNOdagGndxzqYWD25GtOs+LyoaOgQw3aF9vK0Y+268sT/5jkWlkNhCjtEZKTROrwE nEfg5jY0rW3J9Pzucy+zm84c+DMDkOmNqwKWtq2OoJwpFjLtg+hzlm98MO/Mn4ZVAYLR B1YGOnk14Z3ceW9s3OveQNTNE4xI6ZKEidVfyoF9/VaVxGia9+VqgNmznPEBqO38Miz6 hCOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xsj54bXNeP0yp16HTLH9urUKXySypLJEJIqT0qM56d0=; b=N+TntKUVreQ6GQUmailsMXPiWVHiZBYqlkziXO4cAkcGVXWC2Q6ZFAQgjK2ICo8VAi dtw+xiEOn+7gRXAUXgHX2wrzsXycMmbPFhhpy9BpDieU6mnNCw2q0Dx3tL6GkDZfsfEq frSdQDN33Wi/rab0oUtIVWw8cVGcA6h6fiio1U3aHGFwspm+khYa3DAJ3pHA5FBYAKOS 1a5u49tMqJ9tVKxCMQiAsrvQnluB4BOD7tJtJEveCYczGx3ChqjTPBFqNye8QalQLvbz P6FWKxv0o4qK0tdw41pZyZyC9nqD5misNU2vKAcT9krWfE7M+37MUlsdvmUNd48TEqsi eM3w== X-Gm-Message-State: AA+aEWab2KUuZmumzqFUlsmgxaDypYpbYyJW8MXeQNNSgZKPndgoU6j9 AtGV+0DaimrxX1G4IRbBgSbvklZVt13YVAD3tCLTX0TEA3Y= X-Google-Smtp-Source: AFSGD/ViNx1Oja1nGgz98Zfx2d5EdntI3Xj4mGJWNxxtNkrbB6/GsTfvE1dZ9PAyXe95clYVG8XXj9FgscGC+JnSmuE= X-Received: by 2002:a24:5608:: with SMTP id o8mr16338126itb.35.1545973949126; Thu, 27 Dec 2018 21:12:29 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Walter Parker Date: Thu, 27 Dec 2018 21:12:18 -0800 Message-ID: Subject: Re: Pkg dependency strangeness To: Matthew Seaman Cc: freebsd-stable@freebsd.org X-Rspamd-Queue-Id: 13DA873201 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Hv2PQQum; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of walterp@gmail.com designates 2607:f8b0:4864:20::142 as permitted sender) smtp.mailfrom=walterp@gmail.com X-Spamd-Result: default: False [-1.92 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.90)[-0.902,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.98)[-0.975,0]; NEURAL_SPAM_SHORT(0.88)[0.882,0]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCVD_IN_DNSWL_NONE(0.00)[2.4.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.09)[ip: (3.90), ipnet: 2607:f8b0::/32(-1.86), asn: 15169(-1.51), country: US(-0.08)]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Dec 2018 05:12:31 -0000 I appear to have found a solution: I used pkg check -d and it said pecl-memcached2 has a missing dependency: php56-session pecl-memcached2 has a missing dependency: php56-json policyd2 has a missing dependency: php56-pdo_pgsql php56-session dependency failed to be fixed php56-json dependency failed to be fixed php56-pdo_pgsql dependency failed to be fixed So use pkg remove to delete pecl-memcached2 and policyd2 and now when I use pkg it appears to work as expected [root@natasha /usr/local/etc/postfix]# pkg install alpine New packages to be INSTALLED: alpine: 2.21.9999 Number of packages to be installed: 1 The process will require 8 MiB more space. 2 MiB to be downloaded. On Thu, Dec 27, 2018 at 2:04 PM Walter Parker wrote: > Hi Matthew, > > I ran pkg upgrade -n > > New packages to be INSTALLED: > xorgproto: 2018.4 > wayland: 1.16.0 > libepoll-shim: 0.0.20180530 > libXtst: 1.2.3_2 > postgresql95-client: 9.5.15_2 > mysql56-client: 5.6.42_1 > php72-pdo_sqlite: 7.2.13 > (lots of p5-s) > > Installed packages to be UPGRADED: > (lots of py36 s > (lots of p5-s) > dspam: 3.10.2_4 -> 3.10.2_5 > dovecot-pigeonhole: 0.4.21_1 -> 0.5.4_1 > dovecot: 2.2.33.2_4 -> 2.3.4_3 > > Installed packages to be REINSTALLED: > roundcube-php72-1.3.8_1,1 (options changed) > php72-pgsql-7.2.13_1 (direct dependency changed: > postgresql95-client) > php72-pdo_pgsql-7.2.13_1 (direct dependency changed: > postgresql95-client) > php72-openssl-7.2.13 (direct dependency changed: php72) > > Note, the system is currently running postgresql96. I used postmaster to > install the php72-pgsql & php72-pdo_pgsql ports and to install > postgresql96-client and server. > > Ran pkg version -vRL= > Found several ophaned packages, most seem be because I remove the > xproto packages per the UPDATING instructions > ImageMagick-nox11-6.9.9.28,1 ? orphaned: graphics/ImageMagick-nox11 > bigreqsproto-1.1.2 ? orphaned: x11/bigreqsproto > Also, my X appears to be out of date (system runs headless so that is a > lower concern) > libXext-1.3.3_1,1 < needs updating (remote has > 1.3.3_3,1) > libXfixes-5.0.3 < needs updating (remote has 5.0.3_2) > libXfont-1.5.2,2 < needs updating (remote has > 1.5.4_2,2) > libXft-2.3.2_1 < needs updating (remote has 2.3.2_3) > lha-1.14i_7 ? orphaned: archivers/lha > p5-Net-SMTP-SSL-1.04 ? orphaned: mail/p5-Net-SMTP-SSL > pecl-imagick-3.4.3_2 ? orphaned: graphics/pecl-imagick > pecl-memcached2-2.2.0_5 ? orphaned: databases/pecl-memcached2 > roundcube-sieverules-2.1.2,1 ? orphaned: mail/roundcube-sieverules > > When I run pkg install phppgadmin-php72, it tells me that I'm on the most > recent version of the package. So I removed it and tried a reinstall > > [root@natasha /usr/ports/mail/postfixadmin]# pkg install phppgadmin-php72 > Updating FreeBSD repository catalogue... > FreeBSD repository is up to date. > All repositories are up to date. > The following 7 package(s) will be affected (of 0 checked): > > New packages to be INSTALLED: > phppgadmin-php72: 5.1_5 > php56-session: 5.6.39 > php56: 5.6.39 > postgresql95-client: 9.5.15_2 > php56-json: 5.6.39 > php56-pdo_pgsql: 5.6.39_1 > php56-pdo: 5.6.39 > > Number of packages to be installed: 7 > > I stopped this and did a portmaster -B -D databases/phppgadmin it it > installed > ===>>> All dependencies are up to date > > ===> Cleaning for phppgadmin-php72-5.1_5 > ===> Cleaning for phppgadmin-php56-5.1_5 > ===> Cleaning for phppgadmin-php71-5.1_5 > ===> Cleaning for phppgadmin-php73-5.1_5 > # you can customize the installation directory > # by setting PGADMDIR in /etc/make.conf > ===> License GPLv2 accepted by the user > ===> phppgadmin-php72-5.1_5 depends on file: /usr/local/sbin/pkg - found > ===> Fetching all distfiles required by phppgadmin-php72-5.1_5 for building > ===> Extracting for phppgadmin-php72-5.1_5 > => SHA256 Checksum OK for phpPgAdmin-5.1.tar.bz2. > ===> Patching for phppgadmin-php72-5.1_5 > > > Thank you, > > > Walter > > On Thu, Dec 27, 2018 at 5:08 AM Matthew Seaman > wrote: > >> On 27/12/2018 01:45, Walter Parker wrote: >> > I've just upgraded an existing FreeBSD 11.1 system with php56 to FreeBSD >> > 11.2 and php72. >> > >> > In order to do this, I used a mix of ports and packages to delete php56 >> and >> > all of the php56 extensions and replace them with php72 and php72 >> > extensions. Everything is working now, but when I try to install >> anything >> > using pkg, it wants to reinstall php56 and serveral php56 extensions. >> This >> > happens for packages that don't have php56 as a dependency. >> > >> > For example >> > pkg install alpine >> > >> >> As far as I can tell, this is nothing to do with alpine itself, which >> doesn't seem to depend on PHP at all. My guess is that you have some >> other PHP-based application installed which has an unmet dependency on >> php56. >> >> If you run 'pkg upgrade -n' without trying to install anything new, what >> happens? Also try 'pkg version -vRL=' Do you have any orphaned packages? >> >> See if you can work out what it is you've installed that wants to pull >> in php56. Judging by the dependencies in your original post, it could >> be something like databases/phppgadmin or a similar PHP application that >> uses a postgresql back-end. I'm going to use phppgadmin as the example >> package in what follows: you should substitute the actual package or >> packages that are relevant in your case. >> >> What can happen is the pkg(8) fails to handle the change from an >> unflavoured PHP package to a flavoured one. It doesn't grok that an >> un-flavoured 'phppgadmin' package was essentially the same thing as >> 'phppgadmin-php56' and also that 'phppgadmin-php56' can be replaced by >> 'phppgadmin-php72'. You need to prod it into doing the right thing by >> making it install exactly the flavour of phppgadmin you want. >> >> So, assuming phppgadmin was the culprit, you simply need to run 'pkg >> install phppgadmin-php72' >> >> Cheers, >> >> Matthew >> >> >> >> >> >> > > -- > The greatest dangers to liberty lurk in insidious encroachment by men of > zeal, well-meaning but without understanding. -- Justice Louis D. Brandeis > -- The greatest dangers to liberty lurk in insidious encroachment by men of zeal, well-meaning but without understanding. -- Justice Louis D. Brandeis