Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #565 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

While using the GDC Tango installer, some file permissions are missing

Reported by: Nietsnie Assigned to: Gregor
Priority: normal Milestone: 0.99.3
Component: Packaging Version: 0.99 RC3 Xammy
Keywords: Cc:

Description (Last modified by Jim Panic)

The ones that affected me:

jeff ~ # cd /usr/include/tango/core/
jeff core # ls -al
total 256
drwxrwxr-x  3 501 501  4096 Jul 14 17:10 .
drwxrwxr-x 10 501 501    90 Jul 14 17:07 ..
-rw-rw-r--  1 501 501 87455 Mar 23 16:14 Array.d
-rw-rw-r--  1 501 501 52997 Jun 26 11:58 Atomic.d
-rw-rw-r--  1 501 501 17752 Jun 26 11:58 BitArray.d
-rw-rw----  1 501 501   869 Jul 19 09:34 BitManip.di
-rw-rw-r--  1 501 501  3477 Jun 26 11:58 ByteSwap.d
-rw-rw----  1 501 501  4014 Jul 19 09:34 Exception.di
-rw-rw----  1 501 501  2537 Jul 19 09:34 Memory.di
-rw-rw----  1 501 501   479 Jul 19 09:34 Runtime.di
-rw-rw-r--  1 501 501  5919 May 16 04:46 Signal.d
-rw-rw----  1 501 501  8299 Jul 19 09:35 Thread.di
-rw-rw-r--  1 501 501  4242 Mar 12 14:20 Traits.d
-rw-rw-r--  1 501 501  5583 Feb  3  2007 Tuple.d
-rw-rw-r--  1 501 501  2220 May  2 18:25 Type.d
-rw-rw-r--  1 501 501  2379 Mar 16 14:12 Vararg.d
-rw-rw-r--  1 501 501 21324 Jun 28 09:44 Variant.d
-rw-rw-r--  1 501 501   488 Jun 12 11:00 Version.d
drwxrwxr-x  2 501 501   110 Jul 14 17:07 sync

Notice some having missing the read bitflag for "other"

Change History

08/08/07 03:47:10 changed by larsivi

  • milestone set to 0.99.1 RC4.

(in reply to: ↑ description ) 08/25/07 12:14:21 changed by sylverpyro

I can confirm this (using gdcmac 0.23). I did not remember to generate a list of the files with the missing permissions, but Exception.di I know is one that did not have the 'o' bit set to 'r'.

Quick fix is to: #sudo chmod -R o+r /usr/include/d/4.0.1/tango

09/07/07 04:19:51 changed by larsivi

  • milestone changed from 0.99.1 RC4 to 0.99.2 RC5.

Nietsnie; could you test the installer(s) after this release and see if this is still an issue?

10/05/07 06:00:39 changed by larsivi

  • milestone changed from 0.99.2 RC5 to 0.99.3 RC6.

This was presumably fixed in GDC 0.24, but need to have it confirmed.

11/12/07 17:07:26 changed by Jim Panic

  • description changed.

11/12/07 17:40:27 changed by Jim Panic

Verified - there seems to be some chmod a+r missing in the build process of the core (only the .di files lack the readable flag). Given the output of build-gdc.sh, this is likely to be a bug in gdmd, which causes this.

Not sure this is fixable on Tango's side.

Anyways: the .di files are generated by invoking gdmd:

# [...]
make -C common/tango -fposix.mak lib CC=gcc DC=gdmd ADD_DFLAGS="-q,-nostdinc -I`pwd`/common -I`pwd`/.. -I`pwd`/compiler/gdc" ADD_CFLAGS=""
make[1]: Entering directory `/home/jim/projects/opensource/tango/lib/common/tango'
gdmd -c -release -O -inline -version=Posix -q,-nostdinc -I/home/jim/projects/opensource/tango/lib/common -I/home/jim/projects/opensource/tango/lib/.. -I/home/jim/projects/opens
ource/tango/lib/compiler/gdc -v1 -Hfcore/BitManip.di core/BitManip.d -ofcore/BitManip.o
gdmd -c -release -O -inline -version=Posix -q,-nostdinc -I/home/jim/projects/opensource/tango/lib/common -I/home/jim/projects/opensource/tango/lib/.. -I/home/jim/projects/opens
ource/tango/lib/compiler/gdc -v1 -Hfcore/Exception.di core/Exception.d -ofcore/Exception.o
gdmd -c -release -O -inline -version=Posix -q,-nostdinc -I/home/jim/projects/opensource/tango/lib/common -I/home/jim/projects/opensource/tango/lib/.. -I/home/jim/projects/opens
ource/tango/lib/compiler/gdc -v1 -Hfcore/Memory.di core/Memory.d -ofcore/Memory.o
gdmd -c -release -O -inline -version=Posix -q,-nostdinc -I/home/jim/projects/opensource/tango/lib/common -I/home/jim/projects/opensource/tango/lib/.. -I/home/jim/projects/opens
ource/tango/lib/compiler/gdc -v1 -Hfcore/Runtime.di core/Runtime.d -ofcore/Runtime.o
gdmd -c -release -O -inline -version=Posix -q,-nostdinc -I/home/jim/projects/opensource/tango/lib/common -I/home/jim/projects/opensource/tango/lib/.. -I/home/jim/projects/opens
ource/tango/lib/compiler/gdc -v1 -Hfcore/Thread.di core/Thread.d -ofcore/Thread.o

# [...]

11/13/07 04:48:14 changed by larsivi

  • status changed from new to closed.
  • resolution set to fixed.

(In [2867]) Make absolutely sure those header files are readable. closes #565 as long as it is built using build-gdc.sh