Skip to contentSkip to conversation

swig: use a relative path for the host swig2.0 symlink's target

PATCH New Phil Eichinger 3 participants 3 messages Nov 16, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 swig: use a relative path for the host swig2.0 symlink's target

An absolute path isn't really necessary and breaks relocating

---
 package/swig/swig.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/swig/swig.mk +1 -1
index 3f3ab2f..6b9b8ae 100644
@@ -25,7 +25,7 @@ SWIG_LICENSE_FILES = LICENSE LICENSE-GPL LICENSE-UNIVERSITIES
 # swig, so that our swig always gets used.
 
 define HOST_SWIG_INSTALL_SYMLINK
-	ln -fs $(HOST_DIR)/usr/bin/swig $(HOST_DIR)/usr/bin/swig$(SWIG_VERSION_MAJOR)
+	ln -fs swig $(HOST_DIR)/usr/bin/swig$(SWIG_VERSION_MAJOR)
 endef
 
 HOST_SWIG_POST_INSTALL_HOOKS += HOST_SWIG_INSTALL_SYMLINK
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 swig: use a relative path for the host swig2.0 symlink's target

Quoted 3 lines · Phil Eichinger

An absolute path isn't really necessary and breaks relocating

(untested)

Regards,
Arnout

Quoted 18 lines
---
 package/swig/swig.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/swig/swig.mk +1 -1
index 3f3ab2f..6b9b8ae 100644
@@ -25,7 +25,7 @@ SWIG_LICENSE_FILES = LICENSE LICENSE-GPL LICENSE-UNIVERSITIES
 # swig, so that our swig always gets used.
 
 define HOST_SWIG_INSTALL_SYMLINK
-	ln -fs $(HOST_DIR)/usr/bin/swig $(HOST_DIR)/usr/bin/swig$(SWIG_VERSION_MAJOR)
+	ln -fs swig $(HOST_DIR)/usr/bin/swig$(SWIG_VERSION_MAJOR)
 endef
 
 HOST_SWIG_POST_INSTALL_HOOKS += HOST_SWIG_INSTALL_SYMLINK
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#2 lore raw

PATCH 1/1 swig: use a relative path for the host swig2.0 symlink's target

In reply to Phil Eichinger

Dear Phil Eichinger,

Quoted 6 lines · Phil Eichinger

An absolute path isn't really necessary and breaks relocating

---
 package/swig/swig.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied to the next branch, thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com