Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Apr 2015 22:51:17 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r384468 - in head/net/mDNSResponder: . files
Message-ID:  <201504212251.t3LMpHO6091016@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Tue Apr 21 22:51:16 2015
New Revision: 384468
URL: https://svnweb.freebsd.org/changeset/ports/384468

Log:
  Set soname so shared library tracking properly works

Modified:
  head/net/mDNSResponder/Makefile
  head/net/mDNSResponder/files/patch-mDNSPosix-Makefile

Modified: head/net/mDNSResponder/Makefile
==============================================================================
--- head/net/mDNSResponder/Makefile	Tue Apr 21 21:45:17 2015	(r384467)
+++ head/net/mDNSResponder/Makefile	Tue Apr 21 22:51:16 2015	(r384468)
@@ -3,6 +3,7 @@
 
 PORTNAME=	mDNSResponder
 PORTVERSION=	561.1.1
+PORTREVISION=	1
 CATEGORIES=	net dns
 MASTER_SITES=	http://opensource.apple.com/tarballs/${PORTNAME}/
 

Modified: head/net/mDNSResponder/files/patch-mDNSPosix-Makefile
==============================================================================
--- head/net/mDNSResponder/files/patch-mDNSPosix-Makefile	Tue Apr 21 21:45:17 2015	(r384467)
+++ head/net/mDNSResponder/files/patch-mDNSPosix-Makefile	Tue Apr 21 22:51:16 2015	(r384468)
@@ -1,6 +1,6 @@
---- mDNSPosix/Makefile.orig	2012-10-18 06:11:12.000000000 +0800
-+++ mDNSPosix/Makefile	2014-01-04 11:50:07.945929359 +0800
-@@ -54,8 +54,8 @@
+--- mDNSPosix/Makefile.orig	2012-10-17 22:11:12 UTC
++++ mDNSPosix/Makefile
+@@ -54,8 +54,8 @@ COREDIR = ../mDNSCore
  SHAREDDIR ?= ../mDNSShared
  JDK = /usr/jdk
  
@@ -11,7 +11,7 @@
  FLEX = @flex
  LD = ld -shared
  CP = cp
-@@ -122,7 +122,7 @@
+@@ -122,7 +122,7 @@ ifeq ($(os),freebsd)
  # If not already defined, set LOCALBASE to /usr/local
  LOCALBASE?=/usr/local
  INSTBASE=$(LOCALBASE)
@@ -20,7 +20,7 @@
  # FreeBSD 4 requires threaded code to be compiled and linked using the "-pthread" option,
  # and requires that the "-lpthread" link option NOT be used
  # This appies only to FreeBSD -- "man cc" on FreeBSD says:
-@@ -216,7 +216,7 @@
+@@ -216,7 +216,7 @@ CFLAGS = $(CFLAGS_COMMON) $(CFLAGS_OS) $
  
  all: setup Daemon libdns_sd Clients SAClient SAResponder SAProxyResponder Identify NetMonitor dnsextd $(OPTIONALTARG)
  
@@ -29,8 +29,12 @@
  
  # 'setup' sets up the build directory structure the way we want
  setup:
-@@ -259,10 +259,10 @@
- 	@$(LD) $(LINKOPTS) -o $@ $+
+@@ -256,13 +256,13 @@ libdns_sd: setup $(BUILDDIR)/libdns_sd.$
+ CLIENTLIBOBJS = $(OBJDIR)/dnssd_clientlib.c.so.o $(OBJDIR)/dnssd_clientstub.c.so.o $(OBJDIR)/dnssd_ipc.c.so.o
+ 
+ $(BUILDDIR)/libdns_sd.$(LDSUFFIX): $(CLIENTLIBOBJS)
+-	@$(LD) $(LINKOPTS) -o $@ $+
++	@$(LD) $(LINKOPTS) -soname=libdns_sd.$(LDSUFFIX).$(LIBVERS) -o $@ $+
  	@$(STRIP) $@
  
 -Clients: setup libdns_sd ../Clients/build/dns-sd
@@ -42,7 +46,14 @@
  	@$(MAKE) -C ../Clients
  
  # nss_mdns target builds the Name Service Switch module
-@@ -276,43 +276,43 @@
+@@ -270,49 +270,49 @@ nss_mdns: setup $(BUILDDIR)/$(NSSLIBFILE
+ 	@echo "Name Service Switch module done"
+ 
+ $(BUILDDIR)/$(NSSLIBFILE): $(CLIENTLIBOBJS) $(OBJDIR)/nss_mdns.c.so.o
+-	@$(LD) $(LINKOPTS) -o $@ $+
++	@$(LD) $(LINKOPTS) -soname=$(NSSLINKNAME) -o $@ $+
+ 	@$(STRIP) $@
+ 
  #############################################################################
  
  # The Install targets place built stuff in their proper places
@@ -97,7 +108,7 @@
  	$(CP) $< $@
  	chmod ugo+x $@
  	$@ start
-@@ -329,26 +329,26 @@
+@@ -329,26 +329,26 @@ else
  endif
  endif
  
@@ -130,7 +141,7 @@
  	$(CP) $< $@
  	chmod 444 $@
  
-@@ -490,6 +490,8 @@
+@@ -490,6 +490,8 @@ $(OBJDIR)/NetMonitor.c.o:            $(C
  $(BUILDDIR)/dnsextd:                 $(DNSEXTDOBJ) $(OBJDIR)/dnsextd.c.threadsafe.o
  	$(CC) $+ -o $@ $(LINKOPTS) $(LINKOPTS_PTHREAD)
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504212251.t3LMpHO6091016>