--- libavl-0.3.5.orig/GNUmakefile +++ libavl-0.3.5/GNUmakefile @@ -6,7 +6,8 @@ LDCONFIG ?= /sbin/ldconfig # Some suggestions: (-mcpu= generates i386 compatible code) -CFLAGS ?= -O2 -fomit-frame-pointer -pipe -mcpu=i686 -w +CFLAGS ?= -O2 -pipe -Wall -Werror +CFLAGS += -fPIC #CFLAGS = -O2 -fomit-frame-pointer -pipe -march=i586 -Wall -g #CFLAGS = -O6 -fomit-frame-pointer -pipe -march=i586 -Wall -ansi -pedantic #CFLAGS = -O6 -fomit-frame-pointer -pipe -march=i686 -Wall -ansi -pedantic @@ -34,20 +35,21 @@ $(CC) $(LDFLAGS) $^ -o $@ $(LIBS) $(LIBRARY): avl.o - $(CC) -nostdlib -shared -Wl,-soname,libavl.so.1 $^ -o $@ -lc + $(CC) -shared -Wl,-soname,libavl.so.1 $^ -o $@ -lc clean: $(RM) *.o $(PROGRAMS) libavl.* install: all $(INSTALL) -d $(DESTDIR)$(libdir) - $(INSTALL) avl.h $(DESTDIR)$(includedir) - $(INSTALL) $(LIBRARIES) $(DESTDIR)$(libdir) - for i in $(LIBRARIES); do\ + $(INSTALL) -d $(DESTDIR)$(includedir) + $(INSTALL) -m 644 avl.h $(DESTDIR)$(includedir) + $(INSTALL) -m 644 $(LIBRARY) $(DESTDIR)$(libdir) + for i in $(LIBRARY); do\ $(LN) -sf $$i $(DESTDIR)$(libdir)/$${i%.*};\ $(LN) -sf $${i%.*} $(DESTDIR)$(libdir)/$${i%.*.*};\ done - -$(LDCONFIG) + #-$(LDCONFIG) .PHONY: clean install all .PRECIOUS: %.h %.c --- libavl-0.3.5.orig/debian/changelog +++ libavl-0.3.5/debian/changelog @@ -0,0 +1,44 @@ +libavl (0.3.5-3) unstable; urgency=low + + * Make sure -fPIC is always appended to CFLAGS. Closes: #483852 + + -- Guus Sliepen Sun, 01 Jun 2008 16:21:11 +0200 + +libavl (0.3.5-2) unstable; urgency=low + + * Compile with -fPIC. + * Fix package descriptions. Closes: #255198 + + -- Guus Sliepen Mon, 25 Apr 2005 11:33:28 +0200 + +libavl (0.3.5-1) unstable; urgency=low + + * New upstream release. + + -- Guus Sliepen Fri, 15 Nov 2002 21:40:41 +0100 + +libavl (0.3.4-1) unstable; urgency=low + + * New upstream release. + * Initial upload. Closes: #105969 + + -- Guus Sliepen Tue, 27 Aug 2002 21:26:17 +0200 + +libavl (0.3.3-2) unstable; urgency=low + + * Install in /usr, not in /usr/local. + + -- Guus Sliepen Tue, 19 Mar 2002 17:29:28 +0100 + +libavl (0.3.3-1) unstable; urgency=low + + * New upstream release. + + -- Guus Sliepen Mon, 11 Mar 2002 01:10:35 +0100 + +libavl (0.3.1-1) unstable; urgency=low + + * Initial packaging. + + -- Guus Sliepen Tue, 7 Aug 2001 10:05:26 +0200 + --- libavl-0.3.5.orig/debian/libavl-dev.dirs +++ libavl-0.3.5/debian/libavl-dev.dirs @@ -0,0 +1,2 @@ +usr/include +usr/lib --- libavl-0.3.5.orig/debian/libavl1.files +++ libavl-0.3.5/debian/libavl1.files @@ -0,0 +1 @@ +usr/lib/lib*.so.* --- libavl-0.3.5.orig/debian/libavl-dev.files +++ libavl-0.3.5/debian/libavl-dev.files @@ -0,0 +1,4 @@ +usr/include/* +usr/lib/lib*.so +usr/lib/lib*.a +usr/lib/lib*.la --- libavl-0.3.5.orig/debian/docs +++ libavl-0.3.5/debian/docs @@ -0,0 +1 @@ +README --- libavl-0.3.5.orig/debian/libavl1.dirs +++ libavl-0.3.5/debian/libavl1.dirs @@ -0,0 +1 @@ +usr/lib --- libavl-0.3.5.orig/debian/README.Debian +++ libavl-0.3.5/debian/README.Debian @@ -0,0 +1,9 @@ +libavl for Debian +----------------- + +Please note that this library is made by Wessel Dankers, and is not related to +the GNU AVL library by Ben Pfaff. There are a lot of AVL libraries around, all +with different feature sets. If other AVL libraries are packaged for Debian +then the name of this package and the library it contains might change. + + -- Guus Sliepen , Mon, 6 Aug 2001 18:24:26 +0200 --- libavl-0.3.5.orig/debian/compat +++ libavl-0.3.5/debian/compat @@ -0,0 +1 @@ +4 --- libavl-0.3.5.orig/debian/rules +++ libavl-0.3.5/debian/rules @@ -0,0 +1,81 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# shared library versions, option 1 +version=1.1 +major=1 +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so +#version=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` +#major=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + $(MAKE) + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + $(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp + DESTDIR=$(CURDIR)/debian/tmp prefix=/usr $(MAKE) install + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_movefiles + +# dh_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit + dh_installcron + dh_installman + dh_installinfo +# dh_undocumented + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- libavl-0.3.5.orig/debian/copyright +++ libavl-0.3.5/debian/copyright @@ -0,0 +1,19 @@ +This package was debianized by Guus Sliepen on +Mon, 6 Aug 2001 18:24:26 +0200. + +It was downloaded from http://www.fruit.eu.org/avl/ + +Upstream Author: Wessel Dankers + +Copyright: + + Copyright (C) 1998 Michael H. Buselli + Copyright (C) 2000-2002 Wessel Dankers + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + +On Debian systems, the full text of the LGPL version 2.1 can be found in +/usr/share/common-licenses/LGPL-2.1. --- libavl-0.3.5.orig/debian/control +++ libavl-0.3.5/debian/control @@ -0,0 +1,30 @@ +Source: libavl +Section: devel +Priority: optional +Maintainer: Guus Sliepen +Build-Depends: debhelper (>> 4.0.0) +Standards-Version: 3.7.3 + +Package: libavl-dev +Section: libdevel +Architecture: any +Depends: libavl1 (= ${binary:Version}), libc6-dev +Description: AVL tree manipulation library - development + This library consists of a set of functions to manipulate AVL trees. AVL + trees are very efficient balanced binary trees, similar to red-black trees. + The functions in this library can handle any kind of payload and search key + type. + . + This package contains the header files. + +Package: libavl1 +Section: libs +Architecture: any +Depends: ${shlibs:Depends} +Description: AVL tree manipulation library - runtime + This library consists of a set of functions to manipulate AVL trees. AVL + trees are very efficient balanced binary trees, similar to red-black trees. + The functions in this library can handle any kind of payload and search key + type. + . + This package contains the actual library.