[Issue 15391] Problems loading libcurl.so and running datetime unittest on NixOS package build
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Nov 30 11:30:05 PST 2015
https://issues.dlang.org/show_bug.cgi?id=15391
--- Comment #3 from Thomas Mader <thomas.mader at gmail.com> ---
I was able to hack around the issue by patching the curl.d sourcefile.
#Ugly hack so the dlopen call has a chance to succeed.
substituteInPlace src/phobos/std/net/curl.d --replace libcurl.so
${curl}/lib/libcurl.so
That's in the package description for the dmd package on NixOS. That's
necessary because in NixOS every package is stored in isolation to everything
else.
So libcurl on my system resides in
/nix/store/v5a69m1b823zm1yy8yvhrd2zi2w385b1-curl-7.44.0/lib/libcurl.so.
This also makes problems in the unittest of datetime.d. The path to the
zoneinfo is hardcoded so I needed to hack around it in a similar fashion.
#Ugly hack to fix the hardcoded path to zoneinfo in the source file.
substituteInPlace src/phobos/std/datetime.d --replace
/usr/share/zoneinfo/ ${tzdata}/share/zoneinfo/
I think it should be possible to specify those paths somehow via the Makefile
to get a clean build.
--
More information about the Digitalmars-d-bugs
mailing list