tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: make replace broken?



On Thu, 13 Mar 2008 12:53:46 -0400
Greg Troxel <gdt%ir.bbn.com@localhost> wrote:

> make replace fails when run as a regular user.  I believe it works ok
> when run as root.  This has been like this for most of a year and I
> haven't spent enough time to figure it out.
> 
> 

The attached patch may work around the problem. I won't commit it
though, unless someone with clue about how the barriers work tells
me it's OK.

Index: bsd.pkg.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/bsd.pkg.mk,v
retrieving revision 1.1940
diff -u -p -u -r1.1940 bsd.pkg.mk
--- bsd.pkg.mk  8 Mar 2008 14:28:05 -0000       1.1940
+++ bsd.pkg.mk  13 Mar 2008 18:46:24 -0000
@@ -663,7 +663,7 @@ ${.CURDIR}/${WRKDIR_BASENAME}:
 _ROOT_CMD=     cd ${.CURDIR} &&                                        \
                ${SETENV} ${PKGSRC_MAKE_ENV}                            \
                        PATH="$${PATH}:"${SU_CMD_PATH_APPEND:Q}         \
-               ${MAKE} ${MAKEFLAGS}                                    \
+               ${MAKE} ${MAKEFLAGS} _PKGSRC_BARRIER=yes                \
                        PKG_DEBUG_LEVEL=${PKG_DEBUG_LEVEL:Q}            \
                        su-${.TARGET} ${MAKEFLAGS.su-${.TARGET}}
 


Home | Main Index | Thread Index | Old Index