Merge lp:~peter-pearse/ubuntu/natty/ncurses/prop001 into lp:ubuntu/natty/ncurses

Proposed by Peter Pearse
Status: Work in progress
Proposed branch: lp:~peter-pearse/ubuntu/natty/ncurses/prop001
Merge into: lp:ubuntu/natty/ncurses
Diff against target: 56 lines (+37/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/10_cross.diff (+29/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~peter-pearse/ubuntu/natty/ncurses/prop001
Reviewer Review Type Date Requested Status
Steve Langasek Needs Fixing
Review via email: mp+51537@code.launchpad.net

Description of the change

The test configure searches for the library containing certain functions e.g. tgoto.
As part of this it adds -L/lib. If a linker that fails on accessing incorrect binaries is used this causes the configuration to fail. One solution is to use a linker which does not fail on foreighn binaries. The correct solution is to ensure foreign binaries are not encountered.

To post a comment you must log in.
Revision history for this message
Steve Langasek (vorlon) wrote :

This seems to conflict with the upstream intent, however, which is that -L/lib is needed on certain Linux distributions. If it's no longer needed then that part should definitely be fixed upstream.

Is it sufficient to *prepend* the cross-compilation path? i.e., have both
    CF_ADD_LIBDIR(/usr/$ac_cv_host_alias/lib)
and
    CF_ADD_LIBDIR(/lib)
?

I also don't think we should be adding this path except in cases where we know we're cross-compiling; can you please fix this to be conditional on host != build?

review: Needs Fixing

Unmerged revisions

34. By Peter Pearse

When cross building, qualify the library search directory used for linux.

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 2010-11-29 16:41:55 +0000
3+++ debian/changelog 2011-02-28 14:21:21 +0000
4@@ -1,3 +1,10 @@
5+ncurses (5.7+20101128-1ubuntu1) natty; urgency=low
6+
7+ * When cross building, qualify the library search directory used for
8+ linux
9+
10+ -- Peter Pearse <peter.pearse@linaro.org> Mon, 28 Feb 2011 14:13:53 +0000
11+
12 ncurses (5.7+20101128-1) experimental; urgency=low
13
14 [ Sven Joachim ]
15
16=== added file 'debian/patches/10_cross.diff'
17--- debian/patches/10_cross.diff 1970-01-01 00:00:00 +0000
18+++ debian/patches/10_cross.diff 2011-02-28 14:21:21 +0000
19@@ -0,0 +1,29 @@
20+diff -Nru nc/test/aclocal.m4 nc_p/test/aclocal.m4
21+--- nc/test/aclocal.m4 2011-02-28 13:22:37.728333577 +0000
22++++ nc_p/test/aclocal.m4 2011-02-28 13:52:28.718334986 +0000
23+@@ -643,7 +643,7 @@
24+ ])])
25+ ;;
26+ linux*) # Suse Linux does not follow /usr/lib convention
27+- CF_ADD_LIBDIR(/lib)
28++ CF_ADD_LIBDIR(/usr/$ac_cv_host_alias/lib)
29+ ;;
30+ sunos3*|sunos4*)
31+ if test -d /usr/5lib ; then
32+diff -Nru nc/test/configure nc_p/test/configure
33+--- nc/test/configure 2011-02-28 13:22:37.728333577 +0000
34++++ nc_p/test/configure 2011-02-28 13:24:53.448335000 +0000
35+@@ -5314,10 +5314,10 @@
36+ ;;
37+ linux*) # Suse Linux does not follow /usr/lib convention
38+
39+-if test -n "/lib" ; then
40+- for cf_add_libdir in /lib
41++if test -n "/usr/$ac_cv_host_alias/lib" ; then
42++ for cf_add_libdir in /usr/$ac_cv_host_alias/lib
43+ do
44+- if test $cf_add_libdir = /usr/lib ; then
45++ if test $cf_add_libdir = /usr/$ac_cv_host_alias/usr/lib ; then
46+ :
47+ elif test -d $cf_add_libdir
48+ then
49
50=== modified file 'debian/patches/series'
51--- debian/patches/series 2010-11-29 16:41:55 +0000
52+++ debian/patches/series 2011-02-28 14:21:21 +0000
53@@ -1,2 +1,3 @@
54 02-debian-backspace.diff
55 05-emdebian-wchar.diff
56+10_cross.diff

Subscribers

People subscribed via source and target branches

to all changes: