Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Nov 2011 20:40:44 +0200
From:      Kaya Saman <kayasaman@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: Strange issues while upgrading ports
Message-ID:  <4ED2842C.7050405@gmail.com>
In-Reply-To: <20111127080136.7e2f0d0a@scorpio>
References:  <4ECF9B06.1090602@gmail.com> <201111251506.pAPF609d081562@fire.js.berklix.net> <CADLo839CYHGgQXiw%2ByA5VogVhmC28oMP18g2njH_hTFLcZa6OA@mail.gmail.com> <4ED1B626.8010700@gmail.com> <CAN6yY1uBcYONV3FuFmUVKXCYJ_zfLCf-VJSkm%2B8QP6DQMZ5QHA@mail.gmail.com> <4ED22C20.90605@gmail.com> <20111127080136.7e2f0d0a@scorpio>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/27/2011 03:01 PM, Jerry wrote:
> On Sun, 27 Nov 2011 14:25:04 +0200
> Kaya Saman articulated:
>
>> On 11/27/2011 08:03 AM, Kevin Oberman wrote:
>>
>>> When it has been this long, you might want to completely delete and
>>> re-install all ports following the instructions in the portmaster
>>> man page examples. This will assure that EVERYTHING is properly
>>> cleaned up. No obsolete libraries, header files, data files, or
>>> anything else. It's the 11 step process and please read the
>>> relevant example in its entirety to make sure you don't waste too
>>> much time. If your system has a very large number of ports
>>> installed, consider using the -P option to use packages when they
>>> are available.
>>>
>>> I do see some ports that might benefit from CPU specific
>>> optimizations. If you feel that these are important, re-install
>>> these after you finish the basic re-installation.
>> I discovered in the UPDATING file that it claims the same thing:
>>
>> 20100409:
>>     AFFECTS: users of lang/php5
>>     AUTHOR: ale@FreeBSD.org
>>
>>     As of PHP 5.3, a few extensions were removed from or included into
>> the core
>>     PHP5 package.  Follow the steps below to update your installation.
>>
>>     1) Delete the following packages (if installed):
>>
>>        - php5-dbase
>>        - php5-ncurses
>>        - php5-pcre
>>        - php5-spl
>>        - php5-ming
>>        - php5-mhash
>>
>>     2) Rebuild lang/php5 and all ports that depend on it.
>>
>>
>> The only problem is how to go about it?
>>
>> I mean I have quite a few web based monitoring apps (cacti, zabbix,
>> munin, etc) which all depend on PHP5 + apache22 so am not really sure
>> if running:
>>
>> make deinstall on each port is wise.... especially since I don't want
>> the config files do be deleted (even though backed up) or backend
>> database information to be get lost either.
> That was quite a while ago; however, I remember simply deinstalling
> each of those ports. Then after updating the ports tree I ran
> "portmanager -u -l -y -p" to update and rebuild the ports as required.
> It works like a charm. I know others recommend "portupgrade" and I use
> that from time to time also but it just seems to fail to update all
> required ports sometimes in cases like this. Personally, "portmaster"
> always seems to get my ass in a sling when I have attempted to use it
> so I leave it alone. Obviously, YMMV.
>
> BTW, if you use "portmanager" you will find a log file
> "/var/log/portmanager.log" that will give you a complete list of what
> it did if you should experience any problems..
>
Ok I got this one worked out:


Officially I want to thank Kevin Oberman for his offline help too :-)


Basically I ran:


cd /usr/ports/*/php5-*
make deinstall
make install clean


---------------php5 sorted out!



Then:


cd /usr/ports/www/apache22
make deinstall

make install clean - came up with errors so here's the next step:

cat Makefile | more
- check the library dependencies

cd /usr/ports/*/{each lib depend}
make deinstall
make install clean

cd /usr/ports/www/apache22
make install clean


Then ran:

portmanager -u -l -y -p


and now the only errornous ports I have are these:

skipping squid-2.7.7 /www/squid marked IGNORE reason: failed during make
skipping libltdl-2.2.6a /devel/libltdl22 marked IGNORE reason: port 
marked IGNORE
skipping gtk-2.16.6 /x11-toolkits/gtk20 marked IGNORE reason: performed 
(6) emergancy restore
skipping oss-4.2.b2000 /audio/oss until dependency gtk-2.24.6 updated
skipping zabbix-1.6.6,1 /net-mgmt/zabbix marked IGNORE reason: failed 
during make
skipping mutt-1.4.2.3_3 /mail/mutt marked IGNORE reason: failed during make


Few!!! :-D all fine and installed - now to fix the rest.


Thanks everyone for all your help!!!!!!!!

I really appreciate that even though I felt like a total noobie but hey 
this is the first time I've ever updated/upgraded a FreeBSD system. My 
nerves were a bit on edge as there are many ports installed and I was 
quite worried that I was gona loose the installed config files as linux 
is quite prone to doing.

Anyway, with everyone's patience and effort everything went more or less 
smoothly and was in fact quite painless and quick :-)


Best Regards to all.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ED2842C.7050405>