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

Subscribers

People subscribed via source and target branches

to all changes: