in reply to Re: TimeDate 2.30 - Bug in test-code
in thread TimeDate 2.30 - Bug in test-code

++ @ marto

You are right. Thanks for looking into it and pointing this out

Question: Is there a way cpanm can automatically apply the patch given? I have no clue whether or not it's possible.

Answer: No, there isn't

Does cpanm support the feature XYZ of CPAN and CPANPLUS? Most likely not. Here are the things that cpanm doesn't do by itself.

[…]

Patching CPAN modules with distroprefs.

s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
+.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e

Replies are listed 'Best First'.
Re^3: TimeDate 2.30 - Bug in test-code
by marto (Cardinal) on Jan 10, 2020 at 12:09 UTC
Re^3: TimeDate 2.30 - Bug in test-code
by Skeeve (Parson) on Jan 10, 2020 at 12:23 UTC

    In case anyone is interested, this is my workaround in my docker-compose.yaml

    COPY cpanfile .
    # Patched TimeDate. See https://rt.cpan.org/Public/Bug/Display.html?id=124509
    COPY TimeDate-2.30 /TimeDate-2.30
    RUN cpanm /TimeDate-2.30 \
      && cpanm --installdeps . \
      && rm -rf TimeDate-2.30
    

    The local copy I have is already patched

    I'm sure there are better ways to achieve this


    s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
    +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e