Summary: | media-video/vlc overwrites /usr/share/vlc/http/.hosts on re-emerge | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Viktor S <bugzilla> |
Component: | Current packages | Assignee: | Paweł Stankowski <aambitny> |
Status: | RESOLVED OBSOLETE | ||
Severity: | minor | CC: | alonbl, media-video, vapier |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 499806 | ||
Bug Blocks: | |||
Attachments: | support ~/.config/vlc/http-hosts |
Description
Viktor S
2009-10-30 23:55:08 UTC
Those files under /usr/share aren't supposed to be edited by the user. Sure it doesn't have an equivalent in /etc that allows you to override stuff from the file in /usr/share? If you really see no other option, you can put the file in CONFIG_PROTECT in make.conf (see man make.conf). Documentation of this is very, VERY sparse at best. But I've found a solution: Changelog for 0.9 [1] says that VLC now uses the XDG Base Directory Specification [2]. This means that it ALSO uses ~/.local/share/vlc/ for configuration. The solution to this problem is to create a http directory there and make a .hosts file in that directory. Why this isn't documented (and that's where the real problem is!) just about anywhere I have no idea, but this at least makes the file stay between versions. [1] http://wiki.videolan.org/Next_changes [2] http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html Updated the VLC wiki's page for the HTTP interface [1] to reflect this. Linux only for now though. [1] http://wiki.videolan.org/Documentation:Modules/http_intf I misread the XDG spec. ~/.config/vlc/http/.hosts is the correct path. This does not work though; opened a thread on the VLC forum asking why. It can be found here: [1] [1] http://forum.videolan.org/viewtopic.php?f=13&t=67411 The reply from the VLC people (in the link I posted) was to make a symlink between this file and /etc since that is how debian does it. Proposal: On install, create a symlink between /usr/share/vlc/http/.hosts and /etc/vlc/http/.hosts in order to protect it from being overwritten on reinstall/upgrade of VLC. The /etc path in this proposal were chosen on the basis of consistency. Path to .hosts is /usr/share/vlc/lua/http/.hosts in vlc-2.0. It's used only with USE=httpd. May be it's time to change the header? Problem still exists. I have added CONFIG_PROTECT=/usr/share/vlc/lua/http/.hosts to protect .hosts but I will be glad to see some reaction from package maintainers. Yes, I agree the /usr/share/vlc/lua/http/.hosts should be moved to /etc/vlc/lua/http/.hosts and create symlink. Why hasn't this handled for such a long time? Created attachment 347562 [details, diff]
support ~/.config/vlc/http-hosts
using /etc is incorrect. that is a site wide (and usually owned by root) paths. vlc runs as users and should be loading from ~/ like it does with vlcrc.
using CONFIG_PROTECT is a stop-gap measure, but it's better than using /etc. you can do this locally with:
echo CONFIG_PROTECT=/usr/share/vlc/lua/http/.hosts > /etc/env.d/99vlc-hosts
but here's a patch to implement per-user settings. i think upstream is dumb for the stance they've taken (since it's wrong).
From what is visible, the file does no longer exists and the code is no longer present when inspecting the patch context; therefore I mark this obsolete. http://git.videolan.org/?p=vlc.git;a=blob;f=share/lua/intf/http.lua;hb=refs/heads/master (In reply to Tom Wijsman (TomWij) from comment #9) acl file support has been removed starting in the 2.1.x series: http://git.videolan.org/?p=vlc.git;a=commitdiff;h=fe31e42032f3e14d55eb57c73ab7070e5aafcce6 it's in 2.0.x and older. Support for 2.0.x branch has ended because of security bug 499806. |