graphics/libjxl: unbreak with libc++ 12

In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:153:12: error: unknown type name 'cpusetid_t'
int     cpuset(cpusetid_t *);
               ^
/usr/include/sys/cpuset.h:154:18: error: unknown type name 'cpuwhich_t'; did you mean '__cpuwhich_t'?
int     cpuset_setid(cpuwhich_t, id_t, cpusetid_t);
                     ^
/usr/include/sys/_types.h:146:14: note: '__cpuwhich_t' declared here
typedef int             __cpuwhich_t;   /* which parameter for cpuset. */
                        ^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:154:30: error: unknown type name 'id_t'; did you mean 'pid_t'?
int     cpuset_setid(cpuwhich_t, id_t, cpusetid_t);
                                 ^
/usr/include/time.h:95:18: note: 'pid_t' declared here
typedef __pid_t         pid_t;
                        ^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:154:36: error: unknown type name 'cpusetid_t'
int     cpuset_setid(cpuwhich_t, id_t, cpusetid_t);
                                       ^
/usr/include/sys/cpuset.h:155:18: error: unknown type name 'cpulevel_t'; did you mean '__cpulevel_t'?
int     cpuset_getid(cpulevel_t, cpuwhich_t, id_t, cpusetid_t *);
                     ^
/usr/include/sys/_types.h:147:14: note: '__cpulevel_t' declared here
typedef int             __cpulevel_t;   /* level parameter for cpuset. */
                        ^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:155:30: error: unknown type name 'cpuwhich_t'; did you mean '__cpuwhich_t'?
int     cpuset_getid(cpulevel_t, cpuwhich_t, id_t, cpusetid_t *);
                                 ^
/usr/include/sys/_types.h:146:14: note: '__cpuwhich_t' declared here
typedef int             __cpuwhich_t;   /* which parameter for cpuset. */
                        ^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:155:42: error: unknown type name 'id_t'; did you mean 'pid_t'?
int     cpuset_getid(cpulevel_t, cpuwhich_t, id_t, cpusetid_t *);
                                             ^
/usr/include/time.h:95:18: note: 'pid_t' declared here
typedef __pid_t         pid_t;
                        ^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:155:48: error: unknown type name 'cpusetid_t'
int     cpuset_getid(cpulevel_t, cpuwhich_t, id_t, cpusetid_t *);
                                                   ^
/usr/include/sys/cpuset.h:156:24: error: unknown type name 'cpulevel_t'; did you mean '__cpulevel_t'?
int     cpuset_getaffinity(cpulevel_t, cpuwhich_t, id_t, size_t, cpuset_t *);
                           ^
/usr/include/sys/_types.h:147:14: note: '__cpulevel_t' declared here
typedef int             __cpulevel_t;   /* level parameter for cpuset. */
                        ^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:156:36: error: unknown type name 'cpuwhich_t'; did you mean '__cpuwhich_t'?
int     cpuset_getaffinity(cpulevel_t, cpuwhich_t, id_t, size_t, cpuset_t *);
                                       ^
/usr/include/sys/_types.h:146:14: note: '__cpuwhich_t' declared here
typedef int             __cpuwhich_t;   /* which parameter for cpuset. */
                        ^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:156:48: error: unknown type name 'id_t'; did you mean 'pid_t'?
int     cpuset_getaffinity(cpulevel_t, cpuwhich_t, id_t, size_t, cpuset_t *);
                                                   ^
/usr/include/time.h:95:18: note: 'pid_t' declared here
typedef __pid_t         pid_t;
                        ^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:157:24: error: unknown type name 'cpulevel_t'; did you mean '__cpulevel_t'?
int     cpuset_setaffinity(cpulevel_t, cpuwhich_t, id_t, size_t, const cpuset_t *);
                           ^
/usr/include/sys/_types.h:147:14: note: '__cpulevel_t' declared here
typedef int             __cpulevel_t;   /* level parameter for cpuset. */
                        ^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:157:36: error: unknown type name 'cpuwhich_t'; did you mean '__cpuwhich_t'?
int     cpuset_setaffinity(cpulevel_t, cpuwhich_t, id_t, size_t, const cpuset_t *);
                                       ^
/usr/include/sys/_types.h:146:14: note: '__cpuwhich_t' declared here
typedef int             __cpuwhich_t;   /* which parameter for cpuset. */
                        ^
In file included from tools/cpu/os_specific.cc:60:
/usr/include/sys/cpuset.h:157:48: error: unknown type name 'id_t'; did you mean 'pid_t'?
int     cpuset_setaffinity(cpulevel_t, cpuwhich_t, id_t, size_t, const cpuset_t *);
                                                   ^
/usr/include/time.h:95:18: note: 'pid_t' declared here
typedef __pid_t         pid_t;
                        ^

Reported by:	pkg-fallout
This commit is contained in:
Jan Beich 2021-06-16 23:46:02 +00:00
parent 5c3f345f37
commit 8dddba7019
2 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,9 @@ DISTVERSION= 0.3.7
PORTREVISION= 2
CATEGORIES= graphics
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES+= adb32f3f8f37.patch:-p1 # https://github.com/libjxl/libjxl/pull/193
MAINTAINER= jbeich@FreeBSD.org
COMMENT= JPEG XL reference encoder/decoder

View File

@ -9,3 +9,5 @@ SHA256 (lvandeve-lodepng-48e5364_GH0.tar.gz) = 41e0bcc686e31ee2d51a6c87c0089045f
SIZE (lvandeve-lodepng-48e5364_GH0.tar.gz) = 239988
SHA256 (webmproject-sjpeg-868ab55_GH0.tar.gz) = ffe757b376fed2fd94473f8625c25f82a3a23aa317fb1bbf1ac8159b6e0a7726
SIZE (webmproject-sjpeg-868ab55_GH0.tar.gz) = 2472084
SHA256 (adb32f3f8f37.patch) = 5003a64f11166147d9ac15ff5d59c512a6acabc0220dc752ff71292e25da0a99
SIZE (adb32f3f8f37.patch) = 5662