develooper Front page | perl.perl5.porters | Postings from October 2015

[perl #126468] [rt.cpan.org #125314] A workaround

From:
Gerald Lai
Date:
October 28, 2015 06:16
Subject:
[perl #126468] [rt.cpan.org #125314] A workaround
Message ID:
rt-4.0.18-13397-1445989983-887.126468-75-0@perl.org
# New Ticket Created by  Gerald Lai 
# Please include the string:  [perl #126468]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=126468 >


This issue has also been brought up at:

    https://github.com/gugod/App-perlbrew/issues/466

As mentioned, 57d2761b46edd92efa00f984cb9840506d3b6483 is the first bad commit. Diff at:

    http://www.nntp.perl.org/group/perl.perl5.changes/2014/06/msg41057.html


Removing $myccflags from cflags.SH is a workaround:

--- cflags.SH
+++ cflags.SH
@@ -17,7 +17,6 @@
 #
 # From this we initialise the following variables in the cflags script:
 #
-#   $myccflags (possibly edited version of $Config{ccflags})
 #   $warn
 #   $stdflags
 #   $extra
@@ -401,7 +400,6 @@
 # This file is generated by cflags.SH

 # Used to restore possible edits by cflags.SH.
-myccflags="$ccflags"
 # Extra warnings, used e.g. for gcc.
 warn="$warn"
 # Extra standardness.
@@ -426,7 +424,6 @@
                echo "Can't find config.sh."; exit 1
        fi
        . $TOP/config.sh
-        ccflags="$myccflags"  # Restore possible edits by cflags.SH.
        ;;
 esac




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About