Help with Patches

OJS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
The Public Knowledge Project Support Forum is moving to

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
Posts: 14
Joined: Mon Aug 15, 2005 8:28 am
Location: Brasil

Help with Patches

Postby roberta_takenaka » Thu Nov 10, 2005 10:00 am

I am working on customizations on OJS for our needs.
I took the 2.0.1 version but now there is the 2.0.2 version and I have already done some customizations.

I want to know how can I easily or methodically create a version 2.0.2 plus mine. I have read about cvs, patch, diff, but in fact, I could not really understand how all of these is related.

If you could help, I would appreciate very much.
Thank you

Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Postby asmecher » Thu Nov 10, 2005 5:32 pm

Hello Roberta,

If you go to, you'll see a set of patches; the one to upgrade OJS from 2.0.1 to 2.0.2-1 is (ensure that you get the patch for OJS 2.0.2-1, not 2.0.2). Follow these steps:
  • Back everything up
  • Copy the patch into your OJS installation directory and change into that directory
  • Uncompress the patch:

    Code: Select all

    gunzip ojs-2.0.1_to_2.0.2-1.patch.gz
  • Perform a dry run of the patch:

    Code: Select all

    patch --dry-run -p1 < ojs-2.0.1-to-2.0.2-1.patch

This will perform a test run of the update without actually changing anything; this will let you know what you'll need to correct by hand in situations where your changes conflict with the upgrade.

Once you know what to expect and have resolved the conflicts, you can actually apply the patch by using the above command without the --dry-run parameter.

When the code has been successfully patched, use the tools/upgrade.php tool to update the OJS database.

Alec Smecher
Open Journal Systems Team

Return to “OJS Development”

Who is online

Users browsing this forum: No registered users and 1 guest