Subject: Re: Dealing with ageing platforms
To: None <>
From: Tobias Nygren <>
List: tech-pkg
Date: 04/22/2007 15:44:56
Tobias Nygren wrote:
> Hi all,
> There's some header-file brain damage on HP-UX that's affecting a large
> number of packages. Rather than patching them all I'd like to handle it
> with buildlink3:
> Brain damage #1 is that the definition of select(2) lives in sys/time.h
> instead of sys/select.h. I'd like to fix this by always using a
> ${WRKDIR}/.buildlink/include/sys/select.h that includes <sys/time.h>.
> Brain damage #2 is that we don't have stdint.h. Could be fixed in a
> similar way.
> My proposed solution is to create a pkgtools/posix_headers package and
> to make that a BUILD_DEPENDS on broken platforms.
> This is good because it reduces overall patch maintenance overhead.
> Thoughts?
> -Tobias

I imported a draft version of this package into wip/posix_headers.
For now I'm using it together with a

.if ${OPSYS} == "HPUX"
.include "../../wip/posix_headers/"

in It unbreaks the build of graphics/jasper and 
x11/xproto, at least.
More testing to be done ...