• Help patching files in dependency package

    From Tobias Wackenhut@21:1/5 to All on Tue Jan 17 01:10:01 2023
    Hi,

    I so far only have basic packaging experience and would be really happy
    for any pointers in the right direction.



    Problem (concrete example for simplicity, general topic):

    - This is about perl software, i.e. interpreted script files.
    - I want to update rt5-extension-resetpassword
    - Upstream introduces a patch to rt5 core packaged in request-tracker-5
    - Base package is dependency of extension package

    What would be the cleanest way to package the new version with the
    mentioned patch? I think I only need pointers on what direction to take
    and maybe a pointer to the docs. I am more interested in the general
    approach to this kind of problem, but the example is the issue at hand.



    Ideas so far:

    - Package scripts for patch and patch -R
    - Including the affected files in the extension package and overriding
    the ones in the dependency
    - Somehow integrate the functionality into the base package, that is
    only used by this extension.


    Thanks in advance for any hint

    Tobias

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul Wise@21:1/5 to Tobias Wackenhut on Tue Jan 17 02:00:01 2023
    On Tue, 2023-01-17 at 00:55 +0100, Tobias Wackenhut wrote:

    What would be the cleanest way to package the new version with the
    mentioned patch?

    Ask the extension author to get the patch included into the upstream
    rt5 core, get a release of that, then get request-tracker-5 updated.

    Alternatively, drop the patch from the extension upstream and work
    around the issue within the extension upstream codebase instead.

    If neither of these are viable, discuss with the request-tracker-5
    maintainers in Debian about including the patch in that package.

    --
    bye,
    pabs

    https://wiki.debian.org/PaulWise

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEYQsotVz8/kXqG1Y7MRa6Xp/6aaMFAmPF8V8ACgkQMRa6Xp/6 aaPwehAAjoJ7izHSmXPl//LDe3yerqu+tUGOc6PLBJ221T8IYyi2CR1iD5LtNR1w pl4Sq0vmCiDZDhVHpYe/Q1pipnNBhq5+KGYk0YpTiEISKlOilb29HB9ABsRxVQA5 3u1/4IRPojDd/aTmlDdO6DpDVvlESrmI3BAs/vwydzFGpkwAIgv5S6Z06tfcrS/w JqYCbUorM35nFAuJUIKS1SXl+uXUEBZ37J0mjEBdKt5daIAmZpRfdmbpGRz3pgn8 SnHWFb9+tDWvhCMLt6WGRdJb/zi/7DP0vjKXzXPzmkiIJYrQ5M2tv9wtJtZ2iCIi 8ZFkeEeudPcWn9EO8Heglcq0d0/IO6sRmJlST6I0ktLZeALIrBn8L+P00boeXqna Wom0IX13DUhDOb+OBcmDDlFhfQLBKhYnvF6NEBfNZetCSfByWlxffEWEcA8t76n2 rcKJFvCpSLXvFvU4re45i/Qg4e3zIU/1yaQk5sTwpYTzcgp5LaSuEqe5SyqQ9s0A krTkz35CPaRRJ1t+ZpOFmTHgk/Z/KsapY2j1Z5WpqvqEP0+sEqDvyl4JplpxVOWz RQXe8gbjKg1JnHy7wIBVaga97ZsWQwzqNhh8IEVrzHoGDaXFoh3UmZXrKs7s2O23 eAIQ96/QBo+23UADx3MckJAKO8Zvg+mWZpgz/ZLbgjWqK65tIUo=
    =BaVq
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dominic Hargreaves@21:1/5 to Paul Wise on Tue Jan 17 11:20:01 2023
    On Tue, Jan 17, 2023 at 08:52:50AM +0800, Paul Wise wrote:
    On Tue, 2023-01-17 at 00:55 +0100, Tobias Wackenhut wrote:

    What would be the cleanest way to package the new version with the mentioned patch?

    Ask the extension author to get the patch included into the upstream
    rt5 core, get a release of that, then get request-tracker-5 updated.

    Alternatively, drop the patch from the extension upstream and work
    around the issue within the extension upstream codebase instead.

    If neither of these are viable, discuss with the request-tracker-5 maintainers in Debian about including the patch in that package.

    Hi, (somewhat dormant) RT maintainer here.

    Thanks Paul, that's spot on. We have in the distant past applied
    those sort of patches before they hit RT upstream, but it's definitely
    not ideal, and it really depends on the patch.

    However, Tobias, I don't see any patch that needs to be applied in <https://metacpan.org/release/BPS/RT-Extension-ResetPassword-1.12/source/README>
    - Debian already has RT 5.0.3 (>= 5.0.2)?

    Let's continue the discussion on pkg-request-tracker-maintainers@alioth-lists.debian.net (CCed).

    Cheers
    Dominic

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)