From owner-freebsd-ports@FreeBSD.ORG Fri Apr 23 14:14:06 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67202106566B; Fri, 23 Apr 2010 14:14:06 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.221.181]) by mx1.freebsd.org (Postfix) with ESMTP id 0402D8FC15; Fri, 23 Apr 2010 14:14:05 +0000 (UTC) Received: by qyk11 with SMTP id 11so11488744qyk.13 for ; Fri, 23 Apr 2010 07:14:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=sxMibZnh7IuSyOvMt000cOjjPFz9WE22mpYFtR40Yo0=; b=bgloyFWjtgzPpZhzm3dwVqlRzjhdbx5t0Cf3+y7FeOxCO4ZZ/kWAeikunMWBds7d1U IPkbeY7hfBeepzZ4Dcy5b6XZEQosa+ARgV98FFWwl1tEDDI+XAPzzEsqyYlK9uomCUhL LT45xcqrHDpPiGbh3WgvawIt1fkNqB2jpjncQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=Rw1wppVoHYtOVqWlJpdH7lT6HcaS+TBnhc/rCnNA8s3gBptDeBK+fugPOyNydyHuUv IguhFbGrOqT6QmXVZhzwNCFgaIootJ97PRqwl8XyPGem0KPRowTz6iizxhTWCqqjyhJf ncJerfb4Gi/gz13JWE3gEyRXhgHURB1KQPnBU= Received: by 10.224.55.65 with SMTP id t1mr16001qag.313.1272032044761; Fri, 23 Apr 2010 07:14:04 -0700 (PDT) Received: from centel.dataix.local (c-71-205-129-194.hsd1.mi.comcast.net [71.205.129.194]) by mx.google.com with ESMTPS id 7sm3921472qwb.44.2010.04.23.07.14.02 (version=SSLv3 cipher=RC4-MD5); Fri, 23 Apr 2010 07:14:03 -0700 (PDT) Sender: "J. Hellenthal" Message-ID: <4BD1AB29.7000405@dataix.net> Date: Fri, 23 Apr 2010 10:14:01 -0400 From: jhell User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.9) Gecko/20100331 Thunderbird/3.0.4 MIME-Version: 1.0 To: Andrea Venturoli References: <4BD01720.6020103@netfence.it> In-Reply-To: <4BD01720.6020103@netfence.it> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Doug Barton , freebsd-ports@freebsd.org Subject: Re: GMP change X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Apr 2010 14:14:06 -0000 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