Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Frage zu CONFIG_PROTECT und CONFIG_PROTECT_MASK [Solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Fabiolla
Apprentice
Apprentice


Joined: 04 Mar 2004
Posts: 277
Location: somewhere

PostPosted: Sun Feb 20, 2005 1:08 pm    Post subject: Frage zu CONFIG_PROTECT und CONFIG_PROTECT_MASK [Solved] Reply with quote

Hallo,
hab da ein kleines Problem mit CONFIG_PROTECT und CONFIG_PROTECT_MASK

Quote:

Schritt 1: emerge --info zeigt mir folgendes an:
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"


Der Eintrag /etc/env.d unter CONFIG_PROTECT_MASK gefällt mir nicht besonders, ich hätte diesen Eintrag
gerne unter CONFIG_PROTECT. In der Manpage von make.conf steht dazu folgendes:

Quote:

CONFIG_PROTECT = [space delimited list of dirs]
All directories that are defined here will have "config file protection" enabled for them. For
more information, please see `emerge --help config`.


Ich hab dann die Datei /etc/make.conf so angepasst:
Quote:

CONFIG_PROTECT="/etc/env.d"


Wenn ich danach emerge --info aufrufe wird folgendes angezeigt:
Quote:

CONFIG_PROTECT="/etc /etc/env.d /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"


Der Eintrag /etc/env.d ist nun unter CONFIG_PROTECT und CONFIG_PROTECT_MASK vorhanden.
Hab ich da einen 'Gedankenfehler' bzw. wie müsste ich vorgehen, damit der Eintrag /etc/env.d nur unter
CONFIG_PROTECT aufscheint ?

lg


Last edited by Fabiolla on Sun Feb 20, 2005 5:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
kurt
Guru
Guru


Joined: 25 Aug 2003
Posts: 403
Location: Arni (AG); CH

PostPosted: Sun Feb 20, 2005 1:23 pm    Post subject: Reply with quote

hallo,

Code:
echo "CONFIG_PROTECT=/etc/env.d" >> /etc/env.d/03meine
env-update && source /etc/profile


gruss

kurt
Back to top
View user's profile Send private message
c07
Veteran
Veteran


Joined: 25 Oct 2002
Posts: 1091

PostPosted: Sun Feb 20, 2005 4:15 pm    Post subject: Re: Frage zu CONFIG_PROTECT und CONFIG_PROTECT_MASK Reply with quote

Theoretisch müsstest du in die make.conf
Code:
CONFIG_PROTECT_MASK="-/etc/env.d"
schreiben (in CONFIG_PROTECT ist es ja wegen "/etc" eh schon). Praktisch funktioniert das aber nicht, weil CONFIG_PROTECT_MASK hauptsächlich in /etc/env.d gesetzt wird und das Environment die Werte aus der make.conf überschreibt. Im Fall von /etc/env.d scheint die Lage aber noch abartiger zu sein: Das wird offenbar in /usr/lib/portage/pym/portage.py hart angehängt, sodass nicht mal ein
Code:
CONFIG_PROTECT_MASK="-*" emerge --info
hilft.

Ich würd da mal einen Bug aufmachen, dann erfährst du zumindest eventuelle Gründe, die zu diesem Konstrukt geführt haben. Sachlich halt ich /etc/env.d in CONFIG_PROTECT_MASK jedenfalls auch nicht für angebracht.
Back to top
View user's profile Send private message
Fabiolla
Apprentice
Apprentice


Joined: 04 Mar 2004
Posts: 277
Location: somewhere

PostPosted: Sun Feb 20, 2005 5:40 pm    Post subject: Reply with quote

Hallo,
@ c07. Dein Tipp trifft 'leider' zu. Hab mal unter bugs.gentoo.org geschaut, folgender Bug ist vermutlich die Ursache dafür. Auszug aus diesem Bug:
Quote:

inside of emerge /etc/env.d is added to CONFIG_PROTECT_MASK
the reason for this is if a package installs a file there, when env-update is
run at the end of emerge the env.d is used


Ob diese Lösung 'die schönste bzw. beste Variante' ist, lasse ich mal dahingestellt - zumindest weis ich jetzt, warum CONFIG_PROTECT für dieses Verzeichnis nicht funktioniert. Danke an euch beiden ;)
lg
Back to top
View user's profile Send private message
c07
Veteran
Veteran


Joined: 25 Oct 2002
Posts: 1091

PostPosted: Sun Feb 20, 2005 6:48 pm    Post subject: Reply with quote

Der Bug ist mir bei der oberflächlichen Suche entgangen. Die Begründung ist einsichtig, aber es fehlt die Dokumentation (zumindest hab ich das noch nirgends gelesen). Nicht mal im Quelltext ist ein Kommentar dazu.

Das heißt also, dass man seine Finger von /etc/env.d lassen und Änderungen stattdessen direkt in /etc/profile machen soll.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum