From owner-svn-ports-all@FreeBSD.ORG Sat Nov 16 06:38:20 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9B8F44CE; Sat, 16 Nov 2013 06:38:20 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8B9F82FCF; Sat, 16 Nov 2013 06:38:20 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rAG6cKB0076316; Sat, 16 Nov 2013 06:38:20 GMT (envelope-from dinoex@svn.freebsd.org) Received: (from dinoex@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rAG6cJur076313; Sat, 16 Nov 2013 06:38:19 GMT (envelope-from dinoex@svn.freebsd.org) Message-Id: <201311160638.rAG6cJur076313@svn.freebsd.org> From: Dirk Meyer Date: Sat, 16 Nov 2013 06:38:19 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r333983 - in head/mail/sendmail: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Nov 2013 06:38:20 -0000 Author: dinoex Date: Sat Nov 16 06:38:19 2013 New Revision: 333983 URL: http://svnweb.freebsd.org/changeset/ports/333983 Log: - fix CC handling - escape LD options PR: 183547 Modified: head/mail/sendmail/Makefile head/mail/sendmail/files/patch-FreeBSD head/mail/sendmail/files/sharedlibrary.m4 Modified: head/mail/sendmail/Makefile ============================================================================== --- head/mail/sendmail/Makefile Sat Nov 16 05:06:38 2013 (r333982) +++ head/mail/sendmail/Makefile Sat Nov 16 06:38:19 2013 (r333983) @@ -132,8 +132,9 @@ PLIST_SUB+= MILTER_SHARED="@comment " .endif .endif -SED_SCRIPT= -e "s;\`-pthread\';\`${PTHREAD_LIBS}\';" \ - -e "s;\`-O\';\`${CFLAGS}\';" +SED_SCRIPT= -e "s|\`-pthread\'|\`${PTHREAD_LIBS}\'|" \ + -e "s|\`-O\'|\`${CFLAGS}\'|" \ + -e 's|%%CC%%|${CC}|' -e 's|%%LD%%|${LD}|' .if ! ${PORT_OPTIONS:MNIS} SED_SCRIPT+= -e "s;-DNIS ;;" @@ -148,17 +149,12 @@ post-patch: @${CP} -pR ${WRKSRC}/libmilter ${WRKSRC}/libsharedmilter ${CP} ${FILESDIR}/sharedlibrary.m4 \ ${WRKSRC}/devtools/M4/UNIX/sharedlibrary.m4 - @${MV} ${WRKSRC}/libsharedmilter/Makefile.m4 \ - ${WRKSRC}/libsharedmilter/Makefile.m4.sed - @${SED} -e 's=`library=`sharedlibrary=' \ - ${WRKSRC}/libsharedmilter/Makefile.m4.sed \ - > ${WRKSRC}/libsharedmilter/Makefile.m4 + ${REINPLACE_CMD} -e 's=`library=`sharedlibrary=' \ + ${WRKSRC}/libsharedmilter/Makefile.m4 .endif do-configure: - @${MV} ${WRKSRC}/devtools/OS/FreeBSD ${WRKSRC}/devtools/OS/FreeBSD.sed - ${SED} ${SED_SCRIPT} ${WRKSRC}/devtools/OS/FreeBSD.sed \ - > ${WRKSRC}/devtools/OS/FreeBSD + ${REINPLACE_CMD} ${SED_SCRIPT} ${WRKSRC}/devtools/OS/FreeBSD ${SED} -e "s=%%PREFIX%%=${PREFIX}=g" \ -e "s=%%LOCALBASE%%=${LOCALBASE}=g" \ ${SITE} > ${WCONF}/site.config.m4 Modified: head/mail/sendmail/files/patch-FreeBSD ============================================================================== --- head/mail/sendmail/files/patch-FreeBSD Sat Nov 16 05:06:38 2013 (r333982) +++ head/mail/sendmail/files/patch-FreeBSD Sat Nov 16 06:38:19 2013 (r333983) @@ -1,11 +1,11 @@ --- devtools/OS/FreeBSD.orig 2003-07-03 03:07:45.000000000 +0200 -+++ devtools/OS/FreeBSD 2011-06-24 20:24:03.000000000 +0200 ++++ devtools/OS/FreeBSD 2013-11-16 07:06:27.000000000 +0100 @@ -6,7 +6,7 @@ define(`confMAPDEF', `-DNEWDB -DNIS -DMAP_REGEX') define(`confLIBS', `-lutil') -define(`confLD', `cc') -+define(`confLD', `${CC}') ++define(`confCC', `%%CC%%') define(`confMTLDOPTS', `-pthread') define(`confMTCCOPTS', `-D_THREAD_SAFE') define(`confLDOPTS_SO', `-shared') Modified: head/mail/sendmail/files/sharedlibrary.m4 ============================================================================== --- head/mail/sendmail/files/sharedlibrary.m4 Sat Nov 16 05:06:38 2013 (r333982) +++ head/mail/sendmail/files/sharedlibrary.m4 Sat Nov 16 06:38:19 2013 (r333983) @@ -1,6 +1,6 @@ divert(-1) # -# Copyright (c) 1999-2001 Sendmail, Inc. and its suppliers. +# Copyright (c) 1999-2001, 2006 Sendmail, Inc. and its suppliers. # All rights reserved. # # By using this file, you agree to the terms and conditions set @@ -10,7 +10,7 @@ divert(-1) # # Definitions for Makefile construction for sendmail # -# $Id: library.m4,v 8.10 2001/02/14 04:39:38 gshapiro Exp $ +# $Id: library.m4,v 8.11 2006/09/05 22:56:53 ca Exp $ # divert(0)dnl include(confBUILDTOOLSDIR`/M4/'bldM4_TYPE_DIR`/links.m4')dnl @@ -22,7 +22,7 @@ bldPUSH_CLEAN_TARGET(bldCURRENT_PRODUCT` include(confBUILDTOOLSDIR`/M4/'bldM4_TYPE_DIR`/defines.m4') divert(bldTARGETS_SECTION) bldCURRENT_PRODUCT.so: ${BEFORE} ${bldCURRENT_PRODUCT`OBJS'} - ${LD} ${LDOPTS_SO} -o bldCURRENT_PRODUCT.so confSONAME bldCURRENT_PRODUCT.so.${MILTER_SOVER} ${bldCURRENT_PRODUCT`OBJS'} + ${LD} ${LDOPTS_SO} -o bldCURRENT_PRODUCT.so -Wl,confSONAME -Wl,bldCURRENT_PRODUCT.so.${MILTER_SOVER} ${bldCURRENT_PRODUCT`OBJS'} ifdef(`bldLINK_SOURCES', `bldMAKE_SOURCE_LINKS(bldLINK_SOURCES)') install-`'bldCURRENT_PRODUCT: bldCURRENT_PRODUCT.so