Package: sparse / 0.5.0-1

Metadata

Package Version Patches format
sparse 0.5.0-1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
sparse llvm Fix LLVM 3.5 linker errors.patch | (download)

Makefile | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 [patch] sparse-llvm: fix llvm 3.5 linker errors

llvm-config 3.5 no longer lists the non-LLVM libraries needed for linkage when
passed --libs. The --system-libs flag was added for this purpose. This adds
these libraries while silently doing nothing for older versions of LLVM.

Signed-off-by: Omar Sandoval <osandov@osandov.com>
Signed-off-by: Christopher Li <sparse@chrisli.org>
remove validation tmp.o in clean target.patch | (download)

Makefile | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 [patch] remove validation/tmp.o in clean target

To prevent validation/tmp.o being still around after

	make check && make clean

remove it as part of the latter command.

shut down upstream version detection.patch | (download)

Makefile | 8 4 + 4 - 0 !
version.h | 1 1 + 0 - 0 !
2 files changed, 5 insertions(+), 4 deletions(-)

 shut down upstream version detection

Upstream's Makefile autocreates version.h which makes dpkg-buildpackage unhappy
because of "unexpected upstream changes".

So create version.h explicitly and disable generation of that file.

ld as needed.patch | (download)

Makefile | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 use ld --as-needed to drop superfluous dependencies

This fixes:

	dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/sparse/usr/bin/test-inspect was not linked against libgio-2.0.so.0 (it uses none of the library's symbols)
	dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/sparse/usr/bin/test-inspect was not linked against libgdk_pixbuf-2.0.so.0 (it uses none of the library's symbols)
	dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/sparse/usr/bin/test-inspect was not linked against libpango-1.0.so.0 (it uses none of the library's symbols)
	dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/sparse/usr/bin/test-inspect was not linked against libcairo.so.2 (it uses none of the library's symbols)
	dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/sparse/usr/bin/test-inspect was not linked against libfontconfig.so.1 (it uses none of the library's symbols)
	dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/sparse/usr/bin/test-inspect was not linked against libatk-1.0.so.0 (it uses none of the library's symbols)
	dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/sparse/usr/bin/test-inspect was not linked against libpangocairo-1.0.so.0 (it uses none of the library's symbols)
	dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/sparse/usr/bin/test-inspect was not linked against libfreetype.so.6 (it uses none of the library's symbols)
	dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/sparse/usr/bin/test-inspect was not linked against libgdk-x11-2.0.so.0 (it uses none of the library's symbols)
	dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/sparse/usr/bin/test-inspect was not linked against libpangoft2-1.0.so.0 (it uses none of the library's symbols)


pass down cflags.patch | (download)

Makefile | 3 2 + 1 - 0 !
1 file changed, 2 insertions(+), 1 deletion(-)

 pass down cppflags and cflags from rules as to use dpkg-buildflags, hardening flags in particular


dont override PREFIX.patch | (download)

Makefile | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

---
Add support for multiarch system header files.patch | (download)

Makefile | 3 3 + 0 - 0 !
cgcc | 10 10 + 0 - 0 !
lib.c | 18 17 + 1 - 0 !
sparse.1 | 6 6 + 0 - 0 !
4 files changed, 36 insertions(+), 1 deletion(-)

 [patch] add support for multiarch system header files

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Christopher Li <sparse@chrisli.org>
cgcc use only the cc command to determine gcc_base_d.patch | (download)

cgcc | 3 2 + 1 - 0 !
1 file changed, 2 insertions(+), 1 deletion(-)

 [patch] cgcc: use only the cc command to determine $gcc_base_dir

Capture the c-compiler command, in the $ccom variable, in order to
later invoke the compiler without extraneous command-line options.
In particular, use the $ccom variable in order to cleanly invoke the
compiler when setting the $gcc_base_dir variable.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Christopher Li <sparse@chrisli.org>
cgcc use ccom to set multiarch_dir if not specified.patch | (download)

cgcc | 2 2 + 0 - 0 !
1 file changed, 2 insertions(+)

 [patch] cgcc: use $ccom to set $multiarch_dir if not specified

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Christopher Li <sparse@chrisli.org>