Merge lp:~jtaylor/ubuntu/oneiric/libosl/build-fixes into lp:ubuntu/oneiric/libosl

Proposed by Julian Taylor
Status: Merged
Merged at revision: 6
Proposed branch: lp:~jtaylor/ubuntu/oneiric/libosl/build-fixes
Merge into: lp:ubuntu/oneiric/libosl
Diff against target: 90 lines (+36/-3)
5 files modified
debian/changelog (+7/-0)
debian/control (+2/-1)
debian/patches/link-boost.patch (+21/-0)
debian/patches/series (+1/-0)
debian/rules (+5/-2)
To merge this branch: bzr merge lp:~jtaylor/ubuntu/oneiric/libosl/build-fixes
Reviewer Review Type Date Requested Status
Barry Warsaw (community) Approve
Ubuntu branches Pending
Review via email: mp+73255@code.launchpad.net

Description of the change

fix build by disabling the werror for the newunused but set warning (safer than trying to fix the code)
+ link the shared library against the needed boost fixing the dependencies and gpsshogi build

To post a comment you must log in.
9. By Julian Taylor

add patch headers

Revision history for this message
Barry Warsaw (barry) wrote :

Hi Julian. Thanks for fixing this. It looks good to me and it does indeed fix the build. I'll sponsor this upload for you.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2011-06-11 14:43:47 +0000
+++ debian/changelog 2011-08-29 16:39:25 +0000
@@ -1,3 +1,10 @@
1libosl (0.4.0-1ubuntu1) oneiric; urgency=low
2
3 * debian/rules: disable -Werror for -Wunused-but-set-variable
4 * debian/patches/link-boost.patch: link shared lib with boost (LP: #770752)
5
6 -- Julian Taylor <jtaylor.debian@googlemail.com> Mon, 29 Aug 2011 17:30:59 +0200
7
1libosl (0.4.0-1) unstable; urgency=low8libosl (0.4.0-1) unstable; urgency=low
29
3 * New upstream release (OSL r4353).10 * New upstream release (OSL r4353).
411
=== modified file 'debian/control'
--- debian/control 2011-06-11 14:43:47 +0000
+++ debian/control 2011-08-29 16:39:25 +0000
@@ -1,7 +1,8 @@
1Source: libosl1Source: libosl
2Section: libs2Section: libs
3Priority: optional3Priority: optional
4Maintainer: Daigo Moriwaki <daigo@debian.org>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Daigo Moriwaki <daigo@debian.org>
5Build-Depends: cdbs, debhelper (>= 7), libcppunit-dev (>= 1.10.2-5), libboost1.46-all-dev6Build-Depends: cdbs, debhelper (>= 7), libcppunit-dev (>= 1.10.2-5), libboost1.46-all-dev
6Standards-Version: 3.9.27Standards-Version: 3.9.2
7Homepage: http://gps.tanaka.ecc.u-tokyo.ac.jp/gpsshogi/pukiwiki.php8Homepage: http://gps.tanaka.ecc.u-tokyo.ac.jp/gpsshogi/pukiwiki.php
89
=== added directory 'debian/patches'
=== added file 'debian/patches/link-boost.patch'
--- debian/patches/link-boost.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/link-boost.patch 2011-08-29 16:39:25 +0000
@@ -0,0 +1,21 @@
1Description: link with needed boost libs
2 the shared library uses boost and should link against it so the
3 dependencies are picked up by dh_shlibdeps and to allow linking
4 with ld --as-needed
5Author: Julian Taylor <jtaylor.debian@googlemail.com>
6Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=633470
7Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/gpsshogi/+bug/770752
8Index: libosl/release-so/Makefile
9===================================================================
10--- libosl.orig/release-so/Makefile 2011-08-29 17:30:18.174760804 +0200
11+++ libosl/release-so/Makefile 2011-08-29 17:30:32.494760913 +0200
12@@ -13,7 +13,8 @@
13 ln -s ../$$o $$target; \
14 fi; \
15 done)
16- $(CXX) $(CXXFLAGS) -shared -Wl,-soname,libosl.so.1 -o $@ $(patsubst %,.objs/%,$(subst /,-,$^))
17+ $(CXX) $(CXXFLAGS) -shared -Wl,-soname,libosl.so.1 -o $@ $(patsubst %,.objs/%,$(subst /,-,$^)) \
18+ -lboost_thread -lboost_serialization -lboost_iostreams -lboost_filesystem -lboost_system
19 ln -sf $@ libosl.so.1
20 ln -sf $@ libosl.so
21
022
=== added file 'debian/patches/series'
--- debian/patches/series 1970-01-01 00:00:00 +0000
+++ debian/patches/series 2011-08-29 16:39:25 +0000
@@ -0,0 +1,1 @@
1link-boost.patch
02
=== modified file 'debian/rules'
--- debian/rules 2011-06-11 14:43:47 +0000
+++ debian/rules 2011-08-29 16:39:25 +0000
@@ -20,19 +20,22 @@
20DEB_INSTALL_DIRS_libosl-doc += usr/share/doc/libosl-doc20DEB_INSTALL_DIRS_libosl-doc += usr/share/doc/libosl-doc
21DEB_INSTALL_DOCS_libosl-doc += doc/html21DEB_INSTALL_DOCS_libosl-doc += doc/html
2222
23
23pre-build::24pre-build::
24 cp $(CURDIR)/debian/makefile.local.$(DEB_HOST_ARCH_CPU) $(CURDIR)/makefile.local25 cp $(CURDIR)/debian/makefile.local.$(DEB_HOST_ARCH_CPU) $(CURDIR)/makefile.local
2526
26build/libosl$(so_ver)::27build/libosl$(so_ver)::
27 $(MAKE) -C release-so make-directories28 $(MAKE) -C release-so make-directories
28 $(MAKE) -C release-so PROF=-g OSL_PUBLIC_RELEASE=t OSL_HOME_FLAGS=-DOSL_HOME=\\\"/usr/share/gpsshogi-data\\\" $(DEB_MAKE_PARALLEL) libosl.so.$(so_ver).029# unused-but-set-variable disable until 633473 is fixed
30 $(MAKE) -C release-so WARN_UNUSED="-Wno-error=unused-but-set-variable -Wno-unused-parameter" PROF=-g OSL_PUBLIC_RELEASE=t OSL_HOME_FLAGS=-DOSL_HOME=\\\"/usr/share/gpsshogi-data\\\" $(DEB_MAKE_PARALLEL) libosl.so.$(so_ver).0
2931
30binary-install/libosl$(so_ver)::32binary-install/libosl$(so_ver)::
31 dh_install -p$(cdbs_curpkg) --sourcedir=release-so libosl.so.* usr/lib33 dh_install -p$(cdbs_curpkg) --sourcedir=release-so libosl.so.* usr/lib
3234
33build/libosl-dev::35build/libosl-dev::
34 $(MAKE) -C release make-directories36 $(MAKE) -C release make-directories
35 $(MAKE) -C release PROF=-g OSL_PUBLIC_RELEASE=t OSL_HOME_FLAGS=-DOSL_HOME=\\\"/usr/share/gpsshogi-data\\\" $(DEB_MAKE_PARALLEL) all37# unused-but-set-variable disable until 633473 is fixed
38 $(MAKE) -C release WARN_UNUSED="-Wno-error=unused-but-set-variable -Wno-unused-parameter" PROF=-g OSL_PUBLIC_RELEASE=t OSL_HOME_FLAGS=-DOSL_HOME=\\\"/usr/share/gpsshogi-data\\\" $(DEB_MAKE_PARALLEL) all
3639
37binary-install/libosl-dev::40binary-install/libosl-dev::
38 dh_install -p$(cdbs_curpkg) --sourcedir=release lib*.a usr/lib41 dh_install -p$(cdbs_curpkg) --sourcedir=release lib*.a usr/lib

Subscribers

People subscribed via source and target branches

to all changes: