This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] use eglibc configuration file


Arnaud,
All,

On Thursday 08 October 2009 20:52:33 Arnaud Vrac wrote:
> Yann E. MORIN wrote:
> > Next time, could you provide a patch that is ready to import into
> > Mercurial?
> Sorry about that, I'll do it properly next time !

No problem!

> >> +    config EGLIBC_NSS_CONFIG_FILE
> >> +        string
> >> +        prompt "NSS config file"
> > So what is this file for? I don't know why I should have an NSS config file
> > if I specifically _disabled_ NSS. The help entry is confusing.
> I guess the help text is not very explicit. In fact, setting 
> OPTION_EGLIBC_NSSWITCH to n in the option groups file does not disable 
> it, it only makes the nss code and configuration static in the libc 
> instead of loading the nss libraries at runtime using the 
> /etc/nsswitch.conf file.
> For more information, you can read the help on the 
> OPTION_EGLIBC_NSSWITCH option here:
> http://www.eglibc.org/cgi-bin/viewcvs.cgi/trunk/libc/option-groups.def?view=auto

OK. Makes sense. Thanks for the clarification.

> For my tests I used the example files that are provided in the eglibc 
> sources, nss/fixed-nsswitch.conf and nss/fixed-nsswitch.functions. There 
> files define the minimal info needed for nss to work correctly.

OK. From what I understand, there already is a set of "NSS config file" 
and "NSS functions file" bundled with eglibc, and that they are enough
for a non-esoteric system. May be ask the user if he/she wants to use
those files, or if he/she wants to use his/her own set. Something like:

[*] Use an option-groups configuration file
()    Path to the option-groups configuration file
[ ]   Use bundled NSS config/functions files
()      Path to the NSS config file
()      Path to the NSS functions file

That is, hide the paths to the NSS config/functions files.
Also, adapt the help entries accordingly.

What do you think?

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
`------------------------------^-------^------------------^--------------------'



--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]