in reply to TimeDate 2.30 - Bug in test-code

" it's clear that the ,"\n" is the redundant part."

Are you sure about that? rt://124509 (note the patch and the last comment regarding distroprefs) and issue 20.

Replies are listed 'Best First'.
Re^2: TimeDate 2.30 - Bug in test-code
by hippo (Archbishop) on Jan 10, 2020 at 09:42 UTC

    Those seem to be about t/getdate.t rather than t/date.t so that's a different problem I think? rt://TimeDate seems to have a sizeable (and increasing) number of issues, alas.

Re^2: TimeDate 2.30 - Bug in test-code
by Skeeve (Parson) on Jan 10, 2020 at 11:56 UTC

    ++ @ 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

      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