Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 May 2014 15:48:11 -0700
From:      Kevin Oberman <rkoberman@gmail.com>
To:        "Ronald F. Guilmette" <rfg@tristatelogic.com>
Cc:        FreeBSD Ports ML <freebsd-ports@freebsd.org>, multimedia@freebsd.org
Subject:   Re: multimedia/ffmpeg: pkg_add: leave_playpen: can't chdir back to ''
Message-ID:  <CAN6yY1vziebtF8uEOtiL9xrVrq_RZbkhLySn3QGDUORuqjETJw@mail.gmail.com>
In-Reply-To: <28254.1400791484@server1.tristatelogic.com>
References:  <28254.1400791484@server1.tristatelogic.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 22, 2014 at 1:44 PM, Ronald F. Guilmette
<rfg@tristatelogic.com>wrote:

>
> I built the latest multimedia/ffmpeg and now it won't install, due
> to the error(s) shown below.
>
> Is there a known fix for this?
>
> P.S.  Apparently this error:
>
>       pkg_add: leave_playpen: can't chdir back to ''
>
> has been publically discussed since at least January, 2012.  In all that
> time, why hasn't anybody fixed it?
>
> =========================================================================
> # make install
> ===>  Installing for ffmpeg-2.1.1_3,1
> ===>   ffmpeg-2.1.1_3,1 depends on shared library: libfontconfig.so - found
> ===>   ffmpeg-2.1.1_3,1 depends on shared library: libfreetype.so - found
> ===>   ffmpeg-2.1.1_3,1 depends on shared library: libgnutls.so - found
> ===>   ffmpeg-2.1.1_3,1 depends on shared library: libopencv_imgproc.so -
> found
> ===>   ffmpeg-2.1.1_3,1 depends on shared library: libschroedinger-1.0.so- found
> ===>   ffmpeg-2.1.1_3,1 depends on shared library: libtheora.so - found
> ===>   ffmpeg-2.1.1_3,1 depends on shared library: libva.so - found
> ===>   ffmpeg-2.1.1_3,1 depends on shared library: libvorbisenc.so - found
> ===>   ffmpeg-2.1.1_3,1 depends on shared library: libvpx.so - found
> ===>   ffmpeg-2.1.1_3,1 depends on shared library: libx264.so - found
> ===>   ffmpeg-2.1.1_3,1 depends on shared library: libxvidcore.so - found
> ===>   ffmpeg-2.1.1_3,1 depends on shared library: libiconv.so.3 - found
> ===>  Checking if multimedia/ffmpeg already installed
> share/doc/ffmpeg/APIchanges: Could not unlink
> share/doc/ffmpeg/CREDITS: Could not unlink
> share/doc/ffmpeg/Changelog: Could not unlink
> share/doc/ffmpeg/INSTALL: Could not unlink
> share/doc/ffmpeg/LICENSE: Could not unlink
> share/doc/ffmpeg/MAINTAINERS: Could not unlink
> share/doc/ffmpeg/README: Could not unlink
> share/doc/ffmpeg/RELEASE_NOTES: Could not unlink
> share/doc/ffmpeg/avutil.txt: Could not unlink
> share/doc/ffmpeg/build_system.txt: Could not unlink
> share/doc/ffmpeg/developer.html: Could not unlink
> share/doc/ffmpeg/errno.txt: Could not unlink
> share/doc/ffmpeg/faq.html: Could not unlink
> share/doc/ffmpeg/fate.html: Could not unlink
> share/doc/ffmpeg/fate.txt: Could not unlink
> share/doc/ffmpeg/ffmpeg-all.html: Could not unlink
> share/doc/ffmpeg/ffmpeg-bitstream-filters.html: Could not unlink
> share/doc/ffmpeg/ffmpeg-codecs.html: Could not unlink
> share/doc/ffmpeg/ffmpeg-devices.html: Could not unlink
> share/doc/ffmpeg/ffmpeg-filters.html: Could not unlink
> share/doc/ffmpeg/ffmpeg-formats.html: Could not unlink
> share/doc/ffmpeg/ffmpeg-protocols.html: Could not unlink
> share/doc/ffmpeg/ffmpeg-resampler.html: Could not unlink
> share/doc/ffmpeg/ffmpeg-scaler.html: Could not unlink
> share/doc/ffmpeg/ffmpeg-utils.html: Could not unlink
> share/doc/ffmpeg/ffmpeg.html: Could not unlink
> share/doc/ffmpeg/ffmpeg.txt: Could not unlink
> share/doc/ffmpeg/ffprobe-all.html: Could not unlink
> share/doc/ffmpeg/ffprobe.html: Could not unlink
> share/doc/ffmpeg/ffserver-all.html: Could not unlink
> share/doc/ffmpeg/ffserver.html: Could not unlink
> share/doc/ffmpeg/filter_design.txt: Could not unlink
> share/doc/ffmpeg/general.html: Could not unlink
> share/doc/ffmpeg/git-howto.html: Could not unlink
> share/doc/ffmpeg/git-howto.txt: Could not unlink
> share/doc/ffmpeg/issue_tracker.txt: Could not unlink
> share/doc/ffmpeg/libavcodec.html: Could not unlink
> share/doc/ffmpeg/libavdevice.html: Could not unlink
> share/doc/ffmpeg/libavfilter.html: Could not unlink
> share/doc/ffmpeg/libavformat.html: Could not unlink
> share/doc/ffmpeg/libavutil.html: Could not unlink
> share/doc/ffmpeg/libswresample.html: Could not unlink
> share/doc/ffmpeg/libswscale.html: Could not unlink
> share/doc/ffmpeg/mips.txt: Could not unlink
> share/doc/ffmpeg/multithreading.txt: Could not unlink
> share/doc/ffmpeg/nut.html: Could not unlink
> share/doc/ffmpeg/optimization.txt: Could not unlink
> share/doc/ffmpeg/platform.html: Could not unlink
> share/doc/ffmpeg/rate_distortion.txt: Could not unlink
> share/doc/ffmpeg/snow.txt: Could not unlink
> share/doc/ffmpeg/soc.txt: Could not unlink
> share/doc/ffmpeg/swresample.txt: Could not unlink
> share/doc/ffmpeg/swscale.txt: Could not unlink
> share/doc/ffmpeg/tablegen.txt: Could not unlink
> share/doc/ffmpeg/viterbi.txt: Could not unlink
> tar: Error exit delayed from previous errors.
> pkg_add: leave_playpen: can't chdir back to ''
> *** [install-package] Error code 2
>
> Stop in /usr/ports/multimedia/ffmpeg.
> *** [install] Error code 1
>
> Stop in /usr/ports/multimedia/ffmpeg.
>

The list of "Could not unlink" messages smell like some sort of permissions
problem.

Since I have not either seen this issue nor have many others,  there most
be something different about your build that triggers the error. Please
provide the output of "uname -a", "make -C /usr/ports/multimedia/ffmpeg
showconfig" and "cat /etc/make.conf".

I assume that you are using the old pkg system due to the reference to
pkg_add.. Are you building/installing as root? Anything else that might be
unusual? Any ports-related environmental variables you are
setting/modifying? portmaster, portupgrade, or something else?
-- 
R. Kevin Oberman, Network Engineer, Retired
E-mail: rkoberman@gmail.com



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