Re: Trying to build dlang.org - what am I doing wrong

2015-12-18 Thread Sönke Ludwig via Digitalmars-d

Am 17.12.2015 um 09:48 schrieb wobbles:

So - the conversation about the website/documentation piqued my interest
a bit and I decided to have a go at making the documentation more readable.

However, reading the instructions from:
http://wiki.dlang.org/Starting_as_a_Contributor#Fetch_and_build_dlang.org

It should be a simple matter of:
```bash
mkdir -p ~/code; cd ~/code
git clone https://github.com/D-Programming-Language/dlang.org
cd dlang.org
make -f posix.mak LATEST=2069.2
```

However, I get a std.net.curl error during compilation of dub (luckily
dlang.org doesn't depend on dub, so it doesn't particularly matter and I
can carry on with my tinkering).

http://pastebin.com/q41AnJyr

I assume theres a problem with the makefiles here - or is it stupid user
syndrome?


This is supposedly an issue in DUB's build.sh that has recently been 
fixed on GIT master [1]. The problem is caused by the uncommon 
definition of the $DC variable in posix.mak that resulted in build.sh 
not recognizing it as DMD and skipping the necessary linker workaround 
(libphobos2 needs to be passed after libcurl, but by default libphobos2 
always gets passed first).


Workaround is to edit posix.mak and change
  DC="$(abspath ${STABLE_DMD}) -conf=$(abspath ${STABLE_DMD_CONF})"
to
  DC=dmd

in the "${DUB}:" target.

[1]: https://github.com/D-Programming-Language/dub/pull/726


Trying to build dlang.org - what am I doing wrong

2015-12-17 Thread wobbles via Digitalmars-d
So - the conversation about the website/documentation piqued my 
interest a bit and I decided to have a go at making the 
documentation more readable.


However, reading the instructions from:
http://wiki.dlang.org/Starting_as_a_Contributor#Fetch_and_build_dlang.org

It should be a simple matter of:
```bash
mkdir -p ~/code; cd ~/code
git clone https://github.com/D-Programming-Language/dlang.org
cd dlang.org
make -f posix.mak LATEST=2069.2
```

However, I get a std.net.curl error during compilation of dub 
(luckily dlang.org doesn't depend on dub, so it doesn't 
particularly matter and I can carry on with my tinkering).


http://pastebin.com/q41AnJyr

I assume theres a problem with the makefiles here - or is it 
stupid user syndrome?


Re: Trying to build dlang.org - what am I doing wrong

2015-12-17 Thread Jimmy Cao via Digitalmars-d

On Thursday, 17 December 2015 at 08:48:21 UTC, wobbles wrote:
So - the conversation about the website/documentation piqued my 
interest a bit and I decided to have a go at making the 
documentation more readable.


However, reading the instructions from:
http://wiki.dlang.org/Starting_as_a_Contributor#Fetch_and_build_dlang.org

It should be a simple matter of:
```bash
mkdir -p ~/code; cd ~/code
git clone https://github.com/D-Programming-Language/dlang.org
cd dlang.org
make -f posix.mak LATEST=2069.2
```

However, I get a std.net.curl error during compilation of dub 
(luckily dlang.org doesn't depend on dub, so it doesn't 
particularly matter and I can carry on with my tinkering).


http://pastebin.com/q41AnJyr

I assume theres a problem with the makefiles here - or is it 
stupid user syndrome?


Do you have libcurl installed?  I think it's required to build 
dub.