From patchwork Tue Jan 6 23:06:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 425871 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 2CC1D1400D5 for ; Wed, 7 Jan 2015 10:06:24 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 2204188A38; Tue, 6 Jan 2015 23:06:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id URz7MS85QyWW; Tue, 6 Jan 2015 23:06:21 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 3350586779; Tue, 6 Jan 2015 23:06:21 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 7522F1C2855 for ; Tue, 6 Jan 2015 23:06:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 7244D86779 for ; Tue, 6 Jan 2015 23:06:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Q9uXjqSqB5El for ; Tue, 6 Jan 2015 23:06:19 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from smtp1-g21.free.fr (smtp1-g21.free.fr [212.27.42.1]) by hemlock.osuosl.org (Postfix) with ESMTPS id 7B5E886100 for ; Tue, 6 Jan 2015 23:06:19 +0000 (UTC) Received: from localhost.localdomain (unknown [81.57.22.125]) by smtp1-g21.free.fr (Postfix) with ESMTP id B4D0F940011; Wed, 7 Jan 2015 00:04:45 +0100 (CET) From: Romain Naour To: buildroot@buildroot.org Date: Wed, 7 Jan 2015 00:06:04 +0100 Message-Id: <1420585564-7921-2-git-send-email-romain.naour@openwide.fr> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1420585564-7921-1-git-send-email-romain.naour@openwide.fr> References: <1420585564-7921-1-git-send-email-romain.naour@openwide.fr> Subject: [Buildroot] [PATCH v2 2/2] package/lockdev: use LOCKDEV_MAJOR to create symbolic links X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Thanks to Baruch Siach for the suggestion. Signed-off-by: Romain Naour --- package/lockdev/lockdev.mk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package/lockdev/lockdev.mk b/package/lockdev/lockdev.mk index 11142e6..8d2c760 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