From owner-freebsd-questions@freebsd.org Tue Sep 8 09:03:32 2015 Return-Path: Delivered-To: freebsd-questions@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 4FE159CB4F1 for ; Tue, 8 Sep 2015 09:03:32 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from fep24.mx.upcmail.net (fep24.mx.upcmail.net [62.179.121.44]) by mx1.freebsd.org (Postfix) with ESMTP id 951BA1035 for ; Tue, 8 Sep 2015 09:03:30 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from edge02.upcmail.net ([192.168.13.237]) by viefep24-int.chello.at (InterMail vM.8.01.05.21 201-2260-151-156-20141103) with ESMTP id <20150908090323.BSKU18233.viefep24-int.chello.at@edge02.upcmail.net> for ; Tue, 8 Sep 2015 11:03:23 +0200 Received: from [192.168.1.160] ([86.101.30.40]) by edge02.upcmail.net with edge id EZ3M1r01c0rw6r201Z3NU4; Tue, 08 Sep 2015 11:03:22 +0200 X-SourceIP: 86.101.30.40 To: freebsd-questions@freebsd.org From: =?UTF-8?Q?Nagy_L=c3=a1szl=c3=b3_Zsolt?= Subject: Let pkg upgrade packages that were installed from binary only? Message-ID: <55EEA459.1050304@shopzeus.com> Date: Tue, 8 Sep 2015 11:03:21 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Sep 2015 09:03:32 -0000 Hi, I had to install a 10.2-RELEASE with binary packages. Everything is fine, except that I have to use postgresql94-server and postgresql94-client instead of version 9.3. When I tried to install the required packages, then I relaized that the binary compiled php5-pgsql package depends on postgresql 9.3 instead of 9.4. Which is fine, because I understand that is the default. So I installed php5-pgsql from the ports tree. It compiled fine with postgresql 9.4 client libs. I had to do the same with some others: pecl-intl pecl-dba pecl-intl petcl-imagick Here comes the tricky part. I would like to update my (binary) packages. If I do "pkg update; pkg upgrade" then I see this: New packages to be INSTALLED: ImageMagick-nox11: 6.9.1.6,1 ghostscript9-nox11: 9.06_11 libwmf-nox11: 0.2.8.4_15 postgresql93-client: 9.3.9 php56: 5.6.12 php56-mbstring: 5.6.12 Installed packages to be UPGRADED: libwmf: 0.2.8.4_14 -> 0.2.8.4_15 Installed packages to be REINSTALLED: php5-pgsql-5.4.44 (direct dependency changed: postgresql93-client) php5-dba-5.4.44 (options changed) pecl-mailparse-2.1.6 (direct dependency changed: php56) pecl-intl-3.0.0_2 (direct dependency changed: php56) pecl-imagick-3.1.2_2 (direct dependency changed: php56) So pkg wants to reinstall php5-pgsql, and it thinks that "direct dependency changed: postgresql93-client". My problem is this: php5-pgsql may work with postgresql client 9.3, but I have already compiled it against postgresql94-client. Can I upgrade php5-pgsql from the ports, and upgrade all the other packages from binary? The postgresql93-client should not be installed at all, because it should not be a dependency. Same is true with php56 and php56-mbstring - pkg wants to add them because it sees that the binary version of pecl-intl was compiled against php56. But in fact I do not have the binary versions installed - I have installed them from the ports tree, and my versions are compiled against php55. So is there a way to tell "pkg" that it should not automatically install dependencies from packages that were installed from the ports tree? In this case all it should do is to upgrade libwmf. Of course I can always check the plan and do the upgrades manually. But can this be automatized somehow? Thanks, Laszlo