Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 277634 - dev-libs/gnulib ebuild doesn't set requested_gnulib_modules for IRIX
Summary: dev-libs/gnulib ebuild doesn't set requested_gnulib_modules for IRIX
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All IRIX
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 211507 267854
  Show dependency tree
 
Reported: 2009-07-13 10:23 UTC by Stuart Shelton
Modified: 2009-07-16 16:19 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2009-07-13 10:23:04 UTC
... which prevents its use when needed (for groff, etc.)

Is there any (automated?) way to determine what modules are required for a given OS?

At the very least, IRIX needs:

+        *-irix*)
+            requested_gnulib_modules="getopt"
+            ;;
Comment 1 Michael Haubenwallner (RETIRED) gentoo-dev 2009-07-13 11:23:50 UTC
In bug#264266 there is some incomplete test script for a list of modules to start with. More modules are to be added when needed.
Comment 2 Stuart Shelton 2009-07-13 12:03:47 UTC
According to the test from Bug 264266, IRIX (6.5.x) requires:

alphasort dirfd getopt scandir strcasestr strndup xvasprintf

... although there are system manpages for alphasort (dirent.h), dirfd (sys/dir.h), and scandir (dirent.h), so these may not be required.
Comment 3 Michael Haubenwallner (RETIRED) gentoo-dev 2009-07-13 12:13:29 UTC
Starting with gnulib modules 'getopt strcasestr strndup xvasprintf' for irix in r48470.

ATM I can see app-arch/unrar-gpl, app-cdr/cuetools, app-misc/pax-utils, app-portage/euses, app-portage/portage-utils making use of gnulib.

IIRC it was app-portage/portage-utils needing many of them, but recent versions might need less.

Comment 4 Stuart Shelton 2009-07-13 12:44:29 UTC
I notice that gnulib installs into
"${EPREFIX}/usr/$(get_libdir)/gnulib/$(get_libdir)/" - is this intended?
Comment 5 Stuart Shelton 2009-07-13 12:47:08 UTC
IRIX also requires that (at least) sys-apps/groff (Bug 277041) and media-libs/speex (Bug 267854) also use gnulib, due to getopt_long.
Comment 6 Michael Haubenwallner (RETIRED) gentoo-dev 2009-07-13 13:01:22 UTC
(In reply to comment #4)
> I notice that gnulib installs into
> "${EPREFIX}/usr/$(get_libdir)/gnulib/$(get_libdir)/" - is this intended?

Yes.
The header files partially override headers in ${EPREFIX}/usr/include/.
And the library should not be found by accident.
Comment 7 Stuart Shelton 2009-07-13 15:23:23 UTC
I was wondering about "${EPREFIX}/usr/$(get_libdir)/gnulib/$(get_libdir)/" versus "${EPREFIX}/usr/$(get_libdir)/gnulib/lib/" - the second $(get_libdir) seems superfluous, and I was wondering if it was a quirk of my installation.
Comment 8 Michael Haubenwallner (RETIRED) gentoo-dev 2009-07-14 07:59:53 UTC
Indeed, this might not be necessary.
While get_libdir basically is irrelevant in Prefix anyway, I'm unsure if dropping the second one can work in theory when (some of) /usr/lib* is symlinked.