www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - DMD in Gentoo

reply Anant Narayanan <anant gentoo.org> writes:
Hi All,

Just a quick announcement that I just added DMD versions 1.010 and 1.014 to the
portage tree. Apparently, some features of the language aren't supported by the
current GDC version, so this should help.

Also, I would have liked to offer the option of using tango with DMD, but the
current tango release (0.98) doesn't seem to compile with DMD 1.010 or 1.014.

Regards,
-- 
Anant Narayanan
http://www.kix.in/

gpg --recv-keys 0EF6914E
<anant kix.in,gentoo.org,php.net>
May 20 2007
next sibling parent reply Brad Roberts <braddr puremagic.com> writes:
Anant Narayanan wrote:
 Hi All,
 
 Just a quick announcement that I just added DMD versions 1.010 and
 1.014 to the portage tree. Apparently, some features of the language
 aren't supported by the current GDC version, so this should help.
 
 Also, I would have liked to offer the option of using tango with DMD,
 but the current tango release (0.98) doesn't seem to compile with DMD
 1.010 or 1.014.
 
 Regards,

A subset of dmd/license.txt: The Software is copyrighted and comes with a single user license, and may not be redistributed. If you wish to obtain a redistribution license, please contact Digital Mars. Did Walter ok this? Later, Brad
May 20 2007
next sibling parent "Unknown W. Brackets" <unknown simplemachines.org> writes:
Well, if I recall the way portage works is to pull the files from 
digitalmars.com anyway, which I think has been said was fine... but I 
suppose it's always best to check.

-[Unknown]


Brad Roberts wrote:
 Anant Narayanan wrote:
 Hi All,

 Just a quick announcement that I just added DMD versions 1.010 and
 1.014 to the portage tree. Apparently, some features of the language
 aren't supported by the current GDC version, so this should help.

 Also, I would have liked to offer the option of using tango with DMD,
 but the current tango release (0.98) doesn't seem to compile with DMD
 1.010 or 1.014.

 Regards,

A subset of dmd/license.txt: The Software is copyrighted and comes with a single user license, and may not be redistributed. If you wish to obtain a redistribution license, please contact Digital Mars. Did Walter ok this? Later, Brad

May 20 2007
prev sibling next sibling parent Sterling Christensen <sterlingchristensen hotmail.com> writes:
As a Gentoo user who just emerged dmd-bin, I can confirm that the dmd-bin
ebuild in portage downloads dmd from ftp.digitalmars.com and not from any
Gentoo mirror.

-Sterling Christensen

Brad Roberts Wrote:
 Anant Narayanan wrote:
 Hi All,
 
 Just a quick announcement that I just added DMD versions 1.010 and
 1.014 to the portage tree. Apparently, some features of the language
 aren't supported by the current GDC version, so this should help.
 
 Also, I would have liked to offer the option of using tango with DMD,
 but the current tango release (0.98) doesn't seem to compile with DMD
 1.010 or 1.014.
 
 Regards,

A subset of dmd/license.txt: The Software is copyrighted and comes with a single user license, and may not be redistributed. If you wish to obtain a redistribution license, please contact Digital Mars. Did Walter ok this? Later, Brad

May 20 2007
prev sibling next sibling parent reply Anant Narayanan <anant gentoo.org> writes:
Hi Brad,

 A subset of dmd/license.txt:
      The Software is copyrighted and comes with a single user license,
      and may not be redistributed. If you wish to obtain a redistribution
      license, please contact Digital Mars.

 Did Walter ok this?

The package is under the nomirror restriction, which means the package isn't actually redistributed but fetched from the Digital Mars FTP site on a per-user basis (upon the user's request). Regards, -- Anant Narayanan http://www.kix.in/ gpg --recv-keys 0EF6914E <anant kix.in,gentoo.org,php.net>
May 21 2007
parent =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
Anant Narayanan wrote:

 A subset of dmd/license.txt:
      The Software is copyrighted and comes with a single user license,
      and may not be redistributed. If you wish to obtain a redistribution
      license, please contact Digital Mars.

 Did Walter ok this?

