Re: NEW WIP: emulators/pcsx2
Leah Rowe <[email protected]> Wed, 22 Jul 2026 08:44:55 +0100
| Newsgroups | gmane.os.openbsd.ports |
|---|---|
| Message-ID | <[email protected]> |
pcsx2 on openbsd would be pretty dope. w^x though? Am 19.07.26 um 08:36 schrieb [email protected]: > På onsdag 8. juli 2026 kl. 02:19, skrev Matthew > <[email protected]>: > >> On 06/22/26 01:26PM, Anthony J. Bentley wrote: >>> Thanks for submitting this, and sorry it took so long for a response. >>> Some comments: >>> >>> - Missing dep on graphics/shaderc. >>> - USE_WXNEEDED and USE_NOBTCFI need a comment explaining what the >>> problem is. And bug reports should be filed upstream so they know >>> that there's interest in JITs that use branch target instructions >>> and W^X memory. >>> - This port would definitely benefit from enabling debug packages. >>> - License marker should say "GPLv3 only" or "GPLv3+" rather than "GPLv3". >>> Ditto for LGPLv3. >>> - stdlib.h is the only header for malloc() and alloca() on Unix systems. >>> The #ifdef blocks in pcsx2/GS/Renderers/HW/GSTextureCache.cpp and >>> common/VectorIntrin.h should be replaced entirely upstream with just >>> #include <stdlib.h>. >>> - 3rdparty/rapidyaml/include/c4/yml/common.hpp should be upstreamed as: >>> #if defined(C4_MSVC) || defined(C4_MINGW) || defined(_WIN32) || defined(C4_WIN) >>> #include <malloc.h> >>> #else >>> #include <stdlib.h> >>> #endif >>> - pcsx2/Host/AudioStream.cpp seems wrong, /usr/local/include/soundtouch >>> should be added to the include path with pkg-config. >>> - Not really important, but please sort BUILD_DEPENDS and LIB_DEPENDS. >>> >>> I've built and started the program, but haven't tried any emulation. >>> But overall the port looks good to me. >> Thank you for your help. I have attached the port with changes to >> address your comments. >> >> A couple notes on the changes: >> - I think I mistakenly put in USE_NOBTCFI, so that is gone. >> - For the license marker, it now has GPLv3+, which is the license for >> PCSX2 itself, and a list of licenses from vendored code. >> >> I get crashes occasionally when resizing the window while emulating, >> but otherwise it seems to run well. >> >> Thanks, >> Matthew >> > I thought I had responded to this, sorry for the wait. > > Built/tested on current/amd64 with privsep. > > I built this before the 80-beta snapshots, so I rebuilt it for > reassurance. > > // Built again > $ cd /usr/ports/emulators/pcsx2/ && make clean=all clean && make build package test ; make port-lib-depends-check check-shlib-syms && make clean && make distclean > > ===> Regression tests for pcsx2-2.6.3 > UpdateCTestConfiguration from :/usr/ports/pobj/pcsx2-2.6.3/build-amd64/DartConfiguration.tcl > Test project /usr/ports/pobj/pcsx2-2.6.3/build-amd64 > Constructing a list of tests > Updating test list for fixtures > Added 0 tests to meet fixture requirements > Checking test dependency graph... > Checking test dependency graph end > No tests were found!!! > LIB_DEPENDS wayland/libinput-openbsd not needed for devel/sdl3 ? > -- > > // Reinstalled > # TRUSTED_PKG_PATH=/usr/ports/packages/amd64/all/ pkg_add -Dsnap -Dinstalled -r pcsx2 > pcsx2-2.6.3->2.6.3: ok > -- > > Maybe do '-DWAYLAND_API=ON' instead? > > Since qt6 enables/needs wayland out of the box and the application will > default to --platform wayland whether disabled at the program build time > or not, I think keeping wayland on in config flags is better for > continued testing. Upstream sdl3, qt6, and others are wayland/X11 by > default. > > Your and the ports devs decision regardless. > > Used it on sway, but like citra, dolphin-emu, obs-studio and other qt6 > ports that need gl acceleration, it will need a '--platform xcb' to run on > wayland with xwayland and therefore gl acceleration. Some > applications can do slow software acceleration like dolphin-emu in wayland > native. > > I should ask @landry if their patch to stop explicitly disabling wayland > in base sets is the same and/or if that gets gl acceleration working. > https://marc.info/?l=openbsd-tech&m=176304756414309&w=2 > > Good to have this as building citra broke in current after llvm19 was > retired, but can still use old binary for now. > > Played a bit a few weeks ago and did another light gander of > Cowboy > Bebop with this last rebuild. Bit slow on my laptop, but playable-ish. > > No spelling/grammer issues. Maybe spacing nits in the WANTLIB area. > > Looks fine here on intel Sandybridge on sway, but using xwayland with > '--platform xcb' as the graphics stack is missing gl acceleration on > OpenBSD's wayland graphic stack the moment. > > Hope this helps. Thanks for the port again. May you have success and a cool one. > -- > yaydn -- Company director, Minifree Ltd Registered in England, No. 9361826 | VAT No. GB202190462 Registered Office: 19 Hilton Road, Canvey Island, Essex SS8 9QA, UK
OpenPGP_0x5C654067D383B1FF.asc
(application/pgp-keys, 3.1 KB)
-----BEGIN PGP PUBLIC KEY BLOCK----- xsFNBGWN15sBEADECGPEe37tdU3xe7OshKU19xVOPuJRMveCO5DHfv/lsZMXLWXw MMpbG+2xSMQZcdZc0HCUq6TQE9fU0rA3kcFz0miMOuB2WJbYy9guvg9pAjLa0LUy b2T/HPDDy0ifYtqrOzwETwWRiWQcTHjJ0knwNReaEterpPki1MbK79EwSuQBIgq9 lQ611qLn5SmE7sBRB5kze7q3KdTvY/CTfvOpVizgRF8kqqG4r4XkI0dTyrvC3i3E ub3F3YPWNjN06rECG6wO+TPzRo7em+0CdPYDgtqq4Srf050KNZsVt10Plty5VpJm 2GfoXFh6SZBO1zSbBpTGU+7vBsR731ye2ouQdcIs06Qi4wHmJ71liqJwxZ0ju2F5 edC7jDzdk4jAIaCiSiU+iGg28RsxoUdLkJl5Q4yW507Gr0psHIBJBAWJo1i75qKV hrmN25xjJLv0MjgaR7RgT1T7uuX1KPuo8NbHbRlkIv7987NeJzgbUzzpka2MJjTE d1ova9kPyICVmKCfBnT+bO3vfJAuQXRlf3qjXSLsxCD7Jmu07if0jXFIvjy/nC4H 0QPlwd/sVS7Svfn4rEGEnulrtBvVdOr6I+LmDedbSsSlYNlqagdyGsdKZfWSGxhj fz4oAkVy+y39s1qAnM5191m+u72dmnQPtxI8lEH/G+j+hK8NxDvV5ri3owARAQAB zR1MZWFoIFJvd2UgPGluZm9AbWluaWZyZWUub3JnPsLBlAQTAQoAPhYhBIux99KM 92ltv09xklxlQGfTg7H/BQJljdebAhsDBQkJZgGABQsJCAcCBhUKCQgLAgQWAgMB Ah4BAheAAAoJEFxlQGfTg7H/PKoQAIB8z2Rg+R0417YRTBXvbVG5kPpKOO3DWUaQ CJx6uypBUpgw2giKDsDz59c2vNaADs7Zh5xQ+2bzB+jkCjVSuzguApT3gxTnICvL eM72d5ZEF6Q8/YC6s9IiIHssCujb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F NO2A0dnq2/thIIgoEaiQfKMq2ilISsnf6x8as0FV3c7mGO8pDJlRwjoNg/89CMhx VbgO+5JQ+JHLfoMA++R+QaYy1ZLY51h5Ax6OtVWpZh67EuVDLx/5EFiyM25UTpqv H7t0ae2oLbAwQtIv1fRLhHP4aVSsP793of92/1lpybbpRD7/7ruVQ64d+/N49db6 mQARAQABwsF8BBgBCgAmFiEEi7H30oz3aW2/T3GSXGVAZ9ODsf8FAmWN15sCGwwF CQlmAYAACgkQXGVAZ9ODsf8EqQ/8CjAQTza1pvd/GmKYHtldSA1odPB7AQkB+j4o yu5gDqtM/fFRv3uGVYLcyZwC3XF69KL+NpcUYG22RQWokt+z3OiVYfP5LyKjXe2c PMS2cmyXBHEcCP8QSffNQNoC2VYzaVXH4P6cBVmkDG3yPtQ2cH1Al6jhMS4Fa0TC e6kgA7qROSoapdZuwbxEE7FeaYZIXQUBLpe2C6SexljD65DLhbDE5p4N56VbncO6 IAqr9JQSlEXBgvgXGhXqfOmZkmCjXJU7Sgy8sIyF4b1uEOkcWxUUfvfrO1yrcWyx vTlZdPCJy802B7UVFPWTbKwFoyIq5Lr8wk2npzAmDy/hKZlIV72Vk0eIcrTCfpbj 0GehrIIYcpW7Z2IUtETNkyuQs+OScIdrP3PItajNwktQJrhz+UGbF9MuT+CHuruh w5KzymkzcnEzCNaYvY4eG8IXP6VpX1GCs9eUvCWEnjP0OkmhQniWvS3vAB7DfZSm 0NAoDX0ZvNzzIRbiM5uhYqDUSIsmOwUiJLjveLysmIRaAc/K/Euml0obCUJfanD7 KSs7SZYp24ZTDNsvsWbsk1y8QvAGkZBfuykfRCMxsmGRyN2hS6H/ftttCUrj8Qn1 /hJDBegEUJgYDItHpE7KJeBHMFNUB2sTHPbzx+a5WPYxeYJevAeTwAg0/nRobXRz ER7BLIU= =29JQ -----END PGP PUBLIC KEY BLOCK-----
OpenPGP_signature.asc
(application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEi7H30oz3aW2/T3GSXGVAZ9ODsf8FAmpgdPcFAwAAAAAACgkQXGVAZ9ODsf9Y 2g/+NNgcu5sBvc+sXXetawS7lsdveTpXhWt81Lv/QOFeoPIYQiChogZ2JuwkWPdq01UThgNQ9/My UNEUI/W2vrNuFxIZvTDQDNx3j/nzeiDHcvXzegWByy/TvNqOoCsFzCcCMLADDwb5P6CzBZPmZ52H H9k1zidiPdPjgz2Zx4BEKqhlOesaLIZbfAvhz/ML2WeSoXX0RKuD/iqYt+K0HJbyv0YquOl+8sDw qgahp7pnHxoRmidzM+leQcZ48Zmk9QG58BwMeWIfXFiXOjqFqKYlNGfaupbFCgKUz69A0djMZbuC M071zDlstSdlNm0yjemFKH1IfxLMNLGAPqhObyye3H+W3X9NXGuQNkbCnw8YumzILSSGK0dbp2Ic /ehTk4ogB2hH8wZNNoFm7ScAW7y/7ft4enK288qbQcu5uOZ+vG9Z27u9fOuWVcNZV8SMO+9WOdq0 eO/GNTsFGlpNonYafptUj3rrbmV/jY9ekbo4vzgE13xZcWGYMVXVM0G4b5weIteK23Fau9AnPuAp w7jzbWVJHquyUQ6bZ3Y2usLwXUPVPM+06mKbdTq1UYokoVXqiE8fCdTyzWfUquouidjjCCMVF0u9 O+f8CwbobDn40rgFjVOVnl759lQYH2zjOqbc+kGX0KqTLRG/7ND4JmIgfIwOEdkdhOcvOHRzU23j Djw= =AmVx -----END PGP SIGNATURE-----