From owner-freebsd-questions@FreeBSD.ORG Sun Oct 8 12:17:32 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E2B6416A5C7 for ; Sun, 8 Oct 2006 12:17:32 +0000 (UTC) (envelope-from norgaard@locolomo.org) Received: from strange.daemonsecurity.com (59.Red-81-33-11.staticIP.rima-tde.net [81.33.11.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id B73DB44065 for ; Sun, 8 Oct 2006 12:15:13 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from [10.35.4.65] (65.4-35-10-static.chueca.wifi [10.35.4.65]) by strange.daemonsecurity.com (Postfix) with ESMTP id 507EF2E037; Sun, 8 Oct 2006 14:15:00 +0200 (CEST) Message-ID: <4528EB74.3060401@locolomo.org> Date: Sun, 08 Oct 2006 14:13:40 +0200 From: Erik Norgaard User-Agent: Thunderbird 1.5.0.7 (X11/20060916) MIME-Version: 1.0 To: Zbigniew Szalbot References: <20061008130817.G95896@192.168.11.51> In-Reply-To: <20061008130817.G95896@192.168.11.51> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: cvsup and portupgrade 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: Sun, 08 Oct 2006 12:17:33 -0000 Zbigniew Szalbot wrote: > I am relatively new to FreeBSD. I use FreeBSD 6.1 stable release. I have > enabled portaudit and as a result now get reports about known > vulnarabilities. The problem I have encountered is this. I am trying to > update php and python and do it by first refreshing the ports tree by > using cvsup and then I cd to the appropriate port and issue portupgarde. > > However, in both cases (php and python) I get an error. example pasted > below: > > $ sudo portupgrade > ---> Upgrading 'python-2.4.3' to 'python-2.4.3_1' (lang/python) > ---> Building '/usr/ports/lang/python' > ===> Cleaning for python-2.4.3_1 > ===> python-2.4.3_1 has known vulnerabilities: > => python -- buffer overrun in repr() for unicode strings. > Reference: > > => Please update your ports tree and try again. > *** Error code 1 > > Stop in /usr/ports/lang/python. > ** Command failed [exit code 1]: /usr/bin/script -qa > /tmp/portupgrade.95983.0 env PORT_UPGRADE=yes make > ** Fix the problem and try again. > ** Listing the failed packages (*:skipped / !:failed) > ! lang/python (python-2.4.3) (unknown build error) > ---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed > > I would really appreciate if someone told me where I go wrong and what I > should do to upgrade both software pieces. I understand that the problem > is somewhere around not really getting the python version I should, but > what can I do to fix it? I just csup'ed my ports tree and ran make on python without any problem. portupgrade is a convenient tool but sometimes it fail for whatever reason, no idea in your case. You can always upgrade manually with: # make && make deinstall && make install clean I always run make before deinstalling, it's quite inconvenient to deinstall if you then have problems building the new version. Cheers, Erik -- Ph: +34.666334818 web: http://www.locolomo.org X.509 Certificate: http://www.locolomo.org/crt/8D03551FFCE04F0C.crt Key ID: 69:79:B8:2C:E3:8F:E7:BE:5D:C3:C3:B1:74:62:B8:3F:9F:1F:69:B9