Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 580354 - app-portage/portage-utils: please add patch for Solaris
Summary: app-portage/portage-utils: please add patch for Solaris
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Utils Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-17 15:54 UTC by Fabian Groffen
Modified: 2016-11-12 17:17 UTC (History)
1 user (show)

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


Attachments
patch for missing d_type/DT_DIR (portage-utils-0.61-solaris.patch,599 bytes, text/plain)
2016-04-17 15:54 UTC, Fabian Groffen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Groffen gentoo-dev 2016-04-17 15:54:55 UTC
Created attachment 430988 [details]
patch for missing d_type/DT_DIR

On Solaris, dirent doesn't have d_type/DT_DIR.  One has to stat instead.

files/portage-utils-0.61-solaris.patch

uses a stat if DT_DIR isn't defined to use S_ISDIR to achieve the same thing.
Comment 1 SpanKY gentoo-dev 2016-11-12 17:17:57 UTC
i rewrote things a bit ... it should still cover your usage:
https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=0cd1766c6aac6965666797dd875b1fdc0ea91b47