On Thu, Nov 24, 2016 at 04:49:24PM +0100, Christian Weisgerber wrote:
> After the recent bsd.obj.mk changes, devel/libf2c fails to build in
> a dpb setup where the build is run as the _pbuild user.
> 
> ===>  Configuring for libf2c-3.3.6p9
> cd /usr/obj/ports/libf2c-3.3.6/libf2c && /usr/bin/make -f 
> /usr/obj/ports/libf2c-3.3.6/libf2c/Makefile.bsd-wrapper 
> MANDIR=/usr/local/man/cat  INSTALL_LIBGCC= LIBGCC=  COMPILERS=f771  
> USE_COLLECT2=  LANGUAGES=f77  LIBDIR=/usr/local/lib  
> BSDSRCDIR=/usr/obj/ports/libf2c-3.3.6/libf2c  
> BSDOBJDIR=/usr/obj/ports/libf2c-3.3.6/libf2c  major=8 minor=1  
> libf2c_cv_has_g77_builtin_types=yes LIBTOOL="/usr/bin/libtool"  
> LIBg2c_LTVERSION='-version-info 8:1:0' libg2c_ltversion=8.1 
> SHARED_LIBS_LOG=/usr/obj/ports/libf2c-3.3.6/libf2c/shared_libs.log obj
> making /usr/obj/ports/libf2c-3.3.6/libf2c/obj
> chown: /usr/obj/ports/libf2c-3.3.6/libf2c/obj: Operation not permitted
> 
> For a ports build, there is no point in setting the obj subdirectory
> to a different group after extraction.
> 

With the latest bsd.obj.mk change, this should no longer happen, so we
can remove this hack again.

Index: Makefile
===================================================================
RCS file: /var/cvs/ports/devel/libf2c/Makefile,v
retrieving revision 1.31
diff -u -p -r1.31 Makefile
--- Makefile    25 Nov 2016 15:52:42 -0000      1.31
+++ Makefile    23 Jan 2017 21:41:53 -0000
@@ -31,7 +31,6 @@ MAKE_FLAGS = MANDIR=${TRUEPREFIX}/man/ca
        LIBDIR=${TRUEPREFIX}/lib \
        BSDSRCDIR=${WRKDIST} \
        BSDOBJDIR=${WRKBUILD} \
-       WOBJGROUP=`stat -f %g ${WRKBUILD}` \
        major=${MAJOR} minor=${MINOR} \
        libf2c_cv_has_g77_builtin_types=yes
 

Reply via email to