pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/databases
Module Name: pkgsrc
Committed By: tnn
Date: Sun Jun 16 15:28:28 UTC 2024
Modified Files:
pkgsrc/databases/mongodb: Makefile distinfo
pkgsrc/databases/mongodb4: Makefile distinfo
Added Files:
pkgsrc/databases/mongodb/patches:
patch-src_third__party_mozjs_platform_aarch64_netbsd_build_js-confdefs.h
patch-src_third__party_mozjs_platform_aarch64_netbsd_include_js-confdefs.h
pkgsrc/databases/mongodb4/patches:
patch-src_third__party_mozjs-60_platform_aarch64_netbsd_build_js-confdefs.h
Log Message:
mongodb{,4}: fix build on NetBSD/aarch64
To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 pkgsrc/databases/mongodb/Makefile
cvs rdiff -u -r1.39 -r1.40 pkgsrc/databases/mongodb/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/databases/mongodb/patches/patch-src_third__party_mozjs_platform_aarch64_netbsd_build_js-confdefs.h \
pkgsrc/databases/mongodb/patches/patch-src_third__party_mozjs_platform_aarch64_netbsd_include_js-confdefs.h
cvs rdiff -u -r1.13 -r1.14 pkgsrc/databases/mongodb4/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/databases/mongodb4/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/databases/mongodb4/patches/patch-src_third__party_mozjs-60_platform_aarch64_netbsd_build_js-confdefs.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/databases/mongodb/Makefile
diff -u pkgsrc/databases/mongodb/Makefile:1.91 pkgsrc/databases/mongodb/Makefile:1.92
--- pkgsrc/databases/mongodb/Makefile:1.91 Fri Jun 7 13:05:52 2024
+++ pkgsrc/databases/mongodb/Makefile Sun Jun 16 15:28:27 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.91 2024/06/07 13:05:52 gdt Exp $
+# $NetBSD: Makefile,v 1.92 2024/06/16 15:28:27 tnn Exp $
DISTNAME= mongodb-src-r6.0.13
PKGNAME= ${DISTNAME:S/src-r//}
@@ -57,6 +57,10 @@ PYTHON_VERSIONS_INCOMPATIBLE= 27 312
.include "../../mk/bsd.prefs.mk"
+.if ${MACHINE_ARCH} == "aarch64"
+CXXFLAGS+= --param=destructive-interference-size=64
+.endif
+
INCL_PATH+= ${BUILDLINK_PREFIX.mongo-c-driver}/include/libbson-1.0
INCL_PATH+= ${BUILDLINK_PREFIX.mongo-c-driver}/include/libmongoc-1.0
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib -L${PREFIX}/lib
@@ -159,6 +163,8 @@ post-extract:
${WRKSRC}/src/third_party/wiredtiger/build_netbsd
${CP} -R ${WRKSRC}/src/third_party/wiredtiger/build_freebsd \
${WRKSRC}/src/third_party/wiredtiger/build_dragonfly
+ ${CP} -R ${WRKSRC}/src/third_party/mozjs/platform/aarch64/linux \
+ ${WRKSRC}/src/third_party/mozjs/platform/aarch64/netbsd
# let REPLACE_INTERPRETER kick in
do-configure:
Index: pkgsrc/databases/mongodb/distinfo
diff -u pkgsrc/databases/mongodb/distinfo:1.39 pkgsrc/databases/mongodb/distinfo:1.40
--- pkgsrc/databases/mongodb/distinfo:1.39 Sat Jan 27 08:33:28 2024
+++ pkgsrc/databases/mongodb/distinfo Sun Jun 16 15:28:27 2024
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.39 2024/01/27 08:33:28 adam Exp $
+$NetBSD: distinfo,v 1.40 2024/06/16 15:28:27 tnn Exp $
BLAKE2s (mongodb-src-r6.0.13.tar.gz) = 84316d44874c482709a6352c3ee7c9752a498bf835b6d6038fc6925543358980
SHA512 (mongodb-src-r6.0.13.tar.gz) = 8117e8bc4e2b298c36c83a6376b7e23a31606300fa34ca28f4c1624e3dbffe4a1bf7d869c4939e91690250c5bac361d899a2189d74e7afd5cf90ded94170ad33
@@ -25,6 +25,8 @@ SHA1 (patch-src_third__party_IntelRDFPMa
SHA1 (patch-src_third__party_IntelRDFPMathLib20U1_LIBRARY_src_bid__functions.h) = aed897879501d74b19dd06a142ded0abf910898d
SHA1 (patch-src_third__party_asio-master_asio_include_asio_detail_impl_kqueue__reactor.ipp) = 49a74ef12f20c4b243d328a2cd8317aa1a668b18
SHA1 (patch-src_third__party_mozjs_SConscript) = b0e7318f735b3fce46745ab4221bc5690089b94e
+SHA1 (patch-src_third__party_mozjs_platform_aarch64_netbsd_build_js-confdefs.h) = 1226e7ed53dbcfefd66f026040f339582514b88b
+SHA1 (patch-src_third__party_mozjs_platform_aarch64_netbsd_include_js-confdefs.h) = b9ad65f1a9bac284f301faaacebe2780a002983b
SHA1 (patch-src_third__party_mozjs_platform_x86__64_netbsd_build_js-confdefs.h) = 4c08643abe225e326d7ed52572b7293b1f5fe981
SHA1 (patch-src_third__party_s2_base_port.h) = 892ce91b5aaa432f34e1e7c169b7fd6eea2a3e94
SHA1 (patch-src_third__party_wiredtiger_SConscript) = e97dea310463f246c0a8007a1ba9c5385105036d
Index: pkgsrc/databases/mongodb4/Makefile
diff -u pkgsrc/databases/mongodb4/Makefile:1.13 pkgsrc/databases/mongodb4/Makefile:1.14
--- pkgsrc/databases/mongodb4/Makefile:1.13 Fri Jun 7 17:39:01 2024
+++ pkgsrc/databases/mongodb4/Makefile Sun Jun 16 15:28:27 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2024/06/07 17:39:01 abs Exp $
+# $NetBSD: Makefile,v 1.14 2024/06/16 15:28:27 tnn Exp $
DISTNAME= mongodb-4.4.29
CATEGORIES= databases
@@ -57,6 +57,10 @@ PYTHON_VERSIONS_INCOMPATIBLE= 27 312
.include "../../mk/bsd.prefs.mk"
+.if ${MACHINE_ARCH} == "aarch64"
+CXXFLAGS+= --param=destructive-interference-size=64
+.endif
+
INCL_PATH+= ${BUILDLINK_PREFIX.mongo-c-driver}/include/libbson-1.0
INCL_PATH+= ${BUILDLINK_PREFIX.mongo-c-driver}/include/libmongoc-1.0
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib -L${PREFIX}/lib
@@ -158,6 +162,8 @@ post-extract:
${WRKSRC}/src/third_party/wiredtiger/build_netbsd
${CP} -R ${WRKSRC}/src/third_party/wiredtiger/build_freebsd \
${WRKSRC}/src/third_party/wiredtiger/build_dragonfly
+ ${CP} -R ${WRKSRC}/src/third_party/mozjs-60/platform/aarch64/linux \
+ ${WRKSRC}/src/third_party/mozjs-60/platform/aarch64/netbsd
# let REPLACE_INTERPRETER kick in
do-configure:
Index: pkgsrc/databases/mongodb4/distinfo
diff -u pkgsrc/databases/mongodb4/distinfo:1.5 pkgsrc/databases/mongodb4/distinfo:1.6
--- pkgsrc/databases/mongodb4/distinfo:1.5 Fri Jun 7 17:39:01 2024
+++ pkgsrc/databases/mongodb4/distinfo Sun Jun 16 15:28:27 2024
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2024/06/07 17:39:01 abs Exp $
+$NetBSD: distinfo,v 1.6 2024/06/16 15:28:27 tnn Exp $
BLAKE2s (mongodb-4.4.29.tar.gz) = 53d8f9da9a74edd82a01f4a5dc1fa0a1f08dd79f4a1781e3b2c3d6dd8f3209fb
SHA512 (mongodb-4.4.29.tar.gz) = 3c32a918c8b5587b04ee9263788c250a9bbd64f34ed2c19939e78607456215697966e596c2cfd160604b629188e4bdf3fff071db268bb3c25de3077a7c2ef335
@@ -22,6 +22,7 @@ SHA1 (patch-src_third__party_IntelRDFPMa
SHA1 (patch-src_third__party_IntelRDFPMathLib20U1_LIBRARY_src_bid__functions.h) = 0f00e7e1b710b3d19a936d5832ab08279bff48ee
SHA1 (patch-src_third__party_asio-master_asio_include_asio_detail_impl_kqueue__reactor.ipp) = 49a74ef12f20c4b243d328a2cd8317aa1a668b18
SHA1 (patch-src_third__party_boost-1.70.0_boost_asio_detail_impl_kqueue__reactor.ipp) = 0808636a4e01f9eda921b79360ca51c04bc43230
+SHA1 (patch-src_third__party_mozjs-60_platform_aarch64_netbsd_build_js-confdefs.h) = bd4c0a282f898a20f331ce1fcf1451cc92d5677c
SHA1 (patch-src_third__party_mozjs-60_platform_x86__64_netbsd_build_js-confdefs.h) = 2474fc221f0c59381c8529e986db1f3f67c405ec
SHA1 (patch-src_third__party_s2_base_port.h) = 892ce91b5aaa432f34e1e7c169b7fd6eea2a3e94
SHA1 (patch-src_third__party_wiredtiger_SConscript) = e97dea310463f246c0a8007a1ba9c5385105036d
Added files:
Index: pkgsrc/databases/mongodb/patches/patch-src_third__party_mozjs_platform_aarch64_netbsd_build_js-confdefs.h
diff -u /dev/null pkgsrc/databases/mongodb/patches/patch-src_third__party_mozjs_platform_aarch64_netbsd_build_js-confdefs.h:1.1
--- /dev/null Sun Jun 16 15:28:28 2024
+++ pkgsrc/databases/mongodb/patches/patch-src_third__party_mozjs_platform_aarch64_netbsd_build_js-confdefs.h Sun Jun 16 15:28:27 2024
@@ -0,0 +1,81 @@
+$NetBSD: patch-src_third__party_mozjs_platform_aarch64_netbsd_build_js-confdefs.h,v 1.1 2024/06/16 15:28:27 tnn Exp $
+
+This patch is generated with gen-config.sh and is a diff relative
+to aarch64/linux.
+
+--- src/third_party/mozjs/platform/aarch64/netbsd/build/js-confdefs.h.orig 2024-06-16 13:53:59.311717150 +0000
++++ src/third_party/mozjs/platform/aarch64/netbsd/build/js-confdefs.h
+@@ -11,27 +11,18 @@
+ #define ENABLE_SHARED_MEMORY 1
+ #define ENABLE_WASM_SIMD 1
+ #define HAVE_64BIT_BUILD 1
+-#define HAVE_ALLOCA_H 1
+-#define HAVE_BYTESWAP_H 1
+ #define HAVE_CLOCK_MONOTONIC 1
+ #define HAVE_DIRENT_H 1
+ #define HAVE_DLOPEN 1
+-#define HAVE_FTS_H 1
+ #define HAVE_GETC_UNLOCKED 1
+ #define HAVE_GETOPT_H 1
+ #define HAVE_GMTIME_R 1
+ #define HAVE_INTTYPES_H 1
+ #define HAVE_LANGINFO_CODESET 1
+ #define HAVE_LIBM 1
+-#define HAVE_LINUX_IF_ADDR_H 1
+-#define HAVE_LINUX_PERF_EVENT_H 1
+-#define HAVE_LINUX_QUOTA_H 1
+-#define HAVE_LINUX_RTNETLINK_H 1
+ #define HAVE_LOCALECONV 1
+ #define HAVE_LOCALTIME_R 1
+ #define HAVE_MALLOC_H 1
+-#define HAVE_MALLOC_USABLE_SIZE 1
+-#define HAVE_MEMALIGN 1
+ #define HAVE_MEMFD_CREATE 1
+ #define HAVE_NETINET_IN_H 1
+ #define HAVE_NL_TYPES_H 1
+@@ -39,17 +30,13 @@
+ #define HAVE_POSIX_FALLOCATE 1
+ #define HAVE_POSIX_MEMALIGN 1
+ #define HAVE_PTHREAD_GETNAME_NP 1
+-#define HAVE_RES_NINIT 1
+ #define HAVE_SSIZE_T 1
+ #define HAVE_STDINT_H 1
+ #define HAVE_STRNDUP 1
+ #define HAVE_SYS_MOUNT_H 1
+ #define HAVE_SYS_QUEUE_H 1
+-#define HAVE_SYS_QUOTA_H 1
+-#define HAVE_SYS_STATFS_H 1
+ #define HAVE_SYS_STATVFS_H 1
+ #define HAVE_SYS_TYPES_H 1
+-#define HAVE_SYS_VFS_H 1
+ #define HAVE_THREAD_TLS_KEYWORD 1
+ #define HAVE_TM_ZONE_TM_GMTOFF 1
+ #define HAVE_UNISTD_H 1
+@@ -65,12 +52,12 @@
+ #define JS_STANDALONE 1
+ #define JS_WITHOUT_NSPR 1
+ #define MALLOC_H <malloc.h>
+-#define MALLOC_USABLE_SIZE_CONST_PTR
++#define MALLOC_USABLE_SIZE_CONST_PTR const
+ #define MOZILLA_UAVERSION "91.0"
+-#define MOZILLA_VERSION "91.3.0"
+-#define MOZILLA_VERSION_U 91.3.0
++#define MOZILLA_VERSION "91.4.0"
++#define MOZILLA_VERSION_U 91.4.0
+ #define MOZJS_MAJOR_VERSION 91
+-#define MOZJS_MINOR_VERSION 3
++#define MOZJS_MINOR_VERSION 4
+ #define MOZ_AARCH64_JSCVT 0
+ #define MOZ_BUILD_APP js
+ #define MOZ_DLL_PREFIX "lib"
+@@ -82,8 +69,8 @@
+ #define STDC_HEADERS 1
+ #define U_STATIC_IMPLEMENTATION 1
+ #define VA_COPY va_copy
+-#define XP_LINUX 1
++#define XP_NETBSD 1
+ #define XP_UNIX 1
+-#define _REENTRANT 1
++#define X_DISPLAY_MISSING 1
+
+ #endif /* js_confdefs_h */
Index: pkgsrc/databases/mongodb/patches/patch-src_third__party_mozjs_platform_aarch64_netbsd_include_js-confdefs.h
diff -u /dev/null pkgsrc/databases/mongodb/patches/patch-src_third__party_mozjs_platform_aarch64_netbsd_include_js-confdefs.h:1.1
--- /dev/null Sun Jun 16 15:28:28 2024
+++ pkgsrc/databases/mongodb/patches/patch-src_third__party_mozjs_platform_aarch64_netbsd_include_js-confdefs.h Sun Jun 16 15:28:27 2024
@@ -0,0 +1,81 @@
+$NetBSD: patch-src_third__party_mozjs_platform_aarch64_netbsd_include_js-confdefs.h,v 1.1 2024/06/16 15:28:27 tnn Exp $
+
+This patch is generated with gen-config.sh and is a diff relative
+to aarch64/linux.
+
+--- src/third_party/mozjs/platform/aarch64/netbsd/include/js-confdefs.h.orig 2024-06-16 11:48:28.986480970 +0000
++++ src/third_party/mozjs/platform/aarch64/netbsd/include/js-confdefs.h
+@@ -11,27 +11,18 @@
+ #define ENABLE_SHARED_MEMORY 1
+ #define ENABLE_WASM_SIMD 1
+ #define HAVE_64BIT_BUILD 1
+-#define HAVE_ALLOCA_H 1
+-#define HAVE_BYTESWAP_H 1
+ #define HAVE_CLOCK_MONOTONIC 1
+ #define HAVE_DIRENT_H 1
+ #define HAVE_DLOPEN 1
+-#define HAVE_FTS_H 1
+ #define HAVE_GETC_UNLOCKED 1
+ #define HAVE_GETOPT_H 1
+ #define HAVE_GMTIME_R 1
+ #define HAVE_INTTYPES_H 1
+ #define HAVE_LANGINFO_CODESET 1
+ #define HAVE_LIBM 1
+-#define HAVE_LINUX_IF_ADDR_H 1
+-#define HAVE_LINUX_PERF_EVENT_H 1
+-#define HAVE_LINUX_QUOTA_H 1
+-#define HAVE_LINUX_RTNETLINK_H 1
+ #define HAVE_LOCALECONV 1
+ #define HAVE_LOCALTIME_R 1
+ #define HAVE_MALLOC_H 1
+-#define HAVE_MALLOC_USABLE_SIZE 1
+-#define HAVE_MEMALIGN 1
+ #define HAVE_MEMFD_CREATE 1
+ #define HAVE_NETINET_IN_H 1
+ #define HAVE_NL_TYPES_H 1
+@@ -39,17 +30,13 @@
+ #define HAVE_POSIX_FALLOCATE 1
+ #define HAVE_POSIX_MEMALIGN 1
+ #define HAVE_PTHREAD_GETNAME_NP 1
+-#define HAVE_RES_NINIT 1
+ #define HAVE_SSIZE_T 1
+ #define HAVE_STDINT_H 1
+ #define HAVE_STRNDUP 1
+ #define HAVE_SYS_MOUNT_H 1
+ #define HAVE_SYS_QUEUE_H 1
+-#define HAVE_SYS_QUOTA_H 1
+-#define HAVE_SYS_STATFS_H 1
+ #define HAVE_SYS_STATVFS_H 1
+ #define HAVE_SYS_TYPES_H 1
+-#define HAVE_SYS_VFS_H 1
+ #define HAVE_THREAD_TLS_KEYWORD 1
+ #define HAVE_TM_ZONE_TM_GMTOFF 1
+ #define HAVE_UNISTD_H 1
+@@ -65,12 +52,12 @@
+ #define JS_STANDALONE 1
+ #define JS_WITHOUT_NSPR 1
+ #define MALLOC_H <malloc.h>
+-#define MALLOC_USABLE_SIZE_CONST_PTR
++#define MALLOC_USABLE_SIZE_CONST_PTR const
+ #define MOZILLA_UAVERSION "91.0"
+-#define MOZILLA_VERSION "91.3.0"
+-#define MOZILLA_VERSION_U 91.3.0
++#define MOZILLA_VERSION "91.4.0"
++#define MOZILLA_VERSION_U 91.4.0
+ #define MOZJS_MAJOR_VERSION 91
+-#define MOZJS_MINOR_VERSION 3
++#define MOZJS_MINOR_VERSION 4
+ #define MOZ_AARCH64_JSCVT 0
+ #define MOZ_BUILD_APP js
+ #define MOZ_DLL_PREFIX "lib"
+@@ -82,8 +69,8 @@
+ #define STDC_HEADERS 1
+ #define U_STATIC_IMPLEMENTATION 1
+ #define VA_COPY va_copy
+-#define XP_LINUX 1
++#define XP_NETBSD 1
+ #define XP_UNIX 1
+-#define _REENTRANT 1
++#define X_DISPLAY_MISSING 1
+
+ #endif /* js_confdefs_h */
Index: pkgsrc/databases/mongodb4/patches/patch-src_third__party_mozjs-60_platform_aarch64_netbsd_build_js-confdefs.h
diff -u /dev/null pkgsrc/databases/mongodb4/patches/patch-src_third__party_mozjs-60_platform_aarch64_netbsd_build_js-confdefs.h:1.1
--- /dev/null Sun Jun 16 15:28:28 2024
+++ pkgsrc/databases/mongodb4/patches/patch-src_third__party_mozjs-60_platform_aarch64_netbsd_build_js-confdefs.h Sun Jun 16 15:28:27 2024
@@ -0,0 +1,77 @@
+$NetBSD: patch-src_third__party_mozjs-60_platform_aarch64_netbsd_build_js-confdefs.h,v 1.1 2024/06/16 15:28:27 tnn Exp $
+
+This patch is generated with gen-config.sh and is a diff relative
+to aarch64/linux.
+
+--- src/third_party/mozjs-60/platform/aarch64/netbsd/build/js-confdefs.h.orig 2024-06-16 10:57:54.462683348 +0000
++++ src/third_party/mozjs-60/platform/aarch64/netbsd/build/js-confdefs.h
+@@ -11,8 +11,6 @@
+ #define CROSS_COMPILE
+ #define EDITLINE 1
+ #define HAVE_64BIT_BUILD 1
+-#define HAVE_ALLOCA_H 1
+-#define HAVE_BYTESWAP_H 1
+ #define HAVE_CLOCK_MONOTONIC 1
+ #define HAVE_CPP_DYNAMIC_CAST_TO_VOID_PTR 1
+ #define HAVE_DIRENT_H 1
+@@ -23,33 +21,23 @@
+ #define HAVE_INTTYPES_H 1
+ #define HAVE_LANGINFO_CODESET 1
+ #define HAVE_LIBM 1
+-#define HAVE_LINUX_IF_ADDR_H 1
+-#define HAVE_LINUX_PERF_EVENT_H 1
+-#define HAVE_LINUX_QUOTA_H 1
+-#define HAVE_LINUX_RTNETLINK_H 1
+ #define HAVE_LOCALECONV 1
+ #define HAVE_LOCALTIME_R 1
+ #define HAVE_MALLOC_H 1
+-#define HAVE_MALLOC_USABLE_SIZE 1
+-#define HAVE_MEMALIGN 1
+ #define HAVE_NETINET_IN_H 1
+ #define HAVE_NL_TYPES_H 1
+ #define HAVE_POSIX_FADVISE 1
+ #define HAVE_POSIX_FALLOCATE 1
+ #define HAVE_POSIX_MEMALIGN 1
+ #define HAVE_PTHREAD_GETNAME_NP 1
+-#define HAVE_RES_NINIT 1
+ #define HAVE_SINCOS 1
+ #define HAVE_SSIZE_T 1
+ #define HAVE_STDINT_H 1
+ #define HAVE_STRNDUP 1
+ #define HAVE_SYS_MOUNT_H 1
+ #define HAVE_SYS_QUEUE_H 1
+-#define HAVE_SYS_QUOTA_H 1
+-#define HAVE_SYS_STATFS_H 1
+ #define HAVE_SYS_STATVFS_H 1
+ #define HAVE_SYS_TYPES_H 1
+-#define HAVE_SYS_VFS_H 1
+ #define HAVE_THREAD_TLS_KEYWORD 1
+ #define HAVE_TM_ZONE_TM_GMTOFF 1
+ #define HAVE_UNISTD_H 1
+@@ -65,7 +53,7 @@
+ #define JS_PUNBOX64 1
+ #define JS_STANDALONE 1
+ #define MALLOC_H <malloc.h>
+-#define MALLOC_USABLE_SIZE_CONST_PTR
++#define MALLOC_USABLE_SIZE_CONST_PTR const
+ #define MOZILLA_UAVERSION "60.0"
+ #define MOZILLA_VERSION "60.3.0"
+ #define MOZILLA_VERSION_U 60.3.0
+@@ -73,16 +61,13 @@
+ #define MOZJS_MINOR_VERSION 3
+ #define MOZ_BUILD_APP js
+ #define MOZ_DLL_SUFFIX ".so"
+-#define MOZ_GLUE_IN_PROGRAM 1
+-#define MOZ_MEMORY 1
+ #define MOZ_UPDATE_CHANNEL default
+ #define NO_NSPR_10_SUPPORT 1
+ #define RELEASE_OR_BETA 1
+ #define STDC_HEADERS 1
+ #define VA_COPY va_copy
+-#define XP_LINUX 1
+ #define XP_UNIX 1
+-#define _REENTRANT 1
++#define X_DISPLAY_MISSING 1
+
+ #include "js/RequiredDefines.h"
+
Home |
Main Index |
Thread Index |
Old Index