* [Buildroot] [PATCH] cmake : bump to version 3.0.2
@ 2014-09-19 7:13 Jérémy Rosen
2014-09-19 7:13 ` [Buildroot] [PATCH] swig : bump to version 2.0.12 Jérémy Rosen
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Jérémy Rosen @ 2014-09-19 7:13 UTC (permalink / raw)
To: buildroot
Signed-off-by: J?r?my Rosen <jeremy.rosen@openwide.fr>
---
package/cmake/cmake.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/cmake/cmake.mk b/package/cmake/cmake.mk
index bfeb147..e09fddf 100644
--- a/package/cmake/cmake.mk
+++ b/package/cmake/cmake.mk
@@ -4,8 +4,8 @@
#
################################################################################
-CMAKE_VERSION_MAJOR = 2.8
-CMAKE_VERSION = $(CMAKE_VERSION_MAJOR).12.2
+CMAKE_VERSION_MAJOR = 3.0
+CMAKE_VERSION = $(CMAKE_VERSION_MAJOR).2
CMAKE_SITE = http://www.cmake.org/files/v$(CMAKE_VERSION_MAJOR)
CMAKE_LICENSE = BSD-3c
CMAKE_LICENSE_FILES = Copyright.txt
--
2.1.0
^ permalink raw reply related [flat|nested] 8+ messages in thread* [Buildroot] [PATCH] swig : bump to version 2.0.12 2014-09-19 7:13 [Buildroot] [PATCH] cmake : bump to version 3.0.2 Jérémy Rosen @ 2014-09-19 7:13 ` Jérémy Rosen 2014-09-21 18:06 ` Thomas Petazzoni 2014-09-19 7:13 ` [Buildroot] [PATCH] swig: add symlink to /usr/bin/swig2.0 Jérémy Rosen 2014-09-19 7:27 ` [Buildroot] [PATCH] cmake : bump to version 3.0.2 Jeremy Rosen 2 siblings, 1 reply; 8+ messages in thread From: Jérémy Rosen @ 2014-09-19 7:13 UTC (permalink / raw) To: buildroot Signed-off-by: J?r?my Rosen <jeremy.rosen@openwide.fr> --- package/swig/swig.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/swig/swig.mk b/package/swig/swig.mk index 79839ea..5efc81c 100644 --- a/package/swig/swig.mk +++ b/package/swig/swig.mk @@ -4,7 +4,8 @@ # ################################################################################ -SWIG_VERSION = 2.0.10 +SWIG_MAJOR = 2.0 +SWIG_VERSION = $(SWIG_MAJOR).12 SWIG_SITE = http://downloads.sourceforge.net/project/swig/swig/swig-$(SWIG_VERSION) SWIG_DEPENDENCIES = host-bison HOST_SWIG_CONF_OPT = \ -- 2.1.0 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH] swig : bump to version 2.0.12 2014-09-19 7:13 ` [Buildroot] [PATCH] swig : bump to version 2.0.12 Jérémy Rosen @ 2014-09-21 18:06 ` Thomas Petazzoni 0 siblings, 0 replies; 8+ messages in thread From: Thomas Petazzoni @ 2014-09-21 18:06 UTC (permalink / raw) To: buildroot Dear J?r?my Rosen, On Fri, 19 Sep 2014 09:13:50 +0200, J?r?my Rosen wrote: > Signed-off-by: J?r?my Rosen <jeremy.rosen@openwide.fr> > --- > package/swig/swig.mk | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/package/swig/swig.mk b/package/swig/swig.mk > index 79839ea..5efc81c 100644 > --- a/package/swig/swig.mk > +++ b/package/swig/swig.mk > @@ -4,7 +4,8 @@ > # > ################################################################################ > > -SWIG_VERSION = 2.0.10 > +SWIG_MAJOR = 2.0 > +SWIG_VERSION = $(SWIG_MAJOR).12 This the SWIG_MAJOR variable would only be needed by your next patch that is not ready to be applied, I've reverted to using just SWIG_VERSION and applied your bump. Thanks, Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH] swig: add symlink to /usr/bin/swig2.0 2014-09-19 7:13 [Buildroot] [PATCH] cmake : bump to version 3.0.2 Jérémy Rosen 2014-09-19 7:13 ` [Buildroot] [PATCH] swig : bump to version 2.0.12 Jérémy Rosen @ 2014-09-19 7:13 ` Jérémy Rosen 2014-09-21 18:07 ` Thomas Petazzoni 2014-09-19 7:27 ` [Buildroot] [PATCH] cmake : bump to version 3.0.2 Jeremy Rosen 2 siblings, 1 reply; 8+ messages in thread From: Jérémy Rosen @ 2014-09-19 7:13 UTC (permalink / raw) To: buildroot the cmake detection script provided with cmake will first look for a binary called swig2.0 then for a binary called swig swig-host only installs a binary called swig and gets overridden by the version installed by the host distro. This symlink prevents that from happening --- package/swig/swig.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/swig/swig.mk b/package/swig/swig.mk index 5efc81c..233e97d 100644 --- a/package/swig/swig.mk +++ b/package/swig/swig.mk @@ -15,4 +15,10 @@ HOST_SWIG_CONF_OPT = \ SWIG_LICENSE = GPLv3+ BSD-2c BSD-3c SWIG_LICENSE_FILES = LICENSE LICENSE-GPL LICENSE-UNIVERSITIES +define SWIG_INSTALL_SYMLINK + ln -fs $(HOST_DIR)/usr/bin/swig $(HOST_DIR)/usr/bin/swig$(SWIG_MAJOR) +endef + +HOST_SWIG_POST_INSTALL_HOOKS += SWIG_INSTALL_SYMLINK + $(eval $(host-autotools-package)) -- 2.1.0 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH] swig: add symlink to /usr/bin/swig2.0 2014-09-19 7:13 ` [Buildroot] [PATCH] swig: add symlink to /usr/bin/swig2.0 Jérémy Rosen @ 2014-09-21 18:07 ` Thomas Petazzoni 2014-09-22 7:38 ` Jeremy Rosen 0 siblings, 1 reply; 8+ messages in thread From: Thomas Petazzoni @ 2014-09-21 18:07 UTC (permalink / raw) To: buildroot Dear J?r?my Rosen, On Fri, 19 Sep 2014 09:13:51 +0200, J?r?my Rosen wrote: > the cmake detection script provided with cmake will first look for a > binary called swig2.0 then for a binary called swig > > swig-host only installs a binary called swig and gets overridden by the > version installed by the host distro. This symlink prevents that from > happening I don't understand the explanation: if it looks for a binary called swig, then where's the need to create a swig2.0 symbolic link? How a binary in $(HOST_DIR)/usr/bin can get overridden by the version installed by the host distro? The SoB line is missing. > diff --git a/package/swig/swig.mk b/package/swig/swig.mk > index 5efc81c..233e97d 100644 > --- a/package/swig/swig.mk > +++ b/package/swig/swig.mk > @@ -15,4 +15,10 @@ HOST_SWIG_CONF_OPT = \ > SWIG_LICENSE = GPLv3+ BSD-2c BSD-3c > SWIG_LICENSE_FILES = LICENSE LICENSE-GPL LICENSE-UNIVERSITIES > > +define SWIG_INSTALL_SYMLINK Should be HOST_SWITCH_INSTALL_SYMLINK. I've marked your patch as "Changes requested" in patchwork. Thanks! Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH] swig: add symlink to /usr/bin/swig2.0 2014-09-21 18:07 ` Thomas Petazzoni @ 2014-09-22 7:38 ` Jeremy Rosen 2014-09-22 8:00 ` Thomas Petazzoni 0 siblings, 1 reply; 8+ messages in thread From: Jeremy Rosen @ 2014-09-22 7:38 UTC (permalink / raw) To: buildroot ----- Mail original ----- > Dear J?r?my Rosen, > > On Fri, 19 Sep 2014 09:13:51 +0200, J?r?my Rosen wrote: > > the cmake detection script provided with cmake will first look for > > a > > binary called swig2.0 then for a binary called swig > > > > swig-host only installs a binary called swig and gets overridden by > > the > > version installed by the host distro. This symlink prevents that > > from > > happening > > I don't understand the explanation: if it looks for a binary called > swig, then where's the need to create a swig2.0 symbolic link? How a > binary in $(HOST_DIR)/usr/bin can get overridden by the version > installed by the host distro? > The line in FindSwig.mk (part of the cmake package, not swig package) find_program(SWIG_EXECUTABLE NAMES swig2.0 swig) This will look in PATH for * an executable called "swig2.0" * if it is not found, an executable called "swig" so if there is a "swig2.0" in /usr/bin it will be used instead of the one called "swig" in $(HOST_DIR)/usr/bin even if the PATH order says otherwise. currently, host-swig only installs $(HOST_DIR)/usr/bin/swig and the debian package on my host only installs /usr/bin/swig2.0 thus the problem. (Note that the separate bump of cmake changes the cmake line above to dealwith swig3.0 that has been updated since, but using $(MAJOR_VERSION) deals with it properly) > The SoB line is missing. OK > > > diff --git a/package/swig/swig.mk b/package/swig/swig.mk > > index 5efc81c..233e97d 100644 > > --- a/package/swig/swig.mk > > +++ b/package/swig/swig.mk > > @@ -15,4 +15,10 @@ HOST_SWIG_CONF_OPT = \ > > SWIG_LICENSE = GPLv3+ BSD-2c BSD-3c > > SWIG_LICENSE_FILES = LICENSE LICENSE-GPL LICENSE-UNIVERSITIES > > > > +define SWIG_INSTALL_SYMLINK > > Should be HOST_SWITCH_INSTALL_SYMLINK. > OK > I've marked your patch as "Changes requested" in patchwork. > Ok, thx, I'll fix all that, rebase and resubmit Thx for the review > Thanks! > > Thomas > -- > Thomas Petazzoni, CTO, Free Electrons > Embedded Linux, Kernel and Android engineering > http://free-electrons.com > ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH] swig: add symlink to /usr/bin/swig2.0 2014-09-22 7:38 ` Jeremy Rosen @ 2014-09-22 8:00 ` Thomas Petazzoni 0 siblings, 0 replies; 8+ messages in thread From: Thomas Petazzoni @ 2014-09-22 8:00 UTC (permalink / raw) To: buildroot Hello, On Mon, 22 Sep 2014 09:38:29 +0200 (CEST), Jeremy Rosen wrote: > The line in FindSwig.mk (part of the cmake package, not swig package) > > find_program(SWIG_EXECUTABLE NAMES swig2.0 swig) > > > This will look in PATH for > > * an executable called "swig2.0" > * if it is not found, an executable called "swig" > > so if there is a "swig2.0" in /usr/bin it will be used instead of the > one called "swig" in $(HOST_DIR)/usr/bin even if the PATH order says > otherwise. > > currently, host-swig only installs $(HOST_DIR)/usr/bin/swig and the > debian package on my host only installs /usr/bin/swig2.0 thus the > problem. Are you sure we cannot tell CMake explicitly where our swig binary is? Like -DSWIG_EXECUTABLE=/path/to/swig. Cc'ing Samuel, who should be able to give some hints about this. Thanks, Thomas -- Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH] cmake : bump to version 3.0.2 2014-09-19 7:13 [Buildroot] [PATCH] cmake : bump to version 3.0.2 Jérémy Rosen 2014-09-19 7:13 ` [Buildroot] [PATCH] swig : bump to version 2.0.12 Jérémy Rosen 2014-09-19 7:13 ` [Buildroot] [PATCH] swig: add symlink to /usr/bin/swig2.0 Jérémy Rosen @ 2014-09-19 7:27 ` Jeremy Rosen 2 siblings, 0 replies; 8+ messages in thread From: Jeremy Rosen @ 2014-09-19 7:27 UTC (permalink / raw) To: buildroot Please do not apply I just realized I did not remove a patch that was commited upstream, I will resubmit soon (after proper testing) Cordialement J?r?my Rosen +33 (0)1 42 68 28 04 fight key loggers : write some perl using vim Open Wide Ingenierie 23, rue Daviel 75013 Paris - France www.openwide.fr ----- Mail original ----- > Signed-off-by: J?r?my Rosen <jeremy.rosen@openwide.fr> > --- > package/cmake/cmake.mk | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/package/cmake/cmake.mk b/package/cmake/cmake.mk > index bfeb147..e09fddf 100644 > --- a/package/cmake/cmake.mk > +++ b/package/cmake/cmake.mk > @@ -4,8 +4,8 @@ > # > ################################################################################ > > -CMAKE_VERSION_MAJOR = 2.8 > -CMAKE_VERSION = $(CMAKE_VERSION_MAJOR).12.2 > +CMAKE_VERSION_MAJOR = 3.0 > +CMAKE_VERSION = $(CMAKE_VERSION_MAJOR).2 > CMAKE_SITE = http://www.cmake.org/files/v$(CMAKE_VERSION_MAJOR) > CMAKE_LICENSE = BSD-3c > CMAKE_LICENSE_FILES = Copyright.txt > -- > 2.1.0 > > ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-09-22 8:00 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-09-19 7:13 [Buildroot] [PATCH] cmake : bump to version 3.0.2 Jérémy Rosen 2014-09-19 7:13 ` [Buildroot] [PATCH] swig : bump to version 2.0.12 Jérémy Rosen 2014-09-21 18:06 ` Thomas Petazzoni 2014-09-19 7:13 ` [Buildroot] [PATCH] swig: add symlink to /usr/bin/swig2.0 Jérémy Rosen 2014-09-21 18:07 ` Thomas Petazzoni 2014-09-22 7:38 ` Jeremy Rosen 2014-09-22 8:00 ` Thomas Petazzoni 2014-09-19 7:27 ` [Buildroot] [PATCH] cmake : bump to version 3.0.2 Jeremy Rosen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox