buildrootschalter/package/eudev
Eric Le Bihan b70dec3fed eudev: only use pragma diagnostics if GCC supports it.
eudev uses GCC pragma diagnostics [1] for some of its logging functions,
to circumvent -Wformat-nonliteral. This feature is only available in GCC
>= 4.6.

The external toolchains for some architectures (PowerPC, SuperH) are based on
GCC 4.5. So eudev will not compile when using them.

systemd also uses the pragma diagnostics, but its dependency on Linux
headers >= 3.8 for the toolchain indirectly forces recent versions of
GCC.

This workaround enables the pragma diagnostics only when using GCC >= 4.6.
This means that if the user uses GCC 4.5 and explicitly sets the options
-Werror -Wformat-nonliteral, the build will fail...

[1] http://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html#Diagnostic-Pragmas

Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2014-04-03 21:33:07 +02:00
..
Config.in udev: update udev to new virtual package infra. 2014-02-25 21:27:11 +01:00
eudev-0001-Fix-issue-87-fails-to-build-on-linux-headers-3.13.patch eudev: bump to version 1.5.2. 2014-03-17 22:59:22 +01:00
eudev-0002-libudev-Fix-redefinition-of-usec_t-and-nsec_t.patch eudev: fix redefinition of usec_t and nsec_t. 2014-04-03 21:33:02 +02:00
eudev-0003-libudev-Only-use-pragma-for-ignoring-diagnostics-if-.patch eudev: only use pragma diagnostics if GCC supports it. 2014-04-03 21:33:07 +02:00
eudev.mk eudev: bump to version 1.5.2. 2014-03-17 22:59:22 +01:00
S10udev eudev: new package 2014-02-12 22:14:16 +01:00