nag: fix installation of man pages (#31428)
This commit is contained in:
parent
18ab94de4b
commit
0b3a409746
2 changed files with 16 additions and 1 deletions
11
var/spack/repos/builtin/packages/nag/chmod_man.patch
Normal file
11
var/spack/repos/builtin/packages/nag/chmod_man.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- a/INSTALLU.sh
|
||||
+++ b/INSTALLU.sh
|
||||
@@ -267,7 +267,7 @@ if [ ! -z "${mandir-}" ]; then
|
||||
for i in man/*.${manext}; do
|
||||
i_base=`basename "$i"`
|
||||
$move "$i" "${mandir}${manext}"
|
||||
- chmod 644 "${mandir}${manext}"
|
||||
+ chmod 644 "${mandir}${manext}/${i_base}"
|
||||
if [ "${whoami}" = "root" ]; then
|
||||
$chown $owner "${mandir}${manext}/${i_base}"
|
||||
$chgrp $group "${mandir}${manext}/${i_base}"
|
|
@ -28,6 +28,10 @@ class Nag(Package):
|
|||
license_vars = ['NAG_KUSARI_FILE']
|
||||
license_url = 'http://www.nag.com/doc/inun/np61/lin-mac/klicence.txt'
|
||||
|
||||
# The installation script erroneously revokes execute permissions for the
|
||||
# installation directory of the man pages and therefore fails to copy all the files:
|
||||
patch('chmod_man.patch', when='@7.0:')
|
||||
|
||||
def url_for_version(self, version):
|
||||
# TODO: url and checksum are architecture dependent
|
||||
# TODO: We currently only support x86_64
|
||||
|
@ -38,7 +42,7 @@ def install(self, spec, prefix):
|
|||
# Set installation directories
|
||||
os.environ['INSTALL_TO_BINDIR'] = prefix.bin
|
||||
os.environ['INSTALL_TO_LIBDIR'] = prefix.lib
|
||||
os.environ['INSTALL_TO_MANDIR'] = prefix + '/share/man/man'
|
||||
os.environ['INSTALL_TO_MANDIR'] = prefix.share.man.man
|
||||
|
||||
# Run install script
|
||||
os.system('./INSTALLU.sh')
|
||||
|
|
Loading…
Reference in a new issue