Re: devel/py-mercurialserver broken by last commit

2014-01-26 Thread Anton Afanasyev
I've run into this problem too.
Michael, while I haven't tried your patch yet, I'm curious to know why you
added the extra line to post-install? I couldn't find any place where a
similar one may have been removed, so just interested to know why it needed
to be added.
You may also want to submit a PR to have your patch noticed quicker:
http://www.freebsd.org/support.html


On Thu, Jan 2, 2014 at 7:29 AM, Michael Vorobyov mic6...@gmail.com wrote:

 Good day and happy New Year )

 The last commit into devel/py-mercurialserver (rev. 337698) broke it.
 Buildlog tail:
 ===
 changing mode of build/scripts-2.7/refresh-auth from 644 to 755
 ===  Staging for py27-mercurialserver-1.2.0
 ===   py27-mercurialserver-1.2.0 depends on executable: hg - found
 ===   py27-mercurialserver-1.2.0 depends on file: /usr/local/bin/python2.7
 - found
 ** Missing /usr/ports/devel/py-mercurialserver/files/pkg-message.in for
 py27-mercurialserver-1.2.0.
 *** [apply-slist] Error code 1

 Stop in /usr/ports/devel/py-mercurialserver.
 ===

 I suggest next patch (tested in tinderbox):
 --- Makefile.orig   2013-12-27 18:34:14.0 +0800
 +++ Makefile2014-01-02 23:08:47.0 +0800
 @@ -24,10 +24,8 @@
  USERS= ${HGUSER}
  GROUPS=${HGGROUP}

 -SUB_FILES= pkg-message
  SUB_LIST=  PORTNAME=${PORTNAME} \
 HGUSER=${HGUSER}
 -PKGMESSAGE=${WRKDIR}/pkg-message

  USE_PYTHON=yes
  USE_PYDISTUTILS=yes
 @@ -41,6 +39,7 @@
 ${SED} -I .orig -e
 s#/etc/mercurial-server/#${PREFIX}/etc/${PORTNAME}/#
 ${WRKSRC}/src/init/dot-mercurial-server

  post-install:
 +   ${MKDIR} ${STAGEDIR}${PREFIX}/hg
 ${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}/remote-hgrc.d
 ${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}/keys/users
 ${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}/keys/root
 ___
 freebsd-ports@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-ports
 To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


devel/py-mercurialserver broken by last commit

2014-01-02 Thread Michael Vorobyov
Good day and happy New Year )

The last commit into devel/py-mercurialserver (rev. 337698) broke it.
Buildlog tail:
===
changing mode of build/scripts-2.7/refresh-auth from 644 to 755
===  Staging for py27-mercurialserver-1.2.0
===   py27-mercurialserver-1.2.0 depends on executable: hg - found
===   py27-mercurialserver-1.2.0 depends on file: /usr/local/bin/python2.7
- found
** Missing /usr/ports/devel/py-mercurialserver/files/pkg-message.in for
py27-mercurialserver-1.2.0.
*** [apply-slist] Error code 1

Stop in /usr/ports/devel/py-mercurialserver.
===

I suggest next patch (tested in tinderbox):
--- Makefile.orig   2013-12-27 18:34:14.0 +0800
+++ Makefile2014-01-02 23:08:47.0 +0800
@@ -24,10 +24,8 @@
 USERS= ${HGUSER}
 GROUPS=${HGGROUP}

-SUB_FILES= pkg-message
 SUB_LIST=  PORTNAME=${PORTNAME} \
HGUSER=${HGUSER}
-PKGMESSAGE=${WRKDIR}/pkg-message

 USE_PYTHON=yes
 USE_PYDISTUTILS=yes
@@ -41,6 +39,7 @@
${SED} -I .orig -e
s#/etc/mercurial-server/#${PREFIX}/etc/${PORTNAME}/#
${WRKSRC}/src/init/dot-mercurial-server

 post-install:
+   ${MKDIR} ${STAGEDIR}${PREFIX}/hg
${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}/remote-hgrc.d
${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}/keys/users
${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}/keys/root
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org