The package is under the nomirror restriction, which means the package isn't actually redistributed but fetched from the Digital Mars FTP site on a per-user basis (upon the user's request).

This is the same as with the .nosrc.rpm packages for RPM, they contain everything but the actual ZIP distfile from Digital Mars (just the URL): Source: ftp://ftp.digitalmars.com/%{name}.%{version}.zip NoSource: 0 --anders
May 21 2007
prev sibling parent Brad Roberts <braddr puremagic.com> writes:
Anant Narayanan wrote:
 Hi Brad,
 
 A subset of dmd/license.txt:
      The Software is copyrighted and comes with a single user license,
      and may not be redistributed. If you wish to obtain a redistribution
      license, please contact Digital Mars.

 Did Walter ok this?

The package is under the nomirror restriction, which means the package isn't actually redistributed but fetched from the Digital Mars FTP site on a per-user basis (upon the user's request). Regards, -- Anant Narayanan http://www.kix.in/ gpg --recv-keys 0EF6914E <anant kix.in,gentoo.org,php.net>

Great. The announcement that it's for a specific version is what tweaked my concern as it's a key aspect of why Walter doesn't allow redistribution. He wants users to always get the latest release, not have old releases living in the wild. Does this package seek to always get the most recent version or is it hard coded at those versions? Later, Brad
May 21 2007
prev sibling next sibling parent reply J D <digitalmars dresserfamily.org> writes:
I wish someone would add this to Ubuntu.

Anant Narayanan Wrote:

 Hi All,
 
 Just a quick announcement that I just added DMD versions 1.010 and 1.014 to
the portage tree. Apparently, some features of the language aren't supported by
the current GDC version, so this should help.
 
 Also, I would have liked to offer the option of using tango with DMD, but the
current tango release (0.98) doesn't seem to compile with DMD 1.010 or 1.014.
 
 Regards,
 -- 
 Anant Narayanan
 http://www.kix.in/
 
 gpg --recv-keys 0EF6914E
 <anant kix.in,gentoo.org,php.net>
 

May 20 2007
next sibling parent Lars Ivar Igesund <larsivar igesund.net> writes:
J D wrote:
 Also, I would have liked to offer the option of using tango with DMD, but
 the current tango release (0.98) doesn't seem to compile with DMD 1.010
 or 1.014.


I think distros recommend reporting upstreams? :) http://www.dsource.org/projects/tango/newticket It is the first I've heard of problems with Tango and 1.014 though. Also feel free to join #d.tango if you're already on freenode. -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango
May 21 2007
prev sibling parent =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
J D wrote:

 I wish someone would add this to Ubuntu.

BTW; Wouldn't GDC be better to use for Ubuntu ? (gdc would go as "free", but dmd as "non-free") It could probably use the Debian package for GDC, once that package has been accepted for inclusion: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=403460 https://bugs.launchpad.net/ubuntu/+bug/87337 You can of course make a request for a DMD package, or continue to install it from ftp.digitalmars.com --anders
May 21 2007
prev sibling next sibling parent reply David Ferenczi <raggae ferenczi.net> writes:
Anant Narayanan wrote:

 Hi All,
 
 Just a quick announcement that I just added DMD versions 1.010 and 1.014
 to the portage tree. Apparently, some features of the language aren't
 supported by the current GDC version, so this should help.
 
 Also, I would have liked to offer the option of using tango with DMD, but
 the current tango release (0.98) doesn't seem to compile with DMD 1.010 or
 1.014.
 
 Regards,

