multimedia/ffmpeg: pkg_add: leave_playpen: can't chdir back to ''

2014-05-22 Thread Ronald F. Guilmette

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.

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: multimedia/ffmpeg: pkg_add: leave_playpen: can't chdir back to ''

2014-05-22 Thread Kevin Oberman
On Thu, May 22, 2014 at 1:44 PM, Ronald F. Guilmette
r...@tristatelogic.comwrote:


 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? 

Re: multimedia/ffmpeg: pkg_add: leave_playpen: can't chdir back to ''

2014-05-22 Thread Ronald F. Guilmette

In message can6yy1vziebtf8ueotil9xrvrq_rzbkhlysn3qgduoruqje...@mail.gmail.com
Kevin Oberman rkober...@gmail.com wrote:

On Thu, May 22, 2014 at 1:44 PM, Ronald F. Guilmette
r...@tristatelogic.comwrote:
...
 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.

Nevermind.

Apparently, there was a _file_... please note... a _file_ (not a directory)
on my system with the name /usr/local/share/doc/ffmpeg and this was
apparently causing all the problems.

I removed it and now the install completes without error.

I myseld never intentionally created that file, and I feel that it must
have been a left-over of some kind of some prior install of ffmpeg...
perhaps from long ago.

The file itself was apparently a text file, 7 bytes long, containing only
the following text:

0.7.15

I say again that I personally have no recollection of *ever* having
intentionally created any such file.

I humbly suggest that install scripts should avoid making assumptions
about the presence of absence of some particular type of thing within
the file system unless the scripts in question have themselves made all
necessary arrangements beforehand to create said filesystem objects
(and using rm -f where necessary, in order to reliably clear the way
for any such creations).
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org