Version 6.5.0 Release debian-6.5.0-1 v6.5.0
authorKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 4 Mar 2014 18:17:26 +0000 (11:17 -0700)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 4 Mar 2014 18:17:26 +0000 (11:17 -0700)
* makefile.common: Check for /usr/bin/dpkg-buildflags
* {db-mysql,uffi}/Makefile: Use debian buildflags

ChangeLog
Makefile.common
db-mysql/Makefile
debian/changelog
debian/control
debian/rules
doc/clsql.pdf
doc/html.tar.gz
uffi/Makefile

index 61d09c1..842aa27 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-03-04  Kevin Rosenberg <kevin@rosenberg.net>
+       * Version 6.5.0: New release
+       * makefile.common: Check for /usr/bin/dpkg-buildflags
+       * {db-mysql,uffi}/Makefile: Use debian buildflags
+
 2014-02-24 Russ Tyndall <russ@acceleration.net>
        * oodml.lisp bind *print-length* to nil before printing
        lists/arrays to the database.
index 3c8fd2b..358d75d 100644 (file)
@@ -13,6 +13,11 @@ endif
 OS_CYGWIN=$(shell expr "$(UNAME)" : '.*CYGWIN.*')
 OS_LINUX=$(shell expr "$(UNAME)" : '.*Linux.*')
 OS_LINUX64=$(shell expr "$(UNAME_A)" : '.*Linux.*x86_64.*')
+ifneq ("$(wildcard /usr/bin/dpkg-buildflags)","")
+DPKG_BUILDFLAGS=1
+else
+DPKG_BUILDFLAGS=0
+endif
 
 all:
        
index bbe489a..3a497c1 100644 (file)
@@ -26,15 +26,19 @@ dylib=$(base).dylib
 .PHONY: all
 all: $(shared_lib)
 
-CFLAGS=-I /usr/local/include/mysql -I /usr/include/mysql -I /sw/include/mysql -I /opt/local/include/mysql -I /opt/local/include/mysql55/mysql -I /usr/local/mysql/include
-LDFLAGS=-L/usr/local/lib64/mysql -L/usr/local/lib/mysql -L/usr/lib64/mysql -L/usr/lib/mysql -L/sw/lib -L/opt/local/lib/mysql -L/opt/local/lib/mysql5/mysql -L/usr/local/mysql/lib -L/usr/lib/gcc/i686-pc-cygwin/3.4.4 -lmysqlclient -lz -lc
+CFLAGS:=-I /usr/local/include/mysql -I /usr/include/mysql -I /sw/include/mysql -I /opt/local/include/mysql -I /opt/local/include/mysql55/mysql -I /usr/local/mysql/include
+LDFLAGS:=-L/usr/local/lib64/mysql -L/usr/local/lib/mysql -L/usr/lib64/mysql -L/usr/lib/mysql -L/sw/lib -L/opt/local/lib/mysql -L/opt/local/lib/mysql5/mysql -L/usr/local/mysql/lib -L/usr/lib/gcc/i686-pc-cygwin/3.4.4 -lmysqlclient -lz -lc
 
-CFLAGS32=-I /usr/local/include/mysql -I /usr/include/mysql -I /sw/include/mysql -I /opt/local/include/mysql -I /opt/local/include/mysql5/mysql -I /usr/local/mysql/include -m32
-LDFLAGS32=-L/lib32 -L/usr/lib32 -melf_i386 -lmysqlclient -lz -lc
+CFLAGS32:=-I /usr/local/include/mysql -I /usr/include/mysql -I /sw/include/mysql -I /opt/local/include/mysql -I /opt/local/include/mysql5/mysql -I /usr/local/mysql/include -m32
+LDFLAGS32:=-L/lib32 -L/usr/lib32 -melf_i386 -lmysqlclient -lz -lc
 
 ifneq ($(OS_CYGWIN),0)
-  CFLAGS=-I /cygdrive/c/Program\ Files/MySQL/MySQL\ Server\ 5.0/include
-  LDFLAGS=-L/usr/local/lib64/mysql -L/usr/local/lib/mysql -L/usr/lib/mysql -L/sw/lib -L/opt/local/lib/mysql -L/usr/lib/gcc/i686-pc-cygwin/3.4.4 -lmysqlclient -lpthread -lz -lm -lgcc -lc
+  CFLAGS:=-I /cygdrive/c/Program\ Files/MySQL/MySQL\ Server\ 5.0/include
+  LDFLAGS:=-L/usr/local/lib64/mysql -L/usr/local/lib/mysql -L/usr/lib/mysql -L/sw/lib -L/opt/local/lib/mysql -L/usr/lib/gcc/i686-pc-cygwin/3.4.4 -lmysqlclient -lpthread -lz -lm -lgcc -lc
+endif
+ifneq ($(OS_DPKG_BUILDFLAGS),0)
+  CFLAGS:=$(CFLAGS) $(shell dpkg-buildflags --get CFLAGS)
+  LDFLAGS:=$(LDFLAGS) $(shell dpkg-buildflags --get LDFLAGS | sed "/-Wl,\(.*\)/ s//\1/")
 endif
 
 $(shared_lib): $(source) Makefile