Hi Anant, many thanks for maintaining the ebuild. I'd like to switch to this official ebuild instead of the overlay I currently use, but the the dmd-bin ebuild hasn't been updated frequently, so far. Are you going to give frequnt updates (e.g. whenever a new stable version is out)? Regards, David
May 21 2007
parent reply Anant Narayanan <anant gentoo.org> writes:
David Ferenczi wrote:
 I'd like to switch to this official ebuild instead of the overlay I
 currently use, but the the dmd-bin ebuild hasn't been updated frequently,
 so far.

 Are you going to give frequnt updates (e.g. whenever a new stable version is
 out)?

Sure, but please do file a bug (http://bugs.gentoo.org/) to remind me :) Also, I maintain an overlay for D-related ebuilds, updates usually go there for testing before they reach the actualy portage tree. If you don't mind cutting-edge ebuilds - http://overlays.gentoo.org/dev/anant is for you! The overlay currently has support for building DMD with the Tango standard library instead of phobos. Best Regards, -- Anant Narayanan http://www.kix.in/ gpg --recv-keys 0EF6914E <anant kix.in,gentoo.org,php.net>
May 22 2007
parent David Ferenczi <raggae ferenczi.net> writes:
Anant Narayanan wrote:
 Sure, but please do file a bug (http://bugs.gentoo.org/) to remind me :)

Ok. ;-)
 Also, I maintain an overlay for D-related ebuilds, updates usually go
 there for testing before they reach the actualy portage tree. If you don't
 mind cutting-edge ebuilds - http://overlays.gentoo.org/dev/anant is for
 you! The overlay currently has support for building DMD with the Tango
 standard library instead of phobos.

I'm looking forward to the ebuild with Tango support. I hope I can find some time to try it out on one of the following weekends. Regards, David
May 22 2007
prev sibling next sibling parent Jan Claeys <usenet janc.be> writes:
Op Mon, 21 May 2007 10:46:45 -0700
schreef Brad Roberts <braddr puremagic.com>:

 Great.  The announcement that it's for a specific version is what 
 tweaked my concern as it's a key aspect of why Walter doesn't allow 
 redistribution.  He wants users to always get the latest release, not 
 have old releases living in the wild.  Does this package seek to
 always get the most recent version or is it hard coded at those
 versions?

How could Anant guarantee that a new version would be installed correctly and actually work if he hasn't got the chance to test it first? -- Jan Claeys
May 26 2007
prev sibling parent Brad Anderson <brad dsource.org> writes:
Anant Narayanan wrote:
 Hi All,
 
 Just a quick announcement that I just added DMD versions 1.010 and 1.014 to
 the portage tree. Apparently, some features of the language aren't
 supported by the current GDC version, so this should help.
 
 Also, I would have liked to offer the option of using tango with DMD, but
 the current tango release (0.98) doesn't seem to compile with DMD 1.010 or
 1.014.
 
 Regards,

Anant, Um, hi. I just lost some hair over something that you mention in this post. Tango doesn't work with your setup. I just upgraded my dmd to the one you put in portage... that's bad-ass, btw, so thanks. Then, I tried to build Tango from source. Not so much, as you note above. The issue I corrected was to (in /opt/dmd/bin/) remove your dmd shell script and rename the dmd.bin to dmd. Not sure how the legal crap works out for you, but your -I and -L are no good. I prefer to control my Phobos vs. Tango setups in /etc/dmd.conf, which is symlinked to /opt/dmd/bin/dmd.conf I'm not sure if you can change the ebuild to reflect these changes, but it would be nice. If you're bound to having dmd.bin, maybe you could work your voodoo on dmd (shell script) to accept the other args. In any case, with my new setup, and a fresh tango checkout at ~/dev/d/tango, I just navigated to ~/dev/d/tango/lib and executed ./build-dmd.sh and ./install-dmd.sh, and voila, no more hair of mine need be expended. iI get a nice new, shiny libphobos.a in /usr/lib/ A side issue for Walter is wtf that name is doing hardcoded into the compiler. Baby steps ;) Cheers, Brad
May 31 2007