I have changed the makefile.patch file accordingly and changed the line numbers as per GNUmakefile, but not all 3 hunks are successful at a time
When you follow
Corion's instructions then, based on your original patch file, you should end up with something like:
--- GNUmakefile_orig 2021-08-26 10:43:41 +1000
+++ GNUmakefile 2021-08-26 10:46:03 +1000
@@ -47,7 +47,7 @@
# newly built perl.
#
INST_DRV := c:
-INST_TOP := $(INST_DRV)\perl
+INST_TOP := $(INST_DRV)\perl_app\bin\Perl
#
# Uncomment if you want to build a 32-bit Perl using a 32-bit compile
+r
@@ -254,7 +254,7 @@
# For GCC builds this should be the directory containing the bin, inc
+lude,
# lib directories for your compiler.
#
-#CCHOME := C:\MinGW
+#CCHOME := C:\msys64\mingw64
#
# Additional compiler flags can be specified here.
@@ -289,7 +289,7 @@
# set this to your email address (perl will guess a value from
# your loginname and your hostname, which may not be right)
#
-#EMAIL :=
+#EMAIL := customer_support@xyz.com
##
## Build configuration ends.
And that should be fine for as long as the GNUmakefile that ships with the perl source does not change.
It's best to ensure that the final GNUmakefile contains unix line endings (not windows line endings) - otherwise a couple of the t/porting test files in the perl test suite will report failures.
I would run
dos2unix GNUmakefile before building perl, just to be sure.
It's probably also important to make sure that the line endings of the GNUmakefile you're patching (which are initially unix style) matches the line endings of the patch file, otherwise the patch might not apply.
Perhaps
patch has a switch that will ignore differences in line endings (like
diff's
-w switch) ... I don't know.
Otherwise,
dos2unix and
unix2dos are useful friends to have.
Cheers,
Rob
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.