Thread overview | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
August 03, 2015 Wiki article: Starting as a Contributor | ||||
---|---|---|---|---|
| ||||
I had to set up dmd and friends on a fresh Ubuntu box, so I thought I'd document the step-by-step process: http://wiki.dlang.org/Starting_as_a_Contributor Along the way I also hit a small snag and fixed it at https://github.com/D-Programming-Language/dlang.org/pull/1049 Further improvements are welcome. Thanks, Andrei |
August 03, 2015 Re: Wiki article: Starting as a Contributor | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On 8/3/15 5:25 PM, Andrei Alexandrescu wrote: > I had to set up dmd and friends on a fresh Ubuntu box, so I thought I'd > document the step-by-step process: > > http://wiki.dlang.org/Starting_as_a_Contributor You should make sure there's no overlap with this: http://wiki.dlang.org/Get_involved I think it's a great idea to have a bootstrap for how to get your environment set up. It's been a long time since I did it. What I did is to download a dmd release zipfile, then delete the dmd, druntime, and phobos src, replacing it with cloned git repositories. I also deleted all the binaries/libraries under bin/os directory, and use symlinks to the built files from their appropriate source directories. This way I can test changes without having to create a new installation somewhere. -Steve |
August 03, 2015 Re: Wiki article: Starting as a Contributor | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | On 04-Aug-2015 01:30, Steven Schveighoffer wrote: > On 8/3/15 5:25 PM, Andrei Alexandrescu wrote: >> I had to set up dmd and friends on a fresh Ubuntu box, so I thought I'd >> document the step-by-step process: >> >> http://wiki.dlang.org/Starting_as_a_Contributor > > You should make sure there's no overlap with this: > > http://wiki.dlang.org/Get_involved > > I think it's a great idea to have a bootstrap for how to get your > environment set up. It's been a long time since I did it. What I did is > to download a dmd release zipfile, then delete the dmd, druntime, and > phobos src, replacing it with cloned git repositories. > > I also deleted all the binaries/libraries under bin/os directory, and > use symlinks to the built files from their appropriate source > directories. This way I can test changes without having to create a new > installation somewhere. > Yes, it's fairly simple way that I used countless times with great success. -- Dmitry Olshansky |
August 04, 2015 Re: Wiki article: Starting as a Contributor | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On 08/03/2015 02:25 PM, Andrei Alexandrescu wrote:
> I had to set up dmd and friends on a fresh Ubuntu box, so I thought I'd
> document the step-by-step process:
>
> http://wiki.dlang.org/Starting_as_a_Contributor
>
> Along the way I also hit a small snag and fixed it at
>
> https://github.com/D-Programming-Language/dlang.org/pull/1049
>
> Further improvements are welcome.
>
>
> Thanks,
>
> Andrei
I am trying this now. I've already hit a problem. The wiki makes it sound like the bootstrapping is optional. As I already have dmd 2.067, I skipped that stepped and failed when making druntime as it apparently assumes the bootstrapped dmd:
[druntime]$ make -f posix.mak
../dmd/src/dmd -conf= -c -o- -Isrc -Iimport -Hfimport/core/sync/barrier.di src/core/sync/barrier.d
make: ../dmd/src/dmd: Command not found
make: *** [import/core/sync/barrier.di] Error 127
A symbolic link to dmd 2.067 failed because it does not know about pragma(inline). Fine...
Bootstrapping now... :)
Ali
|
August 04, 2015 Re: Wiki article: Starting as a Contributor | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | On Monday, 3 August 2015 at 22:30:23 UTC, Steven Schveighoffer wrote:
> I also deleted all the binaries/libraries under bin/os directory, and use symlinks to the built files from their appropriate source directories. This way I can test changes without having to create a new installation somewhere.
It's much cleaner to use $HOME/bin for that purpose and not touch the /usr/bin, which is supposed to be managed by the package manager. At least openSUSE prepends $HOME/bin at the front of PATH, I believe Ubuntu does the same.
|
August 04, 2015 Re: Wiki article: Starting as a Contributor | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ali Çehreli | On 8/4/15 1:35 AM, Ali Çehreli wrote:
> I am trying this now. I've already hit a problem. The wiki makes it
> sound like the bootstrapping is optional. As I already have dmd 2.067, I
> skipped that stepped and failed when making druntime as it apparently
> assumes the bootstrapped dmd:
Yah, druntime requires the freshly-built dmd. I mentioned that in the wiki. -- Andrei
|
August 04, 2015 Re: Wiki article: Starting as a Contributor | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On 8/4/15 8:25 AM, Andrei Alexandrescu wrote:
> On 8/4/15 1:35 AM, Ali Çehreli wrote:
>> I am trying this now. I've already hit a problem. The wiki makes it
>> sound like the bootstrapping is optional. As I already have dmd 2.067, I
>> skipped that stepped and failed when making druntime as it apparently
>> assumes the bootstrapped dmd:
>
> Yah, druntime requires the freshly-built dmd. I mentioned that in the
> wiki. -- Andrei
Now added similar mentions of prerequisites, and also a whole section on "Typical Contributor Workflow". -- Andrei
|
August 04, 2015 Re: Wiki article: Starting as a Contributor | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On 08/04/2015 07:02 AM, Andrei Alexandrescu wrote: > a whole section on > "Typical Contributor Workflow". -- Andrei In case there are others that don't know, "git co" in that section is an alias to "git checkout": http://stackoverflow.com/questions/14489109/how-to-alias-git-checkout-to-git-co Ali |
August 04, 2015 Re: Wiki article: Starting as a Contributor | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ali Çehreli | On 8/4/15 11:42 AM, Ali Çehreli wrote:
> On 08/04/2015 07:02 AM, Andrei Alexandrescu wrote:
>> a whole section on
>> "Typical Contributor Workflow". -- Andrei
>
> In case there are others that don't know, "git co" in that section is an
> alias to "git checkout":
>
>
> http://stackoverflow.com/questions/14489109/how-to-alias-git-checkout-to-git-co
>
>
> Ali
Oops, my bad. Fixed now. -- Andrei
|
August 04, 2015 Re: Wiki article: Starting as a Contributor | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On 03/08/15 23:25, Andrei Alexandrescu wrote: > I had to set up dmd and friends on a fresh Ubuntu box, so I thought I'd > document the step-by-step process: > > http://wiki.dlang.org/Starting_as_a_Contributor > > Along the way I also hit a small snag and fixed it at > > https://github.com/D-Programming-Language/dlang.org/pull/1049 > > Further improvements are welcome. I recommend turning this wiki page into a new page, "Contribute", at dlang.org. Put it as a top level menu item (or possibly under "Community"). This page could also contain information how to make a pull request. -- /Jacob Carlborg |
Copyright © 1999-2021 by the D Language Foundation