Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 296313 - sys-apps/dbus-1.3.0-r1 on x86-solaris
Summary: sys-apps/dbus-1.3.0-r1 on x86-solaris
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Solaris
: High normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-09 13:49 UTC by Daniel Vergien
Modified: 2009-12-22 16:55 UTC (History)
0 users

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


Attachments
dbus-1.3.0-r1.ebuild.patch (dbus-1.3.0-r1.ebuild.patch,945 bytes, patch)
2009-12-09 13:50 UTC, Daniel Vergien
Details | Diff
dbus-1-3-1-solaris.patch (dbus-1-3-1-solaris.patch,482 bytes, patch)
2009-12-09 13:50 UTC, Daniel Vergien
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Vergien 2009-12-09 13:49:41 UTC
dbus fails on solaris. Adding -D_XOPEN_SOURCE=500 is necessary because of error: ‘struct msghdr’ has no member named ‘msg_controllen’. The patch because if XOPEN_SOURCE is defined the field is called d_fd not dd_fd.
Comment 1 Daniel Vergien 2009-12-09 13:50:04 UTC
Created attachment 212538 [details, diff]
dbus-1.3.0-r1.ebuild.patch
Comment 2 Daniel Vergien 2009-12-09 13:50:22 UTC
Created attachment 212539 [details, diff]
dbus-1-3-1-solaris.patch
Comment 3 Fabian Groffen gentoo-dev 2009-12-22 16:55:15 UTC
I fixed this the other day differently:

    if [[ ${CHOST} == *-solaris* ]] ; then
        # struct msghdr doesn't include msg_controllen if _XPG4_2 isn't
        # defined (or the kernel view).  To enable it, _XOPEN_SOURCE
        # must be set to 500.  However, then we loose *DIR->dd_fd, so we
        # just do an ugly hack and enable the private macro.
        append-flags -D_XPG4_2
    fi