math/R: non-root build fails with "cp: chmod: (...): Operation
not permitted
Roman Neuhauser
neuhauser at sigpipe.cz
Mon Jul 11 13:52:36 GMT 2005
# neuhauser at sigpipe.cz / 2005-07-11 08:40:03 +0200:
> # vangyzen at stat.duke.edu / 2005-07-10 18:50:51 -0500:
> > 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
>
> > I'm afraid I don't see the problem. You should be able to build the
> > port as a normal user (not root).
>
> My thoughts exactly. BTW, it does build when I prepend the original
> command, which was "make PAPERSIZE=A4 clean build" with sudo.
Hm, I just passed that spot on a 4.11-STABLE #0: Mon May 30 13:35:47
CEST 2005
> > >[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.)
>
> Without devel/readline, the ./configure script failes with:
> checking for history_truncate_file... no
> configure: error: --with-readline=yes (default) and headers/libs are not available
And curiously enough, ./configure was satisfied with
/usr/lib/libreadline.so.4 (same version as on the 4.10-STABLE!)
Obviously, I'll need to double check a few things. Sorry for the
noise... (thanks god the makeinfo fix was valid, otherwise I'd feel
like a *complete* jerk by now).
--
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
More information about the freebsd-ports
mailing list