@@ -60,7 +64,7 @@ else
         else
           ifneq ($(OS_LINUX64),0)
            gcc $(CFLAGS) -fPIC -c $(source) -o $(object)
-           ld -shared -soname=$(base) $(object) $(LDFLAGS) -o $(shared64_lib)
+           ld $(LDFLAGS) -shared -soname=$(base) $(object) -o $(shared64_lib)
            rm $(object)
            @echo "Ensure that you have multiarch i386 build tools and libraries if you want to build 32-bit library"
            -gcc $(CFLAGS32) -fPIC -c $(source) -o $(object)
index bb6a915..7a72023 100644 (file)
@@ -1,3 +1,9 @@
+cl-sql (6.5.0-1) unstable; urgency=low
+
+  * New upstream
+
+ -- Kevin M. Rosenberg <kmr@debian.org>  Tue, 04 Mar 2014 10:10:27 -0700
+
 cl-sql (6.4.1-1) unstable; urgency=low
 
   * New upstream
index 603f1d8..da7533a 100644 (file)
@@ -3,7 +3,7 @@ Section: lisp
 Priority: extra
 Maintainer: Kevin M. Rosenberg <kmr@debian.org>
 Build-Depends: dh-lisp, debhelper (>= 7.0.0), libmysqlclient-dev, libpq-dev
-Standards-Version: 3.9.4.0
+Standards-Version: 3.9.5.0
 Homepage: http://clsql.b9.com/
 Vcs-Git: git://git.b9.com/clsql.git
 Vcs-Browser: http://git.b9.com/?p=clsql.git
index b48c3ae..74d4500 100755 (executable)
@@ -69,7 +69,6 @@ lispdir-tests := $(clc-tests)/tests
 build-arch: build-arch-stamp
 build-arch-stamp:
        dh_testdir
-       # env LDFLAGS=`pkg-buildflags --get LDFLAGS` $(MAKE)
        $(MAKE)
        touch build-arch-stamp
 
index ee1c723..4a5cc4c 100644 (file)
Binary files a/doc/clsql.pdf and b/doc/clsql.pdf differ
index 35724e8..bdc0734 100644 (file)
Binary files a/doc/html.tar.gz and b/doc/html.tar.gz differ
index b24f376..6f4467a 100644 (file)
@@ -23,6 +23,12 @@ shared_lib=$(base).so
 shared64_lib=$(base)64.so
 dylib=$(base).dylib
 
+ifneq ($(OS_DPKG_BUILDFLAGS),0)
+  CFLAGS:=$(CFLAGS) $(shell dpkg-buildflags --get CFLAGS)
+  LDFLAGS:=$(LDFLAGS) $(shell dpkg-buildflags --get LDFLAGS | sed "/-Wl,\(.*\)/ s//\1/")
+endif
+
+
 .PHONY: all
 all: $(shared_lib)
 
@@ -48,12 +54,12 @@ else
          ld -shared -soname=$(base) $(LDFLAGS) $(object) -o $(shared_lib)
         else
           ifneq ($(OS_LINUX64),0)
-           gcc -fPIC -DPIC -c $(source) -o $(object)
-           ld -shared -soname=$(base) -lc $(object) -o $(shared64_lib)
+           gcc $(CFLAGS) -fPIC -DPIC -c $(source) -o $(object)
+           ld $(LDFLAGS) -shared -soname=$(base) -lc $(object) -o $(shared64_lib)
            rm -f $(object)
            @echo "Ensure that you have multiarch i386 build tools if you want to build 32-bit library"
-           -gcc -m32 -fPIC -DPIC -c $(source) -o $(object)
-           -ld -melf_i386 -shared -soname=$(base) -lc $(object) -o $(shared_lib)
+           -gcc -m32 $(CFLAGS) -fPIC -DPIC -c $(source) -o $(object)
+           -ld -melf_i386 $(LDFLAGS) -shared -soname=$(base) -lc $(object) -o $(shared_lib)
           else
            gcc -fPIC -DPIC -c $(source) -o $(object)
            ld -shared -soname=$(base) -lc $(object) -o $(shared_lib)