summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJustin Stanley <molecuul@users.noreply.github.com>2019-01-22 14:26:31 -0600
committerLevi Baber <baberlevi@gmail.com>2019-01-22 14:26:31 -0600
commit9252f7f957decc46934b28e35393ba7be80f6e8c (patch)
tree2fd79d3fee4b25d25ee4932063996eb16416e623 /var
parent7baea6827864120ecae1aa05cefcac81a792f53b (diff)
downloadspack-9252f7f957decc46934b28e35393ba7be80f6e8c.tar.gz
spack-9252f7f957decc46934b28e35393ba7be80f6e8c.tar.bz2
spack-9252f7f957decc46934b28e35393ba7be80f6e8c.tar.xz
spack-9252f7f957decc46934b28e35393ba7be80f6e8c.zip
trinotate: remove perl-dbd-mysql, move runtime files to HOME (#9850)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/trinotate/package.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/trinotate/package.py b/var/spack/repos/builtin/packages/trinotate/package.py
index df17f70841..d0a24d608f 100644
--- a/var/spack/repos/builtin/packages/trinotate/package.py
+++ b/var/spack/repos/builtin/packages/trinotate/package.py
@@ -26,7 +26,6 @@ class Trinotate(Package):
depends_on('perl', type='run')
depends_on('lighttpd', type='run')
depends_on('perl-dbi', type='run')
- depends_on('perl-dbd-mysql', type='run')
depends_on('perl-cgi', type='run')
depends_on('perl-dbd-sqlite', type='run')
@@ -35,6 +34,14 @@ class Trinotate(Package):
perlscripts = glob.glob('*.pl')
filter_file('#!/usr/bin/perl', '#!/usr/bin/env perl', *perlscripts)
+ # trinotate web generates a config on run but puts it in a bad place
+ # this causes issues with permissions; we hack the source to keep it
+ # in the calling user's homedir
+
+ filter_file('"$FindBin::RealBin/TrinotateWeb.conf/lighttpd.conf.port',
+ '$ENV{"HOME"} . "/.trinotate_lighttpd.conf.port',
+ 'run_TrinotateWebserver.pl', string=True)
+
def install(self, spec, prefix):
# most of the perl modules have local deps, install the whole tree
mkdirp(prefix.lib)