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


Yann E. MORIN wrote:
Hello Arnaud!

Next time, could you provide a patch that is ready to import into
Mercurial?

Sorry about that, I'll do it properly next time !



@@ -90,3 +90,39 @@

Note that crosstool-NG will *not* update your working copy, you will
have to do that yourself.
+
+config EGLIBC_USE_CUSTOM_CONFIG
+ bool
+ prompt "use user provided configuration file"
+ default n
+ help
+ Use a custom configuration file to disable some features in the eglibc
+ library. For more info read the EGLIBC.option-groups file in the eglibc
+ source directory. +
+if EGLIBC_USE_CUSTOM_CONFIG
+ config EGLIBC_OPTION_GROUPS_FILE
+ string
+ prompt "Option groups configuration file"
+ default ""
+ help
+ Path to the file to configure eglibc option groups.

If I understand correctly, this file contains the options to enable/disable.

Yes, like in the uclibc config file. Some options are dependent on others so you have to read the help file carefully to get a working configuration. The help is located in the option-groups.def file in the eglibc sources.



+    config EGLIBC_NSS_CONFIG_FILE
+        string
+        prompt "NSS config file"
+        default ""
+        help
+          Path to the nsswitch configuration file when the
+          OPTION_EGLIBC_NSSWITCH feature is disabled in the option groups
+          configuration 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

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.

Thanks,

--
Arnaud Vrac

--
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]