nag: fix installation of man pages (#31428)

This commit is contained in:
Sergey Kosukhin 2022-07-05 09:10:45 +02:00 committed by GitHub
parent 18ab94de4b
commit 0b3a409746
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 1 deletions

View 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}"

View file

@ -28,6 +28,10 @@ class Nag(Package):
license_vars = ['NAG_KUSARI_FILE'] license_vars = ['NAG_KUSARI_FILE']
license_url = 'http://www.nag.com/doc/inun/np61/lin-mac/klicence.txt' 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): def url_for_version(self, version):
# TODO: url and checksum are architecture dependent # TODO: url and checksum are architecture dependent
# TODO: We currently only support x86_64 # TODO: We currently only support x86_64
@ -38,7 +42,7 @@ def install(self, spec, prefix):
# Set installation directories # Set installation directories
os.environ['INSTALL_TO_BINDIR'] = prefix.bin os.environ['INSTALL_TO_BINDIR'] = prefix.bin
os.environ['INSTALL_TO_LIBDIR'] = prefix.lib 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 # Run install script
os.system('./INSTALLU.sh') os.system('./INSTALLU.sh')