[dmd-beta] Preparation for 2.65

Andrew Edwards edwards.ac at gmail.com
Tue Jan 21 12:28:10 PST 2014


On 1/21/14, 4:28 AM, Jordi Sayol wrote:
> El 21/01/14 00:17, Martin Nowak ha escrit:
>> On 01/20/2014 02:47 AM, Jordi Sayol wrote:
>>> If correctly compiles, Debian 6.0.? should be the best option. The second one would be Debian 7.?
>> OK, done.
>> https://github.com/MartinNowak/installer/commit/b64ddfefd9cd6a773cb32d1cdd7acde68eb353c9
>>
>> http://dlang.dawg.eu/download/dmd.v2.065-b1.zip <https://github.com/MartinNowak/installer/commit/b64ddfefd9cd6a773cb32d1cdd7acde68eb353c9>
>> sha1 bd4ce088e9f20d04023dccdd2ec7b170e7f2cea0
>
> Fixed, thanks!
>
>
> There is another big problem. dmd do not read "/etc/dmd.conf"
>
> ----
> $ dmd -run hello_world.d
> Error: cannot find source code for runtime library file 'object.d'
>         dmd might not be correctly installed. Run 'dmd -man' for installation instructions.
> Specify path to file 'object.d' with -I switch
> ----
>
> If I add the same flags from "/etc/dmd.conf" on dmd command line, it works.
>
> ----
> $ dmd -I/usr/include/dmd/phobos -I/usr/include/dmd/druntime/import -run hello_world.d
> Hello World!
> ----
>
Jordi, need you to mod tools to accept beta naming convention. Using 
create_dmd_release the pkg created for beta 1 is:

     dmd.v2.065-b1.zip

Presently scripts in installer/linux/ do not recognize this format. 
Initial progress was made changing following lines:

https://github.com/D-Programming-Language/installer/blob/master/linux/build_all.sh#L92
https://github.com/D-Programming-Language/installer/blob/master/linux/dmd_deb.sh#L49
https://github.com/D-Programming-Language/installer/blob/master/linux/dmd_phobos.sh#L49
https://github.com/D-Programming-Language/installer/blob/master/linux/dmd_rpm.sh#L49

to read:

if ! [[ $VER =~ ^[0-9]"."[0-9][0-9][0-9]$ || $VER =~ 
^[0-9]"."[0-9][0-9][0-9]"-b"[0-9]$ || $VER =~ 
^[0-9]"."[0-9][0-9][0-9]"."[0-9]+$ ]]

and these:

https://github.com/D-Programming-Language/installer/blob/master/linux/dmd_deb.sh#L109
https://github.com/D-Programming-Language/installer/blob/master/linux/dmd_phobos.sh#L109
https://github.com/D-Programming-Language/installer/blob/master/linux/dmd_rpm.sh#L109

to read:

DMDURL="http://ftp.digitalmars.com/dmd.v$VERSION.zip"

This fails during the rpm build. Error message follows:

**********************************************************************
     ./dmd_rpm.sh -v2.065-b1 -m32

**********************************************************************
     /tmp/1390335365179811923/dmd-2.065-b1-0.i386 ~/build_dmd
     Building target platforms: i386
     Building for target i386
     error: line 2: Illegal char '-' in: Version: 2.065-b1

Thanks for your assistance,
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/dmd-beta/attachments/20140121/d737a7ba/attachment.html>


More information about the dmd-beta mailing list