D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 17268 - Build dub with dmd version that included in the release
Summary: Build dub with dmd version that included in the release
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: installer (show other issues)
Version: D2
Hardware: All All
: P4 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-20 01:37 UTC by Roman
Modified: 2022-12-17 10:32 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Roman 2017-03-20 01:37:56 UTC
I may be wrong, but it looks like dub that bundled with dmd in tar.xz archives is built with earlier dmd version than the one included in the same archive.
If it's the case, this should be fixed.
Phobos and dmd may have fixes that affects dub too, so it should be built against the latest standard library.

E.g. check this issue https://github.com/dlang/dub/issues/1096
Comment 1 Seb 2018-03-27 07:55:04 UTC
Looking at the source (https://github.com/dlang/installer/blob/master/create_dmd_release/create_dmd_release.d#L532), it seems like this was done on purpose:


// build dub with stable (host) compiler, b/c it breaks
// too easily with the latest compiler, e.g. for nightlies

Though I agree that the released dub should use the freshly built Phobos.
Comment 2 Seb 2018-07-17 10:28:19 UTC
Ideally dub should be built with a stable LDC though...