Package: libsmbios
Version: libsmbios
Severity: normal
Tags: patch

Dear Maintainer,

When running on a current version of GCC, this warning is always issued:
"Unknown compiler version - please run the configure tests 
and report the results"

This of course leads to problems with applications compiled with -Werror.

This has been fixed upstream in commit 23017bdcdbe466df555f63b66d6fcf305ec93260.

It is not available in a new upstream version yet, so I would request that this 
commit be backported.

test@test-Latitude-E5470:~$ cat /media/test/EFI/*diff
diff -Nru libsmbios-2.2.28/debian/patches/0001-support-newer-gcc-versions.patch 
libsmbios-2.2.28/debian/patches/0001-support-newer-gcc-versions.patch
--- libsmbios-2.2.28/debian/patches/0001-support-newer-gcc-versions.patch       
1969-12-31 18:00:00.000000000 -0600
+++ libsmbios-2.2.28/debian/patches/0001-support-newer-gcc-versions.patch       
2016-02-29 11:06:37.000000000 -0600
@@ -0,0 +1,43 @@
+From 23017bdcdbe466df555f63b66d6fcf305ec93260 Mon Sep 17 00:00:00 2001
+From: Michael E Brown <michael_e_br...@dell.com>
+Date: Thu, 29 Mar 2012 00:16:40 -0500
+Subject: [PATCH] support newer gcc versions
+
+---
+ src/include/smbios/config/compiler/gcc.hpp | 4 ++--
+ src/include/smbios_c/config/compiler/gcc.h | 2 +-
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/src/include/smbios/config/compiler/gcc.hpp 
b/src/include/smbios/config/compiler/gcc.hpp
+index 0891255..13d97d9 100644
+--- a/src/include/smbios/config/compiler/gcc.hpp
++++ b/src/include/smbios/config/compiler/gcc.hpp
+@@ -110,10 +110,10 @@
+ // versions check:
+ // we don't know gcc prior to version 2.90:
+ #if (__GNUC__ == 2) && (__GNUC_MINOR__ < 90)
+-#  error "Compiler not configured - please reconfigure"
++#  error "Compiler too old. GCC > 3.0 required"
+ #endif
+ //
+-#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 5))
++#if (__GNUC__ > 5)
+ #  if defined(LIBSMBIOS_ASSERT_CONFIG)
+ #     error "Unknown compiler version - please run the configure tests and 
report the results"
+ #  else
+diff --git a/src/include/smbios_c/config/compiler/gcc.h 
b/src/include/smbios_c/config/compiler/gcc.h
+index f46b8dc..007cc73 100644
+--- a/src/include/smbios_c/config/compiler/gcc.h
++++ b/src/include/smbios_c/config/compiler/gcc.h
+@@ -24,7 +24,7 @@
+ #  error "GCC versions < 2.90 not supported"
+ #endif
+ //
+-#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 7))
++#if (__GNUC__ > 5)
+ #  if defined(LIBSMBIOS_C_ASSERT_CONFIG)
+ #     error "Unknown compiler version - please run the configure tests and 
report the results"
+ #  else
+-- 
+2.7.0
+
diff -Nru libsmbios-2.2.28/debian/patches/series 
libsmbios-2.2.28/debian/patches/series
--- libsmbios-2.2.28/debian/patches/series      2013-05-31 00:17:03.000000000 
-0500
+++ libsmbios-2.2.28/debian/patches/series      2016-02-29 13:14:53.000000000 
-0600
@@ -1,2 +1,3 @@
 amlcmessages.patch
 am_disable_lzma.patch
+0001-support-newer-gcc-versions.patch


-- System Information:
Debian Release: stretch/sid
  APT prefers xenial-updates
  APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500, 
'xenial'), (100, 'xenial-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.4.0-8-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Reply via email to