head 1.14; access; symbols pkgsrc-2026Q2:1.11.0.4 pkgsrc-2026Q2-base:1.11 pkgsrc-2026Q1:1.11.0.2 pkgsrc-2026Q1-base:1.11 pkgsrc-2025Q4:1.9.0.2 pkgsrc-2025Q4-base:1.9 pkgsrc-2025Q3:1.8.0.2 pkgsrc-2025Q3-base:1.8 pkgsrc-2025Q2:1.7.0.2 pkgsrc-2025Q2-base:1.7 pkgsrc-2025Q1:1.6.0.6 pkgsrc-2025Q1-base:1.6 pkgsrc-2024Q4:1.6.0.4 pkgsrc-2024Q4-base:1.6 pkgsrc-2024Q3:1.6.0.2 pkgsrc-2024Q3-base:1.6 pkgsrc-2024Q2:1.5.0.2 pkgsrc-2024Q2-base:1.5 pkgsrc-2024Q1:1.4.0.2 pkgsrc-2024Q1-base:1.4 pkgsrc-2023Q4:1.1.0.2 pkgsrc-2023Q4-base:1.1; locks; strict; comment @# @; 1.14 date 2026.09.02.19.04.38; author wiz; state Exp; branches; next 1.13; commitid vXszxoxOqka005UG; 1.13 date 2026.08.26.11.00.31; author bouyer; state Exp; branches; next 1.12; commitid ea0VzEPXHQgIw8TG; 1.12 date 2026.06.23.09.52.56; author wiz; state Exp; branches; next 1.11; commitid skBOMvOEdliPfUKG; 1.11 date 2026.03.17.20.43.02; author bouyer; state Exp; branches; next 1.10; commitid m6e2Bm7Yvv7LZmyG; 1.10 date 2026.03.01.12.38.38; author gdt; state Exp; branches; next 1.9; commitid xaHXyYFajPgHPgwG; 1.9 date 2025.10.23.20.39.28; author wiz; state Exp; branches; next 1.8; commitid 1V2hBZn9ypXaCJfG; 1.8 date 2025.07.01.16.55.06; author bouyer; state Exp; branches; next 1.7; commitid mu8IbJr0CNBL341G; 1.7 date 2025.05.29.12.16.56; author bouyer; state Exp; branches 1.7.2.1; next 1.6; commitid R9gFeu1iy1beANWF; 1.6 date 2024.09.10.12.40.14; author bouyer; state Exp; branches; next 1.5; commitid aIvZIH9vHuDM4gpF; 1.5 date 2024.04.02.22.01.24; author bouyer; state Exp; branches; next 1.4; commitid SMgUmPoFrEZEjC4F; 1.4 date 2024.01.16.19.49.52; author brook; state Exp; branches 1.4.2.1; next 1.3; commitid AxUSZ23j1Cil8IUE; 1.3 date 2024.01.13.20.16.02; author gdt; state Exp; branches; next 1.2; commitid 7DZwBGioewzinkUE; 1.2 date 2024.01.01.00.30.18; author gdt; state Exp; branches; next 1.1; commitid 9DMCm224SAPqcGSE; 1.1 date 2023.11.21.11.37.03; author bouyer; state Exp; branches; next ; commitid HprkrN60xHmObtNE; 1.7.2.1 date 2025.07.05.00.07.27; author maya; state Exp; branches; next ; commitid hG2Q9pWSPhivmu1G; 1.4.2.1 date 2024.04.05.18.52.47; author bsiegert; state Exp; branches; next ; commitid tX26swbzmSVjfZ4F; desc @@ 1.14 log @*: recursive bump for pcre2 10.48 @ text @# $NetBSD: Makefile,v 1.13 2026/08/26 11:00:31 bouyer Exp $ # # VERSION is set in version.mk as it is shared with other packages #PKGREVISION= 1 PKGREVISION= 1 .include "version.mk" PKGNAME= xentools418-${VERSION:S/-//g} CATEGORIES= sysutils MAINTAINER= bouyer@@NetBSD.org HOMEPAGE= https://xenproject.org/ COMMENT= Userland Tools for Xen 4.18.x LICENSE= gnu-gpl-v2 # XXX add version check: Xen requires dev86 >= 0.16.14 TOOL_DEPENDS+= dev86-[0-9]*:../../devel/dev86 # needed to build firmware .if !exists(/usr/bin/iasl) TOOL_DEPENDS+= acpica-utils-[0-9]*:../../sysutils/acpica-utils .endif TOOL_DEPENDS+= ninja-build-[0-9]*:../../devel/ninja-build TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools PYTHON_VERSIONS_INCOMPATIBLE= 27 PKG_SYSCONFSUBDIR= xen ONLY_FOR_PLATFORM+= NetBSD-1[0-9]*-x86_64 ONLY_FOR_PLATFORM+= NetBSD-9.99.*-x86_64 ONLY_FOR_PLATFORM+= NetBSD-9.[1-9]-x86_64 ONLY_FOR_PLATFORM+= NetBSD-9.[1-9]_*-x86_64 ONLY_FOR_PLATFORM+= NetBSD-9.0_STABLE-x86_64 SSP_SUPPORTED= no MKPIE_SUPPORTED= no CONFLICTS+= libxen-[0-9]* CONFLICTS+= xenstoretools-[0-9]* CHECK_PORTABILITY_SKIP= tools/examples/* \ tools/qemu-xen/scripts/qemu-binfmt-conf.sh CHECK_RELRO_SKIP= libexec/xen/boot/hvmloader CHECK_RELRO_SKIP+= libexec/xen/boot/xen-shim CHECK_RELRO_SKIP+= lib/debug${PREFIX}/libexec/xen/boot/xen-shim-syms EGDIR= ${PREFIX}/share/examples/xen MESSAGE_SUBST+= EGDIR=${EGDIR} USE_TOOLS+= pod2man gmake pkg-config makeinfo perl bash cmake gsed bison USE_LANGUAGES= c c++ GNU_CONFIGURE= YES CONFIGURE_ARGS+= --enable-rpath --disable-golang CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE} CONFIGURE_ARGS+= --enable-ipxe CONFIGURE_ARGS+= --with-system-ovmf=${PREFIX}/share/ovmf/OVMFX64.fd MAKE_ENV+= PREFIX=${prefix:Q} WRKSRC=${WRKSRC} MAKE_ENV+= APPEND_LIB=${LDFLAGS:Q} MAKE_ENV+= XEN_EXAMPLES_DIR=${EGDIR} MAKE_ENV+= MV=${MV:Q} CP=${CP:Q} MAKE_ENV+= PYTHON=${PYTHONBIN:Q} PYTHON_COMMAND=${PYTHONBIN:Q} MAKE_ENV+= SED=${SED:Q} MAKE_ENV+= V=YES MAKE_ENV+= BARE_CPP="gcc -E" #MAKE_ENV+= NO_WERROR=1 #BUILDLINK_TRANSFORM+= rm:-Werror PY_PATCHPLIST= yes REPLACE_PYTHON+= tools/misc/xencons REPLACE_PYTHON+= tools/misc/xenpvnetboot tools/misc/xensymoops REPLACE_PYTHON+= tools/python/scripts/convert-legacy-stream REPLACE_PYTHON+= tools/python/scripts/verify-stream-v2 REPLACE_PYTHON+= tools/xenmon/xenmon.py tools/misc/xencov_split REPLACE_PERL+= tools/firmware/rombios/makesym.perl REPLACE_PERL+= tools/qemu-xen-traditional/texi2pod.pl REPLACE_PERL+= tools/examples/xeninfo.pl REPLACE_PERL+= tools/include/xen-external/bsd-sys-queue-h-seddery REPLACE_PERL+= tools/qemu-xen/scripts/texi2pod.pl REPLACE_PERL+= tools/qemu-xen/scripts/get_maintainer.pl REPLACE_PERL+= tools/qemu-xen/scripts/checkpatch.pl SUBST_CLASSES+= conf SUBST_STAGE.conf= pre-configure SUBST_FILES.conf= docs/misc/block-scripts.txt SUBST_FILES.conf+= docs/misc/vtd.txt SUBST_SED.conf= -e "s,@@XENDCONFDIR@@,${PKG_SYSCONFDIR},g" XEND_SCRIPTS= block vif-bridge vif-ip qemu-ifup hotplugpath.sh locking.sh SUBST_CLASSES+= getopt SUBST_STAGE.getopt= pre-configure SUBST_MESSAGE.getopt= Fixing getopt_long_only SUBST_FILES.getopt+= tools/fuzz/x86_instruction_emulator/afl-harness.c SUBST_SED.getopt+= -e 's,getopt_long_only,getopt_long,' SUBST_CLASSES+= rpath-link SUBST_STAGE.rpath-link= pre-configure SUBST_MESSAGE.rpath-link= Fixing rpath-link syntax SUBST_FILES.rpath-link+= tools/Rules.mk SUBST_SED.rpath-link+= -e 's/-rpath-link=/-rpath-link,/g' OPSYSVARS+= PROCPATH PROCPATH.NetBSD= /kern PROCPATH.*= /proc .include "../../mk/bsd.prefs.mk" .if ${OPSYS} == "NetBSD" MESSAGE_SRC= ${.CURDIR}/MESSAGE ${.CURDIR}/MESSAGE.NetBSD .endif RCD_SCRIPTS= xen-watchdog xencommons xendomains FILES_SUBST+= RCD_INTERPRETER=${PYTHONBIN:Q} FILES_SUBST+= PROCPATH=${PROCPATH:Q} FILES_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} FILES_SUBST+= PREFIX=${PREFIX} CONF_FILES+= ${EGDIR}/xl.conf ${PKG_SYSCONFDIR}/xl.conf CONF_FILES+= ${EGDIR}/oxenstored.conf ${PKG_SYSCONFDIR}/oxenstored.conf OWN_DIRS= ${PKG_SYSCONFDIR}/scripts ${VARBASE}/log/xen .for s in ${XEND_SCRIPTS} CONF_FILES_PERMS+= ${EGDIR}/scripts/${s} ${PKG_SYSCONFDIR}/scripts/${s} \ ${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0755 .endfor post-extract: ${MV} ${WRKDIR}/${QEMU_DIST} ${WRKSRC}/tools/qemu-xen ${MV} ${WRKDIR}/${QEMUTRAD_DIST} ${WRKSRC}/tools/qemu-xen-traditional pre-build: rm -f ${WRKSRC}/check/check_x11_devel ${SED} -e "s,@@XENDCONFDIR@@,${PKG_SYSCONFDIR},g" \ ${WRKSRC}/docs/man/xenstore-chmod.1.pod |\ pod2man -n xenstore-chmod >${WRKDIR}/xenstore-chmod.1 ${SED} -e "s,@@XENDCONFDIR@@,${PKG_SYSCONFDIR},g" \ ${WRKSRC}/docs/man/xenstore-ls.1.pod |\ pod2man -n xenstore-ls >${WRKDIR}/xenstore-ls.1 ${SED} -e "s,@@XENDCONFDIR@@,${PKG_SYSCONFDIR},g" \ ${WRKSRC}/docs/man/xenstore.1.pod |\ pod2man -n xenstore >${WRKDIR}/xenstore.1 ${SED} -e "s,@@XENDCONFDIR@@,${PKG_SYSCONFDIR},g" \ ${WRKSRC}/docs/man/xentop.1.pod |\ pod2man -n xentop >${WRKDIR}/xentop.1 ${SED} -e "s,@@XENDCONFDIR@@,${PKG_SYSCONFDIR},g" \ ${WRKSRC}/docs/man/xentrace.8.pod |\ pod2man -n xentrace >${WRKDIR}/xentrace.8 ${SED} -e "s,@@XENDCONFDIR@@,${PKG_SYSCONFDIR},g" \ ${WRKSRC}/docs/man/xentrace_format.1.pod |\ pod2man -n xenstore_format >${WRKDIR}/xentrace_format.1 ${SED} -e "s,@@XENDCONFDIR@@,${PKG_SYSCONFDIR},g" \ ${WRKSRC}/docs/man/xl.cfg.5.pod.in |\ pod2man -n xl.cfg >${WRKDIR}/xl.cfg.5 ${SED} -e "s,@@XENDCONFDIR@@,${PKG_SYSCONFDIR},g" \ ${WRKSRC}/docs/man/xl.conf.5.pod |\ pod2man -n xl.conf >${WRKDIR}/xl.conf.5 ${SED} -e "s,@@XENDCONFDIR@@,${PKG_SYSCONFDIR},g" \ ${WRKSRC}/docs/man/xl.1.pod.in |\ pod2man -n xl >${WRKDIR}/xl.1 ${SED} -e "s,@@XENDCONFDIR@@,${PKG_SYSCONFDIR},g" \ ${WRKSRC}/docs/man/xlcpupool.cfg.5.pod |\ pod2man -n xlcpupool.cfg >${WRKDIR}/xlcpupool.cfg.5 ${SED} -e "s,@@XENDCONFDIR@@,${PKG_SYSCONFDIR},g" \ ${WRKSRC}/docs/man/xl-disk-configuration.5.pod |\ pod2man -n xl-disk-configuration >${WRKDIR}/xl-disk-configuration.5 INSTALLATION_DIRS= ${EGDIR} ${PKGMANDIR}/man1 ${PKGMANDIR}/man5 INSTALLATION_DIRS+= ${PKGMANDIR}/man8 share/doc/xen INSTALLATION_DIRS+= ${PYSITELIB} BUILD_DEFS+= VARBASE do-build: cd ${WRKSRC} && ${BUILD_MAKE_CMD} V=1 build-tools cd ${WRKSRC} && ${BUILD_MAKE_CMD} build-docs do-install: cd ${WRKSRC} && ${BUILD_MAKE_CMD} DESTDIR=${DESTDIR} install-tools cd ${WRKSRC} && ${BUILD_MAKE_CMD} DESTDIR=${DESTDIR} install-docs post-install: ${INSTALL_MAN} ${WRKDIR}/xenstore-chmod.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 ${INSTALL_MAN} ${WRKDIR}/xenstore-ls.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 ${INSTALL_MAN} ${WRKDIR}/xenstore.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 ${INSTALL_MAN} ${WRKDIR}/xentop.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 ${INSTALL_MAN} ${WRKDIR}/xentrace.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8 ${INSTALL_MAN} ${WRKDIR}/xentrace_format.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 ${INSTALL_MAN} ${WRKDIR}/xl.cfg.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5 ${INSTALL_MAN} ${WRKDIR}/xl.conf.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5 ${INSTALL_MAN} ${WRKDIR}/xl.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 ${INSTALL_MAN} ${WRKDIR}/xlcpupool.cfg.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5 .for f in \ gamd-ucode-container.txt gqemu-backends.txt \ gblock-scripts.txt gqemu-deprivilege.txt \ gconsole.txt gstubdom.txt \ gcrashdb.txt gvtd-pi.txt \ gdistro_mapping.txt gvtd.txt \ gdump-core-format.txt gvtpm-platforms.txt \ ggrant-tables.txt gxen-error-handling.txt \ gkconfig-language.txt gxenmon.txt \ gkconfig.txt gxenpaging.txt \ gkexec_and_kdump.txt gxenstore-ring.txt \ glibxl_memory.txt gxenstore.txt \ gprintk-formats.txt gxsm-flask.txt \ ${INSTALL_DATA} ${WRKSRC}/docs/misc/$f ${DESTDIR}${PREFIX}/share/doc/xen .endfor .if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 069900 CPPFLAGS+= -Dshm_open=open -Dshm_unlink=unlink .endif .include "../../mk/compiler.mk" EXTRA_CFLAGS+= -Wno-error=char-subscripts \ -Wno-error=declaration-after-statement \ -Wno-error=maybe-uninitialized \ -Wno-error=unused-value EXTRA_HOSTCFLAGS+= -Wno-error=char-subscripts \ -Wno-error=declaration-after-statement \ -Wno-error=unused-value .if !empty(PKGSRC_COMPILER:Mclang) EXTRA_HOSTCFLAGS+= -Wno-error=ignored-attributes EXTRA_CFLAGS+= -Wno-error=ignored-attributes -no-integrated-as \ -Wno-error=tautological-compare -Wno-error=null-dereference \ -Wno-error=empty-body -Wno-error=self-assign \ -Wno-error=sometimes-uninitialized \ -Wno-error=unused-function -Wno-error=format \ -Wno-error=unused-const-variable \ -Wno-error=gnu-designator -Wno-error=uninitialized \ -Wno-error=parentheses-equality \ -Wno-error=enum-conversion \ -Wno-error=address-of-packed-member BUILDLINK_TRANSFORM+= rm:-falign-jumps=1 rm:-falign-loops=1 \ rm:-mpreferred-stack-boundary=2 .endif MAKE_ENV+= EXTRA_HOSTCFLAGS=${EXTRA_HOSTCFLAGS:Q} EXTRA_CFLAGS=${EXTRA_CFLAGS:M*:Q} TARGET_CC=${TARGET_CC} # \todo Considering installing xen-command-line(7), perhaps by pandoc, # and perhaps by some mechanism that does not cause portability # issues. .include "../../lang/python/batteries-included.mk" .include "../../lang/python/application.mk" .include "../../lang/python/extension.mk" # SDL2 is forced off via a patch. With that removed and the bl3 # uncommented, the build completes with one additional file. However, # there is no reason to add SDL2. #.include "../../devel/SDL2/buildlink3.mk" .include "../../lang/ocaml/buildlink3.mk" .include "../../devel/ocaml-findlib/buildlink3.mk" BUILDLINK_API_DEPENDS.pciutils+= pciutils>=3.8 .include "../../sysutils/pciutils/buildlink3.mk" .include "../../archivers/zstd/buildlink3.mk" .include "../../devel/glib2/buildlink3.mk" .include "../../devel/yajl/buildlink3.mk" .include "../../devel/argp/buildlink3.mk" .include "../../security/libgcrypt/buildlink3.mk" .include "../../x11/pixman/buildlink3.mk" .include "../../mk/curses.buildlink3.mk" .include "../../mk/bsd.pkg.mk" @ 1.13 log @update xenkernel418 and xentools418 to 20260825 (bringing in Xen 4.18.6). pkgsrc CHANGES: - set SHADOW_PAGING to yes because NetBSD PV guests relies on it (at last on my hardware). Note that this is not security-supported upstream. - update xenkernel418 DESCR and MESSAGE to reflect current state. upstream CHANGES: fix XSA-497, XSA-499, XSA-500, XSA-501, XSA-502, XSA-503, XSA-504, XSA-505, XSA-506, XSA-507, XSA-508 Note that as SHADOW_PAGING is enabled, XSA-495 is not fixed. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.12 2026/06/23 09:52:56 wiz Exp $ d5 1 @ 1.12 log @*: recursive bump for argp 1.5 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.11 2026/03/17 20:43:02 bouyer Exp $ a4 1 PKGREVISION= 1 @ 1.11 log @Update xenkernel418 and xentools418 to 20260317 Changes since 20250701: mostly bug fixes and small improvements on some hardware, including security fixes up to XSA481 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.10 2026/03/01 12:38:38 gdt Exp $ d5 1 @ 1.10 log @*: revbump for lang/ocaml micro (security) update @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.9 2025/10/23 20:39:28 wiz Exp $ a4 1 PKGREVISION= 2 @ 1.9 log @*: recursive bump for pcre2 Running an old binary against the new pcre doesn't work: /usr/pkg/lib/libpcre2-8.so.0: version PCRE2_10.47 required by /usr/pkg/lib/libglib-2.0.so.0 not defined @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.8 2025/07/01 16:55:06 bouyer Exp $ d5 1 a5 1 PKGREVISION= 1 @ 1.8 log @Update xentools418 and xenkernel418 to 20250701. Changes since 20250521: Fix XSA-470 / CVE-2025-27465 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2025/05/29 12:16:56 bouyer Exp $ d5 1 @ 1.7 log @Add upstream patch fixing dr6 handling; making the atf dbregs_* tests pass again on xen PV guests bump PKGREVISION Note: this is needed on xentools, in addition to xenkernel, for the pvshim kernel @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2024/09/10 12:40:14 bouyer Exp $ d4 1 a4 1 PKGREVISION= 1 @ 1.7.2.1 log @Pullup ticket #6980 - requested by bouyer sysutils/xenkernel418: Security fix sysutils/xentools418: Security fix Revisions pulled up: - sysutils/xenkernel418/Makefile 1.5 - sysutils/xenkernel418/distinfo 1.8 - sysutils/xentools418/Makefile 1.8 - sysutils/xentools418/distinfo 1.9 - sysutils/xentools418/version.mk 1.6 --- Module Name: pkgsrc Committed By: bouyer Date: Tue Jul 1 16:55:06 UTC 2025 Modified Files: pkgsrc/sysutils/xenkernel418: Makefile distinfo pkgsrc/sysutils/xentools418: Makefile distinfo version.mk Log Message: Update xentools418 and xenkernel418 to 20250701. Changes since 20250521: Fix XSA-470 / CVE-2025-27465 @ text @d1 1 a1 1 # $NetBSD$ d4 1 a4 1 #PKGREVISION= 1 @ 1.6 log @Update xenkernel418 and xentools418 to 20240909. This brings in Xen 4.18.3 pkgsrc CHANGES: set O_CLOEXEC (if requested) and remove O_NONBLOCK on /dev/xenevt set O_CLOEXEC on /kern/xen/privcmd (both from the freebsd-specific code) Main changes since 20231116 (Xen 4.18.0): Fix various bugs, especially in these areas: - interrupt setup - error paths better support for some of the newer CPUs some performances improvement Fixes XSA-447, XSA-449, XSA-450, XSA-451, XSA-452, XSA-453, XSA-454, XSA-455, XSA-456, XSA-458, XSA-460, XSA-461 @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2024/04/02 22:01:24 bouyer Exp $ d4 1 a4 1 #PKGREVISION= 1 @ 1.5 log @xentools415, xentools418: fix bug in BSD symbol table support for i386: When computing the size of the ELF symbol table, the code use sizeof(Elf64_Shdr) or sizeof(Elf32_Shdr) depending on the kernel being loaded. But later when computing offsets, the code uses sizeof(struct elf_sym_header) which contains a union of both Shdr. This result in an overflow of 64 bytes. Fortunably the code checks the size being copied with the allocated size and silently ignores the copy if there isn't enough space. Fortunably as well, the allocated size is rounded up to the next page boundary, so most of the time there is enough space. Unfortunably, the official i386 GENERIC kernel from the 10.0 release has the right size to trigger this bug. Bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 2024/01/16 19:49:52 brook Exp $ d4 1 a4 1 PKGREVISION= 1 @ 1.4 log @sysutils/xentools418: replace /usr/pkg in CHECK_RELRO_SKIP with ${PREFIX} Currently, the package fails to build if ${PREFIX} is not /usr/pkg, because one file is not skipped in the RELRO check. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 2024/01/13 20:16:02 gdt Exp $ d4 1 a4 1 #PKGREVISION= 1 @ 1.4.2.1 log @Pullup ticket #6842 - requested by bouyer sysutils/xentools415: NetBSD 10 bugfix sysutils/xentools418: NetBSD 10 bugfix Revisions pulled up: - sysutils/xentools415/Makefile 1.30 - sysutils/xentools415/distinfo 1.15 - sysutils/xentools415/patches/patch-xen_common_libelf_libelf-loader.c 1.1 - sysutils/xentools418/Makefile 1.5 - sysutils/xentools418/distinfo 1.3 - sysutils/xentools418/patches/patch-xen_common_libelf_libelf-loader.c 1.1 --- Module Name: pkgsrc Committed By: bouyer Date: Tue Apr 2 22:01:24 UTC 2024 Modified Files: pkgsrc/sysutils/xentools415: Makefile distinfo pkgsrc/sysutils/xentools418: Makefile distinfo Added Files: pkgsrc/sysutils/xentools415/patches: patch-xen_common_libelf_libelf-loader.c pkgsrc/sysutils/xentools418/patches: patch-xen_common_libelf_libelf-loader.c Log Message: xentools415, xentools418: fix bug in BSD symbol table support for i386: When computing the size of the ELF symbol table, the code use sizeof(Elf64_Shdr) or sizeof(Elf32_Shdr) depending on the kernel being loaded. But later when computing offsets, the code uses sizeof(struct elf_sym_header) which contains a union of both Shdr. This result in an overflow of 64 bytes. Fortunably the code checks the size being copied with the allocated size and silently ignores the copy if there isn't enough space. Fortunably as well, the allocated size is rounded up to the next page boundary, so most of the time there is enough space. Unfortunably, the official i386 GENERIC kernel from the 10.0 release has the right size to trigger this bug. Bump PKGREVISION. @ text @d1 1 a1 1 # $NetBSD$ d4 1 a4 1 PKGREVISION= 1 @ 1.3 log @sysutils/xentools418: Note that missing man page could be installed and why it's hard (haskell). @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.2 2024/01/01 00:30:18 gdt Exp $ d43 1 a43 1 CHECK_RELRO_SKIP+= lib/debug/usr/pkg/libexec/xen/boot/xen-shim-syms @ 1.2 log @xentools418: Update commented-out SDL2 bl3 line and explain I recently added a patch to force-disable sdl2-config. Greg Woods pointed out that if one adds SDL2 bl3 (vs SDL that was commented-out previously), the package builds. This commit just updates the commented-out line and explains this. (I have no reason to think including SDL2 is a good idea.) @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.1 2023/11/21 11:37:03 bouyer Exp $ d241 4 @ 1.1 log @Add xentools418 version 20231116 Unlike previous Xen packages, the xentools418 and xenkernel418 will point to a specific commit of the stable branch (instead of release tags), the package version being the date of the commit. Hopefully this will make tracking security fixes easier. From DESCR: The Xen virtual machine monitor allows running several virtual machines on a single physical machine. The xentools418 package contains the tools to create, destroy and control the virtual machines. This package contains the tools for Xen 4.18.x @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.26 2023/08/24 10:27:09 bouyer Exp $ d244 4 a247 1 #.include "../../devel/SDL/buildlink3.mk" @