Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Dec 2013 21:27:49 +0100
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        Eygene Ryabinkin <rea@freebsd.org>
Cc:        svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, ports-committers@freebsd.org
Subject:   Re: svn commit: r326307 - in head: . Mk Mk/Uses archivers/rpm archivers/unrar archivers/unrar-iconv archivers/unzip audio/julius audio/mp3unicode audio/mpc audio/mpiosh audio/mpiosh/files audio/osd-lyr...
Message-ID:  <52AE10C5.2070800@FreeBSD.org>
In-Reply-To: <rPjS0dCkOXQwLs9s6PofV/p/GT4@Edl7HbwHujl6CRBF88MhHM/peE4>
References:  <201309041806.r84I680e048857@svn.freebsd.org> <czUZEkbivVxkY5vmYTxYHOhjVJ4@W4hAcbyY3boCl2ecg4/u9JA8hSY> <52AC6B4A.2080407@FreeBSD.org> <rPjS0dCkOXQwLs9s6PofV/p/GT4@Edl7HbwHujl6CRBF88MhHM/peE4>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12/15/13 16:34, Eygene Ryabinkin wrote:
> Sat, Dec 14, 2013 at 03:29:30PM +0100, Guido Falsi wrote:
>> That said, Your solution of renaming iconv.h could be a good idea I did
>> not think about.
>>
>> Let me understand exactly; you used a procedure like this:
>>
>> 1) mv /usr/local/include/iconv.h /usr/local/include/iconv.h.old
>> 2a) portupgrade -af		(I'm not using portupgrade, please confirm correct
>> syntax)
>> 2b) portmaster -af
>
> Actually, it was a bit different one:
>   - get a fresh copy of ports tree;
>   - 'portupgrade -a' to get the latest versions of all ports;
>     was patched libiconv's Makefile to omit IGNORE;
>   - mv /usr/local/include/iconv.h /usr/local/include/iconv.h.old
>   - 'portupgrade -fa -x libiconv'
>   - pkg delete libiconv
>
> First two phases were done to make sure that "portupgrade -fa" won't
> really upgrade anything, but will just reinstall with all port being
> up to date (so there are no unbuildable ports).  I am often sync the
> ports tree to upgrade just one or two ports, so it could be just my
> local dance that isn't nessessary.
>
> I'll try to upgrade my primary workstation with just
>   - mv /usr/local/include/iconv.h /usr/local/include/iconv.h.old
>   - 'portupgrade -fa -x libiconv'
>   - pkg delete libiconv
> and will report the outcome.

A better way to preserve old iconv is to save it in 
/usr/local/lib/compat/pkg then remove the port. It' almost the same as 
removing the iconv.h file imho.

so doing:

- cp /usr/local/lib/libiconv* /usr/local/lib/compat/pkg/
- pkg delete -f libiconv
- portupgrade -fa -x libiconv

should work the same, and should avoid references to the libiconv port 
from surviving in the pkgng database.

Are you able to test this procedure too?

I can try building a test jail for this, but that wouldn't be a good 
testcase, a live system which has been updated for months/years with 
hundreds of ports is quite different from a  test jail with just a bunch 
of freshly installed ports.

-- 
Guido Falsi <madpilot@FreeBSD.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52AE10C5.2070800>