commit sparse for openSUSE:Factory
Hello community, here is the log from the commit of package sparse for openSUSE:Factory checked in at Tue May 3 09:11:40 CEST 2011. -------- --- sparse/sparse.changes 2010-10-31 19:04:49.000000000 +0100 +++ /mounts/work_src_done/STABLE/sparse/sparse.changes 2011-04-30 11:07:57.000000000 +0200 @@ -1,0 +2,15 @@ +Sat Apr 30 10:29:13 CEST 2011 - jslaby@suse.de + +- fix build with gcc 4.6 +- package test-inspect and c2xml +- update to 0.4.3 + * Fixup and cleanup modifier_string() function. + * inspect: add custom ast treeview model + * inspect: add some example inspect for symbol and statement + * inspect: add some expression inspection + * inspect: Add test-inspect program + * inspect: cast expression + * parser: add Blackfin gcc info + * skip may_alias and declare builtin_fabs + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- sparse-v0.4.2-26-g8832df8.tar.bz2 New: ---- _service _service:recompress:tar_scm:sparse-0.4.3.tar.bz2 _service:set_version:sparse.spec fix-build-with-GCC-4.6-series.patch gtk-cflags-fix.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ _service:set_version:sparse.spec ++++++ # # spec file for package sparse # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: sparse Summary: A semantic parser of source files License: Open Software License 1.1 Group: Development/Tools/Building Version: 0.4.3 Release: 1 AutoReqProv: on Url: https://sparse.wiki.kernel.org/index.php/Main_Page Source: http://www.kernel.org/pub/software/devel/sparse/dist/sparse-%{version}.tar.bz2 Patch0: sparse-gcc_base-fix.patch Patch1: fix-build-with-GCC-4.6-series.patch Patch2: gtk-cflags-fix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: gtk2-devel libxml2-devel pkg-config %description Sparse is a semantic parser of source files: it's neither a compiler (although it could be used as a front-end for one) nor is it a preprocessor (although it contains as a part of it a preprocessing phase). It is meant to be a small - and simple - library. Scanty and meager, and partly because of that easy to use. It has one mission in life: create a semantic parse tree for some arbitrary user for further analysis. It's not a tokenizer, nor is it some generic context-free parser. In fact, context (semantics) is what it's all about - figuring out not just what the grouping of tokens are, but what the _types_ are that the grouping implies. Sparse is primarily used in the development and debugging of the Linux kernel. Authors: -------- Linus Torvalds Josh Triplett %package -n sparse-devel License: Open Software License 1.1 Summary: Devel files for sparse Group: Development/Libraries/C and C++ %description -n sparse-devel Development headers and libraries for sparse. %package -n sparse-inspect License: Open Software License 1.1 Summary: Inspect binary from sparse Group: Development/Libraries/C and C++ %description -n sparse-inspect test-inspect is a gtk frontend for sparse. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %build make %{?_smp_mflags} PREFIX=%{_prefix} LIBDIR=%{_libdir} MANDIR=%{_mandir} \ PKGCONFIGDIR=%{_datadir}/pkgconfig CFLAGS="%{optflags}" %install make install DESTDIR=$RPM_BUILD_ROOT \ PREFIX=%{_prefix} LIBDIR=%{_libdir} MANDIR=%{_mandir} \ PKGCONFIGDIR=%{_datadir}/pkgconfig %files %defattr(-,root,root) %doc LICENSE README FAQ %{_mandir}/man?/cgcc.1.gz %{_mandir}/man?/sparse.1.gz %{_bindir}/c2xml %{_bindir}/cgcc %{_bindir}/sparse %files -n sparse-inspect %defattr(-,root,root) %{_bindir}/test-inspect %files -n sparse-devel %defattr(-,root,root) %{_includedir}/sparse %{_libdir}/libsparse.a %{_datadir}/pkgconfig/sparse.pc %changelog ++++++ sparse.spec ++++++ --- /var/tmp/diff_new_pack.rqnBEm/_old 2011-05-03 09:09:23.000000000 +0200 +++ /var/tmp/diff_new_pack.rqnBEm/_new 2011-05-03 09:09:23.000000000 +0200 @@ -1,7 +1,7 @@ # -# spec file for package sparse (Version 0.4.2.git1) +# spec file for package sparse # -# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,15 +22,16 @@ Summary: A semantic parser of source files License: Open Software License 1.1 Group: Development/Tools/Building -Version: 0.4.2.git1 -Release: 5 -%define gitrev v0.4.2-26-g8832df8 +Version: 0.4.3 +Release: 1 AutoReqProv: on Url: https://sparse.wiki.kernel.org/index.php/Main_Page -Source: http://www.kernel.org/pub/software/devel/sparse/dist/sparse-%{gitrev}.tar.bz2 +Source: http://www.kernel.org/pub/software/devel/sparse/dist/sparse-%{version}.tar.bz2 Patch0: sparse-gcc_base-fix.patch +Patch1: fix-build-with-GCC-4.6-series.patch +Patch2: gtk-cflags-fix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: pkg-config +BuildRequires: gtk2-devel libxml2-devel pkg-config %description Sparse is a semantic parser of source files: it's neither a compiler @@ -56,8 +57,6 @@ Linus Torvalds Josh Triplett -Git revision: %{gitrev} - %package -n sparse-devel License: Open Software License 1.1 Summary: Devel files for sparse @@ -66,9 +65,19 @@ %description -n sparse-devel Development headers and libraries for sparse. +%package -n sparse-inspect +License: Open Software License 1.1 +Summary: Inspect binary from sparse +Group: Development/Libraries/C and C++ + +%description -n sparse-inspect +test-inspect is a gtk frontend for sparse. + %prep -%setup -q -n sparse +%setup -q %patch0 -p1 +%patch1 -p1 +%patch2 -p1 %build make %{?_smp_mflags} PREFIX=%{_prefix} LIBDIR=%{_libdir} MANDIR=%{_mandir} \ @@ -82,8 +91,15 @@ %files %defattr(-,root,root) %doc LICENSE README FAQ -%{_mandir}/man?/* -%{_bindir}/* +%{_mandir}/man?/cgcc.1.gz +%{_mandir}/man?/sparse.1.gz +%{_bindir}/c2xml +%{_bindir}/cgcc +%{_bindir}/sparse + +%files -n sparse-inspect +%defattr(-,root,root) +%{_bindir}/test-inspect %files -n sparse-devel %defattr(-,root,root) ++++++ _service ++++++ <services> <service name="tar_scm"> <param name="url">git://git.kernel.org/pub/scm/devel/sparse/sparse.git</param> <param name="scm">git</param> <param name="revision">v0.4.3</param> <param name="version">0.4.3</param> </service> <service name="recompress"> <param name="file">_service:tar_scm:sparse-*.tar</param> <param name="compression">bz2</param> </service> <service name="set_version"/> </services> ++++++ fix-build-with-GCC-4.6-series.patch ++++++
From aaff080449ebcb66553ebf5b512f737b6191f339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= <flameeyes@gmail.com> Date: Wed, 13 Apr 2011 13:06:06 +0200 Subject: [PATCH] Fix build with GCC 4.6 series.
The label_statement attribute in the anonymous structures' union was duplicated for label_arg and labeled_struct alises, which were identical. Since the former is never used, delete it and leave the other as the only copy. Signed-off-by: Christopher Li <sparse@chrisli.org> --- parse.h | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/parse.h b/parse.h index 6b21e23..b26bd03 100644 --- a/parse.h +++ b/parse.h @@ -35,10 +35,6 @@ struct statement { struct /* declaration */ { struct symbol_list *declaration; }; - struct /* label_arg */ { - struct symbol *label; - struct statement *label_statement; - }; struct { struct expression *expression; struct expression *context; -- 1.7.4.2 ++++++ gtk-cflags-fix.patch ++++++ --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) --- a/Makefile +++ b/Makefile @@ -22,6 +22,7 @@ HAVE_GCC_DEP:=$(shell touch .gcc-test.c HAVE_GTK2:=$(shell pkg-config --exists gtk+-2.0 2>/dev/null && echo 'yes') GCC_BASE_DEFINE= -DGCC_BASE=\"$(shell $(CC) --print-file-name=)\" +LOC_CFLAGS = $(GCC_BASE_DEFINE) ifeq ($(HAVE_GCC_DEP),yes) CFLAGS += -Wp,-MD,$(@D)/.$(@F).d @@ -53,7 +54,7 @@ GTK2_LIBS := $(shell pkg-config --libs g PROGRAMS += test-inspect INST_PROGRAMS += test-inspect test-inspect_EXTRA_DEPS := ast-model.o ast-view.o ast-inspect.o -test-inspect.o $(test-inspect_EXTRA_DEPS): CFLAGS += $(GTK2_CFLAGS) +test-inspect.o $(test-inspect_EXTRA_DEPS): LOC_CFLAGS += $(GTK2_CFLAGS) test-inspect_EXTRA_OBJS := $(GTK2_LIBS) endif @@ -145,7 +146,7 @@ DEP_FILES := $(wildcard .*.o.d) $(if $(DEP_FILES),$(eval include $(DEP_FILES))) c2xml.o: c2xml.c $(LIB_H) - $(QUIET_CC)$(CC) `pkg-config --cflags libxml-2.0` -o $@ -c $(GCC_BASE_DEFINE) $(CFLAGS) $< + $(QUIET_CC)$(CC) `pkg-config --cflags libxml-2.0` -o $@ -c $(LOC_CFLAGS) $(CFLAGS) $< compat-linux.o: compat/strtold.c compat/mmap-blob.c $(LIB_H) compat-solaris.o: compat/mmap-blob.c $(LIB_H) @@ -153,7 +154,7 @@ compat-mingw.o: $(LIB_H) compat-cygwin.o: $(LIB_H) %.o: %.c - $(QUIET_CC)$(CC) -o $@ -c $(GCC_BASE_DEFINE) $(CFLAGS) $< + $(QUIET_CC)$(CC) -o $@ -c $(LOC_CFLAGS) $(CFLAGS) $< clean: clean-check rm -f *.[oa] .*.d *.so $(PROGRAMS) $(SLIB_FILE) pre-process.h sparse.pc ++++++ sparse-gcc_base-fix.patch ++++++ --- /var/tmp/diff_new_pack.rqnBEm/_old 2011-05-03 09:09:23.000000000 +0200 +++ /var/tmp/diff_new_pack.rqnBEm/_new 2011-05-03 09:09:23.000000000 +0200 @@ -4,16 +4,16 @@ --- a/Makefile +++ b/Makefile -@@ -20,7 +20,7 @@ HAVE_GCC_DEP=$(shell touch .gcc-test.c & - $(CC) -c -Wp,-MD,.gcc-test.d .gcc-test.c 2>/dev/null && \ +@@ -21,7 +21,7 @@ HAVE_GCC_DEP:=$(shell touch .gcc-test.c echo 'yes'; rm -f .gcc-test.d .gcc-test.o .gcc-test.c) + HAVE_GTK2:=$(shell pkg-config --exists gtk+-2.0 2>/dev/null && echo 'yes') -CFLAGS += -DGCC_BASE=\"$(shell $(CC) --print-file-name=)\" +GCC_BASE_DEFINE= -DGCC_BASE=\"$(shell $(CC) --print-file-name=)\" ifeq ($(HAVE_GCC_DEP),yes) CFLAGS += -Wp,-MD,$(@D)/.$(@F).d -@@ -134,7 +134,7 @@ DEP_FILES := $(wildcard .*.o.d) +@@ -145,7 +145,7 @@ DEP_FILES := $(wildcard .*.o.d) $(if $(DEP_FILES),$(eval include $(DEP_FILES))) c2xml.o: c2xml.c $(LIB_H) @@ -22,10 +22,10 @@ compat-linux.o: compat/strtold.c compat/mmap-blob.c $(LIB_H) compat-solaris.o: compat/mmap-blob.c $(LIB_H) -@@ -142,7 +142,7 @@ compat-mingw.o: $(LIB_H) +@@ -153,7 +153,7 @@ compat-mingw.o: $(LIB_H) compat-cygwin.o: $(LIB_H) - .c.o: + %.o: %.c - $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) $< + $(QUIET_CC)$(CC) -o $@ -c $(GCC_BASE_DEFINE) $(CFLAGS) $< ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de