[Koha-bugs] [Bug 28519] Add a 2nd directory for Perl modules

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jun 7 04:24:07 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28519

--- Comment #2 from David Cook <dcook at prosentient.com.au> ---
Dev test plan:

1. vi /etc/apache2/sites-enabled/kohadev.conf
2. Change "SetEnv PERL5LIB "/kohadevbox/koha" to SetEnv PERL5LIB
"/kohadevbox/koha:/kohadevbox/koha/lib"
2b. service apache2 reload
3. cp debian/scripts/koha-functions.sh /usr/share/koha/bin/koha-functions.sh
4. koha-plack --restart kohadev
5. Log into http://localhost:8081/cgi-bin/koha/mainpage.pl
6. Go to CGI script http://localhost:8081/cgi-bin/koha/tools/export.pl 
(Note that this is still run in CGI even when using Plack)

NOTE: We'll need to update koha-gitify
(https://gitlab.com/koha-community/koha-gitify) to get that Apache
configuration. There's no harm in updating it, since this is a backwards
compatible change. See
https://gitlab.com/koha-community/koha-gitify/-/merge_requests/2. 

--

Deploy test plan:

Dev:
1. perl Makefile.PL
1a. Installation mode: dev
1b. Configuration directory: /opt/koha-dev
2. make
3. ls blib/PERL_MODULE_LIB_DIR/
4. Note the following: CGI
5. make install
5b. Note the output says the following:
In order to use Koha's command-line batch jobs,
you should set the following environment variables:

export KOHA_CONF=/opt/koha-dev/etc/koha-conf.xml
export PERL5LIB=/kohadevbox/koha:/kohadevbox/koha/lib
6a. vi /opt/koha-dev/etc/koha-httpd.conf
6b. Note the following: SetEnv PERL5LIB "/kohadevbox/koha:/kohadevbox/koha/lib"
7a. vi /opt/koha-dev/etc/koha-worker.service
7b. Note the following:
Environment=PERL5LIB=/kohadevbox/koha:/kohadevbox/koha/lib
8a. vi /opt/koha-dev/bin/koha-index-daemon-ctl.sh
8b. Note the following: PERL5LIB="/kohadevbox/koha:/kohadevbox/koha/lib"
9a. vi /opt/koha-dev/misc/koha-install-log
9b. Note the following:
PERL_MODULE_LIB_DIR=/kohadevbox/koha/lib
PERL5LIB_DIRS=/kohadevbox/koha:/kohadevbox/koha/lib
6. rm -rf /opt/koha-dev
7. make clean

Single:
1. perl Makefile.PL
1a. Installation mode: single
1b. Please specify the directory in which to install Koha: /opt/koha
2. make
3. ls blib/PERL_MODULE_LIB_DIR/
4. Note the following: CGI
5. make install
5b. Note the output says the following:
In order to use Koha's command-line batch jobs,
you should set the following environment variables:

export KOHA_CONF=/opt/koha/etc/koha-conf.xml
export PERL5LIB=/opt/koha/lib
6a. vi /opt/koha/etc/koha-httpd.conf
6b. Note the following: SetEnv PERL5LIB "/opt/koha/lib"
7a. vi /opt/koha/etc/koha-worker.service
7b. Note the following: Environment=PERL5LIB=/opt/koha/lib
8a. vi /opt/koha/bin/koha-index-daemon-ctl.sh
8b. Note the following: PERL5LIB="/opt/koha/lib"
9a. vi /opt/koha/misc/koha-install-log
9b. Note the following:
PERL_MODULE_LIB_DIR=/opt/koha/lib
PERL5LIB_DIRS=/opt/koha/lib
10. ls /opt/koha/lib
11. Note the following: C4  CGI  cpanfile  Koha  Koha.pm
12. rm -rf /opt/koha
13. make clean

Standard:
1. perl Makefile.PL
1a. accept all the defaults
2. make
3. ls blib/PERL_MODULE_LIB_DIR/
4. Note the following: CGI
5. make install
5b. Note there is a set_koha_ownership failure because of a missing "koha"
user, but that's OK since this is an overly intensive process within
koha-testing-docker anyway, and the install has already succeeded at this
point.
6a. vi /etc/koha/koha-httpd.conf
6b. Note the following: SetEnv PERL5LIB "/usr/share/koha/lib"
7a. vi /etc/koha/koha-worker.service
7b. Note the following: Environment=PERL5LIB=/usr/share/koha/lib
8a. vi /usr/share/koha/bin/koha-index-daemon-ctl.sh
8b. Note the following: PERL5LIB="/usr/share/koha/lib"
9a. vi /usr/share/koha/misc/koha-install-log
9b. Note the following:
PERL_MODULE_LIB_DIR=/usr/share/koha/lib
PERL5LIB_DIRS=/usr/share/koha/lib
10. ls /usr/share/koha/lib
11. Note the following: C4  CGI  cpanfile  Koha  Koha.pm
12. make clean

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list