Skip to contentSkip to conversation

package/google-breakpad: use PRE_CONFIGURE hooks to copy linux_syscall_support.h

PATCH New Romain Naour 3 participants 3 messages May 29, 2017 – Jun 1, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/google-breakpad: use PRE_CONFIGURE hooks to copy linux_syscall_support.h

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

---
 package/google-breakpad/google-breakpad.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
package/google-breakpad/google-breakpad.mk +2 -2
index 191ee5b..3501f45 100644
@@ -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) \
Signature · 1 line
2.9.4
#1 lore raw

PATCH 1/1 package/google-breakpad: use PRE_CONFIGURE hooks to copy linux_syscall_support.h

Hello,

Quoted 8 lines · Romain Naour

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.

Quoted 1 line

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

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 package/google-breakpad: use PRE_CONFIGURE hooks to copy linux_syscall_support.h

In reply to Romain Naour
Quoted 18 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Romain" == Romain Naour <[email protected]> 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

Quoted 6 lines

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

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

Committed to 2017.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard