From owner-freebsd-ports-bugs@freebsd.org Mon Aug 17 12:27:10 2015 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2B31C9B9969 for ; Mon, 17 Aug 2015 12:27:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 10D761665 for ; Mon, 17 Aug 2015 12:27:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id t7HCR9j9054165 for ; Mon, 17 Aug 2015 12:27:09 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 202384] ports-mgmt/portupgrade: -PP fails using pkg Date: Mon, 17 Aug 2015 12:27:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsd-ports@charlieroot.de X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bdrewery@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Aug 2015 12:27:10 -0000 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.