When I try to emerge pan-0.13.x I get an error about not finding the preferred charsets. I believe that this error is occuring because my system does not have dev-libs/libiconv installed. I have not installed that because of the warning that it is incompatable with the glibc iconv implementation and that it might break other things. Reproducible: Always Steps to Reproduce: 1. emerge pan 2. 3. Actual Results: Here is the a portion of config.log (I will attach the rest): configure:6384: checking preferred charset formats for system iconv configure:6403: gcc -o conftest -march=athlon-xp -O3 -pipe -fomit-frame-pointer -I. co nftest.c >&5 configure:6406: $? = 0 configure:6408: ./conftest System prefers iso-8859-1 System doesn't support any ISO-2022 formats configure:6411: $? = 3 configure: program exited with status 3 configure: failed program was: #line 6394 "configure" #include "confdefs.h" #define CONFIGURE_IN #include "iconv-detect.c" configure:6428: result: not found configure:6436: error: *** The iconv-detect program was unable to determine the *** preferred charset formats recognized by your system *** iconv library. It is suggested that you install a *** working iconv library such as the one found at *** ftp://ftp.gnu.org/pub/gnu/libiconv
Created attachment 8856 [details] config.log showing error
glibc's iconv should be enough. which version of glibc do you have? try doing: iconv -i | grep -i iso-2022 this should show you at least a couple of iso-2022 charsets. if you don't then you possibly need to make sure you have "nls" in your use flags when you merge glibc.
Well I feel a bit silly now. I was using glibc 2.3.1, but I guess it was compiled without nls support. I'm not sure how since I never disabled the nls USE flag myself. I remerged glibc and pan compiled fine. Is it possible for Pan to require that glibc have been compiled with the nls USE flag? If not, that might be a useful feature to add to portage. It also might be helpful to add some sort of message when this error comes up telling the user they need to remerge glibc with the nls flag.
there is already a bug #1771 which suggests exactly that you suggested about making USE flags part of package depenedencies. i've added a warning if it detects emerging without an nls flag, but until #1771 is implemented, there isn't much we can do.