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

Changes between Version 1 and Version 2 of UnixPackaging

Show
Ignore:
Author:
larsivi (IP: 80.202.217.169)
Timestamp:
07/09/08 22:24:48 (16 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UnixPackaging

    v1 v2  
    1 = *nix packaging = 
     1= Unix packaging = 
    22 
    33To make install tools and packages in the Tango sphere share as much common ground as possible, this is an attempt in standardizing how and where to install. Where applicable, we will use existing standards like the Filesystem Hierarch Standard (http://www.pathname.com/fhs/). 
    3030=== dmd-tango-devel === 
    3131 * /etc/dmd.conf 
    32  * /usr/lib/tango/* 
     32 * /usr/include/d/tango/* 
    3333 * /usr/lib/libtango-base-dmd.a 
    3434 * /usr/lib/libtango-user-dmd.a 
    4141=== phobos aka tangobos === 
    4242 
    43 Note that this document is mainly about Tango and the compilers, and Phobos will not be part of the packages downloaded from our pages. Thus we may not worry too much about Phobos as Phobos, but instead Tangobos, which then is just another user library. 
     43Note that this document is mainly about Tango and the compilers, and Phobos will not be part of the packages downloaded from our pages. Thus we may not worry too much about Phobos as Phobos, but instead Tangobos, which then is just another user library. Since the nature of Tangobos is such that it '''may''' conflict with minor parts of Tango, we want the inclusion to be explicit via an additional -I invocation. 
    4444 
    45  * /usr/include/d 
     45 * /usr/include/d/tangobos 
    4646 
    4747As it is though, the layout doesn't preclude Phobos from being installed, and the following paths should be used to avoid conflicts. 
    4848 
    49  * /usr/lib/phobos/* 
     49 * /usr/include/d/phobos/* 
    5050 * /usr/lib/libphobos.a 
    5151 
    5252or for D 2.0 Phobos 
    5353 
    54  * /usr/lib/phobos2/* 
     54 * /usr/include/d/phobos2/* 
    5555 * /usr/lib/libphobos2.a 
    5656 
    6161Both any needed -I and -L flags, to find the installation directory, and any versions/libs like: -fversion=Tango -fversion=Posix -lgtango 
    6262 
    63 Another suggestion was to move the DMD imports to /usr/include/d, from their current /usr/lib position. (location pointed at with -I). This is also how installers and instructions in Tango has operated/stated in the past. 
    64  
    65 But traditionally, base /usr/include/d was for user import modules and it were kept clean of standard compiler modules such as Phobos. 
    66  
    67 By ''Lars Ivar'': I guess that is half the "problem", there is no standard-standard, just de-facto standard (if that). 
     63In the above, an install with Tangobos would require at least 3 -I invocations, one for Tango, one for Tangobos and one for the rest. Now, this sounds a bit silly, and this is not the way it is with current Tango downloads where Tango is installed at the root ( /usr/include/d or /usr/local/include/d) in the assumption that you didn't install Phobos in the same place. Of course, when Tango is in /usr/include/d/tango then Tangobos could be at the root /usr/include/d without causing conflicts, as long as Tango's -I switch appears first on the command line.