Date: Fri, 23 Apr 2010 10:14:01 -0400 From: jhell <jhell@dataix.net> To: Andrea Venturoli <ml@netfence.it> Cc: Doug Barton <dougb@freebsd.org>, freebsd-ports@freebsd.org Subject: Re: GMP change Message-ID: <4BD1AB29.7000405@dataix.net> In-Reply-To: <4BD01720.6020103@netfence.it> References: <4BD01720.6020103@netfence.it>
next in thread | previous in thread | raw e-mail | index | archive | help
On 04/22/2010 05:30, Andrea Venturoli wrote: > Hello. > > From UPDATING: > >> 20100419: >> AFFECTS: users of math/libgmp4 >> AUTHOR: ale@FreeBSD.org >> >> The default gmp version in FreeBSD is now 5.0.x. The port directory >> changed >> from math/libgmp4 to math/gmp. An entry has been added in MOVED and all >> depending ports have been bumped, so the update should be handled >> correctly by common ports management tools, like portmaster and >> portupgrade. > > > > However: > >> # portupgrade -R kdeutils >> [Gathering depends for misc/kdeutils3 >> ........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ >> done] >> [Exclude up-to-date packages >> .............................................................................................................................................................................................................................. >> done] >> ---> Upgrading 'kdeutils-3.5.10_4' to 'kdeutils-3.5.10_5' >> (misc/kdeutils3) >> ---> Building '/usr/ports/misc/kdeutils3' >> ===> Cleaning for kdeutils-3.5.10_5 >> ===> Extracting for kdeutils-3.5.10_5 >> => MD5 Checksum OK for KDE/kdeutils-3.5.10.tar.bz2. >> => SHA256 Checksum OK for KDE/kdeutils-3.5.10.tar.bz2. >> ===> Patching for kdeutils-3.5.10_5 >> ===> Applying FreeBSD patches for kdeutils-3.5.10_5 >> /usr/bin/sed -i.bak -e 's|>tar<|>gtar<|g' >> /usr/local/local/storage/alamartmp/usr/ports/misc/kdeutils3/work/kdeutils-3.5.10/ark/ark.kcfg >> >> /usr/bin/sed -i.bak -e 's|%%PYTHON_VER%%|2.6|g' -e >> 's|%%LTMAIN%%|/usr/local/share/libtool/config/ltmain.sh|g' -e >> 's|%%LIBTOOL%%|/usr/local/bin/libtool|g' >> /usr/local/local/storage/alamartmp/usr/ports/misc/kdeutils3/work/kdeutils-3.5.10/configure >> >> ===> kdeutils-3.5.10_5 depends on file: /usr/local/bin/python2.6 - >> found >> ===> kdeutils-3.5.10_5 depends on file: /usr/local/bin/moc - found >> ===> kdeutils-3.5.10_5 depends on executable: gmake - found >> ===> kdeutils-3.5.10_5 depends on package: libtool>=2.2 - found >> ===> kdeutils-3.5.10_5 depends on shared library: gmp.10 - not found >> ===> Verifying install for gmp.10 in /usr/ports/math/gmp >> >> ===> gmp-5.0.1 conflicts with installed package(s): >> libgmp-4.3.2 >> >> They install files into the same place. >> Please remove them first with pkg_delete(1). >> *** Error code 1 >> >> Stop in /usr/ports/math/gmp. >> *** Error code 1 >> >> Stop in /usr/ports/math/gmp. >> *** Error code 1 >> >> Stop in /usr/ports/misc/kdeutils3. >> ** Command failed [exit code 1]: /usr/bin/script -qa >> /tmp/portupgrade20100422-49524-vco75w-0 env UPGRADE_TOOL=portupgrade >> UPGRADE_PORT=kdeutils-3.5.10_4 UPGRADE_PORT_VER=3.5.10_4 make >> ** Fix the problem and try again. >> ** Listing the failed packages (-:ignored / *:skipped / !:failed) >> ! misc/kdeutils3 (kdeutils-3.5.10_4) (unknown build error) > > > > Since this machine is quite slow, I thought I'd ask for hints, before > doing a days-long trial & error procedure :-) > > BTW: > >> # pkg_info -R libgmp\* >> Information for libgmp-4.3.2: >> >> Required by: >> gcc-4.3.5.20091227 >> kdemultimedia-3.5.10_4 >> kdeutils-3.5.10_4 >> libao-0.8.8_1 >> mpfr-2.4.2 >> superkaramba-lwp-15.0_5 >> vorbis-tools-1.2.0_6,3 > > > > > bye & Thanks > av. 1. Comment out the CONFLICTS line in math/gmp/Makefile 2. run ( make ) 3. pkg_delete -d -f libgmp\* 4. run ( make install ) 5. add "libgmp.so.8 libgmp.so.10" to /etc/libmap.conf 6. upgrade the rest of your packages. 7. Use sysutils/libchk or something similar to check for broken binaries and upgrade them appropriately. 8. remove step [5] from /etc/libmap.conf 9. Uncomment the CONFLICTS line in math/gmp/Makefile from step [1] Step 5 will at least leave some of your binaries in operable condition until you get all of them upgraded. Of course you could skip that and copy libgmp.so.8 to some other lib directory and skip step 5 but I prefer personally not to do that because it effects the checks that sysutils/libchk does for unreferenced libs. Doug, You mentioned in your reply that portmaster already sets DISABLE_CONFLICTS=1 for -o in version 2.22. Does it also do this while the -r flag has been specified and thus enabling that while upgrading recursively ? or does it drop the DISABLE_CONFLICTS variable after the port that was specified after the -o flag has been upgraded ? Regards, -- jhell
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BD1AB29.7000405>