On 2016/11/24 16:49, 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.
>
> How about this?
Makes sense (and I ran into it too, but didn't get as far as working out
the cause). OK.
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/devel/libf2c/Makefile,v
> retrieving revision 1.30
> diff -u -p -r1.30 Makefile
> --- Makefile 12 May 2016 01:17:13 -0000 1.30
> +++ Makefile 24 Nov 2016 15:46:44 -0000
> @@ -31,6 +31,7 @@ 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
>
> --
> Christian "naddy" Weisgerber [email protected]
>