Skip to contentSkip to conversation

hiredis: fix paths in pkgconfig conf file

PATCH New Andrea Galbusera 1 participant 1 message Nov 16, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hiredis: fix paths in pkgconfig conf file

Set PREFIX via EXTRA_OEMAKE instead of exporting it in do_install_prepend():
than ensuring the correct prefix gets into hiredis.pc, which is generated by upstream makefile at do_compile() time.

---
 meta-oe/recipes-extended/hiredis/hiredis_0.13.1.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-oe/recipes-extended/hiredis/hiredis_0.13.1.bb +2 -1
index 96b86f9a0..fae30d771 100644
@@ -12,10 +12,11 @@ S = "${WORKDIR}/git"
 
 inherit autotools-brokensep pkgconfig
 
+EXTRA_OEMAKE = "PREFIX=${prefix}"
+
 # By default INSTALL variable in Makefile is equal to 'cp -a', which preserves
 # ownership and causes host-user-contamination QA issue.
 # And PREFIX defaults to /usr/local.
 do_install_prepend() {
-  export PREFIX=${prefix}
   export INSTALL='cp -r'
 }
Signature · 1 line
2.15.0