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
1=== modified file 'debian/changelog'
2--- debian/changelog 2011-06-11 14:43:47 +0000
3+++ debian/changelog 2011-08-29 16:39:25 +0000
4@@ -1,3 +1,10 @@
5+libosl (0.4.0-1ubuntu1) oneiric; urgency=low
6+
7+ * debian/rules: disable -Werror for -Wunused-but-set-variable
8+ * debian/patches/link-boost.patch: link shared lib with boost (LP: #770752)
9+
10+ -- Julian Taylor <jtaylor.debian@googlemail.com> Mon, 29 Aug 2011 17:30:59 +0200
11+
12 libosl (0.4.0-1) unstable; urgency=low
13
14 * New upstream release (OSL r4353).
15
16=== modified file 'debian/control'
17--- debian/control 2011-06-11 14:43:47 +0000
18+++ debian/control 2011-08-29 16:39:25 +0000
19@@ -1,7 +1,8 @@
20 Source: libosl
21 Section: libs
22 Priority: optional
23-Maintainer: Daigo Moriwaki <daigo@debian.org>
24+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
25+XSBC-Original-Maintainer: Daigo Moriwaki <daigo@debian.org>
26 Build-Depends: cdbs, debhelper (>= 7), libcppunit-dev (>= 1.10.2-5), libboost1.46-all-dev
27 Standards-Version: 3.9.2
28 Homepage: http://gps.tanaka.ecc.u-tokyo.ac.jp/gpsshogi/pukiwiki.php
29
30=== added directory 'debian/patches'
31=== added file 'debian/patches/link-boost.patch'
32--- debian/patches/link-boost.patch 1970-01-01 00:00:00 +0000
33+++ debian/patches/link-boost.patch 2011-08-29 16:39:25 +0000
34@@ -0,0 +1,21 @@
35+Description: link with needed boost libs
36+ the shared library uses boost and should link against it so the
37+ dependencies are picked up by dh_shlibdeps and to allow linking
38+ with ld --as-needed
39+Author: Julian Taylor <jtaylor.debian@googlemail.com>
40+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=633470
41+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/gpsshogi/+bug/770752
42+Index: libosl/release-so/Makefile
43+===================================================================
44+--- libosl.orig/release-so/Makefile 2011-08-29 17:30:18.174760804 +0200
45++++ libosl/release-so/Makefile 2011-08-29 17:30:32.494760913 +0200
46+@@ -13,7 +13,8 @@
47+ ln -s ../$$o $$target; \
48+ fi; \
49+ done)
50+- $(CXX) $(CXXFLAGS) -shared -Wl,-soname,libosl.so.1 -o $@ $(patsubst %,.objs/%,$(subst /,-,$^))
51++ $(CXX) $(CXXFLAGS) -shared -Wl,-soname,libosl.so.1 -o $@ $(patsubst %,.objs/%,$(subst /,-,$^)) \
52++ -lboost_thread -lboost_serialization -lboost_iostreams -lboost_filesystem -lboost_system
53+ ln -sf $@ libosl.so.1
54+ ln -sf $@ libosl.so
55+
56
57=== added file 'debian/patches/series'
58--- debian/patches/series 1970-01-01 00:00:00 +0000
59+++ debian/patches/series 2011-08-29 16:39:25 +0000
60@@ -0,0 +1,1 @@
61+link-boost.patch
62
63=== modified file 'debian/rules'
64--- debian/rules 2011-06-11 14:43:47 +0000
65+++ debian/rules 2011-08-29 16:39:25 +0000
66@@ -20,19 +20,22 @@
67 DEB_INSTALL_DIRS_libosl-doc += usr/share/doc/libosl-doc
68 DEB_INSTALL_DOCS_libosl-doc += doc/html
69
70+
71 pre-build::
72 cp $(CURDIR)/debian/makefile.local.$(DEB_HOST_ARCH_CPU) $(CURDIR)/makefile.local
73
74 build/libosl$(so_ver)::
75 $(MAKE) -C release-so make-directories
76- $(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).0
77+# unused-but-set-variable disable until 633473 is fixed
78+ $(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
79
80 binary-install/libosl$(so_ver)::
81 dh_install -p$(cdbs_curpkg) --sourcedir=release-so libosl.so.* usr/lib
82
83 build/libosl-dev::
84 $(MAKE) -C release make-directories
85- $(MAKE) -C release PROF=-g OSL_PUBLIC_RELEASE=t OSL_HOME_FLAGS=-DOSL_HOME=\\\"/usr/share/gpsshogi-data\\\" $(DEB_MAKE_PARALLEL) all
86+# unused-but-set-variable disable until 633473 is fixed
87+ $(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
88
89 binary-install/libosl-dev::
90 dh_install -p$(cdbs_curpkg) --sourcedir=release lib*.a usr/lib

Subscribers

People subscribed via source and target branches

to all changes: