From: Romain Naour <romain.naour@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 01/14] package/hiredis: add missing library symlink
Date: Wed, 12 Apr 2017 00:26:30 +0200 [thread overview]
Message-ID: <20170411222643.9770-1-romain.naour@gmail.com> (raw)
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
next reply other threads:[~2017-04-11 22:26 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-11 22:26 Romain Naour [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170411222643.9770-1-romain.naour@gmail.com \
--to=romain.naour@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox