Bug 9269 – [2.061] rdmd -unittest fails with lcurl not found

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-01-04T07:09:00Z
Last change time
2013-01-25T15:29:08Z
Assigned to
nobody
Creator
philippe.sigaud

Attachments

IDFilenameSummaryContent-TypeSize
1181traits.patchpatch to std.traits.d file for eliminating the dependency over libcurltext/plain2918

Comments

Comment #0 by philippe.sigaud — 2013-01-04T07:09:57Z
DMD 2.061: A std.traits unit test has a pragma(lib, "curl") declaration. That makes $ rdmd -unittest myfile.d fail because dmd -deps (called by rdmd) activate the pragma and if the user has no curl installed, this stops the compilation. Btw, $ dmd -unittest myfile.d works OK. The concerned std.traits unit test should be changed.
Comment #1 by andrej.mitrovich — 2013-01-04T08:08:41Z
*** Issue 9007 has been marked as a duplicate of this issue. ***
Comment #2 by andrej.mitrovich — 2013-01-18T10:19:57Z
*** Issue 9349 has been marked as a duplicate of this issue. ***
Comment #3 by pisetta.gianni — 2013-01-21T11:16:57Z
Created attachment 1181 patch to std.traits.d file for eliminating the dependency over libcurl Patch that solves the issue of libcurl needed in the unittest of std.traits module replacing the tests with the core.sync.barrier module.
Comment #4 by pisetta.gianni — 2013-01-21T11:22:41Z
I tought that it is incorrect to use a module that needs an external library, so i replaced the use of etc.c.curl module with the core.sync.barrier module, that doesn't need other libraries and i think it is unlikely that that module is changed in the future. I have attached the patch file generated with diff. Gianni Pisetta
Comment #5 by andrej.mitrovich — 2013-01-21T11:35:45Z
(In reply to comment #3) > Created an attachment (id=1181) [details] > patch to std.traits.d file for eliminating the dependency over libcurl > > Patch that solves the issue of libcurl needed in the unittest of std.traits > module replacing the tests with the core.sync.barrier module. Thanks. Do you want to make a pull request or should we do it for you?
Comment #6 by andrej.mitrovich — 2013-01-21T17:27:00Z
Comment #7 by github-bugzilla — 2013-01-21T18:44:18Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/40d9ebcdfb061856ae89ecbc8c1b723b4d63d8f3 Fixes Issue 9269 - Remove import to curl to avoid unittest build failure. https://github.com/D-Programming-Language/phobos/commit/1ec2e521b2fb328da8faddfa1e0edd940ed2cf5c Merge pull request #1088 from AndrejMitrovic/Fix9269 Issue 9269 - Remove import to curl to avoid unittest build failure
Comment #8 by yebblies — 2013-01-21T20:07:32Z
Fixed?
Comment #9 by andrej.mitrovich — 2013-01-25T15:29:08Z
Should be fixed. Reopen if necessary.