Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Aug 2004 23:49:31 +0300 (EEST)
From:      "Vladimir I. Chukharev" <chu@h33.erkki.ton.tut.fi>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/70802: portupgrade cannot find downloaded package
Message-ID:  <200408212049.i7LKnVrZ005066@h33.erkki.ton.tut.fi>
Resent-Message-ID: <200408212050.i7LKoQVB084729@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         70802
>Category:       ports
>Synopsis:       portupgrade cannot find downloaded package
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 21 20:50:25 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Vladimir I. Chukharev
>Release:        FreeBSD 4.10-STABLE i386
>Organization:
>Environment:
System: FreeBSD svak.h33.erkki.ton.tut.fi 4.10-STABLE FreeBSD 4.10-STABLE #1: Wed Aug 4 23:05:54 EEST 2004 root@svak.h33.erkki.ton.tut.fi:/usr/obj/usr/src/sys/SVAK i38


>Description:

portupgrade in general works very well, I like it really much. I like
the option -P, it saves a lot of time of compilation for many ports.
But sometimes this option leads to an error. The package is correctly
downloaded, but the program cannot find (stat) it. Manual run of pkg_add
with the filename indicated by portupgrade normally adds the package.

Below is an example of the described situation (cut&paste). 
gcc-3.4 package was downloaded by portupgrade, but not installed, 
and pkd_add installs the package, as we can see from pkg_info later.

I do not understand, why the program in some (not shown) cases finds 
the downloaded file, and in other cases it does not...



chu@svak:~ 23:02:13 $  sudo nice portupgrade -o gcc-3.2.3_1 -NP lang/gcc34
Password:
--->  Checking for the latest package of 'lang/gcc34'
--->  Fetching the package(s) for 'gcc-3.4.2_20040806' (lang/gcc34)
--->  Fetching gcc-3.4.2_20040806
fetch: http://bento.FreeBSD.org/errorlogs/i386-packages-4-latest/All/gcc-3.4.2_20040806.tgz: Not Found
** The command returned a non-zero exit status: 1
** Failed to fetch http://bento.FreeBSD.org/errorlogs/i386-packages-4-latest/All/gcc-3.4.2_20040806.tgz
fetch: http://bento.FreeBSD.org/errorlogs/i386-packages-4-latest/All/gcc-3.4.2_20040806.tbz: Not Found
** The command returned a non-zero exit status: 1
** Failed to fetch http://bento.FreeBSD.org/errorlogs/i386-packages-4-latest/All/gcc-3.4.2_20040806.tbz
fetch: http://bento.FreeBSD.org/errorlogs/i386-packages-4-full/All/gcc-3.4.2_20040806.tgz: Not Found
** The command returned a non-zero exit status: 1
** Failed to fetch http://bento.FreeBSD.org/errorlogs/i386-packages-4-full/All/gcc-3.4.2_20040806.tgz
fetch: http://bento.FreeBSD.org/errorlogs/i386-packages-4-full/All/gcc-3.4.2_20040806.tbz: Not Found
** The command returned a non-zero exit status: 1
** Failed to fetch http://bento.FreeBSD.org/errorlogs/i386-packages-4-full/All/gcc-3.4.2_20040806.tbz
/var/tmp/gcc-3.4.2_20040806.tgz               100% of   46 MB  163 kBps 00m00s
--->  Downloaded as gcc-3.4.2_20040806.tgz
--->  Identifying the package /var/tmp/gcc-3.4.2_20040806.tgz
--->  Saved as /usr/ports/packages/All/gcc-3.4.2_20040806.tgz
--->  Found a package of 'lang/gcc34': gcc-3.4.2_20040806.tgz (gcc-3.4.2_20040806)
--->  Located a package version 3.4.2_20040806 (gcc-3.4.2_20040806.tgz)
--->  Installing 'gcc-3.4.2_20040806' from a package
pkg_info: can't find package 'gcc-3.4.2_20040806.tgz' installed or in a file!
--->  Installing the new version via the package
pkg_add: can't stat package file 'gcc-3.4.2_20040806'
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade15780.0 /usr/sbin/pkg_add -f gcc-3.4.2_20040806
** Fix the package's problem and try again.
** Listing the failed packages (*:skipped / !:failed)
        ! lang/gcc34    (pkg_add failed)
--->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
chu@svak:~ 23:08:39 $ sudo pkg_add /usr/ports/packages/All/gcc-3.4.2_20040806.tgz
Password:
chu@svak:~ 23:13:08 $ sudo pkgdb -u
--->  Updating the pkgdb
[Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 635 packages found (-0 +1) . done]
chu@svak:~ 23:13:26 $ sudo pkgdb -F
--->  Checking the package registry database
chu@svak:~ 23:13:50 $ pkg_info gcc*
Information for gcc-3.2.3_1:

Comment:
GNU Compiler Collection 3.2.3


Description:
GCC, the GNU Compiler Collection includes gcc, g++, gcj, and g77.

This port installs the various front ends as gcc32, g++32, gcj32,
and g77-32 into the ${PREFIX}/bin directory.

WWW: http://gcc.gnu.org/

- Gerald Pfeifer
gerald@FreeBSD.org



Information for gcc-3.4.2_20040806:

Comment:
GNU Compiler Collection 3.4


Description:
GCC, the GNU Compiler Collection includes gcc, g++, gcj, and g77.

This port installs the various front ends as gcc34, g++34, gcj34,
and g77-34 into the ${PREFIX}/bin directory.

WWW: http://gcc.gnu.org/



chu@svak:~ 23:16:28 $


Best regards,
V. Chukharev

>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:



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