https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79403
Bug ID: 79403 Summary: Installation of Ada compiler gets permissions wrong Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: vogt at linux dot vnet.ibm.com Target Milestone: --- Host: s390x Target: s390x "make install" of the Ada compiler installs the contests of the adainclude and adalib directories with incorrect permissions. The installed compiler is only usable by the user who installed it: $ su - root $ cd gcc/build # configure and build the compiler using e.g. --prefix=/usr/local $ umask 022 $ make install $ cd /usr/local/lib/gcc/s390x-ibm-linux-gnu/6.3.0 $ ls -l adainclude | head -10 total 15088 -r--r----- 1 root root 2830 Feb 3 13:56 a-assert.adb -r--r----- 1 root root 3742 Feb 3 13:56 a-assert.ads -r--r----- 1 root root 3126 Feb 3 13:56 a-astaco.adb -r--r----- 1 root root 2111 Feb 3 13:56 a-astaco.ads -r--r----- 1 root root 21464 Feb 3 13:56 a-btgbso.adb -r--r----- 1 root root 5460 Feb 3 13:56 a-btgbso.ads -r--r----- 1 root root 4345 Feb 3 13:56 a-calari.adb -r--r----- 1 root root 3420 Feb 3 13:56 a-calari.ads -r--r----- 1 root root 5341 Feb 3 13:56 a-calcon.adb $ ls -l adalib | head -10 total 43416 -r--r----- 1 root root 1702 Feb 3 14:31 a-assert.ali -r--r----- 1 root root 14582 Feb 3 14:31 a-btgbso.ali -r--r----- 1 root root 2587 Feb 3 14:31 a-calari.ali -r--r----- 1 root root 4169 Feb 3 14:31 a-calcon.ali -r--r----- 1 root root 3224 Feb 3 14:31 a-caldel.ali -r--r----- 1 root root 19503 Feb 3 14:31 a-calend.ali -r--r----- 1 root root 14967 Feb 3 14:31 a-calfor.ali -r--r----- 1 root root 1985 Feb 3 14:31 a-catizo.ali -r--r----- 1 root root 38194 Feb 3 14:31 a-cbdlli.ali For some reason, world read access is removed by the installation routines.