gobject-introspection: update to 1.80.1. 1.80.1 - 2024-04-01 ------------------- * Require Python 3.8 when running mypy * Ensure that POSIX types follow the target architecture * Look for finish functions inside the list of constructors 1.80.0 - 2024-03-09 ------------------- * Allow using `transfer none` with GClosure * Only allow loading GIRepository-2.0 * Add marshalling tests for uninitialized and NaN arguments * Check for setuptools when building with Python >= 3.12 * Add fallback doc elements for virtual functions * Add doc elements for callback fields * Support static inline declarations in the GIR * Add annotations for sync, async, and async-finish functions in the GIR * Simplify the giscanner module build with Python >= 3.12 * Allow passing full shared library paths on Windows 1.79.1 - 2023-12-28 ------------------- * Build fixes * Require Meson ≥ 1.2 * Avoid test failures with Python ≥ 3.12 * Update the GIR schema, and validate GIR files as part of the test suite * Support (not optional) annotation * Allow ownership transfer of structure types with copy/free functions 1.79.0 - 2023-12-24 ------------------- * Require GLib >= 2.79 * Require Python >= 3.8 * Simplify libtool use with wrappers * Drop GIO dependency from libgirepository * Do not install the GLib introspection datadiff -r1.91 -r1.92 pkgsrc/devel/gobject-introspection/Makefile
(wiz)
@@ -1,61 +1,53 @@ | @@ -1,61 +1,53 @@ | |||
1 | # $NetBSD: Makefile,v 1.91 2023/11/25 05:10:27 tsutsui Exp $ | 1 | # $NetBSD: Makefile,v 1.92 2024/04/09 17:55:46 wiz Exp $ | |
2 | 2 | |||
3 | DISTNAME= gobject-introspection-1.78.1 | 3 | DISTNAME= gobject-introspection-1.80.1 | |
4 | PKGREVISION= 2 | |||
5 | CATEGORIES= devel gnome | 4 | CATEGORIES= devel gnome | |
6 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gobject-introspection/${PKGVERSION_NOREV:R}/} | 5 | MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gobject-introspection/${PKGVERSION_NOREV:R}/} | |
7 | EXTRACT_SUFX= .tar.xz | 6 | EXTRACT_SUFX= .tar.xz | |
8 | 7 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= https://gi.readthedocs.io/en/latest/ | 9 | HOMEPAGE= https://gi.readthedocs.io/en/latest/ | |
11 | COMMENT= GObject Introspection | 10 | COMMENT= GObject Introspection | |
12 | LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2 | 11 | LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2 | |
13 | 12 | |||
14 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | 13 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | |
15 | 14 | |||
15 | .include "../../lang/python/pyversion.mk" | |||
16 | ||||
17 | .if ${PYTHON_VERSION} > 311 | |||
18 | TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools | |||
19 | .endif | |||
20 | ||||
16 | USE_TOOLS+= pkg-config flex bison | 21 | USE_TOOLS+= pkg-config flex bison | |
17 | 22 | |||
18 | MESON_ARGS+= -Dpython=${PYTHONBIN} | 23 | MESON_ARGS+= -Dpython=${PYTHONBIN} | |
19 | MESON_ARGS+= -Ddoctool=disabled | 24 | MESON_ARGS+= -Ddoctool=disabled | |
20 | 25 | |||
21 | PKGCONFIG_OVERRIDE+= output/meson-private/gobject-introspection-1.0.pc | 26 | PKGCONFIG_OVERRIDE+= output/meson-private/gobject-introspection-1.0.pc | |
22 | PKGCONFIG_OVERRIDE+= output/meson-private/gobject-introspection-no-export-1.0.pc | 27 | PKGCONFIG_OVERRIDE+= output/meson-private/gobject-introspection-no-export-1.0.pc | |
23 | 28 | |||
24 | PKGCONFIG_OVERRIDE_STAGE= post-build | 29 | PKGCONFIG_OVERRIDE_STAGE= post-build | |
25 | 30 | |||
26 | SUBST_CLASSES+= timet | |||
27 | SUBST_STAGE.timet= pre-configure | |||
28 | SUBST_FILES.timet= giscanner/ast.py | |||
29 | SUBST_FILES.timet+= tests/scanner/Regress-1.0-expected.gir | |||
30 | .include "../../mk/bsd.prefs.mk" | |||
31 | .if ${MACHINE_PLATFORM:MNetBSD-*} || ${MACHINE_PLATFORM:MMirBSD-*} | |||
32 | SUBST_SED.timet= -e 's,@TIMET_TYPENAME@,TYPE_INT64,g' | |||
33 | SUBST_SED.timet+= -e 's,@TIMET_CTYPE@,gint64,g' | |||
34 | .else | |||
35 | SUBST_SED.timet= -e 's,@TIMET_TYPENAME@,TYPE_LONG,g' | |||
36 | SUBST_SED.timet+= -e 's,@TIMET_CTYPE@,glong,g' | |||
37 | .endif | |||
38 | ||||
39 | SUBST_CLASSES+= libdirs | 31 | SUBST_CLASSES+= libdirs | |
40 | SUBST_STAGE.libdirs= pre-configure | 32 | SUBST_STAGE.libdirs= pre-configure | |
41 | SUBST_FILES.libdirs= giscanner/ccompiler.py | 33 | SUBST_FILES.libdirs= giscanner/ccompiler.py | |
42 | SUBST_FILES.libdirs+= girepository/gitypelib.c | 34 | SUBST_FILES.libdirs+= girepository/gitypelib.c | |
43 | SUBST_VARS.libdirs= _OPSYS_LIB_DIRS | 35 | SUBST_VARS.libdirs= _OPSYS_LIB_DIRS | |
44 | SUBST_VARS.libdirs+= PREFIX | 36 | SUBST_VARS.libdirs+= PREFIX | |
45 | 37 | |||
46 | MAKE_ENV+= LD_LIBRARY_PATH=${WRKSRC}/output/girepository | 38 | MAKE_ENV+= LD_LIBRARY_PATH=${WRKSRC}/output/girepository | |
47 | # For Darwin | 39 | # For Darwin | |
48 | MAKE_ENV+= DYLD_LIBRARY_PATH=${WRKSRC}/output/girepository | 40 | MAKE_ENV+= DYLD_LIBRARY_PATH=${WRKSRC}/output/girepository | |
49 | 41 | |||
50 | # Disable cache to keep fake homedir clean | 42 | # Disable cache to keep fake homedir clean | |
51 | MAKE_ENV+= GI_SCANNER_DISABLE_CACHE=yes | 43 | MAKE_ENV+= GI_SCANNER_DISABLE_CACHE=yes | |
52 | 44 | |||
53 | BUILDLINK_API_DEPENDS.glib2+= glib2>=2.78.1 | 45 | BUILDLINK_API_DEPENDS.glib2+= glib2>=2.79 | |
54 | .include "../../devel/glib2/buildlink3.mk" | 46 | .include "../../devel/glib2/buildlink3.mk" | |
55 | BUILDLINK_API_DEPENDS.libffi+= libffi>=3.0.0 | 47 | BUILDLINK_API_DEPENDS.libffi+= libffi>=3.0.0 | |
56 | .include "../../devel/libffi/buildlink3.mk" | 48 | .include "../../devel/libffi/buildlink3.mk" | |
57 | .include "../../devel/meson/build.mk" | 49 | .include "../../devel/meson/build.mk" | |
58 | .include "../../lang/python/batteries-included.mk" | 50 | .include "../../lang/python/batteries-included.mk" | |
59 | .include "../../lang/python/application.mk" | 51 | .include "../../lang/python/application.mk" | |
60 | .include "../../lang/python/extension.mk" | 52 | .include "../../lang/python/extension.mk" | |
61 | .include "../../mk/bsd.pkg.mk" | 53 | .include "../../mk/bsd.pkg.mk" |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.16 2022/02/15 17:34:32 wiz Exp $ | 1 | @comment $NetBSD: PLIST,v 1.17 2024/04/09 17:55:46 wiz Exp $ | |
2 | bin/g-ir-annotation-tool | 2 | bin/g-ir-annotation-tool | |
3 | bin/g-ir-compiler | 3 | bin/g-ir-compiler | |
4 | bin/g-ir-generate | 4 | bin/g-ir-generate | |
5 | bin/g-ir-inspect | 5 | bin/g-ir-inspect | |
6 | bin/g-ir-scanner | 6 | bin/g-ir-scanner | |
7 | include/gobject-introspection-1.0/giarginfo.h | 7 | include/gobject-introspection-1.0/giarginfo.h | |
8 | include/gobject-introspection-1.0/gibaseinfo.h | 8 | include/gobject-introspection-1.0/gibaseinfo.h | |
9 | include/gobject-introspection-1.0/gicallableinfo.h | 9 | include/gobject-introspection-1.0/gicallableinfo.h | |
10 | include/gobject-introspection-1.0/giconstantinfo.h | 10 | include/gobject-introspection-1.0/giconstantinfo.h | |
11 | include/gobject-introspection-1.0/gienuminfo.h | 11 | include/gobject-introspection-1.0/gienuminfo.h | |
12 | include/gobject-introspection-1.0/gifieldinfo.h | 12 | include/gobject-introspection-1.0/gifieldinfo.h | |
13 | include/gobject-introspection-1.0/gifunctioninfo.h | 13 | include/gobject-introspection-1.0/gifunctioninfo.h | |
14 | include/gobject-introspection-1.0/giinterfaceinfo.h | 14 | include/gobject-introspection-1.0/giinterfaceinfo.h | |
@@ -20,30 +20,26 @@ include/gobject-introspection-1.0/girffi | @@ -20,30 +20,26 @@ include/gobject-introspection-1.0/girffi | |||
20 | include/gobject-introspection-1.0/gisignalinfo.h | 20 | include/gobject-introspection-1.0/gisignalinfo.h | |
21 | include/gobject-introspection-1.0/gistructinfo.h | 21 | include/gobject-introspection-1.0/gistructinfo.h | |
22 | include/gobject-introspection-1.0/gitypeinfo.h | 22 | include/gobject-introspection-1.0/gitypeinfo.h | |
23 | include/gobject-introspection-1.0/gitypelib.h | 23 | include/gobject-introspection-1.0/gitypelib.h | |
24 | include/gobject-introspection-1.0/gitypes.h | 24 | include/gobject-introspection-1.0/gitypes.h | |
25 | include/gobject-introspection-1.0/giunioninfo.h | 25 | include/gobject-introspection-1.0/giunioninfo.h | |
26 | include/gobject-introspection-1.0/giversion.h | 26 | include/gobject-introspection-1.0/giversion.h | |
27 | include/gobject-introspection-1.0/giversionmacros.h | 27 | include/gobject-introspection-1.0/giversionmacros.h | |
28 | include/gobject-introspection-1.0/givfuncinfo.h | 28 | include/gobject-introspection-1.0/givfuncinfo.h | |
29 | lib/girepository-1.0/DBus-1.0.typelib | 29 | lib/girepository-1.0/DBus-1.0.typelib | |
30 | lib/girepository-1.0/DBusGLib-1.0.typelib | 30 | lib/girepository-1.0/DBusGLib-1.0.typelib | |
31 | lib/girepository-1.0/GIRepository-2.0.typelib | 31 | lib/girepository-1.0/GIRepository-2.0.typelib | |
32 | lib/girepository-1.0/GL-1.0.typelib | 32 | lib/girepository-1.0/GL-1.0.typelib | |
33 | lib/girepository-1.0/GLib-2.0.typelib | |||
34 | lib/girepository-1.0/GModule-2.0.typelib | |||
35 | lib/girepository-1.0/GObject-2.0.typelib | |||
36 | lib/girepository-1.0/Gio-2.0.typelib | |||
37 | lib/girepository-1.0/Vulkan-1.0.typelib | 33 | lib/girepository-1.0/Vulkan-1.0.typelib | |
38 | lib/girepository-1.0/cairo-1.0.typelib | 34 | lib/girepository-1.0/cairo-1.0.typelib | |
39 | lib/girepository-1.0/fontconfig-2.0.typelib | 35 | lib/girepository-1.0/fontconfig-2.0.typelib | |
40 | lib/girepository-1.0/freetype2-2.0.typelib | 36 | lib/girepository-1.0/freetype2-2.0.typelib | |
41 | lib/girepository-1.0/libxml2-2.0.typelib | 37 | lib/girepository-1.0/libxml2-2.0.typelib | |
42 | lib/girepository-1.0/win32-1.0.typelib | 38 | lib/girepository-1.0/win32-1.0.typelib | |
43 | lib/girepository-1.0/xfixes-4.0.typelib | 39 | lib/girepository-1.0/xfixes-4.0.typelib | |
44 | lib/girepository-1.0/xft-2.0.typelib | 40 | lib/girepository-1.0/xft-2.0.typelib | |
45 | lib/girepository-1.0/xlib-2.0.typelib | 41 | lib/girepository-1.0/xlib-2.0.typelib | |
46 | lib/girepository-1.0/xrandr-1.3.typelib | 42 | lib/girepository-1.0/xrandr-1.3.typelib | |
47 | lib/gobject-introspection/giscanner/__init__.py | 43 | lib/gobject-introspection/giscanner/__init__.py | |
48 | lib/gobject-introspection/giscanner/_giscanner.so | 44 | lib/gobject-introspection/giscanner/_giscanner.so | |
49 | lib/gobject-introspection/giscanner/_version.py | 45 | lib/gobject-introspection/giscanner/_version.py | |
@@ -141,30 +137,26 @@ lib/libgirepository-1.0.so | @@ -141,30 +137,26 @@ lib/libgirepository-1.0.so | |||
141 | lib/libgirepository-1.0.so.1 | 137 | lib/libgirepository-1.0.so.1 | |
142 | lib/libgirepository-1.0.so.1.0.0 | 138 | lib/libgirepository-1.0.so.1.0.0 | |
143 | lib/pkgconfig/gobject-introspection-1.0.pc | 139 | lib/pkgconfig/gobject-introspection-1.0.pc | |
144 | lib/pkgconfig/gobject-introspection-no-export-1.0.pc | 140 | lib/pkgconfig/gobject-introspection-no-export-1.0.pc | |
145 | man/man1/g-ir-compiler.1 | 141 | man/man1/g-ir-compiler.1 | |
146 | man/man1/g-ir-doc-tool.1 | 142 | man/man1/g-ir-doc-tool.1 | |
147 | man/man1/g-ir-generate.1 | 143 | man/man1/g-ir-generate.1 | |
148 | man/man1/g-ir-scanner.1 | 144 | man/man1/g-ir-scanner.1 | |
149 | share/aclocal/introspection.m4 | 145 | share/aclocal/introspection.m4 | |
150 | share/gir-1.0/DBus-1.0.gir | 146 | share/gir-1.0/DBus-1.0.gir | |
151 | share/gir-1.0/DBusGLib-1.0.gir | 147 | share/gir-1.0/DBusGLib-1.0.gir | |
152 | share/gir-1.0/GIRepository-2.0.gir | 148 | share/gir-1.0/GIRepository-2.0.gir | |
153 | share/gir-1.0/GL-1.0.gir | 149 | share/gir-1.0/GL-1.0.gir | |
154 | share/gir-1.0/GLib-2.0.gir | |||
155 | share/gir-1.0/GModule-2.0.gir | |||
156 | share/gir-1.0/GObject-2.0.gir | |||
157 | share/gir-1.0/Gio-2.0.gir | |||
158 | share/gir-1.0/Vulkan-1.0.gir | 150 | share/gir-1.0/Vulkan-1.0.gir | |
159 | share/gir-1.0/cairo-1.0.gir | 151 | share/gir-1.0/cairo-1.0.gir | |
160 | share/gir-1.0/fontconfig-2.0.gir | 152 | share/gir-1.0/fontconfig-2.0.gir | |
161 | share/gir-1.0/freetype2-2.0.gir | 153 | share/gir-1.0/freetype2-2.0.gir | |
162 | share/gir-1.0/gir-1.2.rnc | 154 | share/gir-1.0/gir-1.2.rnc | |
163 | share/gir-1.0/libxml2-2.0.gir | 155 | share/gir-1.0/libxml2-2.0.gir | |
164 | share/gir-1.0/win32-1.0.gir | 156 | share/gir-1.0/win32-1.0.gir | |
165 | share/gir-1.0/xfixes-4.0.gir | 157 | share/gir-1.0/xfixes-4.0.gir | |
166 | share/gir-1.0/xft-2.0.gir | 158 | share/gir-1.0/xft-2.0.gir | |
167 | share/gir-1.0/xlib-2.0.gir | 159 | share/gir-1.0/xlib-2.0.gir | |
168 | share/gir-1.0/xrandr-1.3.gir | 160 | share/gir-1.0/xrandr-1.3.gir | |
169 | share/gobject-introspection-1.0/Makefile.introspection | 161 | share/gobject-introspection-1.0/Makefile.introspection | |
170 | share/gobject-introspection-1.0/gdump.c | 162 | share/gobject-introspection-1.0/gdump.c |
@@ -1,12 +1,11 @@ | @@ -1,12 +1,11 @@ | |||
1 | $NetBSD: distinfo,v 1.53 2023/11/07 12:46:58 prlw1 Exp $ | 1 | $NetBSD: distinfo,v 1.54 2024/04/09 17:55:46 wiz Exp $ | |
2 | 2 | |||
3 | BLAKE2s (gobject-introspection-1.78.1.tar.xz) = 7bbce871f9140f0096957a6cd938d39c7807e70da56c4dea7506d500431cddfa | 3 | BLAKE2s (gobject-introspection-1.80.1.tar.xz) = 7c2c1b4225ea68afbe91b6718b1f1c6d4f102cf1a3b8bdf27599b199ef1480b6 | |
4 | SHA512 (gobject-introspection-1.78.1.tar.xz) = a3081882995a762645b04faa71082dbd523bee845519007e48b13235aad8a4cd4c74f0d042a6c17710125f945bd970e4b76e95a559274e294d595e04725a4e97 | 4 | SHA512 (gobject-introspection-1.80.1.tar.xz) = f45c2c1b105086488d974c6134db9910746df8edb187772f2ecd249656a1047c8ac88ba51f5bf7393c3d99c3ace143ecd09be256c2f4d0ceee110c9ad51a839a | |
5 | Size (gobject-introspection-1.78.1.tar.xz) = 1060296 bytes | 5 | Size (gobject-introspection-1.80.1.tar.xz) = 1040228 bytes | |
6 | SHA1 (patch-girepository_gitypelib.c) = b5fa0fe0fc22a5dfb2b2916dfbb87e16fc732640 | 6 | SHA1 (patch-girepository_gitypelib.c) = b5fa0fe0fc22a5dfb2b2916dfbb87e16fc732640 | |
7 | SHA1 (patch-giscanner_ast.py) = bf9f7f6f5c548ca170d177f4d724481e0b6d1e29 | 7 | SHA1 (patch-giscanner_ast.py) = 24d31e9675af3779a9399a1611cf6bc985285360 | |
8 | SHA1 (patch-giscanner_ccompiler.py) = c730488e66caf0bb2f258df04be66d72ca714ab4 | 8 | SHA1 (patch-giscanner_ccompiler.py) = c63c3a823661de880038aa2303d3961d66802341 | |
9 | SHA1 (patch-tests_scanner_Regress-1.0-expected.gir) = f6f044a24045d38d78b9c511813be8442ce45b16 | |||
10 | SHA1 (patch-tools_compiler.c) = 799d5a086338e08378b8b249e6808e8b1a8101dc | 9 | SHA1 (patch-tools_compiler.c) = 799d5a086338e08378b8b249e6808e8b1a8101dc | |
11 | SHA1 (patch-tools_generate.c) = 3fa74dd0e2c7658768a4278b984be38bff729d94 | 10 | SHA1 (patch-tools_generate.c) = 3fa74dd0e2c7658768a4278b984be38bff729d94 | |
12 | SHA1 (patch-tools_meson.build) = 01c9aaaaacf1d0855704f55eb568b77bc207cc14 | 11 | SHA1 (patch-tools_meson.build) = 01c9aaaaacf1d0855704f55eb568b77bc207cc14 |
@@ -1,32 +1,23 @@ | @@ -1,32 +1,23 @@ | |||
1 | $NetBSD: patch-giscanner_ast.py,v 1.2 2022/11/23 10:56:40 adam Exp $ | 1 | $NetBSD: patch-giscanner_ast.py,v 1.3 2024/04/09 17:55:46 wiz Exp $ | |
2 | 2 | |||
3 | - add double underscore versions | 3 | - add double underscore versions | |
4 | - 32/64-bit time_t fix | |||
5 | 4 | |||
6 | --- giscanner/ast.py.orig 2022-09-17 18:52:38.000000000 +0000 | 5 | --- giscanner/ast.py.orig 2022-09-17 18:52:38.000000000 +0000 | |
7 | +++ giscanner/ast.py | 6 | +++ giscanner/ast.py | |
8 | @@ -307,6 +307,15 @@ type_names['uint32_t'] = TYPE_UINT32 | 7 | @@ -307,6 +307,16 @@ type_names['uint32_t'] = TYPE_UINT32 | |
9 | type_names['int64_t'] = TYPE_INT64 | 8 | type_names['int64_t'] = TYPE_INT64 | |
10 | type_names['uint64_t'] = TYPE_UINT64 | 9 | type_names['uint64_t'] = TYPE_UINT64 | |
11 | 10 | |||
12 | +type_names['__int8_t'] = TYPE_INT8 | 11 | +type_names['__int8_t'] = TYPE_INT8 | |
13 | +type_names['__uint8_t'] = TYPE_UINT8 | 12 | +type_names['__uint8_t'] = TYPE_UINT8 | |
14 | +type_names['__int16_t'] = TYPE_INT16 | 13 | +type_names['__int16_t'] = TYPE_INT16 | |
15 | +type_names['__uint16_t'] = TYPE_UINT16 | 14 | +type_names['__uint16_t'] = TYPE_UINT16 | |
16 | +type_names['__int32_t'] = TYPE_INT32 | 15 | +type_names['__int32_t'] = TYPE_INT32 | |
17 | +type_names['__uint32_t'] = TYPE_UINT32 | 16 | +type_names['__uint32_t'] = TYPE_UINT32 | |
18 | +type_names['__int64_t'] = TYPE_INT64 | 17 | +type_names['__int64_t'] = TYPE_INT64 | |
19 | +type_names['__uint64_t'] = TYPE_UINT64 | 18 | +type_names['__uint64_t'] = TYPE_UINT64 | |
19 | +type_names['__off_t'] = TYPE_OFF_T | |||
20 | + | 20 | + | |
21 | # A few additional GLib type aliases | 21 | # A few additional GLib type aliases | |
22 | type_names['guchar'] = TYPE_UINT8 | 22 | type_names['guchar'] = TYPE_UINT8 | |
23 | type_names['gchararray'] = TYPE_STRING | 23 | type_names['gchararray'] = TYPE_STRING | |
24 | @@ -346,7 +355,7 @@ type_names['size_t'] = type_names['gsize | |||
25 | type_names['ssize_t'] = type_names['gssize'] | |||
26 | type_names['uintptr_t'] = type_names['guintptr'] | |||
27 | type_names['intptr_t'] = type_names['gintptr'] | |||
28 | -type_names['time_t'] = TYPE_LONG | |||
29 | +type_names['time_t'] = @TIMET_TYPENAME@ | |||
30 | type_names['off_t'] = type_names['gsize'] | |||
31 | type_names['pid_t'] = TYPE_INT | |||
32 | type_names['uid_t'] = TYPE_UINT |
@@ -1,26 +1,26 @@ | @@ -1,26 +1,26 @@ | |||
1 | $NetBSD: patch-giscanner_ccompiler.py,v 1.5 2022/11/16 16:08:34 jperkin Exp $ | 1 | $NetBSD: patch-giscanner_ccompiler.py,v 1.6 2024/04/09 17:55:46 wiz Exp $ | |
2 | 2 | |||
3 | Exclude system paths from LD_LIBRARY_PATH. | 3 | Exclude system paths from LD_LIBRARY_PATH. | |
4 | Do not use -Wl,--no-as-needed on SunOS. | 4 | Do not use -Wl,--no-as-needed on SunOS. | |
5 | 5 | |||
6 | --- giscanner/ccompiler.py.orig 2021-09-17 16:02:42.520052200 +0000 | 6 | --- giscanner/ccompiler.py.orig 2024-04-01 13:21:25.000000000 +0000 | |
7 | +++ giscanner/ccompiler.py | 7 | +++ giscanner/ccompiler.py | |
8 | @@ -197,7 +197,7 @@ class CCompiler(object): | 8 | @@ -232,7 +232,7 @@ class CCompiler(object): | |
9 | 9 | |||
10 | # Ensure libraries are always linked as we are going to use ldd to work | 10 | # Ensure libraries are always linked as we are going to use ldd to work | |
11 | # out their names later | 11 | # out their names later | |
12 | - if sys.platform != 'darwin': | 12 | - if sys.platform != 'darwin': | |
13 | + if sys.platform != 'darwin' and sys.platform != 'sunos5': | 13 | + if sys.platform != 'darwin' and sys.platform != 'sunos5': | |
14 | args.append('-Wl,--no-as-needed') | 14 | args.append('-Wl,--no-as-needed') | |
15 | 15 | |||
16 | for library_path in libpaths: | 16 | for library_path in libpaths: | |
17 | @@ -215,7 +215,8 @@ class CCompiler(object): | 17 | @@ -250,7 +250,8 @@ class CCompiler(object): | |
18 | else: | 18 | else: | |
19 | args.append('-Wl,-rpath,' + library_path) | 19 | args.append('-Wl,-rpath,' + library_path) | |
20 | 20 | |||
21 | - runtime_paths.append(library_path) | 21 | - runtime_paths.append(library_path) | |
22 | + if library_path not in '@_OPSYS_LIB_DIRS@'.split(' '): | 22 | + if library_path not in '@_OPSYS_LIB_DIRS@'.split(' '): | |
23 | + runtime_paths.append(library_path) | 23 | + runtime_paths.append(library_path) | |
24 | 24 | |||
25 | for library in libraries + extra_libraries: | 25 | for library in libraries + extra_libraries: | |
26 | if self.check_is_msvc(): | 26 | if os.path.isfile(library): |