Hello community, here is the log from the commit of package glu for openSUSE:Factory checked in at 2016-07-27 16:06:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/glu (Old) and /work/SRC/openSUSE:Factory/.glu.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "glu" Changes: -------- --- /work/SRC/openSUSE:Factory/glu/glu.changes 2014-10-31 12:24:37.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.glu.new/glu.changes 2016-07-27 16:06:50.000000000 +0200 @@ -1,0 +2,7 @@ +Tue Jul 12 06:17:18 UTC 2016 - [email protected] + +- U_Add-D-N-DEBUG-to-CFLAGS-dependent-on-enable-debug.patch + u_autoconf-Don-t-modify-CFLAGS-in-configure-scripts.patch + Avoid debug messages being printed out at runtime (bsc#988411). + +------------------------------------------------------------------- New: ---- U_Add-D-N-DEBUG-to-CFLAGS-dependent-on-enable-debug.patch u_autoconf-Don-t-modify-CFLAGS-in-configure-scripts.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ glu.spec ++++++ --- /var/tmp/diff_new_pack.UM9fpd/_old 2016-07-27 16:06:51.000000000 +0200 +++ /var/tmp/diff_new_pack.UM9fpd/_new 2016-07-27 16:06:51.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package glu # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -29,6 +29,8 @@ #Git-Web: http://cgit.freedesktop.org/mesa/glu/ Source: http://cgit.freedesktop.org/mesa/glu/snapshot/%{name}-%{version}.tar.gz Source1: baselibs.conf +Patch0: U_Add-D-N-DEBUG-to-CFLAGS-dependent-on-enable-debug.patch +Patch1: u_autoconf-Don-t-modify-CFLAGS-in-configure-scripts.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: gcc-c++ BuildRequires: libtool @@ -86,6 +88,8 @@ %prep %setup -q +%patch0 -p1 +%patch1 -p1 %build if [ ! -e configure ]; then ++++++ U_Add-D-N-DEBUG-to-CFLAGS-dependent-on-enable-debug.patch ++++++ From: Matt Turner <[email protected]> Date: Thu Feb 21 20:40:31 2013 -0800 Subject: [PATCH]Add -D(N)DEBUG to CFLAGS dependent on --enable-debug Patch-mainline: to be upstreamed Git-repo: git://anongit.freedesktop.org/git/mesa/glu Git-commit: 069211570c32a8d5848e127975a2943e9d8fc6b9 References: Signed-off-by: Egbert Eich <[email protected]> Tested-by: Blaž Hrastnik <[email protected]> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=61003 --- configure.ac | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index cbfd047..45abf17 100644 --- a/configure.ac +++ b/configure.ac @@ -42,9 +42,10 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [Enable debugging information]), - [CFLAGS="$CFLAGS -g -O0" - CXXFLAGS="$CXXFLAGS -g -O0"], - []) + [CFLAGS="$CFLAGS -g -O0 -DDEBUG" + CXXFLAGS="$CXXFLAGS -g -O0 -DDEBUG"], + [CFLAGS="$CFLAGS -DNDEBUG" + CXXFLAGS="$CXXFLAGS -DNDEBUG"]) dnl Make sure the pkg-config macros are defined m4_ifndef([PKG_PROG_PKG_CONFIG], ++++++ u_autoconf-Don-t-modify-CFLAGS-in-configure-scripts.patch ++++++ From: Egbert Eich <[email protected]> Date: Tue Jul 12 07:36:18 2016 +0200 Subject: [PATCH]autoconf: Don't modify CFLAGS in configure scripts Patch-mainline: to be upstreamed Git-repo: git://anongit.freedesktop.org/git/mesa/glu Git-commit: 2bc3b2f952c642445d32d7ae4422088d9d2e7619 References: Signed-off-by: Egbert Eich <[email protected]> CFLAGS (and CXXFLAGS) may be overridden by the user at make time. Therefore it is not advisable to set them explicitely in the configure script. Signed-off-by: Egbert Eich <[email protected]> --- Makefile.am | 4 ++-- configure.ac | 14 ++++++++++---- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Makefile.am b/Makefile.am index 3050df1..834c7e2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -30,8 +30,8 @@ AM_CPPFLAGS = -DLIBRARYBUILD \ -I$(top_srcdir)/src/libnurbs/internals \ -I$(top_srcdir)/src/libnurbs/interface \ -I$(top_srcdir)/src/libnurbs/nurbtess -AM_CFLAGS = $(GL_CFLAGS) $(OSMESA_CFLAGS) $(WARNCFLAGS) $(VISIBILITY_CFLAGS) -AM_CXXFLAGS = $(GL_CFLAGS) $(OSMESA_CFLAGS) $(WARNCXXFLAGS) $(VISIBILITY_CXXFLAGS) +AM_CFLAGS = $(GL_CFLAGS) $(OSMESA_CFLAGS) $(WARNCFLAGS) $(VISIBILITY_CFLAGS) $(DEBUGCFLAGS) +AM_CXXFLAGS = $(GL_CFLAGS) $(OSMESA_CFLAGS) $(WARNCXXFLAGS) $(VISIBILITY_CXXFLAGS) $(DEBUGCXXFLAGS) GL_includedir = $(includedir)/GL GL_include_HEADERS = \ diff --git a/configure.ac b/configure.ac index 45abf17..ab93d8b 100644 --- a/configure.ac +++ b/configure.ac @@ -42,10 +42,16 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], [Enable debugging information]), - [CFLAGS="$CFLAGS -g -O0 -DDEBUG" - CXXFLAGS="$CXXFLAGS -g -O0 -DDEBUG"], - [CFLAGS="$CFLAGS -DNDEBUG" - CXXFLAGS="$CXXFLAGS -DNDEBUG"]) + AS_IF([test "$enableval" = xyes], + [DEBUGCFLAGS="-g -O0 -DDEBUG" + DEBUGCXXFLAGS="-g -O0 -DDEBUG"], + [test "$enableval" = xno], + [DEBUGCFLAGS="-DNDEBUG" + DEBUGCXXFLAGS="-DNDEBUG"]), + [DEBUGCFLAGS="-DNDEBUG" + DEBUGCXXFLAGS="-DNDEBUG"]) +AC_SUBST([DEBUGCFLAGS]) +AC_SUBST([DEBUGCXXFLAGS]) dnl Make sure the pkg-config macros are defined m4_ifndef([PKG_PROG_PKG_CONFIG],
