UDA / File missing from fedora package / Packaging

Mathias L. pro.mathias.lang at gmail.com
Mon Jun 24 07:12:18 PDT 2013


Hi everybody!
Going from strong C(++) background, I've discovered it and became 
a fan at the first sight.

So now, while learning the language, I'd tried this example:
http://dlang.org/phobos/std_concurrency.html

[Mathias at Mars DPlayground]$ dmd server.d
server.d(6): Error: module thread is in file 'std/thread.d' which 
cannot be read
import path[0] = /usr/include/dmd/phobos
import path[1] = /usr/include/dmd/druntime/import


[Mathias at Mars DPlayground]$ rpm -qa dmd
dmd-2.063.2-0.x86_64

List of files provided by package dmd:
[Mathias at Mars DPlayground]$ rpm -ql dmd | grep thread
/usr/include/dmd/druntime/import/core/sys/osx/mach/thread_act.d
/usr/include/dmd/druntime/import/core/sys/osx/pthread.d
/usr/include/dmd/druntime/import/core/sys/posix/pthread.d
/usr/include/dmd/druntime/import/core/sys/windows/threadaux.d
/usr/include/dmd/druntime/import/core/thread.di
/usr/include/dmd/phobos/std/c/linux/pthread.d
/usr/share/dmd/html/d/phobos/core_thread.html
/usr/share/dmd/html/d/phobos/std_thread.html


Is it a bug in packaging, or I am missing something ?
Speaking about packaging, the "make install" rule of phobos 
doesn't seems correct to me ( 
https://github.com/D-Programming-Language/phobos/blob/master/posix.mak 
). It even contradicts with itself, stating the files are 
installed in /usr/lib/ while $INSTALL_DIR is ../install
Is a fix welcome ?

Last, and least, I've seen UDA around few times. Google didn't 
gave so much results, and this term is not defined in the 
glossary. Can someone introduce me to the concept (or at least, 
tell me what it stands for) ?

Thanks in advance !


More information about the Digitalmars-d mailing list