Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 01/14] package/hiredis: add missing library symlink
@ 2017-04-11 22:26 Romain Naour
  2017-04-11 22:26 ` [Buildroot] [PATCH 02/14] package/irrlicht: new package Romain Naour
                   ` (14 more replies)
  0 siblings, 15 replies; 23+ messages in thread
From: Romain Naour @ 2017-04-11 22:26 UTC (permalink / raw)
  To: buildroot

While testing minetest with libhiredis library, the game crached due to
missing libhiredis.so.0.13 library.

Since the build system doesn't use "make install" and install manually
headers and library file, it must also create the symlink
libhiredis.so.0.13 -> libhiredis.so

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/hiredis/hiredis.mk | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/package/hiredis/hiredis.mk b/package/hiredis/hiredis.mk
index 53ad0b9..6472934 100644
--- a/package/hiredis/hiredis.mk
+++ b/package/hiredis/hiredis.mk
@@ -4,7 +4,8 @@
 #
 ################################################################################
 
-HIREDIS_VERSION = v0.13.3
+HIREDIS_VERSION_MAJOR = 0.13
+HIREDIS_VERSION = v$(HIREDIS_VERSION_MAJOR).3
 HIREDIS_SITE = $(call github,redis,hiredis,$(HIREDIS_VERSION))
 HIREDIS_LICENSE = BSD-3-Clause
 HIREDIS_LICENSE_FILES = COPYING
@@ -37,12 +38,14 @@ define HIREDIS_INSTALL_STAGING_CMDS
 		$(@D)/adapters $(HIREDIS_INCLUDE_DIR)
 	$(INSTALL) -D -m 0644 $(@D)/hiredis.pc \
 		$(STAGING_DIR)/usr/lib/pkgconfig/hiredis.pc
+	ln -sf libhiredis.so $(STAGING_DIR)/usr/lib/libhiredis.so.$(HIREDIS_VERSION_MAJOR)
 	$(INSTALL) -m 0644 -t $(STAGING_DIR)/usr/lib $(@D)/libhiredis*
 endef
 
 define HIREDIS_INSTALL_TARGET_CMDS
 	mkdir -p $(TARGET_DIR)/usr/lib
 	$(INSTALL) -m 0644 -t $(TARGET_DIR)/usr/lib $(@D)/libhiredis*
+	ln -sf libhiredis.so $(TARGET_DIR)/usr/lib/libhiredis.so.$(HIREDIS_VERSION_MAJOR)
 endef
 
 $(eval $(generic-package))
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2017-06-12  4:08 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-11 22:26 [Buildroot] [PATCH 01/14] package/hiredis: add missing library symlink Romain Naour
2017-04-11 22:26 ` [Buildroot] [PATCH 02/14] package/irrlicht: new package Romain Naour
2017-06-11 16:54   ` Bernd Kuhls
2017-04-11 22:26 ` [Buildroot] [PATCH 03/14] package/libspatialindex: " Romain Naour
2017-06-11 17:02   ` Bernd Kuhls
2017-04-11 22:26 ` [Buildroot] [PATCH 04/14] package/minetest: " Romain Naour
2017-06-11 17:38   ` Bernd Kuhls
2017-06-11 21:18     ` Romain Naour
2017-06-12  3:59       ` Bernd Kuhls
2017-04-11 22:26 ` [Buildroot] [PATCH 05/14] package/minetest: add libcurl optional dependency Romain Naour
2017-04-11 22:26 ` [Buildroot] [PATCH 06/14] package/minetest: add gettext " Romain Naour
2017-04-11 22:26 ` [Buildroot] [PATCH 07/14] package/minetest: add freetype " Romain Naour
2017-04-11 22:26 ` [Buildroot] [PATCH 08/14] package/minetest: add gles " Romain Naour
2017-04-11 22:26 ` [Buildroot] [PATCH 09/14] package/minetest: enable sound support Romain Naour
2017-04-11 22:26 ` [Buildroot] [PATCH 10/14] package/minetest: add postgresql optional dependency Romain Naour
2017-04-11 22:26 ` [Buildroot] [PATCH 11/14] package/minetest: add hiredis " Romain Naour
2017-04-11 22:26 ` [Buildroot] [PATCH 12/14] package/minetest: add leveldb " Romain Naour
2017-04-11 22:26 ` [Buildroot] [PATCH 13/14] package/minetest: add libspatialindex " Romain Naour
2017-04-11 22:26 ` [Buildroot] [PATCH 14/14] package/minetest_game: new package Romain Naour
2017-04-12 19:37 ` [Buildroot] [PATCH 01/14] package/hiredis: add missing library symlink Thomas Petazzoni
     [not found] ` <1108a7ef-12c0-8e55-1a6f-22f9b4bae251@t-online.de>
2017-06-11 21:09   ` [Buildroot] [PATCH 02/14] package/irrlicht: new package Romain Naour
2017-06-11 21:33     ` Arnout Vandecappelle
2017-06-12  4:08       ` Bernd Kuhls

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox