#914692 ldc fails to build, not finding bash_completion file

Package:
ldc
Source:
ldc
Description:
LLVM D Compiler
Submitter:
Pablo De Napoli
Date:
2018-12-04 01:57:13 UTC
Severity:
normal
#914692#5
Date:
2018-11-26 11:18:07 UTC
From:
To:
Dear mantainer,

ldc_1.12.0-1 fails to build from the source on my system.
It seems to compile ok. But building the package fails with the
following messages:

dh_install: Cannot find (any matches for) "etc/bash_completion.d/*" (tried in ., debian/tmp)

dh_install: ldc missing files: etc/bash_completion.d/*
dh_install: missing files, aborting
make: *** [debian/rules:45: binary] Error 25

but the bash completion file is in place;

$ ls -ld ./bash_completion.d/
drwx------ 2 pablo pablo 4096 oct 20 10:52 ./bash_completion.d/

Many thanks,

Pablo De Nápoli

#914692#10
Date:
2018-11-26 17:04:09 UTC
From:
To:
I have been able to build de package by adding a line to the rules file like this
override_dh_auto_install:
    (cd build-static && $(MAKE) install DESTDIR="$(CURDIR)/debian/tmp")
    (cd build-shared && $(MAKE) install DESTDIR="$(CURDIR)/debian/tmp")
    install -D $(CURDIR)/bash_completion.d/ldc2 $(CURDIR)/debian/tmp/etc/bash_completion.d/ldc2


and removing  --fail-missing in the line

override_dh_missing:
    dh_missing  --fail-missing

(Yes, I know this is a dirty solution. But confirms that this is the only problem for building the package).I have done this without having ldc installed in my sistem. Hence, the bootstrap is perform at building time.Hope this helps to find the bug.

#914692#15
Date:
2018-12-04 01:54:24 UTC
From:
To:
tag 914692 + unreproducible moreinfo
severity 914692 normal
thanks

Hi Pablo,

(please cc)

I just tried to reproduce this behaviour and couldn't. I did build in a
clean chroot and the build run through without any errors, and after
the build/instal stage debian/tmp/etc/bash_completion.d/ldc2 is
available.

In which surrounding did the build error happen on your side?

Best

Norbert