EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #09485


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

Re: [EP-tech] Upgrading 3.3.16 to v3.4.5


Hi,

Unfortunately, this stage can be a little tricky.  What you need to do is where the two files differ is run at diff like this:

diff -w archives/aea/cfg/cfg.d/20_baseurls.pl flavours/pub_lib/cfg.d/20_baseurls.pl

Anything that is unique about the file first file will appear on a line starting with a '<'.  Anything that is unique in the  second file will appear on a line starting with a '>'.  You will like see one or more < lines followed by a similar number of > lines indicating a change.  You need to assess whether these changes between the files are a bespoke change made for your EPrints repository.  If you conclude it is not making any bespoke changes, you can remove the file in your archive's cfg/cfg.d directory (but keep a backup), as the one in flavours/pub_lib/cfg.d will take its place if it does not exist.  If there are bespoke changes and also changes in the version in flavours/pub_lib/cfg.d/ you need to copy change by change from the file in flavours/pub_lib/cfg.d/ to the file in archives/cfg/cfg.d/.  However, if you find that too difficult, the safest alternative is to retain the file in archives/cfg/cfg.d/.  However, by doing this you may lose some new functionality available in 3.4.5.  Also, without knowing what the changes are in your archive's version of these files in may introduce inconsistencies.   The firrst way to check for this is by running the epadmin test command (substituting EPRINTS_PATH and ARCHIVE_ID as appropriate):

EPRINTS_PATH/bin/epadmin test ARCHIVE_ID

However, this will only find basic syntactical and similar issues and not functional ones.  These can only be reliably be determined by testing your EPrints repository through your web browser.

Changes in eprints_fields.pl in flavours/pub_lib/cfg.d/ must be reconciled with the version in your archive.  As between 3.3 and 3.4 eprint_fields.pl was broken up with generic fields remaining in eprint_fields.pl and research publications specific fields moved to eprint_fields_pub.pl.  That is why there is specific advice for this file in the upgrade instructions.  To make sure you have not made any syntax issues in either your archive's cfg/cfg.d/eprint_fields.pl or cfg/cfg.d/eprints_fields_pub.pl once you have completed this task, you should follow Florian's advice and run (from your archive's main directory):

perl -c cfg/cfg.d/eprint_fields.pl

perl -c cfg/cfg.d/eprint_fields_pub.pl

Regards

David Newman


On 23/11/2023 3:45 am, zen zenitram wrote:
CAUTION: This e-mail originated outside the University of Southampton.
CAUTION: This e-mail originated outside the University of Southampton.
Good day!


i run this command (diff -rq archives/ARCHIVENAME/cfg/cfg.d flavours/pub_lib/cfg.d | egrep '^Files .+ and .+ differ$') ands here is the result,

root@eprints:/usr/share/eprints3# diff -rq archives/aea/cfg/cfg.d flavours/pub_lib/cfg.d | egrep '^Files .+ and .+ differ$'
Files archives/aea/cfg/cfg.d/20_baseurls.pl and flavours/pub_lib/cfg.d/20_baseurls.pl differ
Files archives/aea/cfg/cfg.d/eprint_fields_automatic.pl and flavours/pub_lib/cfg.d/eprint_fields_automatic.pl differ
Files archives/aea/cfg/cfg.d/eprint_fields_default.pl and flavours/pub_lib/cfg.d/eprint_fields_default.pl differ
Files archives/aea/cfg/cfg.d/eprint_fields.pl and flavours/pub_lib/cfg.d/eprint_fields.pl differ
Files archives/aea/cfg/cfg.d/eprint_render.pl and flavours/pub_lib/cfg.d/eprint_render.pl differ
Files archives/aea/cfg/cfg.d/eprint_search_advanced.pl and flavours/pub_lib/cfg.d/eprint_search_advanced.pl differ
Files archives/aea/cfg/cfg.d/eprint_search_simple.pl and flavours/pub_lib/cfg.d/eprint_search_simple.pl differ
Files archives/aea/cfg/cfg.d/eprint_validate.pl and flavours/pub_lib/cfg.d/eprint_validate.pl differ
Files archives/aea/cfg/cfg.d/eprint_warnings.pl and flavours/pub_lib/cfg.d/eprint_warnings.pl differ
Files archives/aea/cfg/cfg.d/issues_search.pl and flavours/pub_lib/cfg.d/issues_search.pl differ
Files archives/aea/cfg/cfg.d/oai.pl and flavours/pub_lib/cfg.d/oai.pl differ
Files archives/aea/cfg/cfg.d/plugins.pl and flavours/pub_lib/cfg.d/plugins.pl differ
Files archives/aea/cfg/cfg.d/request_copy.pl and flavours/pub_lib/cfg.d/request_copy.pl differ
Files archives/aea/cfg/cfg.d/user_review_scope.pl and flavours/pub_lib/cfg.d/user_review_scope.pl differ
Files archives/aea/cfg/cfg.d/views.pl and flavours/pub_lib/cfg.d/views.pl differ

Im not a pro in this kind of field so i need help with this. 
should i copy all files form flavours/pub_lib/cfg.d to /archives/aea/cfg/cfg.d? 

please help me in editing this files. i attached sample of files that are different.

Thank you! 

*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_List
*** Archive: https://www.eprints.org/tech.php/
*** EPrints community wiki: https://wiki.eprints.org/