cvsup and portupgrade
Erik Norgaard
norgaard at locolomo.org
Sun Oct 8 05:17:33 PDT 2006
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:
> <http://www.FreeBSD.org/ports/portaudit/fe83eb5b-55e1-11db-a5ae-00508d6a62df.html>
> => 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
More information about the freebsd-questions
mailing list