From nobody Tue Jan 7 18:17:17 2025 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YSK5V1yFtz5jj8d; Tue, 07 Jan 2025 18:17:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YSK5V1Db0z4l7d; Tue, 7 Jan 2025 18:17:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736273838; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3iCXsd7cxyd3YtVp0KgdCuwP66SKkff7CIJCH9sz838=; b=g9q7Ytl+ZzIn1MPN0H0/tSWCZGxlUCmY/CbBr9Gcqu+Yq6DK0VC9tXo4rlU0ZxZDNA+V4O HPJvh2RghbBImSA+xLynv3NFaTQX5XDiwzHIz6QTL4JrFQTL5udXKdHoL9FZS42QSJRNhF TJAqGad+TIS5w71FuCjRFjYihe8P3m8+rRXLamFjvrw0t95TEIuK3HA83nYLmNOof891wW tWAPTZkrpgFcjrVFndTlRSJ/M+59WfOKbPXXaTBL5grP+19fSd84PcZtbYGlo9I2+e1I9g P2RMu1TPyj3l+6we2zrpq9MtkV3dF+ys3rTUE5ubbODzarbK2PJqGODwRLiW1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736273838; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=3iCXsd7cxyd3YtVp0KgdCuwP66SKkff7CIJCH9sz838=; b=TiarQ0amMKGMt7b0/wpQrWlu44DLdoL8Y0NDXFSUEtuljiFCW5M9q0gkGHm41NeisrqZ7y CkMDcz5DpZZauN+bkYW4p7mCxGHLII24/VTv9qXXXzCCJdup20vGGBu9uRRVYa7HCGQRcp QGQetsEPqJIYFkdJs0+Qd1c7hHJ4zacW1JfG39hSJbtP4/pkISdzpjlWddoC60mFhPm1A/ 6wkY7GbEQYbL8Pzq2rEvDFf5Igsn8J5TVFPuUv+Bk+KveVXurlmWrc9eUujlylGb/vrU40 NQQwyBatKIQCRrJqtAWHIGp38iMubu/j5yCIwU2VJ3+QB56JcmPBCvcqon65tw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736273838; a=rsa-sha256; cv=none; b=WMEdSPxbAMFAWXOVbPysNmdV/tAdyfTk/T/jVi0xVLeJrLwY1EOweilTeHsHcXHXE7Z/FN jgTz4Zru4xt9ME2O5ppxnakWlQtR2CfTera+hfOruHgiIN7xlKCfk4i6qM3hBna2NZGATL gcW36yd4KGYON2xTK6fig6Kyoa5T1wyq3Z1z2MZ+LTyGUl6J2hGAwaBm2qpeK88IZ0IcBe Fg4HQsPv+ipVLfrTHM3xlQTr+hfNO/lUE4P9Dzu00fsc+kwzFXB4ZiwUenGfKPvtfQCsrS gYn7JfmwUWFBGEhXMZS7h1lJOhq+1+CwyMXqvln0zbZaiuq+J3ZovLk0wbLemQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YSK5V0b2hz5lw; Tue, 07 Jan 2025 18:17:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 507IHHdH030364; Tue, 7 Jan 2025 18:17:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 507IHHeY030361; Tue, 7 Jan 2025 18:17:17 GMT (envelope-from git) Date: Tue, 7 Jan 2025 18:17:17 GMT Message-Id: <202501071817.507IHHeY030361@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Vladimir Druzenko Subject: git: c9b6fc0d29fb - main - emulators/virtualbox-ose{,-additions}-legacy: Unification of patches with ports emulators/virtualbox-ose{,-additions} List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: vvd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c9b6fc0d29fba9262f6b6af6316e14703add2a10 Auto-Submitted: auto-generated The branch main has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=c9b6fc0d29fba9262f6b6af6316e14703add2a10 commit c9b6fc0d29fba9262f6b6af6316e14703add2a10 Author: Vladimir Druzenko AuthorDate: 2025-01-07 18:10:22 +0000 Commit: Vladimir Druzenko CommitDate: 2025-01-07 18:16:55 +0000 emulators/virtualbox-ose{,-additions}-legacy: Unification of patches with ports emulators/virtualbox-ose{,-additions} Replace REINPLACE_CMD in Makefiles with patches in files/*. PR: 272991 279257 MFH: 2025Q1 --- emulators/virtualbox-ose-additions-legacy/Makefile | 4 ---- emulators/virtualbox-ose-legacy/Makefile | 4 ---- .../files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs.h | 10 ++++++++-- .../patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vfsops.c | 2 +- .../patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vnops.c | 2 +- 5 files changed, 10 insertions(+), 12 deletions(-) diff --git a/emulators/virtualbox-ose-additions-legacy/Makefile b/emulators/virtualbox-ose-additions-legacy/Makefile index 32c53d9680a1..54e77f8d41b3 100644 --- a/emulators/virtualbox-ose-additions-legacy/Makefile +++ b/emulators/virtualbox-ose-additions-legacy/Makefile @@ -134,10 +134,6 @@ post-patch: .if ${PORT_OPTIONS:MPAE} @${ECHO_CMD} 'VBOX_FREEBSD = -DPAE' >> ${WRKSRC}/LocalConfig.kmk .endif -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400093 - @${REINPLACE_CMD} -e 's|enum vtype|enum enum_vtype_uint8|g' \ - ${WRKSRC}/src/VBox/Additions/freebsd/vboxvfs/vboxvfs*.[ch] -.endif post-patch-X11-on: @${ECHO_CMD} 'VBOX_USE_SYSTEM_XORG_HEADERS = 1' >> \ diff --git a/emulators/virtualbox-ose-legacy/Makefile b/emulators/virtualbox-ose-legacy/Makefile index 6c0563b2759c..2f18be4feb48 100644 --- a/emulators/virtualbox-ose-legacy/Makefile +++ b/emulators/virtualbox-ose-legacy/Makefile @@ -301,10 +301,6 @@ post-patch: @${REINPLACE_CMD} \ -e 's|^versions =.*|versions = ["${PYTHON_VER}${PYTHON_ABIVER}"]|' \ ${WRKSRC}/src/libs/xpcom18a4/python/gen_python_deps.py -.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400093 - @${REINPLACE_CMD} -e 's|enum vtype|enum enum_vtype_uint8|g' \ - ${WRKSRC}/src/VBox/Additions/freebsd/vboxvfs/vboxvfs*.[ch] -.endif do-build: cd ${WRKSRC} && ${SH} -c '. ${WRKSRC}/env.sh && \ diff --git a/emulators/virtualbox-ose-legacy/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs.h b/emulators/virtualbox-ose-legacy/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs.h index 09bb8575898e..1bf14e4782f3 100644 --- a/emulators/virtualbox-ose-legacy/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs.h +++ b/emulators/virtualbox-ose-legacy/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs.h @@ -9,7 +9,7 @@ /* * Copyright (C) 2010-2017 Oracle Corporation * -@@ -21,72 +16,413 @@ +@@ -21,72 +16,419 @@ #define VBOXVFS_VFSNAME "vboxvfs" #define VBOXVFS_VERSION 1 @@ -176,6 +176,12 @@ - int didrele; +#include + ++#if __FreeBSD_version >= 1400093 ++typedef __enum_uint8(vtype) enum_vtype_t; ++#else ++typedef enum vtype enum_vtype_t; ++#endif ++ +#define VBOXVFS_DEBUG(lvl, ...) do { \ + if (vboxvfs_debug >= (lvl)) { \ + printf("VBOXVFS[%u]: ", lvl); \ @@ -365,7 +371,7 @@ +void vboxfs_free_vp(struct vnode *); + +int vboxfs_alloc_node(struct mount *, struct vboxfs_mnt *, const char*, -+ enum vtype, uid_t, gid_t, mode_t, struct vboxfs_node *, ++ enum_vtype_t, uid_t, gid_t, mode_t, struct vboxfs_node *, + struct vboxfs_node **); +void vboxfs_free_node(struct vboxfs_mnt *, struct vboxfs_node *); + diff --git a/emulators/virtualbox-ose-legacy/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vfsops.c b/emulators/virtualbox-ose-legacy/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vfsops.c index 6843bcd87c12..277cb4e7d4bb 100644 --- a/emulators/virtualbox-ose-legacy/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vfsops.c +++ b/emulators/virtualbox-ose-legacy/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vfsops.c @@ -131,7 +131,7 @@ + */ +int +vboxfs_alloc_node(struct mount *mp, struct vboxfs_mnt *vsfmp, const char *fullpath, -+ enum vtype type, uid_t uid, gid_t gid, mode_t mode, struct vboxfs_node *parent, ++ enum_vtype_t type, uid_t uid, gid_t gid, mode_t mode, struct vboxfs_node *parent, + struct vboxfs_node **node) { - struct vboxvfs_mount_info args; diff --git a/emulators/virtualbox-ose-legacy/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vnops.c b/emulators/virtualbox-ose-legacy/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vnops.c index b6c04f48e3cd..b37af4edac49 100644 --- a/emulators/virtualbox-ose-legacy/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vnops.c +++ b/emulators/virtualbox-ose-legacy/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vnops.c @@ -420,7 +420,7 @@ + */ +static int +vboxfs_alloc_file(struct vboxfs_mnt *vboxfsmp, const char *fullpath, -+ enum vtype type, mode_t mode, struct vboxfs_node *parent, ++ enum_vtype_t type, mode_t mode, struct vboxfs_node *parent, + int lkflag, struct vnode **vpp) { - return 0;