DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] mk: Fix examples install
@ 2016-01-08 11:03 Christian Ehrhardt
  2016-01-08 11:08 ` Christian Ehrhardt
  2016-01-19  8:18 ` Thomas Monjalon
  0 siblings, 2 replies; 4+ messages in thread
From: Christian Ehrhardt @ 2016-01-08 11:03 UTC (permalink / raw)
  To: dev

Depending on non-doc targets being built before and the setting of DESTDIR
the copy of the examples dir being part of install-doc could in some cases fail
with a non existant "$(DESTDIR)$(datadir)" target directory.
Add the conditional rte_mkdir for that to avoid the issue.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
---

[diffstat]
 rte.sdkinstall.mk |    1 +
  1 file changed, 1 insertion(+)

[diff]
diff --git a/mk/rte.sdkinstall.mk b/mk/rte.sdkinstall.mk
index c159bf7..68e56b6 100644
--- a/mk/rte.sdkinstall.mk
+++ b/mk/rte.sdkinstall.mk
@@ -157,4 +157,5 @@ ifneq ($(wildcard $O/doc/*/*/*pdf),)
 	$(Q)$(call rte_mkdir,     $(DESTDIR)$(docdir)/guides)
 	$(Q)cp -a $O/doc/*/*/*pdf $(DESTDIR)$(docdir)/guides
 endif
+	$(Q)$(call rte_mkdir,         $(DESTDIR)$(datadir))
 	$(Q)cp -a $(RTE_SDK)/examples $(DESTDIR)$(datadir)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH] mk: Fix examples install
  2016-01-08 11:03 [dpdk-dev] [PATCH] mk: Fix examples install Christian Ehrhardt
@ 2016-01-08 11:08 ` Christian Ehrhardt
  2016-01-18 14:55   ` Christian Ehrhardt
  2016-01-19  8:18 ` Thomas Monjalon
  1 sibling, 1 reply; 4+ messages in thread
From: Christian Ehrhardt @ 2016-01-08 11:08 UTC (permalink / raw)
  To: dev

Forgot to mention, an easy way to test-trigger this e.g. on the dpdk 2.2
tarball.

make clean; make config T=x86_64-native-linuxapp-gcc && && make -j && make
V=1 DESTDIR=Test install-doc

In this example the install-doc fails with this:
[...]
Build complete [x86_64-native-linuxapp-gcc]
make -f /home/ubuntu/dpdk-2.2.0/mk/rte.sdkinstall.mk install-doc
cp -a /home/ubuntu/dpdk-2.2.0/examples Test/usr/local/share/dpdk
cp: cannot create directory ‘Test/usr/local/share/dpdk’: No such file or
directory
/home/ubuntu/dpdk-2.2.0/mk/rte.sdkinstall.mk:160: recipe for target
'install-doc' failed
make[1]: *** [install-doc] Error 1
/home/ubuntu/dpdk-2.2.0/mk/rte.sdkroot.mk:101: recipe for target
'install-doc' failed
make: *** [install-doc] Error 2

Christian Ehrhardt
Software Engineer, Ubuntu Server
Canonical Ltd

On Fri, Jan 8, 2016 at 12:03 PM, Christian Ehrhardt <
christian.ehrhardt@canonical.com> wrote:

> Depending on non-doc targets being built before and the setting of DESTDIR
> the copy of the examples dir being part of install-doc could in some cases
> fail
> with a non existant "$(DESTDIR)$(datadir)" target directory.
> Add the conditional rte_mkdir for that to avoid the issue.
>
> Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
> ---
>
> [diffstat]
>  rte.sdkinstall.mk |    1 +
>   1 file changed, 1 insertion(+)
>
> [diff]
> diff --git a/mk/rte.sdkinstall.mk b/mk/rte.sdkinstall.mk
> index c159bf7..68e56b6 100644
> --- a/mk/rte.sdkinstall.mk
> +++ b/mk/rte.sdkinstall.mk
> @@ -157,4 +157,5 @@ ifneq ($(wildcard $O/doc/*/*/*pdf),)
>         $(Q)$(call rte_mkdir,     $(DESTDIR)$(docdir)/guides)
>         $(Q)cp -a $O/doc/*/*/*pdf $(DESTDIR)$(docdir)/guides
>  endif
> +       $(Q)$(call rte_mkdir,         $(DESTDIR)$(datadir))
>         $(Q)cp -a $(RTE_SDK)/examples $(DESTDIR)$(datadir)
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH] mk: Fix examples install
  2016-01-08 11:08 ` Christian Ehrhardt
@ 2016-01-18 14:55   ` Christian Ehrhardt
  0 siblings, 0 replies; 4+ messages in thread
From: Christian Ehrhardt @ 2016-01-18 14:55 UTC (permalink / raw)
  To: dev

Hi,

Since there was neither positive nor negative feedback so far I wanted to
ask if this patch is ok?
Especially since we had a discussion on the approach I chose in the first
approach to this issue I'd be happy about a ack/nak.

Kind Regards,
Christian


Christian Ehrhardt
Software Engineer, Ubuntu Server
Canonical Ltd

On Fri, Jan 8, 2016 at 12:08 PM, Christian Ehrhardt <
christian.ehrhardt@canonical.com> wrote:

> Forgot to mention, an easy way to test-trigger this e.g. on the dpdk 2.2
> tarball.
>
> make clean; make config T=x86_64-native-linuxapp-gcc && && make -j && make
> V=1 DESTDIR=Test install-doc
>
> In this example the install-doc fails with this:
> [...]
> Build complete [x86_64-native-linuxapp-gcc]
> make -f /home/ubuntu/dpdk-2.2.0/mk/rte.sdkinstall.mk install-doc
> cp -a /home/ubuntu/dpdk-2.2.0/examples Test/usr/local/share/dpdk
> cp: cannot create directory ‘Test/usr/local/share/dpdk’: No such file or
> directory
> /home/ubuntu/dpdk-2.2.0/mk/rte.sdkinstall.mk:160: recipe for target
> 'install-doc' failed
> make[1]: *** [install-doc] Error 1
> /home/ubuntu/dpdk-2.2.0/mk/rte.sdkroot.mk:101: recipe for target
> 'install-doc' failed
> make: *** [install-doc] Error 2
>
> Christian Ehrhardt
> Software Engineer, Ubuntu Server
> Canonical Ltd
>
> On Fri, Jan 8, 2016 at 12:03 PM, Christian Ehrhardt <
> christian.ehrhardt@canonical.com> wrote:
>
>> Depending on non-doc targets being built before and the setting of DESTDIR
>> the copy of the examples dir being part of install-doc could in some
>> cases fail
>> with a non existant "$(DESTDIR)$(datadir)" target directory.
>> Add the conditional rte_mkdir for that to avoid the issue.
>>
>> Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
>> ---
>>
>> [diffstat]
>>  rte.sdkinstall.mk |    1 +
>>   1 file changed, 1 insertion(+)
>>
>> [diff]
>> diff --git a/mk/rte.sdkinstall.mk b/mk/rte.sdkinstall.mk
>> index c159bf7..68e56b6 100644
>> --- a/mk/rte.sdkinstall.mk
>> +++ b/mk/rte.sdkinstall.mk
>> @@ -157,4 +157,5 @@ ifneq ($(wildcard $O/doc/*/*/*pdf),)
>>         $(Q)$(call rte_mkdir,     $(DESTDIR)$(docdir)/guides)
>>         $(Q)cp -a $O/doc/*/*/*pdf $(DESTDIR)$(docdir)/guides
>>  endif
>> +       $(Q)$(call rte_mkdir,         $(DESTDIR)$(datadir))
>>         $(Q)cp -a $(RTE_SDK)/examples $(DESTDIR)$(datadir)
>>
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [dpdk-dev] [PATCH] mk: Fix examples install
  2016-01-08 11:03 [dpdk-dev] [PATCH] mk: Fix examples install Christian Ehrhardt
  2016-01-08 11:08 ` Christian Ehrhardt
@ 2016-01-19  8:18 ` Thomas Monjalon
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2016-01-19  8:18 UTC (permalink / raw)
  To: Christian Ehrhardt; +Cc: dev

2016-01-08 12:03, Christian Ehrhardt:
> Depending on non-doc targets being built before and the setting of DESTDIR
> the copy of the examples dir being part of install-doc could in some cases fail
> with a non existant "$(DESTDIR)$(datadir)" target directory.
> Add the conditional rte_mkdir for that to avoid the issue.
> 
> Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>

Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>

Applied, thanks

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-01-19 10:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-08 11:03 [dpdk-dev] [PATCH] mk: Fix examples install Christian Ehrhardt
2016-01-08 11:08 ` Christian Ehrhardt
2016-01-18 14:55   ` Christian Ehrhardt
2016-01-19  8:18 ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).