Blob Blame History Raw
From cc29bde2853e571c685901a3db7966171c4056b9 Mon Sep 17 00:00:00 2001
From: Aravinda VK <avishwan@redhat.com>
Date: Tue, 19 Jul 2016 15:41:54 +0530
Subject: [PATCH 30/86] eventsapi: Fix make install issue second time

If Symlink file $SBIN/gluster-eventsapi is not deleted,
make install was failing when run second time(Without uninstall)

With this patch, Symlink deleted before installing new symlink.

> Reviewed-on: http://review.gluster.org/14954
> Smoke: Gluster Build System <jenkins@build.gluster.org>
> CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
> Reviewed-by: Kotresh HR <khiremat@redhat.com>

BUG: 1351589
Change-Id: I65e636f7b48ba9e81177f56c720ffc27e1f95fb3
Signed-off-by: Aravinda VK <avishwan@redhat.com>

Reviewed-on: https://code.engineering.redhat.com/gerrit/84736
Reviewed-by: Milind Changire <mchangir@redhat.com>
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
---
 events/src/Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/events/src/Makefile.am b/events/src/Makefile.am
index 528f020..50317d4 100644
--- a/events/src/Makefile.am
+++ b/events/src/Makefile.am
@@ -15,7 +15,7 @@ install-exec-hook:
 	rm -f $(DESTDIR)$(sbindir)/glustereventsd
 	ln -s $(libexecdir)/glusterfs/events/glustereventsd.py \
 		$(DESTDIR)$(sbindir)/glustereventsd
-	rm -f $(DESTDIR)$(sbindir)/gluster-eventing
+	rm -f $(DESTDIR)$(sbindir)/gluster-eventsapi
 	ln -s $(libexecdir)/glusterfs/peer_eventsapi.py \
 		$(DESTDIR)$(sbindir)/gluster-eventsapi
 
-- 
1.7.1