svn commit: r328675 - head/devel/jenkins

Li-Wen Hsu lwhsu at FreeBSD.org
Sat Oct 5 11:42:12 UTC 2013


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.
> 
>    =======================<phase: package        
>  >============================
>    ===>  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 <lwhsu at FreeBSD.org>
http://lwhsu.org


More information about the svn-ports-all mailing list