Created attachment 364658 [details, diff] Patch for pinentry-0.8.3 to utilize gnulib on AIX. Have this build error on AIX with app-crypt/pinentry: powerpc-ibm-aix7.1.0.0-gcc -DHAVE_CONFIG_H -I. -I.. -I../assuan -I../secmem -Wall -O2 -pipe -Wall -Wcast-align -Wshadow -Wstrict-prototypes -Wno-pointer-sign -c -o pinentry.o pinentry.c pinentry.c:29:20: error: getopt.h: No such file or directory Seems like upstream did use gnulib once upon a time (seen in ChangeLogs), but haven't found why they stopped that. However, in Prefix we do provide a precompiled static libgnu.a for such packages. Utilizing that as in attached patch makes pinentry compile on AIX. Thank you!
Why not just put these flags globally?
gnulib isn't needed/installed on each system.
Or in case you meant platform-global rather than ebuild-global: Many packages do ship needed gnulib modules on their own, or provide various platform-specific replacements in some other form. It would ask for conflicts when gnulib is unconditionally linked (on toolchain-level). It's just some packages where using prebuilt gnulib really does make sense.
Added, thanks!