Fix git svn modules (#21169)
* added Git run env to support svn variant modules * perl-alien-svn needs arp-util to be link * Update var/spack/repos/builtin/packages/git/package.py
This commit is contained in:
parent
dba6a26920
commit
5a2fe8add3
2 changed files with 18 additions and 4 deletions
|
@ -305,3 +305,14 @@ def install_manpages(self):
|
|||
install_tree('man1', prefix.share.man.man1)
|
||||
install_tree('man5', prefix.share.man.man5)
|
||||
install_tree('man7', prefix.share.man.man7)
|
||||
|
||||
def setup_run_environment(self, env):
|
||||
# Setup run environment if using SVN extension
|
||||
# Libs from perl-alien-svn and apr-util are required in
|
||||
# LD_LIBRARY_PATH
|
||||
# TODO: extend to other platforms
|
||||
if "+svn platform=linux" in self.spec:
|
||||
perl_svn = self.spec['perl-alien-svn']
|
||||
env.prepend_path('LD_LIBRARY_PATH', join_path(
|
||||
perl_svn.prefix, 'lib', 'perl5', 'x86_64-linux-thread-multi',
|
||||
'Alien', 'SVN'))
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#
|
||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||
|
||||
import sys
|
||||
|
||||
from spack import *
|
||||
|
||||
|
@ -23,7 +24,7 @@ class PerlAlienSvn(PerlPackage):
|
|||
|
||||
depends_on('perl-module-build', type='build')
|
||||
depends_on('apr@1.6.2', type='build')
|
||||
depends_on('apr-util', type='build')
|
||||
depends_on('apr-util', type=('build', 'link'))
|
||||
depends_on('sqlite', type='build')
|
||||
depends_on('zlib')
|
||||
depends_on('libbsd')
|
||||
|
@ -34,6 +35,8 @@ def setup_build_environment(self, env):
|
|||
|
||||
def setup_run_environment(self, env):
|
||||
# SVN libs are not RPATHed correctly...
|
||||
# TODO: extend to other plaforms
|
||||
if sys.platform.startswith('linux'):
|
||||
env.prepend_path('LD_LIBRARY_PATH', join_path(
|
||||
self.prefix, 'lib', 'perl5', 'x86_64-linux-thread-multi',
|
||||
self.prefix, 'lib', 'perl4', 'x86_64-linux-thread-multi',
|
||||
'Alien', 'SVN'))
|
||||
|
|
Loading…
Reference in a new issue