[Koha-devel] custom core patches management

David Schmidt mail at davidschmidt.at
Thu Nov 11 09:11:03 CET 2021


we went along with our strategy and wrote a perl script that outputs a bash script.

After reviewing the output you can run the script and it will create the necessary symlinks and applies patches.

thats our short term approach, in the long run we might stop installing from koha debian packages and use the official koha git checkout directly and maintain branches for each koha instance.

if anyone is interested in the perl script I wrote let me know.

cheers
david


On Tue, 2 Nov 2021, at 11:00 AM, David Schmidt wrote:
> Hello koha community,
> 
> We made some changes to our Koha instance and are now looking for a mechanism to apply them to a new installation.
> 
> - some of the changes are simply new files, thats easy.
> - some changes were possible to put into plugins or use existing hooks.
> 
> but how do you deal with changes to the koha sourcecode?
> 
> this is our strategy:
> 
> 1) we have a git repo with our koha source code.
> 2) if we change code in Foobar.pm we create 3 files.
> Foobar.pm.orig
> Foobar.pm.changed
> Foobar.pm.patch
> 3) on a new koha instance next we have a script `install.sh` that compares Foobar.pm.orig with the installed file. if they match, the patch is applied.
> 
> Does that sound like a good idea?
> How do YOU manage core changes that do not go upstream?
> 
> cheers,
> david
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20211111/ac0691e4/attachment.htm>


More information about the Koha-devel mailing list