From swell.k@gmail.com  Thu Jan  6 17:21:49 2011
Return-Path: <swell.k@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C554A106566B
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  6 Jan 2011 17:21:49 +0000 (UTC)
	(envelope-from swell.k@gmail.com)
Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54])
	by mx1.freebsd.org (Postfix) with ESMTP id 7F4508FC13
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  6 Jan 2011 17:21:49 +0000 (UTC)
Received: by vws9 with SMTP id 9so6753420vws.13
        for <FreeBSD-gnats-submit@freebsd.org>; Thu, 06 Jan 2011 09:21:48 -0800 (PST)
Received: by 10.229.189.66 with SMTP id dd2mr21401768qcb.168.1294334508471;
        Thu, 06 Jan 2011 09:21:48 -0800 (PST)
Received: from localhost (anonymizer3.torservers.net [174.36.199.201])
        by mx.google.com with ESMTPS id p13sm14489900qcu.5.2011.01.06.09.21.47
        (version=SSLv3 cipher=RC4-MD5);
        Thu, 06 Jan 2011 09:21:48 -0800 (PST)
Message-Id: <86tyhmlzji.fsf@gmail.com>
Date: Thu, 06 Jan 2011 20:20:17 +0300
From: Anonymous <swell.k@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: multimedia/vlc: install error: `Permission denied' for non-root

>Number:         153735
>Category:       ports
>Synopsis:       multimedia/vlc: install error: `Permission denied' for non-root
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-multimedia
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 06 17:30:09 UTC 2011
>Closed-Date:    Thu Feb 27 15:04:36 UTC 2014
>Last-Modified:  Thu Feb 27 15:04:36 UTC 2014
>Originator:     Anonymous
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
>Environment:
$ make showconfig
===> The following configuration options are available for vlc-1.1.5_2,3:
     A52=off "A52 DVD audio decoder"
     AALIB=off "Aalib Console Graphics Support"
     AVAHI=off "Enable Avahi mDNS networking"
     CACA=off "Libcaca Console Graphics Support (requires AALIB)"
     DBUS=off "Enable D-Bus control support"
     DIRAC=off "Enable Dirac support"
     DTS=off "DTS DVD audio decoder"
     DVDREAD=off "DVD Playback support"
     DVDNAV=off "DVD menu navigation"
     DVBPSI=off "DVBPSI mux/demux support"
     FAAD=off "Faad audio decoder (mp4/aac) support"
     FLAC=on "Flac audio codec support"
     FLUID=off "Enable Fluidsynth MIDI support"
     FRIBIDI=off "FriBidi bidirectional unicode support"
     GGI=off "General Graphic Interface support"
     GLX=on "X11 OpenGL rendering (requires XCB)"
     GNOMEVFS=off "Gnome VFS support"
     GNUTLS=off "Enable viewing/transmission of encrypted streams"
     HTTPD=on "Streaming media control via http"
     JACK=off "Jack audio support"
     LIVEMEDIA=off "Support for rstp/rtp/sdp protocols"
     LUA=on "Enable Lua scripting"
     MAD=off "Mad mp3 audio decoder support"
     MATROSKA=on "Matroska Container Format support"
     MODPLUG=off "Mod audio suport"
     MPEG2=off "Mpeg-2 audio/video decoder Support"
     MUSEPACK=off "Musepack audio support"
     NCURSES=off "Enable ncurses (console) interface"
     NLS=off "Native Language Support"
     NOTIFY=off "Enable tray notifications"
     OCFLAGS=off "Optimized CFLAGS"
     OGG=on "Ogg audio decoder support"
     OPENGL=off "OpenGL acceleration support"
     PLUGIN=off "VLC Mozilla Plugin"
     PNG=on "PNG graphics format support"
     PORTAUDIO=off "Portaudio library support"
     PULSE=off "Pulse Audio support"
     QT4=off "Qt4 Interface"
     REALAUDIO=off "Real Audio(R) support"
     RUNROOT=off "Enable running as root"
     SAMBA=off "SAMBA Access module"
     SCHROED=off "Enable Schroedinger decoder"
     SDL=off "SDL video output"
     SHOUT=off "Shout2 support"
     SKINS=off "Enable winamp skins interface (requires QT4)"
     STREAM=on "Enable stream output"
     SPEEX=off "Speex voice codec support"
     SQLITE=off "Enable SQLite database support"
     SVG=off "SVG graphics support"
     SVGALIB=off "SVGALIB video output"
     TAGLIB=off "ID3 tag and Ogg comment support"
     THEORA=off "OGG/Vorbis video codec support"
     TREMOR=off "Tremor voice audio (redundant with Vorbis)"
     TWOLAME=off "Twolame mpeg2 audio encoder support"
     UPNP=off "Enable UPnP network device control"
     V4L=off "Enable Video for Linux & DVB support"
     VCD=on "Video CD support"
     VORBIS=on "Vorbis audio decoder support"
     X264=off "Enable H.264/AVC codec support"
     XCB=on "Use X C Bindings for X11 output"
     XOSD=off "X11 On Screen Display support"
     XVIDEO=on "X11 video rendering (requires XCB)"
     ZVBI=off "VBI decoding support"
===> Use 'make config' to modify these settings
>Description:
The port writes outside of FAKEDIR during pre-install. And pre-install
unlike pre-su-install doesn't run under root permissions.
>How-To-Repeat:
Try as non-root user

$ make install
[...]
gmake[3]: Entering directory `/usr/ports/multimedia/vlc/work/vlc-1.1.5/doc'
gmake[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/ports/multimedia/vlc/work/fake/usr/local/share/doc/vlc" || ../autotools/install-sh -c -d "/usr/ports/multimedia/vlc/work/fake/usr/local/share/doc/vlc"
 install   -m 444 bugreport-howto.txt fortunes.txt intf-vcd.txt '/usr/ports/multimedia/vlc/work/fake/usr/local/share/doc/vlc'
test -z "/usr/local/man/man1" || ../autotools/install-sh -c -d "/usr/local/man/man1"
 install   -m 444 vlc.1 vlc-wrapper.1 vlc-config.1 '/usr/local/man/man1'
install: /usr/local/man/man1/vlc.1: Permission denied
gmake[3]: *** [install-man1] Error 71


After using workaround

$ make install
$ make clean
===>  Cleaning for vlc-1.1.5_2,3
rm: /usr/ports/multimedia/vlc/work/fake/usr/local/lib/libvlccore.so.4: Permission denied
rm: /usr/ports/multimedia/vlc/work/fake/usr/local/lib/libvlccore.so: Permission denied
rm: /usr/ports/multimedia/vlc/work/fake/usr/local/lib/libvlccore.la: Permission denied
[...]
>Fix:
Workaround: s/pre-install/pre-su-install/
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->jsa 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Jan 6 17:30:18 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=153735 
State-Changed-From-To: open->analyzed 
State-Changed-By: jsa 
State-Changed-When: Wed Feb 2 21:24:40 UTC 2011 
State-Changed-Why:  
Suggested changes are insufficient to work around the problem. 
Considering options for proper correction. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=153735 
Responsible-Changed-From-To: jsa->freebsd-multimedia 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Sep 10 09:08:41 UTC 2012 
Responsible-Changed-Why:  
Over to new maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=153735 
State-Changed-From-To: analyzed->closed 
State-Changed-By: miwi 
State-Changed-When: Thu Feb 27 15:04:35 UTC 2014 
State-Changed-Why:  
feedback timeout. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=153735 
>Unformatted:
