Bug 290104 - www/phpvirtualbox-72: Fix EFI, Disable Page Fusion
Summary: www/phpvirtualbox-72: Fix EFI, Disable Page Fusion
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Vladimir Druzenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-09 08:42 UTC by zoon01
Modified: 2025-10-09 11:42 UTC (History)
1 user (show)

See Also:
vvd: maintainer-feedback+
vvd: merge-quarterly+


Attachments
fix nvram creation, disable Page Fusion (2.19 KB, patch)
2025-10-09 08:45 UTC, zoon01
no flags Details | Diff
Disable Page Fusion (3.14 KB, patch)
2025-10-09 08:46 UTC, zoon01
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zoon01 2025-10-09 08:42:53 UTC
There are 2 issue's to solve.
bug 1, UEFI NVRAM (.nvram) isn't created for windows 11 vm when setup the vm.
bug 2, Page Fusion does not work properly in VirtualBox 7.2.2
Comment 1 zoon01 2025-10-09 08:45:46 UTC
Created attachment 264429 [details]
fix nvram creation, disable Page Fusion
Comment 2 zoon01 2025-10-09 08:46:45 UTC
Created attachment 264430 [details]
Disable Page Fusion
Comment 3 Vladimir Druzenko freebsd_committer freebsd_triage 2025-10-09 09:34:01 UTC
(In reply to zoon01 from comment #1)
I see patches in upstream:
https://github.com/phpvirtualbox/phpvirtualbox/commit/2d806b480c28c4343ceda12ac0f8614713eddaec
https://github.com/phpvirtualbox/phpvirtualbox/commit/ab759b995472b98bda9e49050dff65c11e0a62b7

Can you test patch:
diff --git a/www/phpvirtualbox-72/Makefile b/www/phpvirtualbox-72/Makefile
index 5cd673bbf480..f94deb49ef60 100644
--- a/www/phpvirtualbox-72/Makefile
+++ b/www/phpvirtualbox-72/Makefile
@@ -1,10 +1,18 @@
 PORTNAME=      phpvirtualbox
 DISTVERSION=   7.2-1
-PORTREVISION=  1
+PORTREVISION=  2
 CATEGORIES=    www
 SUFFIX=                -72
 PKGNAMESUFFIX= ${SUFFIX}${PHP_PKGNAMESUFFIX}

+PATCH_SITES=   https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
+# Fix missing NVRAM file when creating new VM with EFI:
+# https://github.com/phpvirtualbox/phpvirtualbox/issues/364
+PATCHFILES+=   2d806b480c28c4343ceda12ac0f8614713eddaec.patch:-p1
+# Disable Page Fusion feature, does not work in VirtualBox 7.2
+# https://github.com/phpvirtualbox/phpvirtualbox/issues/363
+PATCHFILES+=   ab759b995472b98bda9e49050dff65c11e0a62b7.patch:-p1
+
 MAINTAINER=    vbox@FreeBSD.org
 COMMENT=       AJAX Web Interface for VirtualBox
 WWW=           https://github.com/phpvirtualbox/phpvirtualbox/
diff --git a/www/phpvirtualbox-72/distinfo b/www/phpvirtualbox-72/distinfo
index 36e164f0de0c..babeeb3c20eb 100644
--- a/www/phpvirtualbox-72/distinfo
+++ b/www/phpvirtualbox-72/distinfo
@@ -1,3 +1,7 @@
-TIMESTAMP = 1756400000
+TIMESTAMP = 1760000000
 SHA256 (phpvirtualbox-phpvirtualbox-7.2-1_GH0.tar.gz) = 8025ed6b6af7ab4f32b0ac548fee94621469d5f5bc89d6a8a553a3989ada5ca9
 SIZE (phpvirtualbox-phpvirtualbox-7.2-1_GH0.tar.gz) = 5271540
+SHA256 (2d806b480c28c4343ceda12ac0f8614713eddaec.patch) = 216cc7af1bdec4b64efad505fd606b3699cf10e29df4a8e3b114e2419bb1f1ea
+SIZE (2d806b480c28c4343ceda12ac0f8614713eddaec.patch) = 1076
+SHA256 (ab759b995472b98bda9e49050dff65c11e0a62b7.patch) = eea7c0051c80dd7d32cd04b220f45598c5611c7e5372ce137e2817a3416b8513
+SIZE (ab759b995472b98bda9e49050dff65c11e0a62b7.patch) = 5435
Comment 4 zoon01 2025-10-09 09:53:24 UTC
(In reply to Vladimir Druzenko from comment #3)
Thanks, will do
Comment 5 zoon01 2025-10-09 10:03:21 UTC
(In reply to Vladimir Druzenko from comment #3)

I can report that it is working with your makefile changes

thanks being that fast :)

regards,
zoon01
Comment 6 commit-hook freebsd_committer freebsd_triage 2025-10-09 11:36:54 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=02271a4e3c389d217f50dcccf1b91560abe3a439

commit 02271a4e3c389d217f50dcccf1b91560abe3a439
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-10-09 11:31:33 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-10-09 11:34:23 +0000

    www/phpvirtualbox-72: Fix EFI, Disable Page Fusion

    - Fix missing NVRAM file when creating new VM with EFI:
      https://github.com/phpvirtualbox/phpvirtualbox/issues/364
    - Disable Page Fusion feature, does not work in VirtualBox 7.2:
      https://github.com/phpvirtualbox/phpvirtualbox/issues/363

    PR:     290104
    MFH:    2025Q4

 www/phpvirtualbox-72/Makefile | 10 +++++++++-
 www/phpvirtualbox-72/distinfo |  6 +++++-
 2 files changed, 14 insertions(+), 2 deletions(-)
Comment 7 commit-hook freebsd_committer freebsd_triage 2025-10-09 11:39:55 UTC
A commit in branch 2025Q4 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ccc9c3bf868160cfd5147bb8500db5c8b70851fe

commit ccc9c3bf868160cfd5147bb8500db5c8b70851fe
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-10-09 11:31:33 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-10-09 11:39:01 +0000

    www/phpvirtualbox-72: Fix EFI, Disable Page Fusion

    - Fix missing NVRAM file when creating new VM with EFI:
      https://github.com/phpvirtualbox/phpvirtualbox/issues/364
    - Disable Page Fusion feature, does not work in VirtualBox 7.2:
      https://github.com/phpvirtualbox/phpvirtualbox/issues/363

    PR:     290104
    MFH:    2025Q4
    (cherry picked from commit 02271a4e3c389d217f50dcccf1b91560abe3a439)

 www/phpvirtualbox-72/Makefile | 10 +++++++++-
 www/phpvirtualbox-72/distinfo |  6 +++++-
 2 files changed, 14 insertions(+), 2 deletions(-)