package/google-breakpad: fix build on modern hosts
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 26 Dec 2019 21:45:54 +0000 (22:45 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Mon, 30 Dec 2019 21:08:13 +0000 (22:08 +0100)
commitb3bdde2b1b3e69211e637fd99b24bfa38b41c350
tree7c9fc76c9c51e61a1e758b95f88d358ac9045807
parent93d157e1a515c0f2e1c77e35086f8982b911817f
package/google-breakpad: fix build on modern hosts

Since glibc 2.30, a tgkill() function is exposed by the C library, but
google-breakpad has its own internal definition of it, which now
conflicts. This causes build failures on modern build machines (when
building google-breakpad for the host).

This commit adds a patch that simply renames the internal tgkill()
function to BreakpadTgkill() to avoid the naming conflict.

We do that instead of a configure.ac change to avoid having to
autoreconf this package, and because the fix is anyway not
upstreamable as upstream simply dropped the internal tgkill()
implementation, but using that would break building google-breakpad on
older systems.

Fixes:

  http://autobuild.buildroot.net/results/bc2ae827b830d23094c8b70e5b34911d060295a3/ (host)
  http://autobuild.buildroot.net/results/21257e5a87f41487c6bf4db4e15ce49f1af1ac1e/ (target)

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/google-breakpad/0003-src-client-linux-handler-exception_handler.cc-rename.patch [new file with mode: 0644]