Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/google-breakpad: use PRE_CONFIGURE hooks to copy linux_syscall_support.h
@ 2017-05-29 20:13 Romain Naour
  2017-05-29 20:21 ` Thomas Petazzoni
  2017-06-01 14:31 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Romain Naour @ 2017-05-29 20:13 UTC (permalink / raw)
  To: buildroot

As reported by Bernd [1], using POST_EXTRACT to copy
linux_syscall_support.h break the legal-info target when
google-breakpad package is selected.

Step to reproduce:

Create a foo defconfig with google-breakpad package:
$ make foo_defconfig

Call legal-info
$ make legal-info

/usr/bin/install: cannot stat '/home/bernd/buildroot/buildroot/output/
host/usr/i586-buildroot-linux-uclibc/sysroot/usr/include/
linux_syscall_support.h': No such file or directory

Use PRE_CONFIGURE hooks instead since there are not used by legal-info.

[1] http://lists.busybox.net/pipermail/buildroot/2017-May/192844.html

Reported-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
 package/google-breakpad/google-breakpad.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/google-breakpad/google-breakpad.mk b/package/google-breakpad/google-breakpad.mk
index 191ee5b..3501f45 100644
--- a/package/google-breakpad/google-breakpad.mk
+++ b/package/google-breakpad/google-breakpad.mk
@@ -23,14 +23,14 @@ define HOST_GOOGLE_BREAKPAD_LSS
 		$(HOST_DIR)/usr/include/linux_syscall_support.h \
 		$(@D)/src/third_party/lss/linux_syscall_support.h
 endef
-HOST_GOOGLE_BREAKPAD_POST_EXTRACT_HOOKS += HOST_GOOGLE_BREAKPAD_LSS
+HOST_GOOGLE_BREAKPAD_PRE_CONFIGURE_HOOKS += HOST_GOOGLE_BREAKPAD_LSS
 
 define GOOGLE_BREAKPAD_LSS
 	$(INSTALL) -D -m 0644 \
 		$(STAGING_DIR)/usr/include/linux_syscall_support.h \
 		$(@D)/src/third_party/lss/linux_syscall_support.h
 endef
-GOOGLE_BREAKPAD_POST_EXTRACT_HOOKS += GOOGLE_BREAKPAD_LSS
+GOOGLE_BREAKPAD_PRE_CONFIGURE_HOOKS += GOOGLE_BREAKPAD_LSS
 
 define GOOGLE_BREAKPAD_EXTRACT_SYMBOLS
 	$(EXTRA_ENV) package/google-breakpad/gen-syms.sh $(STAGING_DIR) \
-- 
2.9.4

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

* [Buildroot] [PATCH] package/google-breakpad: use PRE_CONFIGURE hooks to copy linux_syscall_support.h
  2017-05-29 20:13 [Buildroot] [PATCH] package/google-breakpad: use PRE_CONFIGURE hooks to copy linux_syscall_support.h Romain Naour
@ 2017-05-29 20:21 ` Thomas Petazzoni
  2017-06-01 14:31 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2017-05-29 20:21 UTC (permalink / raw)
  To: buildroot

Hello,

On Mon, 29 May 2017 22:13:29 +0200, Romain Naour wrote:
> As reported by Bernd [1], using POST_EXTRACT to copy
> linux_syscall_support.h break the legal-info target when
> google-breakpad package is selected.
> 
> Step to reproduce:
> 
> Create a foo defconfig with google-breakpad package:
> $ make foo_defconfig

This explanation is a bit weird, you clearly don't need to create a
defconfig to reproduce the problem. You simply need to create any
configuration that has google-breakpad enabled.

> Use PRE_CONFIGURE hooks instead since there are not used by legal-info.

This is not the point. The point is that this linux_syscall_support.h
file is installed by a dependency of google-breakpad, and dependencies
are not guaranteed to be available before the configure step of the
package.

I've applied to master after adjusting the commit log.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

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

* [Buildroot] [PATCH] package/google-breakpad: use PRE_CONFIGURE hooks to copy linux_syscall_support.h
  2017-05-29 20:13 [Buildroot] [PATCH] package/google-breakpad: use PRE_CONFIGURE hooks to copy linux_syscall_support.h Romain Naour
  2017-05-29 20:21 ` Thomas Petazzoni
@ 2017-06-01 14:31 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2017-06-01 14:31 UTC (permalink / raw)
  To: buildroot

>>>>> "Romain" == Romain Naour <romain.naour@gmail.com> writes:

 > As reported by Bernd [1], using POST_EXTRACT to copy
 > linux_syscall_support.h break the legal-info target when
 > google-breakpad package is selected.

 > Step to reproduce:

 > Create a foo defconfig with google-breakpad package:
 > $ make foo_defconfig

 > Call legal-info
 > $ make legal-info

 > /usr/bin/install: cannot stat '/home/bernd/buildroot/buildroot/output/
 > host/usr/i586-buildroot-linux-uclibc/sysroot/usr/include/
 > linux_syscall_support.h': No such file or directory

 > Use PRE_CONFIGURE hooks instead since there are not used by legal-info.

 > [1] http://lists.busybox.net/pipermail/buildroot/2017-May/192844.html

 > Reported-by: Bernd Kuhls <bernd.kuhls@t-online.de>
 > Signed-off-by: Romain Naour <romain.naour@gmail.com>

Committed to 2017.02.x, thanks.

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2017-06-01 14:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-29 20:13 [Buildroot] [PATCH] package/google-breakpad: use PRE_CONFIGURE hooks to copy linux_syscall_support.h Romain Naour
2017-05-29 20:21 ` Thomas Petazzoni
2017-06-01 14:31 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox