[Issue 278] New: dmd.conf search path dosn't work

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 3 13:03:03 PDT 2006


http://d.puremagic.com/issues/show_bug.cgi?id=278

           Summary: dmd.conf search path dosn't work
           Product: D
           Version: 0.163
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: shro8822 at uidaho.edu


from http://www.digitalmars.com/d/dcompiler.html

"dmd will look for the initialization file dmd.conf in the following sequence
of directories:

   1. current working directory
   2. directory specified by the HOME environment variable
   3. directory dmd resides in
   4. /etc/"

However, on Linux, step number three ("directory dmd resides in") doesn't work.
If /etc/dmd.conf is unreadable, dmd wont find /bin/dmd (assuming /bin/dmd is
being called). This also fails if dmd is run by way of a softlink,
/bin/sub/dmd.conf isn't found when the softlink /bin/sub/dmd is run. I haven't
tested this on windows.

This is a killer for having several setups for dmd. Say I want dmd.163 and
dmd.160 on the same box. If this worked, I could install dmd.163 in /bin with
it's dmd.conf and also place a dmd.160 in /bin/160 with a dmd.conf that points
to the correct phobos imports and libs.

This must be fixed before 1.0 because it would prevent dmd 1.0 and dmd 2.0 from
coexisting on the same box. This is blocking a project I am working on right
now so I would lick to see it fixed ASA Practical.


-- 




More information about the Digitalmars-d-bugs mailing list