Skip to contentSkip to conversation

package/luv: install libluv.pc.in

PATCH New Fabrice Fontaine 3 participants 3 messages Sep 5, 2019 – Sep 15, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/luv: install libluv.pc.in

Archive 1.30.1-0 doesn't contain libluv.pc.in which will break the build

Fixes:
- http://autobuild.buildroot.org/results/5ec6b5a3622c343f7e401b7da7d4a1da15be2733

---
 package/luv/libluv.pc.in | 12 ++++++++++++
 package/luv/luv.mk       |  6 ++++++
 2 files changed, 18 insertions(+)
 create mode 100644 package/luv/libluv.pc.in
package/luv/libluv.pc.in new file +12 -0
new file mode 100644
index 0000000000..d1544f6504
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=${prefix}
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libluv
+Version: @LUV_VERSION@
+Description: Bare and full libuv bindings for Lua/LuaJIT.
+URL: https://github.com/luvit/luv
+
+Libs: -L${libdir} -lluv @LIBS@
+Cflags: -I${includedir}
package/luv/luv.mk +6 -0
index 31288ffca3..c6a8eab158 100644
@@ -11,6 +11,12 @@ LUV_LICENSE_FILES = LICENSE.txt
 LUV_DEPENDENCIES = libuv
 LUV_INSTALL_STAGING = YES
 
+# Archive 1.30.1-0 doesn't contain libluv.pc.in so install it in this hook
+define LUV_INSTALL_PC_IN
+	cp package/luv/libluv.pc.in $(@D)/
+endef
+LUV_POST_EXTRACT_HOOKS += LUV_INSTALL_PC_IN
+
 LUV_CONF_OPTS += \
 	-DBUILD_MODULE=OFF \
 	-DWITH_SHARED_LIBUV=ON \
Signature · 1 line
2.23.0.rc1
#1 lore raw

PATCH 1/1 package/luv: install libluv.pc.in

Quoted 37 lines · Fabrice Fontaine

Archive 1.30.1-0 doesn't contain libluv.pc.in which will break the build

Fixes:
- http://autobuild.buildroot.org/results/5ec6b5a3622c343f7e401b7da7d4a1da15be2733

---
 package/luv/libluv.pc.in | 12 ++++++++++++
 package/luv/luv.mk       |  6 ++++++
 2 files changed, 18 insertions(+)
 create mode 100644 package/luv/libluv.pc.in
package/luv/libluv.pc.in new file +12 -0
new file mode 100644
index 0000000000..d1544f6504
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=${prefix}
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libluv
+Version: @LUV_VERSION@
+Description: Bare and full libuv bindings for Lua/LuaJIT.
+URL: https://github.com/luvit/luv
+
+Libs: -L${libdir} -lluv @LIBS@
+Cflags: -I${includedir}
package/luv/luv.mk +0 -0
index 31288ffca3..c6a8eab158 100644
@@ -11,6 +11,12 @@ LUV_LICENSE_FILES = LICENSE.txt
 LUV_DEPENDENCIES = libuv
 LUV_INSTALL_STAGING = YES

package/luv/luv.mk LUV_LICENSE_FILES = LICENSE.txt · line 22

Quoted 10 lines
package/luv/luv.mk +6 -0
 
+# Archive 1.30.1-0 doesn't contain libluv.pc.in so install it in this hook
+define LUV_INSTALL_PC_IN
+	cp package/luv/libluv.pc.in $(@D)/
+endef
+LUV_POST_EXTRACT_HOOKS += LUV_INSTALL_PC_IN
+
 LUV_CONF_OPTS += \
 	-DBUILD_MODULE=OFF \
 	-DWITH_SHARED_LIBUV=ON \
#2 lore raw

PATCH 1/1 package/luv: install libluv.pc.in

In reply to Fabrice Fontaine
Quoted 11 lines · On Thu, 5 Sep 2019 19:07:31 +0200 Fabrice Fontaine…

Archive 1.30.1-0 doesn't contain libluv.pc.in which will break the build

Fixes:
- http://autobuild.buildroot.org/results/5ec6b5a3622c343f7e401b7da7d4a1da15be2733

---
 package/luv/libluv.pc.in | 12 ++++++++++++
 package/luv/luv.mk       |  6 ++++++
 2 files changed, 18 insertions(+)
 create mode 100644 package/luv/libluv.pc.in

Applied to master, thanks. I've extended the commit log to mention that the issue has been fixed upstream in
https://github.com/luvit/luv/commit/946784fba047bcd275554b5040949e3d70994b30.
So we need to remember to drop the hack/workaround when luv will be bumped next time.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com