Errors when patching OJS 2.4.6

I have extracted the archive for OJS 2.4.6 and am now trying to apply the patch file. I get several errors, as follows. (I have assumed the errors aren’t critical, and have applied the patch, skipping the files that can’t be found.)

For the OJS patch, I get:

can’t find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:

|diff --git a/.travis.yml b/.travis.yml
|index 8f3f8a0…ae5ae2e 100644
|— a/.travis.yml
|+++ b/.travis.yml

AND

can’t find file to patch at input line 29547
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:

|diff --git a/tests/plugins/oaiMetadataFormats/dc/expectedResult.xml b/tests/plugins/oaiMetadataFormats/dc/expectedResult.xml
|index 27298ae…7676308 100644
|— a/tests/plugins/oaiMetadataFormats/dc/expectedResult.xml
|+++ b/tests/plugins/oaiMetadataFormats/dc/expectedResult.xml

AND

can’t find file to patch at input line 29560
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:

|diff --git a/tools/startSubmodulesTRAVIS.sh b/tools/startSubmodulesTRAVIS.sh
|index f3679c9…6f86c48 100755
|— a/tools/startSubmodulesTRAVIS.sh
|+++ b/tools/startSubmodulesTRAVIS.sh

For the pkp/lib patch, I get

can’t find file to patch at input line 30296
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:

|diff --git a/tests/classes/validation/ValidatorISSNTest.php b/tests/classes/validation/ValidatorISSNTest.php
|index 01f9abd…6bfd586 100644
|— a/tests/classes/validation/ValidatorISSNTest.php
|+++ b/tests/classes/validation/ValidatorISSNTest.php

AND

can’t find file to patch at input line 30309
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:

|diff --git a/tests/classes/validation/ValidatorInSetTest.php b/tests/classes/validation/ValidatorInSetTest.php
|index 453ead3…5ec09ec 100644
|— a/tests/classes/validation/ValidatorInSetTest.php
|+++ b/tests/classes/validation/ValidatorInSetTest.php

AND

can’t find file to patch at input line 30333
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:

|diff --git a/tests/plugins/citationLookup/isbndb/filter/IsbndbIsbnNlm30CitationSchemaFilterTest.php b/tests/plugins/citationLookup/isbndb/filter/IsbndbIsbnNlm30CitationSchemaFilterTest.php
|index 6247fc4…b3da9bf 100644
|— a/tests/plugins/citationLookup/isbndb/filter/IsbndbIsbnNlm30CitationSchemaFilterTest.php
|+++ b/tests/plugins/citationLookup/isbndb/filter/IsbndbIsbnNlm30CitationSchemaFilterTest.php

AND

can’t find file to patch at input line 30350
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:

|diff --git a/tests/plugins/citationLookup/isbndb/filter/IsbndbNlm30CitationSchemaFilterTest.inc.php b/tests/plugins/citationLookup/isbndb/filter/IsbndbNlm30CitationSchemaFilterTest.inc.php
|index 543cb51…cfe02cd 100644
|— a/tests/plugins/citationLookup/isbndb/filter/IsbndbNlm30CitationSchemaFilterTest.inc.php
|+++ b/tests/plugins/citationLookup/isbndb/filter/IsbndbNlm30CitationSchemaFilterTest.inc.php

Thanks
Martin

Hi @osborne,

The .tar.gz distribution of OJS doesn’t contain all the files that are in the git repository, which is where the patch you’re using comes from. Those files are related to testing. You can safely skip them when applying the patch.

Regards,
Alec Smecher
Public Knowledge Project Team