From: Romain Naour Date: Tue, 6 Jan 2015 23:06:04 +0000 (+0100) Subject: package/lockdev: use LOCKDEV_MAJOR to create symbolic links X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e8302f95fe57e6c36c983e228a68c617f55de925;p=buildroot.git package/lockdev: use LOCKDEV_MAJOR to create symbolic links Thanks to Baruch Siach for the suggestion. Signed-off-by: Romain Naour Signed-off-by: Thomas Petazzoni --- diff --git a/package/lockdev/lockdev.mk b/package/lockdev/lockdev.mk index 11142e6bb6..8d2c760424 100644 --- a/package/lockdev/lockdev.mk +++ b/package/lockdev/lockdev.mk @@ -4,7 +4,8 @@ # ################################################################################ -LOCKDEV_VERSION = 1.0.3 +LOCKDEV_MAJOR = 1 +LOCKDEV_VERSION = $(LOCKDEV_MAJOR).0.3 LOCKDEV_SOURCE = lockdev_$(LOCKDEV_VERSION).orig.tar.gz LOCKDEV_PATCH = lockdev_$(LOCKDEV_VERSION)-1.6.diff.gz LOCKDEV_SITE = http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/l/lockdev @@ -26,11 +27,11 @@ endif ifeq ($(BR2_SHARED_STATIC_LIBS)$(BR2_SHARED_LIBS),y) define LOCKDEV_CREATE_LINKS_STAGING ln -sf liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so - ln -sf liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so.1 + ln -sf liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so.$(LOCKDEV_MAJOR) endef define LOCKDEV_CREATE_LINKS_TARGET - ln -sf liblockdev.$(LOCKDEV_VERSION).so $(TARGET_DIR)/usr/lib/liblockdev.so.1 + ln -sf liblockdev.$(LOCKDEV_VERSION).so $(TARGET_DIR)/usr/lib/liblockdev.so.$(LOCKDEV_MAJOR) endef endif