From owner-freebsd-ports@FreeBSD.ORG Sun Jul 10 23:50:25 2005 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A5C0516A41C for ; Sun, 10 Jul 2005 23:50:25 +0000 (GMT) (envelope-from vangyzen@stat.duke.edu) Received: from smtpout-1.iphouse.net (smtpout-1.iphouse.net [216.250.188.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id 47F9443D45 for ; Sun, 10 Jul 2005 23:50:25 +0000 (GMT) (envelope-from vangyzen@stat.duke.edu) Received: from localhost (localhost.iphouse.net [127.0.0.1]) by after-av-scan.iphouse.net (Postfix) with ESMTP id 3E033107AB; Sun, 10 Jul 2005 18:50:24 -0500 (CDT) Received: from smtpout-1.iphouse.net ([127.0.0.1]) by localhost (smtpout-1.iphouse.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 81493-02-118; Sun, 10 Jul 2005 18:50:24 -0500 (CDT) Received: from [216.243.164.103] (216-243-164-103.dialup.iphouse.net [216.243.164.103]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtpout-1.iphouse.net (Postfix) with ESMTP id A3364107A8; Sun, 10 Jul 2005 18:50:21 -0500 (CDT) Message-ID: <42D1B45B.5080701@stat.duke.edu> Date: Sun, 10 Jul 2005 18:50:51 -0500 From: Eric van Gyzen Organization: ISDS, Duke University User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Roman Neuhauser References: <20050710225841.GA28668@isis.sigpipe.cz> In-Reply-To: <20050710225841.GA28668@isis.sigpipe.cz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at iphouse.net Cc: freebsd-ports Subject: Re: math/R: non-root build fails with "cp: chmod: (...): Operation not permitted X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jul 2005 23:50:25 -0000 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