Skip to contentSkip to conversation

package/swig: create a symlink for swig3.0

PATCH New yegorslists at googlemail.com 2 participants 3 messages Feb 24, 2020 – Mar 14, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/swig: create a symlink for swig3.0

From: Yegor Yefremov <[email protected]>

For now swig package creates a symlink to the latest swig version i.e. swig4.0. If the host already has both CMake 3.10 and earlier swig version then the earlier version (swig2.0 or swig3.0) will be detected. This happens because CMake 3.10 doesn't know about swig4.0 and thus searches for swig3.0 first and finds it on the host.

With the new symlink CMake will find buildroot's swig binary.

---
 package/swig/swig.mk | 1 +
 1 file changed, 1 insertion(+)
package/swig/swig.mk +1 -0
index 3dba3425cf..5881a0e423 100644
@@ -27,6 +27,7 @@ SWIG_LICENSE_FILES = LICENSE LICENSE-GPL LICENSE-UNIVERSITIES
 
 define HOST_SWIG_INSTALL_SYMLINK
 	ln -fs swig $(HOST_DIR)/bin/swig$(SWIG_VERSION_MAJOR)
+	ln -fs swig $(HOST_DIR)/bin/swig3.0
 endef
 
 HOST_SWIG_POST_INSTALL_HOOKS += HOST_SWIG_INSTALL_SYMLINK
Signature · 1 line
2.17.0
#1 lore raw

PATCH 1/1 package/swig: create a symlink for swig3.0

Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"yegorslists" == yegorslists <[email protected]> writes:

From: Yegor Yefremov <[email protected]>
For now swig package creates a symlink to the latest swig version i.e. swig4.0. If the host already has both CMake 3.10 and earlier swig version then the earlier version (swig2.0 or swig3.0) will be detected. This happens because CMake 3.10 doesn't know about swig4.0 and thus searches for swig3.0 first and finds it on the host.

Quoted 3 lines

With the new symlink CMake will find buildroot's swig binary.

Reworded / extended the commit message a bit and committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 package/swig: create a symlink for swig3.0

In reply to yegorslists at googlemail.com
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"yegorslists" == yegorslists <[email protected]> writes:

From: Yegor Yefremov <[email protected]>
For now swig package creates a symlink to the latest swig version i.e. swig4.0. If the host already has both CMake 3.10 and earlier swig version then the earlier version (swig2.0 or swig3.0) will be detected. This happens because CMake 3.10 doesn't know about swig4.0 and thus searches for swig3.0 first and finds it on the host.

Quoted 3 lines

With the new symlink CMake will find buildroot's swig binary.

Committed to 2019.11.x (2019.02.x uses swig 3.0.12), thanks.

Signature · 1 line
Bye, Peter Korsgaard