Merge lp:~scarneiro/ubuntu/oneiric/gosmore/fix-for-770751 into lp:ubuntu/oneiric/gosmore

Proposed by Sebastian Carneiro
Status: Merged
Merged at revision: 8
Proposed branch: lp:~scarneiro/ubuntu/oneiric/gosmore/fix-for-770751
Merge into: lp:ubuntu/oneiric/gosmore
Diff against target: 64 lines (+14/-7)
2 files modified
Makefile.in (+7/-7)
debian/changelog (+7/-0)
To merge this branch: bzr merge lp:~scarneiro/ubuntu/oneiric/gosmore/fix-for-770751
Reviewer Review Type Date Requested Status
Stefano Rivera Approve
Ubuntu branches Pending
Review via email: mp+65432@code.launchpad.net

Description of the change

Linker parameter order changed to avoid build problems with GCC-4.6

To post a comment you must log in.
Revision history for this message
Stefano Rivera (stefanor) wrote :

This patch isn't sufficient for it to build on oneiric. The issue visible in the build log still trips it up.

"-l xml2 -lm" Drop the first space?

Please re-target the changelog entry to oneiric. Also, your changelog line is too long.

review: Needs Fixing
Revision history for this message
Sebastian Carneiro (scarneiro) wrote :

I will look into that... I wasn't aware it was in such a bad shape. i will make the corrections and test it well, before asking for another review.

Thanks.

> This patch isn't sufficient for it to build on oneiric. The issue visible in
> the build log still trips it up.
>
> "-l xml2 -lm" Drop the first space?

>
> Please re-target the changelog entry to oneiric. Also, your changelog line is
> too long

Revision history for this message
Stefano Rivera (stefanor) wrote :

I'm marking this branch "Work in progress", as it isn't ready for sponsorship right now. Please change it back to "Needs review" when ready.

Revision history for this message
Sebastian Carneiro (scarneiro) wrote :

Corrected both problems mentioned by Stefano. I will also check the patch sent to Debian.

Ready for review.

Thanks Stefano!

Revision history for this message
Stefano Rivera (stefanor) wrote :

LGTM. Please forward this patch to Debian.

review: Approve
Revision history for this message
Stefano Rivera (stefanor) wrote :

...and upstream, if possible

Revision history for this message
Sebastian Carneiro (scarneiro) wrote :

Forwarded corrected patch to Debian. Will try to forwarded to upstream... All I could find is a README file with an email address for bug reporting.-

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Makefile.in'
2--- Makefile.in 2010-07-12 11:24:32 +0000
3+++ Makefile.in 2011-07-09 11:56:34 +0000
4@@ -34,8 +34,8 @@
5 # I found that it's more reliable and more portable to use aplay, but
6 # gnome sound can still be activated with this:
7 # `pkg-config --cflags --libs libgnomeui-2.0 && echo -DUSE_GNOMESOUND`
8-XMLFLAGS=`pkg-config --cflags libxml-2.0 || echo -I /usr/include/libxml2` \
9- `pkg-config --libs libxml-2.0 || echo -l xml2 -lm`
10+XMLFLAGS=`pkg-config --cflags libxml-2.0 || echo -I /usr/include/libxml2`
11+XMLLIBS= `pkg-config --libs libxml-2.0 || echo -lxml2 -lm`
12 ARCH=arm-mingw32ce-
13 else
14 # To compile with mingw, install MSYS and mingw, and then download
15@@ -58,11 +58,11 @@
16 # it. THE CODE IS NOT FINISHED. Linux version looks promising.
17 gosmore: gosmore.cpp libgosm.cpp libgosm.h bboxes.c
18 g++ -DCHILDREN=16 ${CFLAGS} ${WARNFLAGS} ${XMLFLAGS} \
19- gosmore.cpp libgosm.cpp -o gosmore ${EXTRA}
20+ gosmore.cpp libgosm.cpp -o gosmore ${EXTRA} ${XMLLIBS}
21
22 gosmore16: gosmore.cpp libgosm.cpp libgosm.h
23 g++ -DGOSMZ=16 ${CFLAGS} ${WARNFLAGS} ${XMLFLAGS} \
24- gosmore.cpp libgosm.cpp -o gosmore16 ${EXTRA}
25+ gosmore.cpp libgosm.cpp -o gosmore16 ${EXTRA} ${XMLLIBS}
26
27 $(ARCH)gosmore.exe: gosmore.cpp libgosm.cpp gosmore.rsc resource.h \
28 libgosm.h ceglue.h ceglue.c bboxes.c
29@@ -83,17 +83,17 @@
30 wget -O - ${WIKIPAGE}/Translations |./extract >translations.c
31
32 extract: extract.c
33- ${CC} ${CFLAGS} ${XMLFLAGS} extract.c -o extract
34+ ${CC} ${CFLAGS} ${XMLFLAGS} extract.c -o extract ${XMLLIBS}
35
36 bboxes.c: density.c density.txt
37- gcc -lm density.c -o density
38+ gcc density.c -o density -lm
39 ./density <density.txt >density.sh
40 # wget http://www.openstreetmap.org/api/0.6/changeset/1707270/download -O \
41 # countries.osm
42
43 osmunda: osmunda.cpp libgosm.cpp libgosm.h
44 g++ ${CFLAGS} ${WARNFLAGS} ${XMLFLAGS} \
45- osmunda.cpp libgosm.cpp -o osmunda
46+ osmunda.cpp libgosm.cpp -o osmunda ${XMLLIBS}
47 voices:
48 echo '(voice_rab_diphone)' >/tmp/voice_rab_diphone
49 echo 'At the junction, turn left.' | festival_client \
50
51=== modified file 'debian/changelog'
52--- debian/changelog 2010-07-12 11:24:32 +0000
53+++ debian/changelog 2011-07-09 11:56:34 +0000
54@@ -1,3 +1,10 @@
55+gosmore (0.0.0.20100711-1ubuntu1) oneiric; urgency=low
56+
57+ * Makefile.in: Reordered linker parameters to avoid problem with
58+ GCC-4.6 (LP: #770751)
59+
60+ -- Sebastian Carneiro <scarneiro@fibertel.com.ar> Fri, 08 Jul 2011 23:58:36 -0300
61+
62 gosmore (0.0.0.20100711-1) unstable; urgency=low
63
64 * New upstream snapshot fetched for svn, revision: 22284

Subscribers

People subscribed via source and target branches