Koha/debian
Tomas Cohen Arazi 4d941f36c7 Bug 18502: Make koha-shell set the right PERL5LIB on dev installs
Bug 16749 introduced a nice way to have flexible paths. During the discussion on how to do it, we moved from having it contain the path to the git dir to just a boolean. The 'koha-shell' script didn't get attention it seems, and it is broken on dev installs.

This was hidden by the fact that many of us run dev installs on kohadevbox, which sets a .bashrc file for de instance's user, containing the right path when opening the new shell.

This patch changes the logic so on a dev install, intranetdir is picked as the right path. This is how it is handled in koha-functions.sh

To test:
- On kohadevbox, run:
  $ sudo koha-shell kohadev -c "perl misc4dev/populate_db.pl"
=> FAIL: C4/Installer.pm not found on PERL5LIB error.
- Apply this patch
- Replace /usr/bin/koha-shell with debian/scripts/koha-shell
  $ sudo cp kohaclone/debian/scripts/koha-shell /usr/bin/koha-shell
- Run:
  $ sudo koha-shell kohadev -c "perl misc4dev/populate_db.pl"
=> SUCCESS: No warning about missing libs is raised.
- Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2017-05-05 12:12:04 -03:00
..
docs Bug 16749: Update debian docs for koha-translate 2017-02-17 13:20:57 +00:00
scripts Bug 18502: Make koha-shell set the right PERL5LIB on dev installs 2017-05-05 12:12:04 -03:00
source
templates Bug 17871: (followup) Remove zebra::* from the packages templates 2017-02-07 17:50:42 +00:00
bd-to-depends
build-git-snapshot Bug 17013 - build-git-snapshot: add basetgz parameter and update master version number 2016-08-08 13:13:24 +00:00
changelog Bug 17019 - debian/changelog update 2016-08-08 14:30:55 +00:00
compat
control Bug 17084 - Automatic debian/control updates (unstable) 2016-11-02 10:59:28 +00:00
control.in Bug 15200 - t/Creators.t fails when using build-git-snapshot 2016-08-16 16:44:44 +00:00
copyright
koha-common.bash-completion
koha-common.config
koha-common.cron.d Bug 16823 - Comment out koha-rebuild-zebra in koha-common.cron.d 2016-07-08 13:26:55 +00:00
koha-common.cron.daily Bug 17669: Add new switch to crontab example and debian daily cron file 2017-04-21 13:55:25 -04:00
koha-common.cron.hourly
koha-common.cron.monthly
koha-common.default Bug 16830: Remove -x usage on koha-indexer 2016-08-04 19:41:41 +00:00
koha-common.dirs
koha-common.docs
koha-common.init Bug 16822: Make koha-common call koha-plack without --quiet 2016-09-09 09:27:45 +00:00
koha-common.install Bug 16016: Sitemap handling scripts for packages 2016-05-04 13:34:21 +00:00
koha-common.logrotate Bug 16138: Restart plack when rotating logfiles 2016-04-01 18:47:01 +00:00
koha-common.postinst
koha-common.preinst
koha-common.README.Debian
koha-common.templates
koha-post-install-setup
koha.apache-ports
koha.config
koha.dirs
koha.install
koha.postinst
koha.postrm
koha.prerm
koha.README.Debian
list-deps Bug 17085 - Specify libmojolicious-perl min version 2016-09-25 13:15:21 +00:00
README.build
rules
unavailable.html
update-control

In order to build .deb packages, following debian packages need to be present
(installed): 
devscripts
pbuilder
dh-make
fakeroot

As root (or sudo) execute:
pbuilder create

Executing build-git-snapshot without any arguments will leave package and the
rest in some pbuilder dir, eg. /var/cache/pbuilder/result It is highly
recommended that --buildresult option is used.