Skip to content

toolchain: warn for unsafe library/header paths

Thomas Petazzoni buildroot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 12 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 12 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Buildroot] [PATCH 00/12] toolchain: warn for unsafe library/header paths

Dear Romain Naour,

Quoted 8 lines · Romain Naour

First of all, thanks for your work on this topic !

I'm using this series during investigations on build errors reported by autobuilders.

I discovered four packages that use unsafe paths:
tmux, ipset, aircrack-ng (-I/usr/local/include)
iprutils (-I/usr/include/ncurses)

Great!

Quoted 3 lines

Do you know why the upstream status of the gcc patch is "Inappropriate" ? There is a way that this patch get merged into the mainline gcc ? My colleague Adrien asked my about that.

I *believe* because they hardcode which paths are assumed to be "invalid", i.e /usr/include, /usr/local/include, etc. But it's probably possible to implement a solution where those paths would be passed as options at compile time and/or run time.

Quoted 2 lines

Also, BR_COMPILER_PARANOID_UNSAFE_PATH needs to be renamed to BR2_COMPILER_PARANOID_UNSAFE_PATH to follow the naming scheme ?

No: BR2_* variables are Config.in options. Environment variables are BR_*.

Best regards,

Thomas

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