Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46806 - dev-lang/dmd-bin-0.173 (new ebuild)
Summary: dev-lang/dmd-bin-0.173 (new ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Maintainers for Miscelleneous Language Packages [OBSOLETE]
URL: http://digitalmars.com/d
Whiteboard:
Keywords: EBUILD
: 159662 (view as bug list)
Depends on:
Blocks: 80435 80437 80438 118209
  Show dependency tree
 
Reported: 2004-04-04 16:44 UTC by Stephan Wienczny
Modified: 2011-12-21 02:04 UTC (History)
17 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dmd-0.8.1.ebuild (New Package) (dmd-0.8.1.ebuild,855 bytes, text/plain)
2004-04-04 16:46 UTC, Stephan Wienczny
Details
dmd-0.8.8 (dmd-0.8.8.ebuild,855 bytes, text/plain)
2004-05-15 06:22 UTC, Stephan Wienczny
Details
dev-lang/dmd-0.106.ebuild (dmd-0.106.ebuild,838 bytes, text/plain)
2004-11-27 11:02 UTC, Marti Raudsepp
Details
dev-lang/dmd/dmd-0.113.ebuild (dmd-0.113.ebuild,906 bytes, text/plain)
2005-02-22 14:25 UTC, Anders F Björklund
Details
DMD (DMD,2.49 KB, text/plain)
2005-02-22 14:26 UTC, Anders F Björklund
Details
dev-lang/dmd/dmd-0.114.ebuild (dmd-0.114.ebuild,1001 bytes, text/plain)
2005-02-28 08:44 UTC, Anders F Björklund
Details
dev-lang/dmd/dmd-0.121.ebuild (dmd-0.121.ebuild,1006 bytes, text/plain)
2005-04-17 03:09 UTC, Anders F Björklund
Details
Ebuild for DMD-0.151 on AMD64 supporting SLOTs (dmd-0.151.ebuild,1.72 KB, text/plain)
2006-04-04 07:07 UTC, Thomas Kühne
Details
Ebuild for DMD-0.169 on AMD64 and X86 using SLOTs (dmd-0.169.ebuild,1.92 KB, text/plain)
2006-10-14 04:35 UTC, Thomas Kühne
Details
Ebuild for DMD-0.173 on AMD64 and X86 using SLOTs (dmd-0.173.ebuild,1.97 KB, text/plain)
2006-11-03 23:41 UTC, Thomas Kühne
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Wienczny 2004-04-04 16:44:47 UTC
Hi!

I've written an ebuild that installes the DigitalMars D compiler - dmd
D is a new language designed by Walter Bright that is yet another successor of C
The D comunity is growing so maybe you will like it.

I would suggest dev-lang/dmd

CU
Comment 1 Stephan Wienczny 2004-04-04 16:46:42 UTC
Created attachment 28708 [details]
dmd-0.8.1.ebuild (New Package)
Comment 2 Daniel Milne 2004-04-20 00:19:27 UTC
I was just going to request somebody did this. Any word on the GCC frontend?
Comment 3 Stephan Wienczny 2004-05-15 06:22:22 UTC
Created attachment 31475 [details]
dmd-0.8.8
Comment 4 Radek Podgorny 2004-10-09 11:36:28 UTC
This ebuild works just fine. Please add to portage...

Thanks...
Comment 5 trejkaz 2004-10-09 20:12:57 UTC
It still needs some fixes, obviously.

I have version 0.100 here, which would seem much more recent than 0.8.x.  So the numbering scheme needs fixing first... I think that "0.8.8" should have been "0.88".

But the real problem is this: the version you have just installed is probably not the same as the ebuild version.  And related to this: you can't create a digest for their download.  I doubt an ebuild without a working digest would be allowed into portage.
Comment 6 Radek Podgorny 2004-10-10 02:51:36 UTC
I've already emailed the authors about the versioning... Let's see what happens...
Comment 7 Siarhei Siamashka 2004-10-30 01:19:59 UTC
Well, looks the authors started adding version numbers to zip files:
http://www.digitalmars.com/d/changelog.html

At least the latest version of DMD at the moment has version number in it:
ftp://ftp.digitalmars.com/dmd.105.zip
Comment 8 Radek Podgorny 2004-11-01 16:29:51 UTC
Can you please add this to portage?
Comment 9 Radek Podgorny 2004-11-13 06:17:17 UTC
Version 0.106 is out... Anyone watching this?
Comment 10 Marti Raudsepp 2004-11-27 11:02:39 UTC
Created attachment 44838 [details]
dev-lang/dmd-0.106.ebuild

New ebuild compatible with DMD version 0.106
Comment 11 Marti Raudsepp 2004-11-27 11:06:59 UTC
The new ebuild should be ready for inclusion in the Portage tree. Newer versions should only take a version bump. The ebuild works with (at least) the newest version of Portage.
Comment 12 Anders F Björklund 2005-02-22 14:25:27 UTC
Created attachment 51903 [details]
dev-lang/dmd/dmd-0.113.ebuild

Fixes the license:
> LICENSE="DMD"
> RESTRICT="nomirror"
Comment 13 Anders F Björklund 2005-02-22 14:26:58 UTC
Created attachment 51904 [details]
DMD

This is the license.txt for DMD
(for /usr/portage/licenses/DMD)
Comment 14 Anders F Björklund 2005-02-25 11:54:06 UTC
Since this (DMD) is a binary-only package,
does this mean it should be under /opt ?
Comment 15 Anders F Björklund 2005-02-28 08:44:21 UTC
Created attachment 52307 [details]
dev-lang/dmd/dmd-0.114.ebuild

New release version, added manpages
Comment 16 Anders F Björklund 2005-02-28 08:46:23 UTC
I'm ignoring Comment 14 for now and just leaving it in /usr...
Comment 17 Stephan Wienczny 2005-02-28 09:06:12 UTC
About Comment #14. It should go into /opt if there is no "hardwired" problem.
It has been some time since I last tried it. Maybe I'll look at it again
Comment 18 Anders F Björklund 2005-02-28 09:55:40 UTC
The only "hardwiring" is /usr/lib/phobos,
which can be changed in the ebuild if needed.
(leaving in the default location is easier...)

And of course there needs to be entries in
PATH and DFLAGS/dmd.conf if not using the
default /usr/bin and /usr/lib directories -
I believe this would go in /etc/env.d/dmd ?

See http://www.prowiki.org/wiki4d/wiki.cgi?D__Tutorial/InstallingDCompiler
Comment 19 Florian RIVOAL 2005-02-28 10:28:41 UTC
Works nice with me. gald I found this ebuild. I belive this belongs to /opt, if possible. Appart from that, I think this should go into portage soon, under ~x86. As far as I am conserned, it can go into portage as is, and move to /opt in future release (like a 0.114-r1)
Comment 20 Marti Raudsepp 2005-02-28 11:19:16 UTC
DMD should definitely not go into the /opt directory for several reasons:
1. It would be disturbing to set your PATH (and MANPATH) environment variables if you want to be able to use the DMD compiler (or man pages) from the command-line (at least until we have a dmd-config script which is definitely not necessary at the moment)

2. DMD fits rather nicely into the filesystem tree.
All the files are where the user would expect them to be in case of a package installation.
It currently creates 8 files and 2 directories (assuming a normal setup), which doesn't really interfere with anything else:
/etc/dmd.conf
/usr/bin/dmd
/usr/bin/dumpobj
/usr/bin/obj2asm
/usr/lib/libphobos.a
/usr/share/man/man1/dmd.1.gz
/usr/share/man/man1/dumpobj.1.gz
/usr/share/man/man1/obj2asm.1.gz
---
/usr/lib/phobos
/usr/share/doc/dmd-0.114
Comment 21 trejkaz 2005-02-28 13:04:55 UTC
> 1. It would be disturbing to set your PATH (and MANPATH) environment
> variables if you want to be able to use the DMD compiler (or man pages) from
> the command-line (at least until we have a dmd-config script which is
> definitely not necessary at the moment)

Java is in /opt, and I don't need to set my PATH before using the Java compiler.  I don't think you'd need dmd-config either, just an entry in /etc/env.d.
Comment 22 Marti Raudsepp 2005-02-28 13:09:23 UTC
Trejkaz Xaoza wrote:
> Java is in /opt, and I don't need to set my PATH before using the Java
> compiler.  I don't think you'd need dmd-config either, just an entry i
> /etc/env.d.

Sorry, you're right about that, I didn't think about env.d. I still prefer the current layout though.
Comment 23 Florian RIVOAL 2005-02-28 21:37:49 UTC
dmd 0.115 is out. Just copy dmd-0.114.ebuild to dmd-0.115.ebuild should do the trick.
Comment 24 Florian RIVOAL 2005-03-10 02:23:08 UTC
dmd 0.116 is out. as before, copy and rename the previous ebuild, and everything is going to be fine.

This makes me think that this ebuild is pretty stable, and working well. why doesn't it go into portage?
Comment 25 Marti Raudsepp 2005-03-20 11:44:15 UTC
(cd dmd/src/phobos; find -name '*.d' | grep -v internal | xargs tar c) | \
(cd "${D}/usr/lib/phobos"; tar xo)

Do we really need this kind of ugliness in the ebuild just to filter out the internal/ directory and .c/.cpp/.h files? It doesn't save us a lot of space and 'grep -v internal' might potentially conflict with future module names.
'grep -v ^internal/' would solve this problem, but I would prefer something more obvious instead of the code above.
Comment 26 Anders F Björklund 2005-03-30 23:32:40 UTC
About Comment 25:
Such ugliness would *not* be needed if
upstream just provided a "make install"...
Comment 27 Anders F Björklund 2005-04-17 03:09:12 UTC
Created attachment 56499 [details]
dev-lang/dmd/dmd-0.121.ebuild

Updated to version 0.121, added the "internal" files back in.

Source files, Makefiles, and unittest are still NOT included.
(thus, regarding Comment 25, the workaround is still needed)

I'm ignoring Comment 14, and leaving the DMD install in /usr...
It matches the manual installation, and the RPM package too.

Since this package is a binary, it is for Pentium only (X86).
Phobos (and DMD) does not yet support the X86_64 arch, either.

Don't forget to add the DMD license to /usr/portage/licenses
(See the attachment to Comment 13, for the DMD license text)

digest-dmd-0.121:
MD5 281c3a9679641e46710496e3f2acbb8a dmd.121.zip 3202057
Comment 28 Florian Rivoal 2006-01-13 04:06:03 UTC
As far as I am conserned, all versions of dmd since this ebuild has be introduced (0.121) up to the current 0.143 have been working fine just by renaming this ebuild to match the verion. isn't it time this went into portage?

Just for the sake of the compiler, it would be nice to have it, but there are also other programs (admitedly not many, but still some) depending on it too, so inclusion would be most welcome.
Comment 29 Miika Ahonen 2006-04-02 21:54:53 UTC
Just adding myself to CC :)

I'd really love to see this in portage, like some others.. but it seems there's been no progress on it for quite some time?
Comment 30 Marti Raudsepp 2006-04-03 03:31:58 UTC
(In reply to comment #29)
> I'd really love to see this in portage, like some others.. but it seems there's
> been no progress on it for quite some time?

Yeah, it looks like you have to offer sexual favors to the package maintainers to get this into Portage.
Comment 31 George Shapovalov (RETIRED) gentoo-dev 2006-04-03 07:26:36 UTC
(In reply to comment #30)
> Yeah, it looks like you have to offer sexual favors to the package 
> maintainers to get this into Portage.

That would be funny, because you essentially have to offer to*be* the package maintainer, to get this into portage ;).

Please see my comments on #48136 (the rival D compiler) for a more details on the general situation and what would be needed to do to add D cleanly. Also, if there are any D-related bugs I missed, please add them as dependencies to #118209. Please do *not* start flames or misc discussion on that bug, as it is simply a tracker. However I would wellcome somebody stepping forward, willing to take up on a role of D-language maintainer. Usual recruitment rules apply - please provide some information about yourself, links to the relevant bugs, anything you would want to show..

George

Comment 32 Thomas Kühne 2006-04-04 07:07:53 UTC
Created attachment 83888 [details]
Ebuild for DMD-0.151 on AMD64 supporting SLOTs
Comment 33 Thomas Kühne 2006-10-14 04:35:40 UTC
Created attachment 99651 [details]
Ebuild for DMD-0.169 on AMD64 and X86 using SLOTs
Comment 34 Jose Quinteiro 2006-11-03 16:56:16 UTC
(In reply to comment #33)

I had to add "sys-libs/libstdc++-v3" to RDEPEND in order to get this compiler to run on my system (x86 2006.1).
Comment 35 Thomas Kühne 2006-11-03 23:41:26 UTC
Created attachment 101192 [details]
Ebuild for DMD-0.173 on AMD64 and X86 using SLOTs

fixed the libstdc++-v3 on x86 systems
Comment 36 Jakub Moc (RETIRED) gentoo-dev 2007-01-02 01:21:15 UTC
*** Bug 159662 has been marked as a duplicate of this bug. ***
Comment 37 Anant Narayanan (RETIRED) gentoo-dev 2007-03-09 14:59:43 UTC
Thanks to everyone for their inputs, DMD v1.0.0 is now in portage. Track amd64 keyword request on bug #170131