Skip to contentSkip to conversation

package/efl/libevas: remove unsafe paths

PATCH Superseded Vicente Olivert Riera 2 participants 2 messages Sep 8, 2015

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/efl/libevas: remove unsafe paths

Fixes:

http://autobuild.buildroot.net/results/7f2/7f2baef97c4ff3b9111becc1e0b79780c6e9db6f/

---
Changes v1 -> v2:
- Use % instead of # in the sed instruction (Suggested Arnout)
- Remove the useless host-post-patch-hook (Suggested Arnout)

 package/efl/libevas/libevas.mk |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
package/efl/libevas/libevas.mk +6 -0
index 8113162..716f1a8 100644
@@ -17,6 +17,12 @@ LIBEVAS_DEPENDENCIES = host-pkgconf zlib libeina freetype
 HOST_LIBEVAS_DEPENDENCIES = \
 	host-pkgconf host-zlib host-libeina \
 	host-freetype host-libpng host-libjpeg
+
+define LIBEVAS_REMOVE_UNSAFE_PATHS
+$(SED) 's%-I/usr/include%%g' $(@D)/configure
+endef
+LIBEVAS_POST_PATCH_HOOKS += LIBEVAS_REMOVE_UNSAFE_PATHS
+
 HOST_LIBEVAS_CONF_OPTS += \
 	--enable-image-loader-png \
 	--enable-image-loader-jpeg \
Signature · 1 line
1.7.1
#1 lore raw

PATCH v2 1/1 package/efl/libevas: remove unsafe paths

Quoted 18 lines · Vicente Olivert Riera

Fixes:

http://autobuild.buildroot.net/results/7f2/7f2baef97c4ff3b9111becc1e0b79780c6e9db6f/

---
Changes v1 -> v2:
- Use % instead of # in the sed instruction (Suggested Arnout)
- Remove the useless host-post-patch-hook (Suggested Arnout)

 package/efl/libevas/libevas.mk |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
package/efl/libevas/libevas.mk +0 -0
index 8113162..716f1a8 100644

package/efl/libevas/libevas.mk LIBEVAS_DEPENDENCIES = host-pkgconf zlib libeina freetype · line 22

Quoted 6 lines
package/efl/libevas/libevas.mk +3 -0
@@ -17,6 +17,12 @@ LIBEVAS_DEPENDENCIES = host-pkgconf zlib libeina freetype
 HOST_LIBEVAS_DEPENDENCIES = \
 	host-pkgconf host-zlib host-libeina \
 	host-freetype host-libpng host-libjpeg
+
+define LIBEVAS_REMOVE_UNSAFE_PATHS
+$(SED) 's%-I/usr/include%%g' $(@D)/configure

Sorry, one more nit: commands are indented with a tab.

Regards,
Arnout

Quoted 7 lines
package/efl/libevas/libevas.mk +3 -0
+endef
+LIBEVAS_POST_PATCH_HOOKS += LIBEVAS_REMOVE_UNSAFE_PATHS
+
 HOST_LIBEVAS_CONF_OPTS += \
 	--enable-image-loader-png \
 	--enable-image-loader-jpeg \
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