math/R: non-root build fails with "cp: chmod: (...): Operation not permitted

Roman Neuhauser neuhauser at sigpipe.cz
Sun Jul 10 22:58:44 GMT 2005


Hello,

I'm trying to build math/R on 4.10-STABLE. After fixing two bugs in
the port Makefile[1], I got stuck in ${WRKSRC}/src/library/base, where
in the all target, this block:

	@if test -d $(srcdir)/inst/po; then \
	  $(MKINSTALLDIRS) $(top_builddir)/library/$(pkg)/po; \
	  cp -pr  $(srcdir)/inst/po/* $(top_builddir)/library/$(pkg)/po; \
	  find "$(top_builddir)/library/$(pkg)/po" -name .svn -type d -prune \
	   -exec rm -rf \{\} \; 2>/dev/null; \
	fi

blows up with:

building package 'base'
mkdir -p -- ../../../library/base/demo
mkdir -p -- ../../../library/base/po
cp: chmod: ../../../library/base/po/de/LC_MESSAGES: Operation not permitted
cp: chmod: ../../../library/base/po/de: Operation not permitted
*** Error code 1

Stop in /usr/home/roman/codex/FreeBSD/ports/math/R/work/R-2.1.1/src/library/base.

Funny thing, I don't see what's wrong:

roman at isis src/library/base 1007:0 > ls -ld ./inst/po/de/LC_MESSAGES/R-base.mo ./inst/po/de/LC_MESSAGES ../../../library/base/po/de/LC_MESSAGES/R-base.mo ../../../library/base/po/de/LC_MESSAGES ../../../library/base/po/de
drwxr-xr--  3 roman  roman    512 May 20 14:51 ../../../library/base/po/de
drwxr-xr--  2 roman  roman    512 May 20 14:51 ../../../library/base/po/de/LC_MESSAGES
-rw-r--r--  1 roman  roman  41499 May 20 14:51 ../../../library/base/po/de/LC_MESSAGES/R-base.mo
drwxr-xr--  2 roman  roman    512 May 20 14:51 ./inst/po/de/LC_MESSAGES
-rw-r--r--  1 roman  roman  41499 May 20 14:51 ./inst/po/de/LC_MESSAGES/R-base.mo

Any ideas?

[1] First, readline: I'm not sure what OSVERSION this should be, and
    don't feel like crawling the CVS history to find out.
    Second, the makeinfo dependency needs to specify full path, or it'll
    find /usr/bin/makeinfo, and print/texinfo will never be installed.
    Third, I slapped a fix for the common "configure: WARNING: you
    should use --build, --host, --target" warning on top while I was at
    it. See the attachment.

-- 
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man.  You don't KNOW.
Cause you weren't THERE.             http://bash.org/?255991
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/math/R/Makefile,v
retrieving revision 1.45
diff -u -u -r1.45 Makefile
--- Makefile	7 Jul 2005 18:01:24 -0000	1.45
+++ Makefile	10 Jul 2005 21:38:08 -0000
@@ -55,6 +55,7 @@
 CONFIGURE_ENV=	FFLAGS="${FFLAGS}" \
 		INSTALL_DATA="${INSTALL} ${COPY} ${_SHROWNGRP} -m 644"
 CONFIGURE_ARGS+=--enable-R-shlib --with-bzlib --with-pcre --with-zlib
+CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 
 pre-fetch:
 .if !defined(PAPERSIZE)
@@ -78,12 +79,13 @@
 .include <bsd.port.pre.mk>
 
 .if ${OSVERSION} < 500000
-CONFIGURE_ARGS+=	--disable-mbcs
+CONFIGURE_ARGS+=	--disable-mbcs --with-readline=${LOCALBASE}
+LIB_DEPENDS+=	readline.5:${PORTSDIR}/devel/readline
 .endif
 
 .if ${OSVERSION} < 600000
 CONFIGURE_ENV+=	MAKEINFO_CMD=${LOCALBASE}/bin/makeinfo
-BUILD_DEPENDS+=	makeinfo:${PORTSDIR}/print/texinfo
+BUILD_DEPENDS+=	${LOCALBASE}/bin/makeinfo:${PORTSDIR}/print/texinfo
 .endif
 
 .include <bsd.port.post.mk>


More information about the freebsd-ports mailing list