From owner-svn-ports-all@freebsd.org Fri Jun 29 14:08:42 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 700DFEF8B88; Fri, 29 Jun 2018 14:08:42 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1BB078C8F6; Fri, 29 Jun 2018 14:08:42 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id EBA9A21D6F; Fri, 29 Jun 2018 14:08:41 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w5TE8fAI097157; Fri, 29 Jun 2018 14:08:41 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w5TE8fTE097153; Fri, 29 Jun 2018 14:08:41 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201806291408.w5TE8fTE097153@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Fri, 29 Jun 2018 14:08:41 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r473550 - in head/lang: perl5-devel perl5.24 perl5.26 perl5.28 X-SVN-Group: ports-head X-SVN-Commit-Author: mat X-SVN-Commit-Paths: in head/lang: perl5-devel perl5.24 perl5.26 perl5.28 X-SVN-Commit-Revision: 473550 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2018 14:08:42 -0000 Author: mat Date: Fri Jun 29 14:08:40 2018 New Revision: 473550 URL: https://svnweb.freebsd.org/changeset/ports/473550 Log: Make a note about why this hack is required. Here is the story: - Default Perl is 5.24. - You install stuff, and have Perl 5.24. - The default Perl is changed to 5.26 because it was time. - You do not really follow those things and are not using pkg (and possibly poudriere) to maintain your /usr/local and you run portmaster to update what needs to be updated. - As you did not set anything, your Perl default is still 5.24 because it is the installed /usr/local/bin/perl. - Turns out that there has been a new version of lang/perl5.24 in the mean time, and portmaster updates it. Keep in mind that the only thing that makes 5.24 the default is that it is the installed version you have. If you did not have it installed, the default would be 5.26. - portmaster builds the new perl 5.24, and before it installs it, it needs to remove the old version. - now, you do not have any Perl installed, so the default falls back to 5.26. - portmaster installs perl 5.24 it just built, but as it is not the default any pore, it will not install /usr/local/bin/perl, and everything using Perl on your system is toast, you spend countless hours not understanding wtf happened. You end up rebuilding everything with 5.26. PR: 227356 Sponsored by: Absolight Modified: head/lang/perl5-devel/Makefile (contents, props changed) head/lang/perl5.24/Makefile (contents, props changed) head/lang/perl5.26/Makefile (contents, props changed) head/lang/perl5.28/Makefile (contents, props changed) Modified: head/lang/perl5-devel/Makefile ============================================================================== --- head/lang/perl5-devel/Makefile Fri Jun 29 13:37:54 2018 (r473549) +++ head/lang/perl5-devel/Makefile Fri Jun 29 14:08:40 2018 (r473550) @@ -184,6 +184,8 @@ PLIST_SUB+= PERL_VERSION=${PERL_VERSION} \ # XXX Remove and change to PERL_VERSION in the plist. PLIST_SUB+= LIBPERL_VER=${LIBPERL_VER} +# Why this is required is explained in: +# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227356#c5 _PERL5_DEFAULT_FILE= /tmp/PERL5_DEFAULT # Get the default version, and possibly, overwrite it. Modified: head/lang/perl5.24/Makefile ============================================================================== --- head/lang/perl5.24/Makefile Fri Jun 29 13:37:54 2018 (r473549) +++ head/lang/perl5.24/Makefile Fri Jun 29 14:08:40 2018 (r473550) @@ -158,6 +158,8 @@ PLIST_SUB+= PERL_VERSION=${PERL_VERSION} \ PKGNAMESUFFIX=${PKGNAMESUFFIX} \ ARCH_LIB=${_ARCH_LIB} +# Why this is required is explained in: +# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227356#c5 _PERL5_DEFAULT_FILE= /tmp/PERL5_DEFAULT # Get the default version, and possibly, overwrite it. Modified: head/lang/perl5.26/Makefile ============================================================================== --- head/lang/perl5.26/Makefile Fri Jun 29 13:37:54 2018 (r473549) +++ head/lang/perl5.26/Makefile Fri Jun 29 14:08:40 2018 (r473550) @@ -159,6 +159,8 @@ PLIST_SUB+= PERL_VERSION=${PERL_VERSION} \ PKGNAMESUFFIX=${PKGNAMESUFFIX} \ ARCH_LIB=${_ARCH_LIB} +# Why this is required is explained in: +# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227356#c5 _PERL5_DEFAULT_FILE= /tmp/PERL5_DEFAULT # Get the default version, and possibly, overwrite it. Modified: head/lang/perl5.28/Makefile ============================================================================== --- head/lang/perl5.28/Makefile Fri Jun 29 13:37:54 2018 (r473549) +++ head/lang/perl5.28/Makefile Fri Jun 29 14:08:40 2018 (r473550) @@ -160,6 +160,8 @@ PLIST_SUB+= PERL_VERSION=${PERL_VERSION} \ PKGNAMESUFFIX=${PKGNAMESUFFIX} \ ARCH_LIB=${_ARCH_LIB} +# Why this is required is explained in: +# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227356#c5 _PERL5_DEFAULT_FILE= /tmp/PERL5_DEFAULT # Get the default version, and possibly, overwrite it.