build:wafsamba: Ensure that target clones get a different name
authorThomas Nagy <tnagy@waf.io>
Thu, 19 Nov 2015 00:44:43 +0000 (01:44 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 24 Nov 2015 04:00:27 +0000 (05:00 +0100)
Changing the 'target' attribute results in a different file name,
which is visibly necessary. Yet the 'name' attribute should also
be modified even if invisible as it is used to query targets
(uselib for example). Failing to do so results in errors in Waf 1.8.

Signed-off-by: Thomas Nagy <tnagy@waf.io>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
buildtools/wafsamba/samba_install.py

index 8297ce4f9c0d968ff02845de87f372b5d7c480f2..21035bf29dbaeecf570c13a0cc74046b56a8521f 100644 (file)
@@ -92,6 +92,7 @@ def install_library(self):
             t = self.clone(self.env)
             t.posted = False
             t.target += '.inst'
+            t.name = self.name + '.inst'
             self.env.RPATH = build_ldflags
         else:
             t = self