From owner-svn-ports-all@FreeBSD.ORG Sat Oct 5 11:42:12 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 ESMTP id 9068CBB6; Sat, 5 Oct 2013 11:42:12 +0000 (UTC) (envelope-from lwhsu@FreeBSD.cs.nctu.edu.tw) Received: from FreeBSD.cs.nctu.edu.tw (FreeBSD.cs.nctu.edu.tw [140.113.17.209]) by mx1.freebsd.org (Postfix) with ESMTP id 5AB562BB2; Sat, 5 Oct 2013 11:42:12 +0000 (UTC) Received: by FreeBSD.cs.nctu.edu.tw (Postfix, from userid 1058) id C55A52365; Sat, 5 Oct 2013 19:35:31 +0800 (CST) Date: Sat, 5 Oct 2013 19:35:31 +0800 From: Li-Wen Hsu To: Bryan Drewery Subject: Re: svn commit: r328675 - head/devel/jenkins Message-ID: <20131005113531.GA10385@FreeBSD.cs.nctu.edu.tw> References: <201309291110.r8TBAje7017450@svn.freebsd.org> <0ec4ffd88c1144a6ca776fdd5f92b6dc@shatow.net> MIME-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Disposition: inline In-Reply-To: <0ec4ffd88c1144a6ca776fdd5f92b6dc@shatow.net> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, owner-ports-committers@freebsd.org, ports-committers@freebsd.org X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 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, 05 Oct 2013 11:42:12 -0000 On Fri, Oct 04, 2013 at 11:26:54 -0500, Bryan Drewery wrote: > Because PREFIX/jenkins is in the PLIST_DIRSTRY, it must actually exist > during packaging packaging phase or pkgng will complain. > > ======================= >============================ > ===> Building package for jenkins-1.532 > pkg-static: > lstat(/wrkdirs/usr/ports/devel/jenkins/work/stage/usr/local/jenkins/): > No such file or directory > pkg-static: DEVELOPER_MODE: Plist error: @dirrm jenkins > *** [do-package] Error code 1 > > This fixes: > > do-install: > - ${MKDIR} ${STAGEDIR}/${DATADIR} > + ${MKDIR} ${STAGEDIR}/${DATADIR} ${STAGEDIR}${JENKINS_HOME} > > Thanks for the patch, this really helps me realizing what's wrong here. However I found this creates ${JENKINS_HOME} with wrong ownership. Using this in do-install: ${INSTALL} -d -o ${JENKINS_USER} -g ${JENKINS_GROUP} -m 750 ${JENKINS_HOME} doesn't help, because the system don't know jenkins user and group at stage time. So my final choice this using pkg-deinstall instead. Thanks, Li-Wen -- Li-Wen Hsu http://lwhsu.org