From owner-freebsd-questions@FreeBSD.ORG Sat Dec 3 12:28:01 2011 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 68D24106564A for ; Sat, 3 Dec 2011 12:28:01 +0000 (UTC) (envelope-from freebsd-questions@herveybayaustralia.com.au) Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33]) by mx1.freebsd.org (Postfix) with ESMTP id CE7A58FC16 for ; Sat, 3 Dec 2011 12:28:00 +0000 (UTC) Received: from laptop1.herveybayaustralia.com.au (laptop1.herveybayaustralia.com.au [192.168.0.179]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.unitedinsong.com.au (Postfix) with ESMTPSA id 0F9185C24 for ; Sat, 3 Dec 2011 22:40:21 +1000 (EST) Message-ID: <4EDA1531.4060609@herveybayaustralia.com.au> Date: Sat, 03 Dec 2011 22:25:21 +1000 From: Da Rock User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111109 Thunderbird/7.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4ED84C36.8090702@herveybayaustralia.com.au> <4ED8615C.1030100@herveybayaustralia.com.au> <20111202085116.abb3b125.freebsd@edvax.de> In-Reply-To: <20111202085116.abb3b125.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Installing an older version of a port X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2011 12:28:01 -0000 On 12/02/11 17:51, Polytropon wrote: > On Fri, 02 Dec 2011 15:25:48 +1000, Da Rock wrote: >> On 12/02/11 14:01, Adam Vande More wrote: >>> On Thu, Dec 1, 2011 at 9:55 PM, Da Rock >>> >> > wrote: >>> >>> I've never actually done this before, so I'm a little shaky on the >>> details. >>> >>> ffmpeg-0.7.7,1 doesn't work for my purposes: ffserver/ffmpeg >>> aren't communicating all that well- I'm still working out the >>> details, but essentially either or both are borked. I've been >>> working with the ffmpeg list to sort it out. >>> >>> FFmpeg-devel doesn't work either (for whatever reason- again >>> communicating upstream for support, although the maintainer might >>> put opencv as broken in that port), so I'm left with 0.7.6,1 which >>> does appear to work at this point. >>> >>> My question is this: how do I do this exactly? The dependencies >>> will require updating and could fail as well right? I tried a >>> pkg_create of the port and installing it where required, but it >>> requires pciids-20111002 and pciids-20111109 is installed (and >>> probably required by other ports). How can I install the older >>> version without breaking things (at least too much- I can fix >>> things but there is usually always a limit)? >>> >>> My system is 8.1-RELEASE-p1 FreeBSD 8.1-RELEASE-p1 #1: Sun Mar 13 >>> 08:45:42 EST 2011 /usr/obj/usr/src/sys/MEDIA amd64. I have >>> portupgrade and updated to the latest ports (apparently that is >>> the problem- although I've only been fiddling with ffmpeg and it >>> is not in production with my project task per se). >>> >>> >>> http://www.oldports.org/data/ >> I already have a copy of the port required as a pkg, but how do I handle >> the dependencies? > You can also use the "portdowngrade" tool to checkout > an older version of a port. I had success getting something > to work again that has been "modernized" (and disimproved > for that matter). :-) > > For the dependencies: > > In most cases, it works like this: Determine the port's > dependencies and install the current versions (e. g. of > other programs it depends on, or libraries). Typically, > they are "downward compatible", for example if the port > requires libfoobar-1.4, but 1.5 is the current version > in ports, install it, and it will still work. In worst > case you have to manually add a symlink for the shared > library libfoobar-1.4@ -> libfoobar-1.5 so the program > can "pick it by version number". > > Of course, this might sound strange if one takes the > initial ideas of shared libraries and their versioning > into mind. :-) > Wow! That is really cool. It never occurred to me that there'd be a portdowngrade tool- it's worked like a charm so far. The dependencies sorted themselves out nicely at the end of it too. I'll put that one in my notes... :) Cheers