From owner-svn-ports-all@FreeBSD.ORG Thu Apr 3 17:07:06 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 791197EB; Thu, 3 Apr 2014 17:07:06 +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)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 644016C5; Thu, 3 Apr 2014 17:07:06 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s33H76U2085206; Thu, 3 Apr 2014 17:07:06 GMT (envelope-from bdrewery@svn.freebsd.org) Received: (from bdrewery@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s33H75JP085200; Thu, 3 Apr 2014 17:07:05 GMT (envelope-from bdrewery@svn.freebsd.org) Message-Id: <201404031707.s33H75JP085200@svn.freebsd.org> From: Bryan Drewery Date: Thu, 3 Apr 2014 17:07:05 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r350029 - in head: dns/djbdns mail/qmail-conf mail/qmail-contrib mail/qmailanalog mail/qtools 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.17 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: Thu, 03 Apr 2014 17:07:06 -0000 Author: bdrewery Date: Thu Apr 3 17:07:05 2014 New Revision: 350029 URL: http://svnweb.freebsd.org/changeset/ports/350029 QAT: https://qat.redports.org/buildarchive/r350029/ Log: - Fix race during build of DJB ports that could lead to files leaking out of STAGEDIR. The auto_home.c/auto_qmail.c (depending on which conf- file is used) must be deleted to or else this might not be executed depending on how quickly build and pre-install run: ./auto-str auto_home `sed 1q conf-home` > auto_home.c - Move STAGEDIR fixing to post-build with a message explaining the rebuild. - Bump PORTREVISION as pkg_install packages may have been built without some files. Modified: head/dns/djbdns/Makefile head/mail/qmail-conf/Makefile head/mail/qmail-contrib/Makefile head/mail/qmailanalog/Makefile head/mail/qtools/Makefile Modified: head/dns/djbdns/Makefile ============================================================================== --- head/dns/djbdns/Makefile Thu Apr 3 16:46:04 2014 (r350028) +++ head/dns/djbdns/Makefile Thu Apr 3 17:07:05 2014 (r350029) @@ -3,7 +3,7 @@ PORTNAME?= djbdns PORTVERSION?= ${DJBDNS_VER} -PORTREVISION?= 18 +PORTREVISION?= 19 PORTEPOCH?= 1 CATEGORIES?= dns MASTER_SITES= http://cr.yp.to/djbdns/ \ @@ -131,10 +131,11 @@ post-patch: @${ECHO_CMD} "${CC} ${STRIP} ${LDFLAGS}" > ${WRKSRC}/conf-ld @${ECHO_CMD} "${PREFIX}" > ${WRKSRC}/conf-home -pre-install: +post-build: + @${ECHO_MSG} "===> Rebuilding DJB installer to respect STAGEDIR" @${MV} -f ${WRKSRC}/conf-home ${WRKSRC}/conf-home.sav @${ECHO_CMD} "${STAGEDIR}${PREFIX}" > ${WRKSRC}/conf-home - @cd ${WRKSRC} ; ${RM} -f install instcheck install.o instcheck.o hier.o auto_home.o + @cd ${WRKSRC} ; ${RM} -f install instcheck install.o instcheck.o hier.o auto_home.o auto_home.c @cd ${WRKSRC} ; ${MAKE_CMD} install instcheck @${TOUCH} ${WRKSRC}/*-conf @${MV} -f ${WRKSRC}/conf-home.sav ${WRKSRC}/conf-home Modified: head/mail/qmail-conf/Makefile ============================================================================== --- head/mail/qmail-conf/Makefile Thu Apr 3 16:46:04 2014 (r350028) +++ head/mail/qmail-conf/Makefile Thu Apr 3 17:07:05 2014 (r350029) @@ -3,7 +3,7 @@ PORTNAME= qmail-conf PORTVERSION= 0.60 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= mail MASTER_SITES= http://www.din.or.jp/~ushijima/qmail-conf/ \ http://cr.yp.to/djbdns/ @@ -44,10 +44,11 @@ pre-build: # Do a dance to stage and keep out of resulting binaries (see r346769 # and r349241) -pre-install: +post-build: + @${ECHO_MSG} "===> Rebuilding DJB installer to respect STAGEDIR" @${MV} -f ${WRKSRC}/conf-qmail ${WRKSRC}/conf-qmail.sav @${ECHO_CMD} "${STAGEDIR}${QMAIL_PREFIX}" > ${WRKSRC}/conf-qmail - @cd ${WRKSRC} ; ${RM} -f install instcheck install.o instcheck.o hier.o auto_home.o + @cd ${WRKSRC} ; ${RM} -f install instcheck install.o instcheck.o hier.o auto_qmail.o auto_qmail.c @cd ${WRKSRC} ; ${MAKE_CMD} install instcheck @${TOUCH} ${WRKSRC}/*-conf @${MV} -f ${WRKSRC}/conf-qmail.sav ${WRKSRC}/conf-qmail Modified: head/mail/qmail-contrib/Makefile ============================================================================== --- head/mail/qmail-contrib/Makefile Thu Apr 3 16:46:04 2014 (r350028) +++ head/mail/qmail-contrib/Makefile Thu Apr 3 17:07:05 2014 (r350029) @@ -3,7 +3,7 @@ PORTNAME= qmail-contrib PORTVERSION= 0.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= mail MASTER_SITES= http://cr.yp.to/software/ \ ${MASTER_SITE_GENTOO} @@ -63,23 +63,24 @@ do-build: # Do a dance to stage and keep out of resulting binaries (see r346769 # and r349241) -pre-install: - ${MKDIR} ${STAGEDIR}${QMAIL_PREFIX}/${DOCSDIR} +post-build: + @${ECHO_MSG} "===> Rebuilding DJB installer to respect STAGEDIR" @${MV} -f ${WRKFF}/conf-qmail ${WRKFF}/conf-qmail.sav @${ECHO_CMD} "${STAGEDIR}${QMAIL_PREFIX}" > ${WRKFF}/conf-qmail - @cd ${WRKFF} ; ${RM} -f install instcheck install.o instcheck.o hier.o auto_home.o + @cd ${WRKFF} ; ${RM} -f install instcheck install.o instcheck.o hier.o auto_qmail.o auto_qmail.c @cd ${WRKFF} ; ${MAKE_CMD} install instcheck @${TOUCH} ${WRKFF}/newaliases ${WRKFF}/fastforward ${WRKFF}/newinclude @${MV} -f ${WRKFF}/conf-qmail.sav ${WRKFF}/conf-qmail @${MV} -f ${WRKDF}/conf-qmail ${WRKDF}/conf-qmail.sav @${ECHO_CMD} "${STAGEDIR}${QMAIL_PREFIX}" > ${WRKDF}/conf-qmail - @cd ${WRKDF} ; ${RM} -f install instcheck install.o instcheck.o hier.o auto_home.o + @cd ${WRKDF} ; ${RM} -f install instcheck install.o instcheck.o hier.o auto_qmail.o auto_qmail.c @cd ${WRKDF} ; ${MAKE_CMD} install instcheck @${TOUCH} ${WRKDF}/dot-forward @${MV} -f ${WRKDF}/conf-qmail.sav ${WRKDF}/conf-qmail do-install: + @${MKDIR} ${STAGEDIR}${QMAIL_PREFIX}/${DOCSDIR} @${MAKE} -C ${WRKDIR}/dot-forward-${DF_VER} ${INSTALL_TARGET} @${MAKE} -C ${WRKDIR}/fastforward-${FF_VER} ${INSTALL_TARGET} Modified: head/mail/qmailanalog/Makefile ============================================================================== --- head/mail/qmailanalog/Makefile Thu Apr 3 16:46:04 2014 (r350028) +++ head/mail/qmailanalog/Makefile Thu Apr 3 17:07:05 2014 (r350029) @@ -3,7 +3,7 @@ PORTNAME= qmailanalog PORTVERSION= 0.70 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= mail MASTER_SITES= http://cr.yp.to/software/ \ http://www.emaillab.org/djb/qmailanalog/ @@ -47,15 +47,16 @@ post-patch: # Do a dance to stage and keep out of resulting binaries (see r346769 # and r349241) -pre-install: - @${MKDIR} ${STAGEDIR}${QMPREFIX} +post-build: + @${ECHO_MSG} "===> Rebuilding DJB installer to respect STAGEDIR" @${MV} -f ${WRKSRC}/conf-home ${WRKSRC}/conf-home.sav @${ECHO_CMD} "${STAGEDIR}${QMPREFIX}" > ${WRKSRC}/conf-home - @cd ${WRKSRC} ; ${RM} -f install instcheck install.o instcheck.o hier.o auto_home.o + @cd ${WRKSRC} ; ${RM} -f install instcheck install.o instcheck.o hier.o auto_home.o auto_home.c @cd ${WRKSRC} ; ${MAKE_CMD} install instcheck @${MV} -f ${WRKSRC}/conf-home.sav ${WRKSRC}/conf-home post-install: + @${MKDIR} ${STAGEDIR}${QMPREFIX} ${INSTALL_MAN} ${WRKSRC}/*.1 ${STAGEDIR}${MANPREFIX}/man/man1/ .include Modified: head/mail/qtools/Makefile ============================================================================== --- head/mail/qtools/Makefile Thu Apr 3 16:46:04 2014 (r350028) +++ head/mail/qtools/Makefile Thu Apr 3 17:07:05 2014 (r350029) @@ -3,7 +3,7 @@ PORTNAME= qtools PORTVERSION= 0.56 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= mail MASTER_SITES= http://www.superscript.com/qtools/ @@ -33,10 +33,11 @@ do-configure: # Do a dance to stage and keep out of resulting binaries (see r346769 # and r349241) -pre-install: +post-build: + @${ECHO_MSG} "===> Rebuilding DJB installer to respect STAGEDIR" @${MV} -f ${WRKSRC}/conf-home ${WRKSRC}/conf-home.sav @${ECHO_CMD} "${STAGEDIR}${PREFIX}" > ${WRKSRC}/conf-home - @cd ${WRKSRC} ; ${RM} -f install instcheck install.o instcheck.o hier.o auto_home.o + @cd ${WRKSRC} ; ${RM} -f install instcheck install.o instcheck.o hier.o auto_home.o auto_home.c @cd ${WRKSRC} ; ${MAKE_CMD} install instcheck @${TOUCH} ${WRKSRC}/replier-config @${MV} -f ${WRKSRC}/conf-home.sav ${WRKSRC}/conf-home