[Issue 7016] local import does not create -deps dependency
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Dec 29 17:55:08 PST 2016
https://issues.dlang.org/show_bug.cgi?id=7016
--- Comment #25 from Vladimir Panteleev <thecybershadow at gmail.com> ---
(In reply to RazvanN from comment #17)
> Cannot reproduce on Ubuntu 16.04, latest version of compiler.
I can reproduce this on a brand new Ubuntu 16.04 amd64 installation. Please see
the log below. Something on your system must be causing you to get a different
result, please try in a new chroot or virtual machine.
--------------------------------------------------------------------------
~/tmp/2016-12-30b $ sudo debootstrap --arch amd64 xenial xenial
http://archive.ubuntu.com/ubuntu/
[...]
sudo debootstrap --arch amd64 xenial xenial http://archive.ubuntu.com/ubuntu/
24.10s user 3.41s system 35% cpu 1:17.96 total
~/tmp/2016-12-30b $ sudo systemd-nspawn -D xenial
Spawning container xenial on /home/vladimir/tmp/2016-12-30b/xenial.
Press ^] three times within 1s to kill container.
root at xenial:~# apt install curl xz-utils
[...]
root at xenial:~# curl -fsS https://dlang.org/install.sh | bash -s dmd
######################################################################## 100.0%
The latest version of this script was installed as ~/dlang/install.sh.
It can be used it to install further D compilers.
Run `~/dlang/install.sh --help` for usage information.
Downloading and unpacking
http://downloads.dlang.org/releases/2.x/2.072.1/dmd.2.072.1.linux.tar.xz
######################################################################## 100.0%
Downloading https://dlang.org/d-keyring.gpg
######################################################################## 100.0%
Downloading and unpacking
http://code.dlang.org/files/dub-1.1.1-linux-x86_64.tar.gz
######################################################################## 100.0%
Run `source ~/dlang/dmd-2.072.1/activate` in your shell to use dmd-2.072.1.
This will setup PATH, LIBRARY_PATH, LD_LIBRARY_PATH, DMD, DC, and PS1.
Run `deactivate` later on to restore your environment.
root at xenial:~# source ~/dlang/dmd-2.072.1/activate
(dmd-2.072.1)root at xenial:~# echo 'import b; void main() { f(); }' > a.d
(dmd-2.072.1)root at xenial:~# echo 'int f() { import c; return i; }' > b.d
(dmd-2.072.1)root at xenial:~# echo 'int i = 42;' > c.d
(dmd-2.072.1)root at xenial:~# dmd -deps=a.deps -o- a.d
(dmd-2.072.1)root at xenial:~# cat a.deps
a (a.d) : private : object
(/root/dlang/dmd-2.072.1/linux/bin64/../../src/druntime/import/object.d)
b (b.d) : private : object
(/root/dlang/dmd-2.072.1/linux/bin64/../../src/druntime/import/object.d)
a (a.d) : private : b (b.d)
(dmd-2.072.1)root at xenial:~#
--
More information about the Digitalmars-d-bugs
mailing list