* [Buildroot] [PATCH] python3: fix invalid ncursesw header path
@ 2015-02-08 21:23 Thomas Petazzoni
2015-02-11 22:09 ` Romain Naour
2015-02-12 21:28 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2015-02-08 21:23 UTC (permalink / raw)
To: buildroot
This commit adds a patch to python3 that makes sure it does not use an
invalid header path (pointing to host headers) when including ncursesw
support.
Fixes:
http://autobuild.buildroot.org/results/9bd/9bdaa392e8dd00c6ebee156b758e3c0cac480237/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
.../018-ncursesw-remove-wrong-includedir.patch | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
create mode 100644 package/python3/018-ncursesw-remove-wrong-includedir.patch
diff --git a/package/python3/018-ncursesw-remove-wrong-includedir.patch b/package/python3/018-ncursesw-remove-wrong-includedir.patch
new file mode 100644
index 0000000..ae87bbf
--- /dev/null
+++ b/package/python3/018-ncursesw-remove-wrong-includedir.patch
@@ -0,0 +1,21 @@
+Do not harcode invalid path to ncursesw headers
+
+Adding /usr/include/ncursesw is obviously invalid when
+cross-compiling. Since the ncursesw headers are no longer installed in
+usr/include/ncursesw/, but directly in usr/include, there is anyway no
+need for a special header path.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: b/setup.py
+===================================================================
+--- a/setup.py
++++ b/setup.py
+@@ -1287,7 +1287,6 @@
+ panel_library = 'panel'
+ if curses_library == 'ncursesw':
+ curses_defines.append(('HAVE_NCURSESW', '1'))
+- curses_includes.append('/usr/include/ncursesw')
+ # Bug 1464056: If _curses.so links with ncursesw,
+ # _curses_panel.so must link with panelw.
+ panel_library = 'panelw'
--
2.1.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* [Buildroot] [PATCH] python3: fix invalid ncursesw header path
2015-02-08 21:23 [Buildroot] [PATCH] python3: fix invalid ncursesw header path Thomas Petazzoni
@ 2015-02-11 22:09 ` Romain Naour
2015-02-12 21:28 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Romain Naour @ 2015-02-11 22:09 UTC (permalink / raw)
To: buildroot
Hi Thomas,
Le 08/02/2015 22:23, Thomas Petazzoni a ?crit :
> This commit adds a patch to python3 that makes sure it does not use an
> invalid header path (pointing to host headers) when including ncursesw
> support.
>
> Fixes:
>
> http://autobuild.buildroot.org/results/9bd/9bdaa392e8dd00c6ebee156b758e3c0cac480237/
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
I reproduced the build issue which is indeed fixed by your patch.
Just build tested though.
Reviewed-by: Romain Naour <romain.naour@openwide.fr>
Tested-by: Romain Naour <romain.naour@openwide.fr>
Best regards,
Romain
> .../018-ncursesw-remove-wrong-includedir.patch | 21 +++++++++++++++++++++
> 1 file changed, 21 insertions(+)
> create mode 100644 package/python3/018-ncursesw-remove-wrong-includedir.patch
>
> diff --git a/package/python3/018-ncursesw-remove-wrong-includedir.patch b/package/python3/018-ncursesw-remove-wrong-includedir.patch
> new file mode 100644
> index 0000000..ae87bbf
> --- /dev/null
> +++ b/package/python3/018-ncursesw-remove-wrong-includedir.patch
> @@ -0,0 +1,21 @@
> +Do not harcode invalid path to ncursesw headers
> +
> +Adding /usr/include/ncursesw is obviously invalid when
> +cross-compiling. Since the ncursesw headers are no longer installed in
> +usr/include/ncursesw/, but directly in usr/include, there is anyway no
> +need for a special header path.
> +
> +Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> +
> +Index: b/setup.py
> +===================================================================
> +--- a/setup.py
> ++++ b/setup.py
> +@@ -1287,7 +1287,6 @@
> + panel_library = 'panel'
> + if curses_library == 'ncursesw':
> + curses_defines.append(('HAVE_NCURSESW', '1'))
> +- curses_includes.append('/usr/include/ncursesw')
> + # Bug 1464056: If _curses.so links with ncursesw,
> + # _curses_panel.so must link with panelw.
> + panel_library = 'panelw'
>
^ permalink raw reply [flat|nested] 3+ messages in thread* [Buildroot] [PATCH] python3: fix invalid ncursesw header path
2015-02-08 21:23 [Buildroot] [PATCH] python3: fix invalid ncursesw header path Thomas Petazzoni
2015-02-11 22:09 ` Romain Naour
@ 2015-02-12 21:28 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2015-02-12 21:28 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
> This commit adds a patch to python3 that makes sure it does not use an
> invalid header path (pointing to host headers) when including ncursesw
> support.
> Fixes:
> http://autobuild.buildroot.org/results/9bd/9bdaa392e8dd00c6ebee156b758e3c0cac480237/
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-02-12 21:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-08 21:23 [Buildroot] [PATCH] python3: fix invalid ncursesw header path Thomas Petazzoni
2015-02-11 22:09 ` Romain Naour
2015-02-12 21:28 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.