Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 493384 - app-crypt/pinentry-0.8.3: use gnulib on AIX (for getopt.h)
Summary: app-crypt/pinentry-0.8.3: use gnulib on AIX (for getopt.h)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Crypto team [DISABLED]
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 493382
  Show dependency tree
 
Reported: 2013-12-05 12:29 UTC by Michael Haubenwallner (RETIRED)
Modified: 2013-12-27 19:09 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for pinentry-0.8.3 to utilize gnulib on AIX. (pinentry-aix.diff,602 bytes, patch)
2013-12-05 12:29 UTC, Michael Haubenwallner (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Haubenwallner (RETIRED) gentoo-dev 2013-12-05 12:29:49 UTC
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!
Comment 1 Alon Bar-Lev (RETIRED) gentoo-dev 2013-12-05 13:44:58 UTC
Why not just put these flags globally?
Comment 2 Michael Haubenwallner (RETIRED) gentoo-dev 2013-12-05 14:16:36 UTC
gnulib isn't needed/installed on each system.
Comment 3 Michael Haubenwallner (RETIRED) gentoo-dev 2013-12-05 14:23:21 UTC
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.
Comment 4 Alon Bar-Lev (RETIRED) gentoo-dev 2013-12-27 19:09:21 UTC
Added, thanks!