openarena mouse not working on multiple openbsd systems

2024-05-16 Thread Divan Santana
Greetings :)

So I've tried openarena on 7.5 on multiple systems [1,2], both systems
the mouse refuses to work, the left / right movement is not working.

The one system, it briefly works but stops after less then 15s.

I've tried launching the game with:

SDL_VIDEO_X11_DGAMOUSE=0

I've also tried this setting

root@cephas:~# cat /etc/X11/xorg.conf
Section "Module"
SubSection "extmod"
# Don't initialize the DGA extension
Option "omit xfree86-dga"
EndSubSection
EndSection

After restarting xenodm, I can see in the Xorg log, it's read the config
file, but the issue persists in the game.

Any ideas?

[1]:
OpenBSD 7.5 (GENERIC.MP) #82: Wed Mar 20 15:48:40 MDT 2024
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 67784667136 (64644MB)
avail mem = 65708625920 (62664MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.6 @ 0xb9ad6000 (43 entries)
bios0: vendor American Megatrends International, LLC. version "1.93" date 
01/26/2024
bios0: Micro-Star International Co., Ltd. MS-7E26
efi0 at bios0: UEFI 2.9
efi0: American Megatrends rev 0x50020
acpi0 at bios0: ACPI 6.5
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT SSDT FIDT MCFG HPET WDRT UEFI FPDT VFCT SSDT SSDT 
SSDT SSDT SSDT SSDT WSMT APIC IVRS SSDT SSDT SSDT SSDT SSDT BGRT
acpi0: wakeup devices GPP3(S4) GPP4(S4) GPP5(S4) GPP6(S4) GP17(S4) XHC0(S4) 
XHC1(S4) XHC2(S4) GPP0(S4) GPP1(S4) GPP2(S4) GPP7(S4) UP00(S4) DP48(S4) 
EP00(S4) DP50(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimcfg0 at acpi0
acpimcfg0: addr 0xe000, bus 0-255
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Ryzen 9 7900 12-Core Processor, 3700.00 MHz, 19-61-02, patch 0a601206
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,HWPSTATE,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,PQM,AVX512F,AVX512DQ,RDSEED,ADX,SMAP,AVX512IFMA,CLFLUSHOPT,CLWB,AVX512CD,SHA,AVX512BW,AVX512VL,AVX512VBMI,UMIP,PKU,L1DF,IBPB,IBRS,STIBP,STIBP_ALL,IBRS_PREF,IBRS_SM,SSBD,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 1MB 64b/line 
8-way L2 cache, 32MB 64b/line 16-way L3 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 25MHz
cpu0: mwait min=64, max=64, C-substates=1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: AMD Ryzen 9 7900 12-Core Processor, 3700.00 MHz, 19-61-02, patch 0a601206
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,HWPSTATE,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,PQM,AVX512F,AVX512DQ,RDSEED,ADX,SMAP,AVX512IFMA,CLFLUSHOPT,CLWB,AVX512CD,SHA,AVX512BW,AVX512VL,AVX512VBMI,UMIP,PKU,L1DF,IBPB,IBRS,STIBP,STIBP_ALL,IBRS_PREF,IBRS_SM,SSBD,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu1: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 1MB 64b/line 
8-way L2 cache, 32MB 64b/line 16-way L3 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: AMD Ryzen 9 7900 12-Core Processor, 3700.00 MHz, 19-61-02, patch 0a601206
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,HWPSTATE,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,PQM,AVX512F,AVX512DQ,RDSEED,ADX,SMAP,AVX512IFMA,CLFLUSHOPT,CLWB,AVX512CD,SHA,AVX512BW,AVX512VL,AVX512VBMI,UMIP,PKU,L1DF,IBPB,IBRS,STIBP,STIBP_ALL,IBRS_PREF,IBRS_SM,SSBD,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu2: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 1MB 64b/line 
8-way L2 cache, 32MB 64b/line 16-way L3 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: AMD Ryzen 9 7900 12-Core Processor, 3700.00 MHz, 19-61-02, patch 0a601206
cpu3: 

Re: openarena crash 7.5

2024-05-12 Thread Divan Santana
Stuart Henderson  writes:

> On 2024/05/10 13:34, Divan Santana wrote:
>> Thomas Frohwein  writes:
>> 
>> > On Thu, May 09, 2024 at 07:22:50PM +0200, Divan Santana wrote:
>> >> Greetings :)
>> >> 
>> >> Is openarena suppose to work from ports?  Or perhaps it's my laptop
>> >> that's not compatible with it? 
>> 
>> > This issue is fine to raise on ports@. 
>> 
>> Noted.
>> 
>> 
>> > It's a BTCFI issue, see from
>> > ktrace(1)/kdump(1) output:
>> 
>> > 67964 openarena-client PSIG  SIGILL SIG_DFL code=ILL_BTCFI 
>> > addr=0xf9ba34f3000 trapno=21
>> 
>> Thanks.  In layman's terms?  Does this mean it's broken on all openbsd's
>> or just my CPU/graphics card?
>
> It's broken on newer intel CPUs.
>
> It can probably be worked-around with this:
>
> Index: Makefile
> ===
> RCS file: /cvs/ports/games/openarena/Makefile,v
> diff -u -p -r1.26 Makefile
> --- Makefile  25 Sep 2023 17:07:29 -  1.26
> +++ Makefile  10 May 2024 12:31:08 -
> @@ -1,4 +1,5 @@
>  ONLY_FOR_ARCHS = amd64 i386 macppc
> +USE_NOBTCFI =Yes
>
>  BROKEN-i386 =code/qcommon/vm_x86.c:(.text+0x18): undefined 
> reference to `callMask'
>
> @@ -15,8 +16,8 @@ E_V =   ${V}#   engine version
>
>  PKGNAME =openarena-${V}
>
> -REVISION-main =  1
> -REVISION-server =0
> +REVISION-main =  2
> +REVISION-server =1
>
>  PKG_ARCH-data =  *

This patch, does indeed make it build and launch!  Thank you very much
Stuart.

Sadly, in the game, it works for a few seconds, then there is a brief
graphics jerk or something, then my mouse no longer moves left or right.
I can still walk etc, but not move the mouse left or right.

I did try SDL_VIDEO_X11_DGAMOUSE=0 set, and without it, but the issue
occurs in both.  I'm played with different graphics settings in the game
too, but it seems the issue persists.



Re: openarena crash 7.5

2024-05-10 Thread Divan Santana
Thomas Frohwein  writes:

> On Thu, May 09, 2024 at 07:22:50PM +0200, Divan Santana wrote:
>> Greetings :)
>> 
>> Is openarena suppose to work from ports?  Or perhaps it's my laptop
>> that's not compatible with it? 

> This issue is fine to raise on ports@. 

Noted.


> It's a BTCFI issue, see from
> ktrace(1)/kdump(1) output:

> 67964 openarena-client PSIG  SIGILL SIG_DFL code=ILL_BTCFI addr=0xf9ba34f3000 
> trapno=21

Thanks.  In layman's terms?  Does this mean it's broken on all openbsd's
or just my CPU/graphics card?



openarena crash 7.5

2024-05-09 Thread Divan Santana
Greetings :)

Is openarena suppose to work from ports?  Or perhaps it's my laptop
that's not compatible with it? 

ds@swift ~ $ /usr/local/bin/openarena-client
ioq3+oa 1.36 openbsd-amd64 Mar 15 2024
- FS_Startup -
Current search path:
/home/ds//.openarena/baseoa
/usr/local/share/openarena/baseoa/pak6-patch088.pk3 (711 files)
/usr/local/share/openarena/baseoa/pak6-patch085.pk3 (559 files)
/usr/local/share/openarena/baseoa/pak6-misc.pk3 (229 files)
/usr/local/share/openarena/baseoa/pak5-TA.pk3 (139 files)
/usr/local/share/openarena/baseoa/pak4-textures.pk3 (1753 files)
/usr/local/share/openarena/baseoa/pak2-players.pk3 (669 files)
/usr/local/share/openarena/baseoa/pak2-players-mature.pk3 (231 files)
/usr/local/share/openarena/baseoa/pak1-maps.pk3 (100 files)
/usr/local/share/openarena/baseoa/pak0.pk3 (1042 files)
/usr/local/share/openarena/baseoa

--
5433 files in pk3 files
execing default.cfg
couldn't exec q3config.cfg
couldn't exec autoexec.cfg
Hunk_Clear: reset the hunk ok

(zenity:54194): Gtk-WARNING **: 19:07:49.508: Failed to parse 
/home/ds/.config/gtk-4.0/settings.ini: Key file does not start with a group
- Client Initialization -
Couldn't read q3history.
- Initializing Renderer 
---
QKEY building random string
QKEY generated
- Client Initialization Complete -
- R_Init -
SDL using driver "x11"
Initializing OpenGL display
Estimated display aspect: 1.778
...setting mode 3: 640 480
Using 8/8/8 Color bits, 24 depth, 8 stencil display.
Available modes: '320x180 432x243 480x270 512x288 640x360 720x405 800x450 
864x486 960x540 1024x576 1280x720 1440x810 1600x900 1920x1080 2560x1440 360x202 
684x384 1368x768 640x400 840x525 960x600 1280x800 1680x1050 700x450 1400x900 
320x240 400x300 512x384 640x480 700x525 800x600 896x672 928x696 960x720 
1024x768 1280x960 1400x1050 640x512 1280x1024'
GL_RENDERER: Mesa Intel(R) Graphics (ADL GT2)
Initializing OpenGL extensions
...ignoring GL_EXT_texture_compression_s3tc
...ignoring GL_S3_s3tc
...using GL_EXT_texture_env_add
...using GL_ARB_multitexture
...using GL_EXT_compiled_vertex_array
...ignoring GL_EXT_texture_filter_anisotropic
...ignoring GL_ARB_vertex_shader

GL_VENDOR: Intel
GL_RENDERER: Mesa Intel(R) Graphics (ADL GT2)
GL_VERSION: 4.6 (Compatibility Profile) Mesa 23.1.9
GL_EXTENSIONS: GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color 
GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_subtexture 
GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array 
GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters 
GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters 
GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp 
GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp 
GL_SGIS_texture_lod GL_ARB_framebuffer_sRGB GL_ARB_multitexture 
GL_EXT_framebuffer_sRGB GL_IBM_multimode_draw_arrays 
GL_IBM_texture_mirrored_repeat GL_3DFX_texture_compression_FXT1 
GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix 
GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays 
GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic 
GL_EXT_texture_lod_bias GL_INGR_blend_func_separate GL_NV_blend_square 
GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_env_combine4 
GL_S3_s3tc GL_SUN_multi_draw_arrays GL_ARB_texture_border_clamp 
GL_ARB_texture_compression GL_EXT_framebuffer_object 
GL_EXT_texture_compression_s3tc GL_EXT_texture_env_combine 
GL_EXT_texture_env_dot3 GL_MESA_window_pos GL_NV_packed_depth_stencil 
GL_NV_texture_rectangle GL_ARB_depth_texture GL_ARB_occlusion_query 
GL_ARB_shadow GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar 
GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_window_pos 
GL_ATI_fragment_shader GL_EXT_stencil_two_side GL_EXT_texture_cube_map 
GL_NV_depth_clamp GL_NV_fog_distance GL_NV_half_float GL_APPLE_packed_pixels 
GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader 
GL_ARB_shader_objects GL_ARB_vertex_program GL_ARB_vertex_shader 
GL_ATI_draw_buffers GL_ATI_texture_env_combine3 GL_ATI_texture_float 
GL_EXT_depth_bounds_test GL_EXT_shadow_funcs GL_EXT_stencil_wrap 
GL_MESA_pack_invert GL_NV_primitive_restart GL_ARB_depth_clamp 
GL_ARB_fragment_program_shadow GL_ARB_half_float_pixel GL_ARB_occlusion_query2 
GL_ARB_point_sprite GL_ARB_shading_language_100 GL_ARB_sync 
GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object 
GL_ATI_blend_equation_separate GL_EXT_blend_equation_separate 
GL_OES_read_format GL_ARB_color_buffer_float GL_ARB_pixel_buffer_object 
GL_ARB_texture_compression_rgtc GL_ARB_texture_float GL_ARB_texture_rectangle 
GL_ATI_texture_compression_3dc GL_EXT_packed_float GL_EXT_pixel_buffer_object 
GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc 
GL_EXT_texture_rectangle GL_EXT_texture_sRGB 

Re: teleport/tsh on openbsd

2023-01-21 Thread Divan Santana
Stuart Henderson  writes:

> On 2023/01/18 19:49, Divan Santana wrote:
>> Greetings :)
>> 
>> I'm wondering if anyone has attempting to build teleport[1] on openbsd.
>> 
>> (I'm specifically after tsh functionality).
>> 
>> There was a bug[2] about this upstream which was closed due to inactivity.
>> 
>> But perhaps some OpenBSD user has attempting or succeeded to build it.
>> 
>> There is a freebsd port for it.
>> 
>> [1]: https://github.com/gravitational/teleport
>> [2]: https://github.com/gravitational/teleport/issues/840
>> [3]: https://www.freshports.org/security/teleport
>> 
>
> Try it - the problem with termios mentioned in that ~6-year-old issue
> upstream is not likely to be a problem any more, at least on the more
> common machine architectures.

I don't know much about building packages.  But I tried the below and
got these results.

git clone https://github.com/gravitational/teleport.git gravitational-teleport
cd gravitational-teleport
git checkout tags/v11.2.1 -b v11.2.1


CC=clang

gmake build/tsh

It failed with:

#+begin_example
  # github.com/flynn/u2f/u2fhid
  
../../go/pkg/mod/github.com/flynn/u2f@v0.0.0-20180613185708-15554eb68e5d/u2fhid/hid.go:52:22:
 undefined: hid.Devices
  
../../go/pkg/mod/github.com/flynn/u2f@v0.0.0-20180613185708-15554eb68e5d/u2fhid/hid.go:69:22:
 info.Open undefined (type *hid.DeviceInfo has no field or method Open)
  # github.com/gravitational/teleport/lib/utils
  lib/utils/disk.go:43:24: stat.Blocks undefined (type syscall.Statfs_t has no 
field or method Blocks)
  lib/utils/disk.go:43:36: stat.Bfree undefined (type syscall.Statfs_t has no 
field or method Bfree)
  lib/utils/disk.go:43:58: stat.Blocks undefined (type syscall.Statfs_t has no 
field or method Blocks)
  lib/utils/disk.go:110:20: undefined: syscall.S_IWGRP
  lib/utils/disk.go:111:18: undefined: syscall.S_IXGRP
  lib/utils/disk.go:119:18: undefined: syscall.S_IWOTH
  lib/utils/disk.go:120:16: undefined: syscall.S_IXOTH
  gmake: *** [Makefile:290: build/tsh] Error 2
  ds:/home/ds/src/gravitational-teleport:5764$ CGO_ENABLED=1
  ds:/home/ds/src/gravitational-teleport:5765$ gmake build/tsh
  GOOS=openbsd GOARCH=amd64 CGO_ENABLED=1 go build -tags "   " -o build/tsh  
-ldflags '-w -s' -trimpath ./tool/tsh
  # github.com/flynn/u2f/u2fhid
  
../../go/pkg/mod/github.com/flynn/u2f@v0.0.0-20180613185708-15554eb68e5d/u2fhid/hid.go:52:22:
 undefined: hid.Devices
  
../../go/pkg/mod/github.com/flynn/u2f@v0.0.0-20180613185708-15554eb68e5d/u2fhid/hid.go:69:22:
 info.Open undefined (type *hid.DeviceInfo has no field or method Open)
  # github.com/gravitational/teleport/lib/utils
  lib/utils/disk.go:43:24: stat.Blocks undefined (type syscall.Statfs_t has no 
field or method Blocks)
  lib/utils/disk.go:43:36: stat.Bfree undefined (type syscall.Statfs_t has no 
field or method Bfree)
  lib/utils/disk.go:43:58: stat.Blocks undefined (type syscall.Statfs_t has no 
field or method Blocks)
  lib/utils/disk.go:110:20: undefined: syscall.S_IWGRP
  lib/utils/disk.go:111:18: undefined: syscall.S_IXGRP
  lib/utils/disk.go:119:18: undefined: syscall.S_IWOTH
  lib/utils/disk.go:120:16: undefined: syscall.S_IXOTH
  gmake: *** [Makefile:290: build/tsh] Error 2
#+end_example



teleport/tsh on openbsd

2023-01-18 Thread Divan Santana
Greetings :)

I'm wondering if anyone has attempting to build teleport[1] on openbsd.

(I'm specifically after tsh functionality).

There was a bug[2] about this upstream which was closed due to inactivity.

But perhaps some OpenBSD user has attempting or succeeded to build it.

There is a freebsd port for it.

[1]: https://github.com/gravitational/teleport
[2]: https://github.com/gravitational/teleport/issues/840
[3]: https://www.freshports.org/security/teleport



Re: NEW: Nextcloud-25.0.0

2022-11-17 Thread Divan Santana
> I confirm the need for removing the duplicates.
> This version brings some js in /nextcloud/dist which needs a pass in
> httpd:
>
> location "/nextcloud/dist/*" {
> root "/nextcloud"
> request strip 1
> pass
> }
>
> Testing on a clean 7.2 install.

This should be added to the /usr/local/share/doc/pkg-readmes/nextcloud
file in 7.2.