Changeset 35534


Ignore:
Timestamp:
2021-09-30T15:46:55+13:00 (3 years ago)
Author:
anupama
Message:

Updating GS2 compile script: 1. Kathy/Dr Bainbridge have now turned -fPIC on where it's needed so that we don't need to set it in CFLAGS and other flags. This means makegs2.sh doesn't need to set these flags any more, nor display any message that it's done so. 2. Makegs2.sh now does what release-kits rk2 installer does: rename PDFv2Plugin.pm to PDFv2Plugin.tmp so that pluginfo.pl can run and therefore GLI can start properly. PDFv2Plugin is dependent on the PDFBoxConverter extension, which does not come installed by default in GS2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/makegs2.sh

    r32014 r35534  
    4747bitness=`uname -m`
    4848# if we're 64 bit, add -fPIC to CFLAGS. Check if bitness contains substring "64"
    49 if [[ $bitness == *"64"* ]]; then
    50   export CFLAGS="-fPIC $CFLAGS"
    51   echo "64 bit unix system, incl -fPIC in CFLAGS so it is now: $CFLAGS"
    52 fi
     49#if [[ $bitness == *"64"* ]]; then
     50#  export CFLAGS="-fPIC $CFLAGS"
     51#  echo "64 bit unix system, incl -fPIC in CFLAGS so it is now: $CFLAGS"
     52#fi
    5353
    5454# Compile by chaining the commands with && so it stops at that stage after an error
     
    7979    echo "@@@ Error compiling up Greenstone. Return status: $status"
    8080fi
    81 if [[ $bitness == *"64"* ]]; then
    82     echo ""
    83     echo "This unix is 64 bit. So added -fPIC to CFLAGS, which is now: $CFLAGS"
    84 fi
     81#if [[ $bitness == *"64"* ]]; then
     82#    echo ""
     83#    echo "This unix is 64 bit. So added -fPIC to CFLAGS, which is now: $CFLAGS"
     84#fi
    8585echo "****************************************"   
    8686
     
    160160   rm -rf ext/imagemagick.tar.gz   
    161161fi
     162
     163
     164# PDFv2Plugin needs PDFBoxConverter extension, which doesn't come installed in GS2 by default
     165# But without it, the PDFv2Plugin won't work and pluginfo.pl -describeall will break,
     166# GLI will have issues launching. So repeat what the GS2 installer does:
     167# rename PDFv2Plugin.pm to PDFv2Plugin.tmp and show user a message on how to make it functional.
     168echo ""
     169echo "   Renaming PDFv2Plugin to make it unfunctional."
     170echo "   To make it functional, install the PDFBoxConverter extension for Greenstone"
     171echo "   and then rename the PDFv2Plugin.tmp file to PDFv2Plugin.pm"
     172echo ""
     173mv perllib/plugins/PDFv2Plugin.pm perllib/plugins/PDFv2Plugin.tmp
     174
Note: See TracChangeset for help on using the changeset viewer.