From owner-freebsd-questions@FreeBSD.ORG Thu May 24 16:38:04 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4DDE5106566C for ; Thu, 24 May 2012 16:38:04 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (nightmare.dreamchaser.org [12.32.44.142]) by mx1.freebsd.org (Postfix) with ESMTP id DC0B28FC21 for ; Thu, 24 May 2012 16:38:03 +0000 (UTC) Received: from breakaway.dreamchaser.org (breakaway.dreamchaser.org. [12.32.36.73]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id q4OGc2FS017093 for ; Thu, 24 May 2012 10:38:02 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Message-ID: <4FBE63EA.9030904@dreamchaser.org> Date: Thu, 24 May 2012 10:38:02 -0600 From: Gary Aitken User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20111228 Thunderbird/9.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4FBBF32D.9070505@dreamchaser.org> <20120522234510.a406941d.goksin.akdeniz@gmail.com> <4FBD7BA0.7070502@dreamchaser.org> <4FBD97B2.9000408@dreamchaser.org> In-Reply-To: <4FBD97B2.9000408@dreamchaser.org> Content-Type: text/plain; charset=ISO-8859-9; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [12.32.36.65]); Thu, 24 May 2012 10:38:02 -0600 (MDT) Subject: multiple versions of pcre needed with pkgs and ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@dreamchaser.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 May 2012 16:38:04 -0000 I had an old version of ports and installed xorg and gnome2-lite using pkg_add. Then tried to build (make) openoffice-3. The make croaked with some missing java licensing files which were old. So... I updated the ports tree via portsnap fetch portsnap extract portsnap update Following that, an attempt to make openoffice-3 croaks because xorg and gnome2-lite installed pcre-8.20 and the oo make requires pcre-8.30_2. Deleted packages using pkg_delete -drv pcre-8.20 Reinstalled xorg using pkg_add, which unfortunately reinstalled pcre-8.20. I was expecting it to pick up the more recent one. I expected the portsnap update to update packages to a point where they would be using the more recent pcre. Questions: 1. If a package depends on an old version of another package, is it generally supposed to work with a newer version? 2. Will the xorg package work with pcre-8.30_2 if I install that first? If not, should building the port instead work? 3. I tried doing pkg_delete -f pcre-8.20 cd devel/pcre make (built 8.30_2) make install X still came up but gnome2 didn't. I'm pretty sure core x doesn't require pcre, but whatever part of the xorg package that does use it will croak when the time comes. 4. As a result of 3, are the dependency counts in the package registration process all screwed up? 5. If packages depending on older versions of pcre won't work with a newer version and a different port requires a newer version, how do you accomplish that? Will building the older port, instead of installing the package for it, generally allow the older port and the one requiring the newer version of pcre to co-exist? 6. What am I doing wrong? Surely there's a way to get both xorg and oo on the same system... Side issue: The pkg_delete occasionally stopped to ask whether or not to delete a file with mode 555. Despite being nervous about it, I said yes and it seemed to cause no problems. Any particular reason these are installed 555, since they are part of an add-on package? Don't have the names, unfortunately. Thanks for any insights, Gary