Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jul 2005 00:58:41 +0200
From:      Roman Neuhauser <neuhauser@sigpipe.cz>
To:        freebsd-ports <freebsd-ports@freebsd.org>, vangyzen@stat.duke.edu
Subject:   math/R: non-root build fails with "cp: chmod: (...): Operation not permitted
Message-ID:  <20050710225841.GA28668@isis.sigpipe.cz>

next in thread | raw e-mail | index | archive | help

--x+6KMIRAuhnl3hBn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

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@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

--x+6KMIRAuhnl3hBn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="math::R-makeinfo-readline,0.patch"

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>

--x+6KMIRAuhnl3hBn--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050710225841.GA28668>