Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#805 closed defect (fixed)

cgi-bin migrates to common-src\cgi-bin

Reported by: ak19 Owned by: ak19
Priority: moderate Milestone: 2.86 Release
Component: Greenstone2&3 Severity: major
Keywords: cgi-bin Cc:


Five set of commits to do with migration of cgi-bin into common-src, so that upon make install, common-src\cgi-bin will be installed in cgi-bin\GSDLOS(GSDLARCH).

So far tested on Linux (CentOS, 32-bit): tested out that the gs2-server, GLI, remote server and oaiserver still work fine.


After this commit (to do with the contents of the files), cgi-bin itself will be moved.

  • 8 files modified in main/trunk/greenstone2/cgi-bin, and,,,,,


SVN MOVE: Moved main/trunk/greenstone2/cgi-bin to main/trunk/greenstone2/common-src/cgi-bin

SVN ADDED common-src/cgi-bin:, win32.mak


This commit involves changes to all the GS2 files that referred to cgi-bin and where this needs reference required updating to cgi-bin\OS_and_ARCH.

  • 4 updated files in common-src:, configure,, win32.mak
  • Added 2 new files to common-src/cgi-bin:, win32.mak
  • Updated 4 toplevel files:, gs2-web-server.bat, gsicontrol.bat,
  • Updated 6 further files in runtime-src:


runtime-src/src/oaiservr:, win32.mak

runtime-src/src/recpt:, win32.mak

  • Updated 3 loose files: lib/java/server.jar, perllib/, bin/script/indexes/

Changes to affected references to cgi-bin in GLI. Only 1 file affected.



Changes to GS3's code which is also affected by the move of cgi-bin to common-src\cgi-bin (and which required changes to gs2-webserver.bat, already commited and an update to GS2's server.jar).


Change History (8)

comment:1 by ak19, 9 years ago

Commit revision 24877 to 24880: to common-src/cgi-bin's and win32.mak:

  • Linux changes were for correcting an error in some commands to delete a directory and for not ending up with the common-src\cgi-bin makefiles in the final cgi-bin directory inside GS2.
  • Windows corrections and additions came after testing on Windows the recent commits to do with the cgi-bin directory having moved from the top level folder of GS2 into common-src.

comment:2 by ak19, 9 years ago

Resolution: fixed
Status: newclosed

comment:3 by ak19, 9 years ago

Tested on Linux and Windows:

  • cleaning (distclean on Linux),
  • compiling (configuring, make, make install on Linux),
  • running the GS2 webserver (and local library server on Windows),
  • running GLI for creating and building a collection of documents with metadata,
  • remote Greenstone server against a GLI client used to built new remote collections and open existing ones.
  • OAIServer (visited the OAIserver pages both locally and remotely).

comment:4 by ak19, 9 years ago


GSDLARCH used in Linux makefiles when working out the cgi-bin path (now cgi-bin\GSDL_OS_ARCH) to install the binaries into.

  • common-src (4 files):, configure,, cgi-bin/
  • runtime-src (6 files):, configure,, packages/apache-httpd/, src/oaiservr/, src/recpt/

GSDLARCH used in Windows makefiles (and gsicontrol.bat) when working out the cgi-bin path (now cgi-bin\GSDL_OS_ARCH) to install the binaries like library.cgi and oaiserver.cgi into.

  • gsicontrol.bat
  • common-src/cgi-bin/win32.mak
  • runtime-src: packages/apache-httpd/, src/oaiservr/win32.mak, src/recpt/win32.mak

comment:5 by ak19, 9 years ago

Removed unnecessary quotes around path which may become a problem when concatenating

  • main/trunk/greenstone2/common-src/cgi-bin/win32.mak

comment:6 by ak19, 9 years ago

  1. Older commits. The following are revision numbers for corrections to gsicontrol.bat where spaces needed to be handled (again) after the introduction of the reset-gsdlhome target.

24789, 24788, 24786, 24765, 24759


Need quotes around collecthome in gsdlsite.cfg to handle spaces and brackets in any non-standard collecthome path.

  • gsicontrol.bat
  • gli/src/org/greenstone/gatherer:, gui/

in reply to:  6 comment:7 by ak19, 9 years ago

The above belonged in ticket 804 instead.

comment:8 by ak19, 9 years ago

  1. Number of required arguments changed recently with the introduction of the GSDLOS_GSDLARCH parameter, so the test for validating the number of input parameters needed to be updated as well.

  • greenstone2/lib/java/server.jar
  • main/trunk/greenstone3/src/java/org/greenstone/server/

Also an update to the usage message to incorporate the expected GSDLOS_GSDLARCH parameter, affecting the same 2 files as above (commit revisions 24909 and 24908).

Note: See TracTickets for help on using tickets.