Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Aug 2015 12:27:09 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 202384] ports-mgmt/portupgrade: -PP fails using pkg
Message-ID:  <bug-202384-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202384

            Bug ID: 202384
           Summary: ports-mgmt/portupgrade: -PP fails using pkg
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: bdrewery@FreeBSD.org
          Reporter: freebsd-ports@charlieroot.de
             Flags: maintainer-feedback?(bdrewery@FreeBSD.org)
          Assignee: bdrewery@FreeBSD.org

When I try to portupgrade with pkg I receive a fetch error. Running the invoked
command manually fetches the package properly. Tested on 2 installations, both
10.1-RELEASE.

[helmut@BSDHelmut ~]$ sudo portupgrade -PPv perl5-5.20.2_5
--->  Session started at: Mon, 17 Aug 2015 13:32:35 +0200
[Reading data from pkg(8) ... - 346 packages found - done]
--->  Checking for the latest package of 'lang/perl5.20'
--->  Found a package of 'lang/perl5.20':
/usr/ports/packages/All/perl5-5.20.2_5.txz (perl5-5.20.2_5)
--->  Fetching the package(s) for 'perl5-5.20.2_6' (lang/perl5.20)
Updating MyRepo repository catalogue...
MyRepo repository is up-to-date.
All repositories are up-to-date.
[Reading data from pkg(8) ... - 346 packages found - done]
--->  Fetching perl5-5.20.2_6
--->  Invoking a command: /usr/local/sbin/pkg fetch -U -y -o
'/var/tmp/portupgradeTzsTpMQb' 'perl5-5.20.2_6'
The following packages will be fetched:

New packages to be FETCHED:
        perl5-5.20.2_6 (100.00% of 13 MiB: 13 MiB)

The process will require 13 MiB more space.
13 MiB to be downloaded.
Fetching perl5-5.20.2_6.txz: 100%   13 MiB  13.8MB/s    00:01
** Failed to fetch perl5-5.20.2_6.txz
** Failed to fetch perl5-5.20.2_6
--->  Listing the results (+:done / -:ignored / *:skipped / !:failed)
        ! perl5-5.20.2_6        (fetch error)
--->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
--->  Found a package of 'lang/perl5.20':
/usr/ports/packages/All/perl5-5.20.2_5.txz (perl5-5.20.2_5)
--->  Located a package version 5.20.2_5
(/usr/ports/packages/All/perl5-5.20.2_5.txz)
** Ignoring the package, which is the same version as is installed (5.20.2_5)
** No package available: lang/perl5.20
--->  ** Upgrade tasks 1: 0 done, 0 ignored, 0 skipped and 1 failed
--->  Listing the results (+:done / -:ignored / *:skipped / !:failed)
        ! lang/perl5.20 (perl5-5.20.2_5)        (package not found)
--->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
--->  Session ended at: Mon, 17 Aug 2015 13:32:39 +0200 (consumed 00:00:03)
[helmut@BSDHelmut ~]$ /usr/local/sbin/pkg fetch -U -y -o
/var/tmp/portupgradeTzsTpMQb perl5-5.20.2_6
The following packages will be fetched:

New packages to be FETCHED:
        perl5-5.20.2_6 (100.00% of 13 MiB: 13 MiB)

The process will require 13 MiB more space.
13 MiB to be downloaded.
Fetching perl5-5.20.2_6.txz: 100%   13 MiB  13.8MB/s    00:01
[helmut@BSDHelmut ~]$ ls -la /var/tmp/portupgradeTzsTpMQb/
total 13480
drwxr-xr-x   2 helmut  wheel       512 Aug 17 13:32 .
drwxrwxrwt  12 root    wheel       512 Aug 17 13:32 ..
-rw-r--r--   1 helmut  wheel  13754532 Aug 17 13:05 perl5-5.20.2_6.txz
[helmut@BSDHelmut ~]$ sudo /usr/local/sbin/pkg install
/var/tmp/portupgradeTzsTpMQb/perl5-5.20.2_6.txz
Updating MyRepo repository catalogue...
MyRepo repository is up-to-date.
All repositories are up-to-date.
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        perl5: 5.20.2_6

The process will require 49 MiB more space.

Proceed with this action? [y/N]: y
[1/1] Installing perl5-5.20.2_6...
[1/1] Extracting perl5-5.20.2_6: 100%
Message for perl5-5.20.2_6:
The /usr/bin/perl symlink has been removed starting with Perl 5.20.
For shebangs, you should either use:

#!/usr/local/bin/perl

or

#!/usr/bin/env perl

The first one will only work if you have a /usr/local/bin/perl,
the second will work as long as perl is in PATH.
[helmut@BSDHelmut ~]$ uname -a
FreeBSD BSDHelmut.charlieroot.de 10.1-RELEASE-p10 FreeBSD 10.1-RELEASE-p10 #1
r283138: Wed May 20 12:14:31 CEST 2015    
root@BSDHelmut1064.charlieroot.de:/usr/obj/usr/src/sys/GENERIC-PF-ALTQ  amd64
[helmut@BSDHelmut ~]$

-- 
You are receiving this mail because:
You are the assignee for the bug.



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