From owner-freebsd-ports@FreeBSD.ORG Sun Jul 10 22:58:44 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 57E3716A41C for ; Sun, 10 Jul 2005 22:58:44 +0000 (GMT) (envelope-from neuhauser@sigpipe.cz) Received: from isis.sigpipe.cz (fw.sigpipe.cz [62.245.70.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5A9C43D46 for ; Sun, 10 Jul 2005 22:58:42 +0000 (GMT) (envelope-from neuhauser@sigpipe.cz) Received: by isis.sigpipe.cz (Postfix, from userid 1001) id 552971F87BEE; Mon, 11 Jul 2005 00:58:41 +0200 (CEST) Date: Mon, 11 Jul 2005 00:58:41 +0200 From: Roman Neuhauser To: freebsd-ports , vangyzen@stat.duke.edu Message-ID: <20050710225841.GA28668@isis.sigpipe.cz> Mail-Followup-To: freebsd-ports , vangyzen@stat.duke.edu Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="x+6KMIRAuhnl3hBn" Content-Disposition: inline User-Agent: Mutt/1.5.9i Cc: Subject: 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 22:58:44 -0000 --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 .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 --x+6KMIRAuhnl3hBn--