From 71be0511ebdfb1476d24d73ab5d3e9a541eeeafa Mon Sep 17 00:00:00 2001 From: matthieu Date: Sun, 2 Oct 2016 19:11:16 +0000 Subject: [PATCH] Fix installation of libXaw.so.15.0 link. --- lib/libXaw/Makefile.bsd-wrapper | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/libXaw/Makefile.bsd-wrapper b/lib/libXaw/Makefile.bsd-wrapper index 551ca2341..dd84eb593 100644 --- a/lib/libXaw/Makefile.bsd-wrapper +++ b/lib/libXaw/Makefile.bsd-wrapper @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.bsd-wrapper,v 1.12 2016/10/02 17:16:31 matthieu Exp $ +# $OpenBSD: Makefile.bsd-wrapper,v 1.13 2016/10/02 19:11:16 matthieu Exp $ SHARED_LIBS= Xaw7 15.0 @@ -8,9 +8,11 @@ afterinstall: -rm -f $(DESTDIR)$(LIBDIR)/libXaw.a (cd $(DESTDIR)$(LIBDIR) && ln -s libXaw7.a libXaw.a && \ chown -h $(BINOWN):$(BINGRP) libXaw.a ) - # rename link - mv $(DESTDIR)$(LIBDIR)/libXaw.so.7 $(DESTDIR)$(LIBDIR)/libXaw.so.15.0 - chown -h $(BINOWN):$(BINGRP) $(DESTDIR)$(LIBDIR)/libXaw.so.15.0 + # redo link + -rm -f $(DESTDIR)$(LIBDIR)/libXaw.so.15.0 + -rm -f $(DESTDIR)$(LIBDIR)/libXaw.so.7 + (cd $(DESTDIR)$(LIBDIR) && ln -s libXaw7.so.15.0 libXaw.so.15.0 && \ + chown -h $(BINOWN):$(BINGRP) libXaw.so.15.0) .include .include