* [Buildroot] [PATCH 1/1] package/libftdi1: fix swig build error when using cmake 3.12
@ 2018-12-23 19:57 Mark Corbin
2018-12-23 21:29 ` Yann E. MORIN
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Mark Corbin @ 2018-12-23 19:57 UTC (permalink / raw)
To: buildroot
The build fails with 'Unable to find' swig.swg and python.swg when
using cmake version 3.12.
This commit adds a patch from upstream libftdi.
Fixes:
http://autobuild.buildroot.net/results/cc54fec0cd6e35e99dde2f43e0eb28b9d628cd19
Signed-off-by: Mark Corbin <mark.corbin@embecosm.com>
---
package/libftdi1/0004-cmake-find-swig.patch | 26 +++++++++++++++++++++
1 file changed, 26 insertions(+)
create mode 100644 package/libftdi1/0004-cmake-find-swig.patch
diff --git a/package/libftdi1/0004-cmake-find-swig.patch b/package/libftdi1/0004-cmake-find-swig.patch
new file mode 100644
index 0000000000..25922cca53
--- /dev/null
+++ b/package/libftdi1/0004-cmake-find-swig.patch
@@ -0,0 +1,26 @@
+From fcda9c6a208d3a7fe651ef661b2eb6e462a89c17 Mon Sep 17 00:00:00 2001
+From: Eneas U de Queiroz <cote2004-github@yahoo.com>
+Date: Tue, 31 Jul 2018 17:44:57 -0300
+Subject: [PATCH] CMake: use find_package (SWIG) for cmake >= 3.0.0
+
+There's a workaround for a bug (fixed in cmake 3.0.0) that does not
+work in CMake 3.12. Only use the workaround with cmake < 3.0.0.
+
+Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
+[Mark: patch retrieved and updated from
+http://developer.intra2net.com/git/?p=libftdi;a=commit;h=fcda9c6a208d3a7fe651ef661b2eb6e462a89c17]
+Signed-off-by: Mark Corbin <mark.corbin@embecosm.com>
+---
+diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
+index 31ef1c6..eefc344 100644
+--- a/python/CMakeLists.txt
++++ b/python/CMakeLists.txt
+@@ -3,7 +3,7 @@ option ( LINK_PYTHON_LIBRARY "Link against python libraries" ON )
+
+ if ( PYTHON_BINDINGS )
+ # workaround for cmake bug #0013449
+- if ( NOT DEFINED CMAKE_FIND_ROOT_PATH )
++ if ( NOT DEFINED CMAKE_FIND_ROOT_PATH OR CMAKE_VERSION VERSION_GREATER_EQUAL 3.0.0 )
+ find_package ( SWIG )
+ else ()
+ find_program ( SWIG_EXECUTABLE NAMES swig2.0 swig )
--
2.19.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/1] package/libftdi1: fix swig build error when using cmake 3.12
2018-12-23 19:57 [Buildroot] [PATCH 1/1] package/libftdi1: fix swig build error when using cmake 3.12 Mark Corbin
@ 2018-12-23 21:29 ` Yann E. MORIN
2018-12-26 21:18 ` Thomas Petazzoni
2018-12-26 21:17 ` Thomas Petazzoni
2019-01-18 13:03 ` Peter Korsgaard
2 siblings, 1 reply; 6+ messages in thread
From: Yann E. MORIN @ 2018-12-23 21:29 UTC (permalink / raw)
To: buildroot
Mark, All,
On 2018-12-23 19:57 +0000, Mark Corbin spake thusly:
> The build fails with 'Unable to find' swig.swg and python.swg when
> using cmake version 3.12.
We've another user on IRC, reporting issues with cmake-3.13. Should we
now black=list cmake 3.12 and above, and always build our own?
Did you try to investigate and find the change in cmake that caused this
regression?
> This commit adds a patch from upstream libftdi.
>
> Fixes:
> http://autobuild.buildroot.net/results/cc54fec0cd6e35e99dde2f43e0eb28b9d628cd19
>
> Signed-off-by: Mark Corbin <mark.corbin@embecosm.com>
This is indeed an adaptation of an upstream libftdi1 commit.
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Regards,
Yann E. MORIN.
> ---
> package/libftdi1/0004-cmake-find-swig.patch | 26 +++++++++++++++++++++
> 1 file changed, 26 insertions(+)
> create mode 100644 package/libftdi1/0004-cmake-find-swig.patch
>
> diff --git a/package/libftdi1/0004-cmake-find-swig.patch b/package/libftdi1/0004-cmake-find-swig.patch
> new file mode 100644
> index 0000000000..25922cca53
> --- /dev/null
> +++ b/package/libftdi1/0004-cmake-find-swig.patch
> @@ -0,0 +1,26 @@
> +From fcda9c6a208d3a7fe651ef661b2eb6e462a89c17 Mon Sep 17 00:00:00 2001
> +From: Eneas U de Queiroz <cote2004-github@yahoo.com>
> +Date: Tue, 31 Jul 2018 17:44:57 -0300
> +Subject: [PATCH] CMake: use find_package (SWIG) for cmake >= 3.0.0
> +
> +There's a workaround for a bug (fixed in cmake 3.0.0) that does not
> +work in CMake 3.12. Only use the workaround with cmake < 3.0.0.
> +
> +Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
> +[Mark: patch retrieved and updated from
> +http://developer.intra2net.com/git/?p=libftdi;a=commit;h=fcda9c6a208d3a7fe651ef661b2eb6e462a89c17]
> +Signed-off-by: Mark Corbin <mark.corbin@embecosm.com>
> +---
> +diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt
> +index 31ef1c6..eefc344 100644
> +--- a/python/CMakeLists.txt
> ++++ b/python/CMakeLists.txt
> +@@ -3,7 +3,7 @@ option ( LINK_PYTHON_LIBRARY "Link against python libraries" ON )
> +
> + if ( PYTHON_BINDINGS )
> + # workaround for cmake bug #0013449
> +- if ( NOT DEFINED CMAKE_FIND_ROOT_PATH )
> ++ if ( NOT DEFINED CMAKE_FIND_ROOT_PATH OR CMAKE_VERSION VERSION_GREATER_EQUAL 3.0.0 )
> + find_package ( SWIG )
> + else ()
> + find_program ( SWIG_EXECUTABLE NAMES swig2.0 swig )
> --
> 2.19.1
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/1] package/libftdi1: fix swig build error when using cmake 3.12
2018-12-23 19:57 [Buildroot] [PATCH 1/1] package/libftdi1: fix swig build error when using cmake 3.12 Mark Corbin
2018-12-23 21:29 ` Yann E. MORIN
@ 2018-12-26 21:17 ` Thomas Petazzoni
2019-01-18 13:03 ` Peter Korsgaard
2 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni @ 2018-12-26 21:17 UTC (permalink / raw)
To: buildroot
Hello,
On Sun, 23 Dec 2018 19:57:14 +0000, Mark Corbin wrote:
> The build fails with 'Unable to find' swig.swg and python.swg when
> using cmake version 3.12.
>
> This commit adds a patch from upstream libftdi.
>
> Fixes:
> http://autobuild.buildroot.net/results/cc54fec0cd6e35e99dde2f43e0eb28b9d628cd19
>
> Signed-off-by: Mark Corbin <mark.corbin@embecosm.com>
> ---
> package/libftdi1/0004-cmake-find-swig.patch | 26 +++++++++++++++++++++
> 1 file changed, 26 insertions(+)
> create mode 100644 package/libftdi1/0004-cmake-find-swig.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/1] package/libftdi1: fix swig build error when using cmake 3.12
2018-12-23 21:29 ` Yann E. MORIN
@ 2018-12-26 21:18 ` Thomas Petazzoni
2018-12-26 21:30 ` Yann E. MORIN
0 siblings, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2018-12-26 21:18 UTC (permalink / raw)
To: buildroot
Hello,
On Sun, 23 Dec 2018 22:29:23 +0100, Yann E. MORIN wrote:
> We've another user on IRC, reporting issues with cmake-3.13. Should we
> now black=list cmake 3.12 and above, and always build our own?
I really don't like blacklisting recent versions of tools. So if we
were to blacklist CMake 3.13 and newer, I'd like to see a proper
explanation of what the problem is and why blacklisting CMake 3.13 and
newer is the only reasonable solution.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/1] package/libftdi1: fix swig build error when using cmake 3.12
2018-12-26 21:18 ` Thomas Petazzoni
@ 2018-12-26 21:30 ` Yann E. MORIN
0 siblings, 0 replies; 6+ messages in thread
From: Yann E. MORIN @ 2018-12-26 21:30 UTC (permalink / raw)
To: buildroot
Thomas, All,
On 2018-12-26 22:18 +0100, Thomas Petazzoni spake thusly:
> On Sun, 23 Dec 2018 22:29:23 +0100, Yann E. MORIN wrote:
> > We've another user on IRC, reporting issues with cmake-3.13. Should we
> > now black=list cmake 3.12 and above, and always build our own?
>
> I really don't like blacklisting recent versions of tools. So if we
> were to blacklist CMake 3.13 and newer, I'd like to see a proper
> explanation of what the problem is and why blacklisting CMake 3.13 and
> newer is the only reasonable solution.
100% agreed.
Let's put this at rest until we have proper explanation and reproducer.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/1] package/libftdi1: fix swig build error when using cmake 3.12
2018-12-23 19:57 [Buildroot] [PATCH 1/1] package/libftdi1: fix swig build error when using cmake 3.12 Mark Corbin
2018-12-23 21:29 ` Yann E. MORIN
2018-12-26 21:17 ` Thomas Petazzoni
@ 2019-01-18 13:03 ` Peter Korsgaard
2 siblings, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2019-01-18 13:03 UTC (permalink / raw)
To: buildroot
>>>>> "Mark" == Mark Corbin <mark.corbin@embecosm.com> writes:
> The build fails with 'Unable to find' swig.swg and python.swg when
> using cmake version 3.12.
> This commit adds a patch from upstream libftdi.
> Fixes:
> http://autobuild.buildroot.net/results/cc54fec0cd6e35e99dde2f43e0eb28b9d628cd19
> Signed-off-by: Mark Corbin <mark.corbin@embecosm.com>
Committed to 2018.02.x and 2018.11.x, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2019-01-18 13:03 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-23 19:57 [Buildroot] [PATCH 1/1] package/libftdi1: fix swig build error when using cmake 3.12 Mark Corbin
2018-12-23 21:29 ` Yann E. MORIN
2018-12-26 21:18 ` Thomas Petazzoni
2018-12-26 21:30 ` Yann E. MORIN
2018-12-26 21:17 ` Thomas Petazzoni
2019-01-18 13:03 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox