Hello community, here is the log from the commit of package perf for openSUSE:Factory checked in at 2014-12-16 14:47:57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perf (Old) and /work/SRC/openSUSE:Factory/.perf.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perf" Changes: -------- --- /work/SRC/openSUSE:Factory/perf/perf.changes 2014-07-02 15:05:31.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.perf.new/perf.changes 2014-12-16 14:47:21.000000000 +0100 @@ -1,0 +2,8 @@ +Thu Nov 27 12:06:49 UTC 2014 - dims...@opensuse.org + +- Build hack: if util/util.h does not (yet) define _DEFAULT_SOURCE, + we export WERROR=0, which removes -Werror from CFLAGS. Once a + kernel lands that defines _DEFAULT_SOURCE, we fail the build in + to remove this hack, making it a (hopefully_ short-livinging one. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perf.spec ++++++ --- /var/tmp/diff_new_pack.pQOWxx/_old 2014-12-16 14:47:22.000000000 +0100 +++ /var/tmp/diff_new_pack.pQOWxx/_new 2014-12-16 14:47:22.000000000 +0100 @@ -66,11 +66,22 @@ %build cd tools/perf +# Temporary hack to build until the kernel update lands - we fail once the kernel update is there, so we know when to drop the hack +if grep _DEFAULT_SOURCE util/util.h; then + # glibc 2.20 deprecated _BSD_SOURCE in favor of _DEFAULT_SOURCE; so if we have _DEFAULT_SOURCE defined, we're compatible already and don't need the hack + echo "Please remove this hack - the kernel has been updated to build fine with glibc 2.20" + false +else + # if the kernel is not yet ready for glibc 2.20, we accept warnings without raising them to errors. + # Don't forget to remove the export WERROR=0 in the install section + export WERROR=0 +fi # PASS rpm optflags as EXTRA_FLAGS, passing as CFLAGS overrides and breaks build make -f Makefile.perf EXTRA_CFLAGS="%{optflags}" ASCIIDOC8=1 prefix=/usr perfexecdir=lib/%{name}-core all doc %{_perf_unwind} %install cd tools/perf +export WERROR=0 make -f Makefile.perf V=1 EXTRA_CFLAGS="%{optflags}" prefix=/usr perfexecdir=lib/%{name}-core DESTDIR=%{buildroot} install install-doc %{_perf_unwind} %files -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org