Re: USERS/GROUPS in bsd.port.mk [was: FreeBSD Port: postfix-2.8.4, 1]
On Wed, 2011-08-03 at 00:05:16 -0400, Sahil Tandon wrote: > [ adding portmgr@ to the chain since we're in bpmk territory] > > On Tue, 2011-08-02 at 15:09:49 +0200, Miroslav Lachman wrote: > > > Sahil Tandon wrote: > > >On Tue, 2011-08-02 at 00:04:14 +0200, olli hauer wrote: > > > > > >>No, you don't hit the limitation. It seems you really found a bug in > > >>the Framework! > > >> > > >> From the Framework code in bsd.port.mk existing groups should honored. > > > > > >Along those lines, what about using groupmod instead of usermod? > > >Perhaps due to my ignorance, it seems more straightforward and does not > > >require much sed-fu; I've attached a (probably incomplete) patch to > > >illustrate my thinking. I understand what I am suggesting could > > >introduce other problems, so please do not construe it as an as-is > > >suggestion, but rather something to stoke discussion. > > > > I tested your patch and it works for me. > > [ .. ] > > > Thank you for your time and working solution. I filed ports/159577 for portmgr review. -- Sahil Tandon ___ 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"
Alert from eSafe: instruction.zip\instruction.scr Infected with Win32.Mydoom.m
*** Detected hostile content in this email. *** Time: 07 Aug 2011 11:08:37 Scan result: Mail modified to remove malicious content Protocol: SMTP File Name\Mail Subject: Returned mail: see transcript for details Source: 88.247.86.118 Destination: Mail Sender: freebsd-ports@freebsd.org Mail Recipients: a...@avin.gr Details: instruction.zip\instruction.scr Infected with Win32.Mydoom.m, Blocked ___ 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"
[patch] always install python's eggs as unpacked files
Hi, I've got two problems with python's eggs installed from ports. As you know, many eggs install from ports as archives and then unprivileged pseudo-user tries to use them, it's got an error about can't creating PYTHON_EGG_CACHE. That's OK, I've just set environment "PYTHON_EGG_CACHE=/var/tmp" and all works quite well. But a week ago I needed to run two daemons that use pymongo and I couldn't do this. The first daemon created PYTHON_EGG_CACHE and unpacked pymongo, but the second couldn't create PYTHON_EGG_CACHE because PYTHON_EGG_CACHE already exists! Even though they both run as "nobody". The second problem with that behaviour is when you're installing some python module from packages you need the Internet connection to get an egg from site and build it on-the-fly. Please, inspect my patch. I think that's a good solution for that problems. -- Andrey Zonov --- /usr/ports/Mk/bsd.python.mk.orig2011-08-06 20:55:57.0 + +++ /usr/ports/Mk/bsd.python.mk 2011-08-07 10:31:32.0 + @@ -454,7 +454,7 @@ PYDISTUTILS_BUILD_TARGET?= bdist_egg PYDISTUTILS_INSTALL_TARGET?= easy_install -PYDISTUTILS_INSTALLARGS?= -O 1 -N -S ${PYTHON_SITELIBDIR} \ +PYDISTUTILS_INSTALLARGS?= -Z --record ${TMPPLIST}.egg -O 1 -N -S ${PYTHON_SITELIBDIR} \ -d ${PYEASYINSTALL_SITELIBDIR} \ -s ${PYEASYINSTALL_BINDIR} \ ${WRKSRC}/dist/${PYEASYINSTALL_EGG} @@ -490,10 +490,13 @@ add-plist-post: add-plist-easyinstall add-plist-easyinstall: @# @unexec line must be located before any other line while @exec must not. - @${CAT} ${TMPPLIST} > ${TMPPLIST}.pei_tmp + @${SED} -i "" -e 's,^${PREFIX}/,,' ${TMPPLIST}.egg + @${GREP} -v "^${PYTHON_SITELIBDIR:S,${PREFIX}/,,}/${PYEASYINSTALL_EGG}$$" ${TMPPLIST} \ + > ${TMPPLIST}.pei_tmp || ${TRUE} @${ECHO_CMD} "@unexec ${PYEASYINSTALL_CMD} ${PYEASYINSTALL_UNINSTALLARGS}" \ > ${TMPPLIST} - @${CAT} ${TMPPLIST}.pei_tmp >> ${TMPPLIST} + @${SORT} -ru ${TMPPLIST}.egg ${TMPPLIST}.pei_tmp >> ${TMPPLIST} + @${ECHO_CMD} "@unexec ${RM} -rf ${PYTHON_SITELIBDIR}/${PYEASYINSTALL_EGG}" >> ${TMPPLIST} @${ECHO_CMD} "@exec ${SETENV} PYTHONPATH=${PYEASYINSTALL_SITELIBDIR} \ ${PYEASYINSTALL_CMD} ${PYEASYINSTALL_INSTALLARGS}" \ >> ${TMPPLIST} ___ 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"
Re: [patch] always install python's eggs as unpacked files
07.08.2011 14:24, Andrey Zonov wrote: Hi, I've got two problems with python's eggs installed from ports. As you know, many eggs install from ports as archives and then unprivileged pseudo-user tries to use them, it's got an error about can't creating PYTHON_EGG_CACHE. That's OK, I've just set environment "PYTHON_EGG_CACHE=/var/tmp" and all works quite well. But a week ago I needed to run two daemons that use pymongo and I couldn't do this. The first daemon created PYTHON_EGG_CACHE and unpacked pymongo, but the second couldn't create PYTHON_EGG_CACHE because PYTHON_EGG_CACHE already exists! Even though they both run as "nobody". The second problem with that behaviour is when you're installing some python module from packages you need the Internet connection to get an egg from site and build it on-the-fly. Please, inspect my patch. I think that's a good solution for that problems. I second this one, default behavior seems incorrect for me too. I've tested the patch against devel/py-greenlet an it works for me with minor changes (commenting out PYDISTUTILS_INSTALLARGS). -- Sphinx of black quartz judge my vow. ___ 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"
fusefs-kmod on recent -current
Seems that the change to the mount flags in recent -current has broken the compilation of sysutils/fusefs-kmod :-( It now needs something like the attached to compile, imb ___ 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"
Re: [patch] always install python's eggs as unpacked files
Hi, Thank you for you feedback. I've fixed that problem easier. My point is that I don't want to fix all bad ports. I want to fix them all at once, completely. Tomorrow I want to try to build all 400 python modules that use `easy_install' in my tinderbox with this patch. -- Andrey Zonov 07.08.2011 22:11, Volodymyr Kostyrko пишет: 07.08.2011 14:24, Andrey Zonov wrote: Hi, I've got two problems with python's eggs installed from ports. As you know, many eggs install from ports as archives and then unprivileged pseudo-user tries to use them, it's got an error about can't creating PYTHON_EGG_CACHE. That's OK, I've just set environment "PYTHON_EGG_CACHE=/var/tmp" and all works quite well. But a week ago I needed to run two daemons that use pymongo and I couldn't do this. The first daemon created PYTHON_EGG_CACHE and unpacked pymongo, but the second couldn't create PYTHON_EGG_CACHE because PYTHON_EGG_CACHE already exists! Even though they both run as "nobody". The second problem with that behaviour is when you're installing some python module from packages you need the Internet connection to get an egg from site and build it on-the-fly. Please, inspect my patch. I think that's a good solution for that problems. I second this one, default behavior seems incorrect for me too. I've tested the patch against devel/py-greenlet an it works for me with minor changes (commenting out PYDISTUTILS_INSTALLARGS). --- /usr/ports/Mk/bsd.python.mk.orig2011-08-03 01:14:21.0 + +++ /usr/ports/Mk/bsd.python.mk 2011-08-07 19:03:13.0 + @@ -460,7 +460,7 @@ PYDISTUTILS_BUILD_TARGET?= bdist_egg PYDISTUTILS_INSTALL_TARGET?= easy_install -PYDISTUTILS_INSTALLARGS?= -O 1 -N -S ${PYTHON_SITELIBDIR} \ +PYDISTUTILS_INSTALLARGS?= -Z --record ${TMPPLIST}.egg -O 1 -N -S ${PYTHON_SITELIBDIR} \ -d ${PYEASYINSTALL_SITELIBDIR} \ -s ${PYEASYINSTALL_BINDIR} \ ${WRKSRC}/dist/${PYEASYINSTALL_EGG} @@ -496,10 +496,14 @@ add-plist-post: add-plist-easyinstall add-plist-easyinstall: @# @unexec line must be located before any other line while @exec must not. - @${CAT} ${TMPPLIST} > ${TMPPLIST}.pei_tmp + @${TOUCH} ${TMPPLIST}.egg + @${SED} -i "" -e 's,^${PREFIX}/,,' ${TMPPLIST}.egg + @${GREP} -vx "${PYTHON_SITELIBDIR:S,${PREFIX}/,,}/${PYEASYINSTALL_EGG}" ${TMPPLIST} \ + > ${TMPPLIST}.pei_tmp || ${TRUE} @${ECHO_CMD} "@unexec ${PYEASYINSTALL_CMD} ${PYEASYINSTALL_UNINSTALLARGS}" \ > ${TMPPLIST} - @${CAT} ${TMPPLIST}.pei_tmp >> ${TMPPLIST} + @${SORT} -ru ${TMPPLIST}.egg ${TMPPLIST}.pei_tmp >> ${TMPPLIST} + @${ECHO_CMD} "@unexec ${RM} -rf ${PYTHON_SITELIBDIR}/${PYEASYINSTALL_EGG}" >> ${TMPPLIST} @${ECHO_CMD} "@exec ${SETENV} PYTHONPATH=${PYEASYINSTALL_SITELIBDIR} \ ${PYEASYINSTALL_CMD} ${PYEASYINSTALL_INSTALLARGS}" \ >> ${TMPPLIST} ___ 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"
Re: fusefs-kmod on recent -current
Michael Butler wrote: > Seems that the change to the mount flags in recent -current has broken > the compilation of sysutils/fusefs-kmod :-( > > It now needs something like the attached to compile, The attachment didn't make it. Anyway, there's already a PR about it: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/159322 Fabian signature.asc Description: PGP signature