Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jul 2005 18:50:51 -0500
From:      Eric van Gyzen <vangyzen@stat.duke.edu>
To:        Roman Neuhauser <neuhauser@sigpipe.cz>
Cc:        freebsd-ports <freebsd-ports@freebsd.org>
Subject:   Re: math/R: non-root build fails with "cp: chmod: (...): Operation not permitted
Message-ID:  <42D1B45B.5080701@stat.duke.edu>
In-Reply-To: <20050710225841.GA28668@isis.sigpipe.cz>
References:  <20050710225841.GA28668@isis.sigpipe.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
Roman Neuhauser wrote:
> 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?

I'm afraid I don't see the problem.  You should be able to build the 
port as a normal user (not root).  It's strange that the 'o+x' bit isn't 
set on the above directories, but that shouldn't cause this problem.  Do 
you have the filesystem mounted with any exotic options, such as 
'async'?  Are there any flags set on those files (displayed with ls 
-lo)?  Do you have ACLs enabled?  What's your umask?  (Yes, I'm grasping 
at straws, here.)

> [1] First, readline: I'm not sure what OSVERSION this should be, and
>     don't feel like crawling the CVS history to find out.

>  .if ${OSVERSION} < 500000
> -CONFIGURE_ARGS+=	--disable-mbcs
> +CONFIGURE_ARGS+=	--disable-mbcs --with-readline=${LOCALBASE}
> +LIB_DEPENDS+=	readline.5:${PORTSDIR}/devel/readline
>  .endif

I don't have a problem with this.  I'm curious: why is it necessary?  Is 
the readline in 4.x too old?  (I haven't run 4.x in a long time.)

Eric



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