You are not logged in.

#1 2025-05-09 19:37:21

joni_999
Member
Registered: 2024-12-30
Posts: 2

Need advice for maintaining my first AUR package (vpinball)

Hi!

I recently took over the broken and orphaned "vpinball" AUR package  (https://aur.archlinux.org/packages/vpinball) and am now trying to get it back to working condition.
This is my first time maintaining a package so please bear with me.

It seems for vpinball to work properly, various libraries are required, which on their github (https://github.com/vpinball/vpinball/bl … /README.md) they clone and build from source with their own external.sh script:
https://github.com/vpinball/vpinball/bl … xternal.sh

First thing I tried was simply executing this script inside the PKGBUILD, same as I did when I did the installation manually. But in the PKGBUILD the build of the ffmpeg libraries seems to fail with the following error. This does not happen when I execute the script in a regular shell.

GEN     libswresample/libswresample.ver
STRIP   libavcodec/x86/h26x/h2656_inter.o
STRIP   libavcodec/x86/vp9lpf_16bpp.o
LD      libswscale/libswscale.so.8
LD      libswresample/libswresample.so.5
STRIP   libavcodec/x86/vp9itxfm_16bpp.o
STRIP   libavcodec/x86/vp9lpf.o
/usr/bin/ld: /tmp/ccd0WNld.ltrans7.ltrans.o: warning: relocation against `mask24b' in read-only section `.text'
/usr/bin/ld: /tmp/ccd0WNld.ltrans7.ltrans.o: relocation R_X86_64_PC32 against undefined symbol `mask24l' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make: *** [ffbuild/library.mak:119: libswscale/libswscale.so.8] Error 1
make: *** Waiting for unfinished jobs....
STRIP   libavcodec/x86/vp9itxfm.o
==> ERROR: A failure occurred in build().
    Aborting...

pastebin of the entire ffmpeg build here:
https://pastebin.com/nN8Nvru0

Through trial & error I found out that unsetting the CFLAGS like this made the package build process run via "makepkg" or "pkgctl build" complete successfully:

CFLAGS= platforms/linux-x64/external.sh

(this is also the current commited state of the PKGBUILD)

The build worked, but now the program won't start properly. Unfortunately it doesn't provide much info on why. But I suspect some issue linked to way the build was done without CFLAGS.

This is what the program shows when I try to start it:

(base) [joni@linuxjoni04 vpinball]$ ./VPinballX_BGFX -Play /home/joni/git/VPinballX/tables/Apollo\ 13\ \(Sega\ 1995\)\ w\ VR\ Room\ v2.1.4.vpx
2025-05-09 20:25:00.098 INFO  [230256] [VPApp::InitInstance@958] Starting VPX - v10.8.1 Beta (Rev. 9999 (unknown), linux BGFX 64bits)
2025-05-09 20:25:00.098 INFO  [230256] [VPApp::InitInstance@959] Settings file was loaded from /home/joni/.vpinball/VPinballX.ini
2025-05-09 20:25:00.262 INFO  [230256] [VPApp::InitInstance@970] SDL video driver: wayland
2025-05-09 20:25:00.262 INFO  [230256] [VPApp::InitInstance@974] m_logicalNumberOfProcessors=24
2025-05-09 20:25:00.262 INFO  [230256] [VPApp::InitInstance@975] m_szMyPath=/opt/vpinball/
2025-05-09 20:25:00.262 INFO  [230256] [VPApp::InitInstance@976] m_szMyPrefPath=/home/joni/.vpinball/
2025-05-09 20:25:00.262 INFO  [230256] [VPApp::InitInstance@1111] Loading table from command line option: /home/joni/git/VPinballX/tables/Apollo 13 (Sega 1995) w VR Room v2.1.4.vpx
2025-05-09 20:25:00.262 INFO  [230256] [VPinball::OnInitialUpdate@2007] OnInitialUpdate
2025-05-09 20:25:00.262 INFO  [230256] [PinTable::LoadGameFromFilename@3555] LoadGameFromFilename /home/joni/git/VPinballX/tables/Apollo 13 (Sega 1995) w VR Room v2.1.4.vpx
2025-05-09 20:25:00.262 INFO  [230256] [Settings::LoadFromFile@354] Settings file was loaded from '/home/joni/git/VPinballX/tables/Apollo 13 (Sega 1995) w VR Room v2.1.4.ini'
2025-05-09 20:25:00.294 INFO  [230256] [PinTable::LoadGameFromFilename@3680] LoadData loaded
2025-05-09 20:25:00.716 INFO  [230256] [PinTable::LoadGameFromFilename@3713] GameItem loaded
2025-05-09 20:25:00.716 INFO  [230256] [PinSound::initSDLAudio@100] Sound Device not set in VPinball.ini.  Using default
2025-05-09 20:25:00.725 INFO  [230256] [PinSound::initSDLAudio@144] SDL Mixer allocated 100 channels.
2025-05-09 20:25:00.725 INFO  [230256] [PinSound::PinSound@56] Output Device Settings: Freq: 48000 Format (SDL_AudioFormat): 32784 channels: 2, driver: pipewire
2025-05-09 20:25:00.775 INFO  [230256] [PinSound::getChannel@1455] Allocated another 100 mixer channels.  Total Avail: 200
2025-05-09 20:25:00.810 INFO  [230256] [PinSound::getChannel@1455] Allocated another 100 mixer channels.  Total Avail: 300
2025-05-09 20:25:00.857 INFO  [230256] [PinTable::LoadGameFromFilename@3730] Sound loaded
2025-05-09 20:25:01.329 INFO  [230256] [PinTable::LoadGameFromFilename@3830] Image loaded
2025-05-09 20:25:01.329 INFO  [230256] [PinTable::LoadGameFromFilename@3850] Font loaded
2025-05-09 20:25:01.339 INFO  [230256] [PinTable::LoadGameFromFilename@3872] Collection loaded
2025-05-09 20:25:01.341 INFO  [230256] [PinTable::LoadGameFromFilename@3880] IEditable PostLoad performed
2025-05-09 20:25:01.342 INFO  [230256] [PinTable::InitTablePostLoad@1615] InitTablePostLoad
2025-05-09 20:25:01.342 INFO  [230256] [VPinball::LoadFileName@1382] UI Post Load Start
2025-05-09 20:25:01.342 INFO  [230256] [VPinball::LoadFileName@1405] UI Post Load End
2025-05-09 20:25:01.342 INFO  [230256] [MsgPlugin::Load@443] Plugin vpx loaded (statically linked plugin)
2025-05-09 20:25:01.342 INFO  [230256] [Settings::GetSection@25] Creating new setting section 'Plugin.AlphaDMD' for custom table/plugin use
2025-05-09 20:25:01.342 INFO  [230256] [WinMain@1338] Plugin AlphaDMD was found but is disabled (/opt/vpinball/plugins/alphadmd/plugin-alphadmd.so)
2025-05-09 20:25:01.342 INFO  [230256] [Settings::GetSection@25] Creating new setting section 'Plugin.B2S' for custom table/plugin use
2025-05-09 20:25:01.342 INFO  [230256] [WinMain@1338] Plugin B2S was found but is disabled (/opt/vpinball/plugins/b2s/plugin-b2s.so)
2025-05-09 20:25:01.342 INFO  [230256] [Settings::GetSection@25] Creating new setting section 'Plugin.DMDUtil' for custom table/plugin use
2025-05-09 20:25:01.342 INFO  [230256] [WinMain@1338] Plugin DMDUtil was found but is disabled (/opt/vpinball/plugins/dmdutil/plugin-dmdutil.so)
2025-05-09 20:25:01.342 INFO  [230256] [Settings::GetSection@25] Creating new setting section 'Plugin.FlexDMD' for custom table/plugin use
2025-05-09 20:25:01.342 INFO  [230256] [WinMain@1338] Plugin FlexDMD was found but is disabled (/opt/vpinball/plugins/flexdmd/plugin-flexdmd.so)
2025-05-09 20:25:01.342 INFO  [230256] [Settings::GetSection@25] Creating new setting section 'Plugin.HelloScript' for custom table/plugin use
2025-05-09 20:25:01.342 INFO  [230256] [WinMain@1338] Plugin HelloScript was found but is disabled (/opt/vpinball/plugins/helloscript/plugin-helloscript.so)
2025-05-09 20:25:01.342 INFO  [230256] [Settings::GetSection@25] Creating new setting section 'Plugin.HelloWorld' for custom table/plugin use
2025-05-09 20:25:01.342 INFO  [230256] [WinMain@1338] Plugin HelloWorld was found but is disabled (/opt/vpinball/plugins/helloworld/plugin-helloworld.so)
2025-05-09 20:25:01.342 INFO  [230256] [Settings::GetSection@25] Creating new setting section 'Plugin.PinMAME' for custom table/plugin use
2025-05-09 20:25:01.342 INFO  [230256] [WinMain@1338] Plugin PinMAME was found but is disabled (/opt/vpinball/plugins/pinmame/plugin-pinmame.so)
2025-05-09 20:25:01.342 INFO  [230256] [Settings::GetSection@25] Creating new setting section 'Plugin.Serum' for custom table/plugin use
2025-05-09 20:25:01.342 INFO  [230256] [WinMain@1338] Plugin Serum was found but is disabled (/opt/vpinball/plugins/serum/plugin-serum.so)
2025-05-09 20:25:01.342 INFO  [230256] [VPinball::DoPlay@1059] Starting Play mode [table: Apollo 13 (Sega 1995), play mode: 0]
2025-05-09 20:25:01.343 INFO  [230256] [PinTable::CopyForPlay@2216] Duplicating parts for live instance
2025-05-09 20:25:01.349 INFO  [230256] [PinTable::CopyForPlay@2262] Duplicating collections
2025-05-09 20:25:01.349 INFO  [230256] [PinTable::CopyForPlay@2302] Implicit Textbox DMD added: name=ImplicitDMD
2025-05-09 20:25:01.349 INFO  [230256] [PinTable::CopyForPlay@2328] Implicit Flasher DMD added: name=ImplicitDMD2
2025-05-09 20:25:01.349 INFO  [230256] [PinTable::CopyForPlay@2352] Compiling script
2025-05-09 20:25:01.352 INFO  [230256] [ProgressDialog::SetProgress@92] Creating Player... 1%
2025-05-09 20:25:01.352 INFO  [230256] [Player::Player@278] Creating main window
2025-05-09 20:25:01.354 ERROR [230256] [VPX::Window::Window@327] Failed to get display refresh rate, defaulting to 60Hz
2025-05-09 20:25:01.354 INFO  [230256] [Player::Player@331] Synchronization mode: 0 with maximum FPS: 180, display FPS: 60
2025-05-09 20:25:01.354 INFO  [230256] [Player::Player@418] Initializing player
2025-05-09 20:25:01.354 INFO  [230256] [ProgressDialog::SetProgress@92] Initializing Visuals... 10%
2025-05-09 20:25:01.354 INFO  [230256] [Player::Player@434] Initializing renderer (global states & resources)
2025-05-09 20:25:01.354 INFO  [230256] [RenderDevice::RenderDevice@713] Using graphics backend: Vulkan (available: Noop, Direct3D11, Direct3D12, OpenGL, Vulkan)
2025-05-09 20:25:01.426 INFO  [230256] [RenderDevice::RenderDevice@787] BGFX initialized using Vulkan backend
2025-05-09 20:25:01.438 INFO  [230256] [Renderer::Renderer@265] Computing environment map radiance
2025-05-09 20:25:01.504 INFO  [230256] [Renderer::Renderer@291] Environment map radiance computed
2025-05-09 20:25:01.504 INFO  [230256] [Player::Player@485] Initializing inputs & implicit objects
2025-05-09 20:25:01.504 INFO  [230256] [SDLInputHandler::SDLInputHandler@13] SDL input handler registered
2025-05-09 20:25:01.533 INFO  [230256] [SDLInputHandler::SDLInputHandler@25] Game controller mappings added: count=2, path=/home/joni/.vpinball/gamecontrollerdb.txt
2025-05-09 20:25:01.534 INFO  [230256] [OpenPinDevHandler::OpenPinDevHandler@216] OpenPinDev input handler registered
2025-05-09 20:25:01.537 INFO  [230256] [Player::Player@593] Initializing physics
2025-05-09 20:25:01.537 INFO  [230256] [ProgressDialog::SetProgress@92] Initializing Physics... 30%
2025-05-09 20:25:01.541 INFO  [230256] [PhysicsEngine::PhysicsEngine@96] Initializing octree
2025-05-09 20:25:01.546 INFO  [230256] [ProgressDialog::SetProgress@92] Loading Textures... 50%
2025-05-09 20:25:01.546 INFO  [230256] [Player::Player@618] Texture cache found at /home/joni/.vpinball/Cache/Apollo 13 (Sega 1995) w VR Room v2.1.4/used_textures.xml
2025-05-09 20:25:01.546 INFO  [230256] [Player::Player@637] Texture preloading: 'rubber-post-t1-black'
2025-05-09 20:25:01.546 INFO  [230256] [Player::Player@637] Texture preloading: 'Left_rail_brighter'
2025-05-09 20:25:01.547 INFO  [230256] [Player::Player@637] Texture preloading: 'dome jurassic off'
2025-05-09 20:25:01.547 INFO  [230256] [Player::Player@637] Texture preloading: 'Post2'
2025-05-09 20:25:01.547 INFO  [230256] [Player::Player@637] Texture preloading: 's'
2025-05-09 20:25:01.547 INFO  [230256] [Player::Player@637] Texture preloading: 'pf0 apollo13'
2025-05-09 20:25:01.555 INFO  [230256] [Player::Player@637] Texture preloading: 'dome jurassic on'
2025-05-09 20:25:01.555 INFO  [230256] [Player::Player@637] Texture preloading: 't'
2025-05-09 20:25:01.555 INFO  [230256] [Player::Player@637] Texture preloading: 'metal3'
2025-05-09 20:25:01.555 INFO  [230256] [Player::Player@637] Texture preloading: 'Insert_RectangleDDOn'
2025-05-09 20:25:01.555 INFO  [230256] [Player::Player@637] Texture preloading: 'Black'
2025-05-09 20:25:01.555 INFO  [230256] [Player::Player@637] Texture preloading: 'wire_dark'
2025-05-09 20:25:01.555 INFO  [230256] [Player::Player@637] Texture preloading: 'MetalRampDecals'
2025-05-09 20:25:01.555 INFO  [230256] [Player::Player@637] Texture preloading: 'Apron131'
2025-05-09 20:25:01.558 INFO  [230256] [Player::Player@637] Texture preloading: 'bumperNormal1'
2025-05-09 20:25:01.558 INFO  [230256] [Player::Player@637] Texture preloading: 'FC_Red'
2025-05-09 20:25:01.558 INFO  [230256] [Player::Player@637] Texture preloading: 'Post_Yellow'
2025-05-09 20:25:01.558 INFO  [230256] [Player::Player@637] Texture preloading: 'pf9 apollo13'
2025-05-09 20:25:01.565 INFO  [230256] [Player::Player@637] Texture preloading: 'pf5 apollo13'
2025-05-09 20:25:01.571 INFO  [230256] [Player::Player@637] Texture preloading: 'rubber-post-t1-metal-gray'
2025-05-09 20:25:01.571 INFO  [230256] [Player::Player@637] Texture preloading: 'Insert_SolidOff'
2025-05-09 20:25:01.571 INFO  [230256] [Player::Player@637] Texture preloading: 'LUT16'
2025-05-09 20:25:01.571 INFO  [230256] [Player::Player@637] Texture preloading: 'Insert_triangle1off2'
2025-05-09 20:25:01.571 INFO  [230256] [Player::Player@637] Texture preloading: 'BackWall'
2025-05-09 20:25:01.571 INFO  [230256] [Player::Player@637] Texture preloading: 'wireRamps'
2025-05-09 20:25:01.575 INFO  [230256] [Player::Player@637] Texture preloading: 'LanderTexture16'
2025-05-09 20:25:01.576 INFO  [230256] [Player::Player@637] Texture preloading: 'pf7 apollo13'
2025-05-09 20:25:01.581 INFO  [230256] [Player::Player@637] Texture preloading: 'Flhighlight'
2025-05-09 20:25:01.581 INFO  [230256] [Player::Player@637] Texture preloading: 'Post4'
2025-05-09 20:25:01.581 INFO  [230256] [Player::Player@637] Texture preloading: 'MoonTexture-ColorMapm16'
2025-05-09 20:25:01.582 INFO  [230256] [Player::Player@637] Texture preloading: 'Insert_round1onb'
2025-05-09 20:25:01.582 INFO  [230256] [Player::Player@637] Texture preloading: 'mars'
2025-05-09 20:25:01.582 INFO  [230256] [Player::Player@637] Texture preloading: 'plunger'
2025-05-09 20:25:01.582 INFO  [230256] [Player::Player@637] Texture preloading: 'o'
2025-05-09 20:25:01.582 INFO  [230256] [Player::Player@637] Texture preloading: 'plastic1'
2025-05-09 20:25:01.582 INFO  [230256] [Player::Player@637] Texture preloading: 'Flbumperbase'
2025-05-09 20:25:01.583 INFO  [230256] [Player::Player@637] Texture preloading: 'bumper_cap_moda13'
2025-05-09 20:25:01.583 INFO  [230256] [Player::Player@637] Texture preloading: 'plastic3'
2025-05-09 20:25:01.584 INFO  [230256] [Player::Player@637] Texture preloading: 'simplelightwhite'
2025-05-09 20:25:01.584 INFO  [230256] [Player::Player@637] Texture preloading: 'Right_rail_brighter'
2025-05-09 20:25:01.584 INFO  [230256] [Player::Player@637] Texture preloading: 'moonRamp12'
2025-05-09 20:25:01.588 INFO  [230256] [Player::Player@637] Texture preloading: 'plastic2'
2025-05-09 20:25:01.589 INFO  [230256] [Player::Player@637] Texture preloading: 'Insert_RectangleDDOff'
2025-05-09 20:25:01.589 INFO  [230256] [Player::Player@637] Texture preloading: 'StandUpmgrl'
2025-05-09 20:25:01.589 INFO  [230256] [Player::Player@637] Texture preloading: 'dome jurassic on white'
2025-05-09 20:25:01.589 INFO  [230256] [Player::Player@637] Texture preloading: 'apron002'
2025-05-09 20:25:01.593 INFO  [230256] [Player::Player@637] Texture preloading: 'Insert_triangle1on5'
2025-05-09 20:25:01.593 INFO  [230256] [Player::Player@637] Texture preloading: 'l'
2025-05-09 20:25:01.593 INFO  [230256] [Player::Player@637] Texture preloading: 'BallRelease14'
2025-05-09 20:25:01.594 INFO  [230256] [Player::Player@637] Texture preloading: 'ballshadow'
2025-05-09 20:25:01.594 INFO  [230256] [Player::Player@637] Texture preloading: 'wood2'
2025-05-09 20:25:01.594 INFO  [230256] [Player::Player@637] Texture preloading: 'a'
2025-05-09 20:25:01.594 INFO  [230256] [Player::Player@637] Texture preloading: 'moonHurryup'
2025-05-09 20:25:01.596 INFO  [230256] [Player::Player@637] Texture preloading: 'Insert_SolidOn'
2025-05-09 20:25:01.596 INFO  [230256] [Player::Player@637] Texture preloading: 'BackWall2'
2025-05-09 20:25:01.596 INFO  [230256] [Player::Player@637] Texture preloading: 'pf8 apollo13'
2025-05-09 20:25:01.604 INFO  [230256] [Player::Player@637] Texture preloading: 'flipper-r-bwData'
2025-05-09 20:25:01.604 INFO  [230256] [Player::Player@637] Texture preloading: 'kickerwilliamsgrey'
2025-05-09 20:25:01.604 INFO  [230256] [Player::Player@637] Texture preloading: 'Insert_rect1onvertical'
2025-05-09 20:25:01.604 INFO  [230256] [Player::Player@637] Texture preloading: 'RocketTexture-ColorMapc'
2025-05-09 20:25:01.604 INFO  [230256] [Player::Player@637] Texture preloading: 'Flbumpershadow'
2025-05-09 20:25:01.604 INFO  [230256] [Player::Player@637] Texture preloading: '_default_glowtrans'
2025-05-09 20:25:01.604 INFO  [230256] [Player::Player@637] Texture preloading: 'domeflashwhite'
2025-05-09 20:25:01.605 INFO  [230256] [Player::Player@637] Texture preloading: 'flipper-l-bwData'
2025-05-09 20:25:01.605 INFO  [230256] [Player::Player@637] Texture preloading: 'f'
2025-05-09 20:25:01.605 INFO  [230256] [Player::Player@637] Texture preloading: 'g5kscratchedmorelight'
2025-05-09 20:25:01.605 INFO  [230256] [Player::Player@637] Texture preloading: 'Insert_round1off5b'
2025-05-09 20:25:01.605 INFO  [230256] [Player::Player@637] Texture preloading: 'flippers_shadow'
2025-05-09 20:25:01.605 INFO  [230256] [Player::Player@637] Texture preloading: 'Insert_triangle3off_'
2025-05-09 20:25:01.605 INFO  [230256] [Player::Player@637] Texture preloading: 'pf'
2025-05-09 20:25:01.609 INFO  [230256] [Player::Player@637] Texture preloading: 'pf1 apollo13'
2025-05-09 20:25:01.615 INFO  [230256] [Player::Player@637] Texture preloading: 'pf00 apollo13'
2025-05-09 20:25:01.621 INFO  [230256] [Player::Player@637] Texture preloading: 'pf2 apollo13'
2025-05-09 20:25:01.626 INFO  [230256] [Player::Player@637] Texture preloading: 'scratched metal'
2025-05-09 20:25:01.626 INFO  [230256] [Player::Player@637] Texture preloading: 'plywood01'
2025-05-09 20:25:01.626 INFO  [230256] [Player::Player@637] Texture preloading: 'text'
2025-05-09 20:25:01.630 INFO  [230256] [Player::Player@637] Texture preloading: 'apollo 13 Desktop BG'
2025-05-09 20:25:01.639 INFO  [230256] [Player::Player@637] Texture preloading: 'shinyenvironment3blur4'
2025-05-09 20:25:01.639 INFO  [230256] [Player::Player@637] Texture preloading: 'spotred1'
2025-05-09 20:25:01.639 INFO  [230256] [Player::Player@637] Texture preloading: 'spinner nettoy'
2025-05-09 20:25:01.640 INFO  [230256] [Player::Player@637] Texture preloading: 'pf4 apollo13'
2025-05-09 20:25:01.646 INFO  [230256] [Player::Player@637] Texture preloading: 'bsrtx7'
2025-05-09 20:25:01.646 INFO  [230256] [Player::Player@637] Texture preloading: 'Insert_triangle3on_'
2025-05-09 20:25:01.646 INFO  [230256] [Player::Player@637] Texture preloading: 'pf6 apollo13'
2025-05-09 20:25:01.651 INFO  [230256] [Player::Player@637] Texture preloading: 'StandUpmwh'
2025-05-09 20:25:01.651 INFO  [230256] [Player::Player@637] Texture preloading: 'Red_bumper_Texture1'
2025-05-09 20:25:01.652 INFO  [230256] [Player::Player@637] Texture preloading: 'Flbumperbulb'
2025-05-09 20:25:01.652 INFO  [230256] [Player::Player@637] Texture preloading: 'StandUpmyel'
2025-05-09 20:25:01.652 INFO  [230256] [Player::Player@637] Texture preloading: 'pf3 apollo13'
2025-05-09 20:25:01.658 INFO  [230256] [Player::Player@637] Texture preloading: 'StandUpm2bl'
2025-05-09 20:25:01.658 INFO  [230256] [Player::Player@637] Texture preloading: 'b'
2025-05-09 20:25:01.658 INFO  [230256] [Player::Player@637] Texture preloading: 'ball-light-hf'
2025-05-09 20:25:01.658 INFO  [230256] [Player::Player@637] Texture preloading: 'dome jurassic off white'
2025-05-09 20:25:01.658 INFO  [230256] [Player::Player@637] Texture preloading: 'Insert_rect1off'
2025-05-09 20:25:01.658 INFO  [230256] [Player::Player@652] Initializing renderer
2025-05-09 20:25:01.658 INFO  [230256] [ProgressDialog::SetProgress@92] Initializing Renderer... 60%
2025-05-09 20:25:01.673 INFO  [230256] [Standalone::PreStartup@68] Performing pre-startup standalone actions
2025-05-09 20:25:01.673 INFO  [230256] [Player::Player@690] Starting script
2025-05-09 20:25:01.674 INFO  [230256] [find_case_insensitive_file_path@473] case insensitive file match: requested "/opt/vpinball/scripts/SEGA2.VBS", actual "/opt/vpinball/scripts/sega2.vbs"
2025-05-09 20:25:01.676 INFO  [230256] [external_log_info@867] L"Controller" redefined
2025-05-09 20:25:01.676 INFO  [230256] [external_log_info@867] L"UsePdbLeds" redefined
2025-05-09 20:25:01.677 INFO  [230256] [ScriptGlobalTable::Invoke@4156] dispId=824 (0x00000338), wFlags=3, hres=-2147467259
2025-05-09 20:25:01.677 INFO  [230256] [ScriptGlobalTable::Invoke@4156] dispId=824 (0x00000338), wFlags=3, hres=-2147467259
2025-05-09 20:25:01.677 INFO  [230256] [ScriptGlobalTable::Invoke@4156] dispId=824 (0x00000338), wFlags=3, hres=-2147467259
2025-05-09 20:25:01.677 INFO  [230256] [ScriptGlobalTable::Invoke@4156] dispId=824 (0x00000338), wFlags=3, hres=-2147467259
2025-05-09 20:25:01.677 INFO  [230256] [ScriptGlobalTable::Invoke@4156] dispId=824 (0x00000338), wFlags=3, hres=-2147467259
2025-05-09 20:25:01.677 INFO  [230256] [ScriptGlobalTable::Invoke@4156] dispId=824 (0x00000338), wFlags=3, hres=-2147467259
2025-05-09 20:25:01.677 INFO  [230256] [ScriptGlobalTable::Invoke@4156] dispId=824 (0x00000338), wFlags=3, hres=-2147467259
2025-05-09 20:25:01.677 INFO  [230256] [ScriptGlobalTable::Invoke@4156] dispId=824 (0x00000338), wFlags=3, hres=-2147467259
2025-05-09 20:25:01.677 INFO  [230256] [ScriptGlobalTable::Invoke@4156] dispId=824 (0x00000338), wFlags=3, hres=-2147467259
2025-05-09 20:25:01.677 INFO  [230256] [ScriptGlobalTable::Invoke@4156] dispId=824 (0x00000338), wFlags=3, hres=-2147467259
2025-05-09 20:25:01.677 INFO  [230256] [external_create_object@847] progid=B2S.Server, hres=0x00000000
2025-05-09 20:25:01.677 INFO  [230256] [VPinMAMEController::VPinMAMEController@192] PinMAME path set to: /home/joni/.pinmame/
2025-05-09 20:25:01.677 INFO  [230256] [VPinMAMEController::VPinMAMEController@200] PinMAME ini path set to: /home/joni/.pinmame/ini/
2025-05-09 20:25:01.677 INFO  [230256] [VPinMAMEController::OnLogMessage@138] PinmameSetConfig(): sampleRate=44100, vpmPath=/home/joni/.pinmame/
2025-05-09 20:25:01.677 INFO  [230256] [VP::WindowManager::RegisterWindow@64] Register window: PinMAME
2025-05-09 20:25:01.694 INFO  [230256] [VPinMAMEController::put_GameName@705] newVal=apollo13
2025-05-09 20:25:01.694 INFO  [230256] [VPinMAMEController::put_GameName@710] Game found: name=apollo13, description=Apollo 13 (5.01, Display 5.00), manufacturer=Sega, year=1995
2025-05-09 20:25:01.698 WARN  [230256] [FormBackglass::LoadB2SData@351] No directb2s file found
2025-05-09 20:25:01.698 INFO  [230367] [VPinMAMEController::OnLogMessage@138] osd_display_loading_rom_message(): loading apolcpu.501 ...
2025-05-09 20:25:01.699 INFO  [230367] [VPinMAMEController::OnLogMessage@138] osd_display_loading_rom_message(): loading a13dspa.500 ...
2025-05-09 20:25:01.702 INFO  [230367] [VPinMAMEController::OnLogMessage@138] osd_display_loading_rom_message(): loading apollo13.u7 ...
2025-05-09 20:25:01.703 INFO  [230367] [VPinMAMEController::OnLogMessage@138] osd_display_loading_rom_message(): loading apollo13.u17...
2025-05-09 20:25:01.706 INFO  [230367] [VPinMAMEController::OnLogMessage@138] osd_display_loading_rom_message(): loading apollo13.u21...
2025-05-09 20:25:01.709 INFO  [230367] [VPinMAMEController::OnLogMessage@138] osd_display_loading_rom_message(): loading apollo13.u36...
2025-05-09 20:25:01.711 INFO  [230367] [VPinMAMEController::OnLogMessage@138] osd_display_loading_rom_message():
2025-05-09 20:25:01.712 INFO  [230367] [VPinMAMEController::OnLogMessage@138] osd_create_display: 60.00 fps
2025-05-09 20:25:01.714 INFO  [230367] [VPinMAMEController::OnAudioAvailable@101] format=0, channels=2, sampleRate=44100.00, framesPerSecond=60.00, samplesPerFrame=735, bufferSize=16384
2025-05-09 20:25:01.778 INFO  [230256] [Player::Player@743] Prerendering static parts
2025-05-09 20:25:01.778 INFO  [230256] [Renderer::RenderStaticPrepass@1599] Performing prerendering of static parts.
2025-05-09 20:25:01.778 INFO  [230256] [ProgressDialog::SetProgress@92] Prerendering Static Parts... 70%
2025-05-09 20:25:02.774 INFO  [230368] [Server::TimerElapsed@145] B2S polling status: lamps=0, solenoids=0, giStrings=0, leds=0

It gets stuck there and doesn't boot up the pinball game.

This message does not show up when I start the built version:

2025-05-09 20:25:02.774 INFO  [230368] [Server::TimerElapsed@145] B2S polling status: lamps=0, solenoids=0, giStrings=0, leds=0

I might want to ask the devs if they know why it could be stuck there.

Is there a way to make the PKGBUILD installation as similar as possible to a manual installation ? I feel like the CFLAGS and/or something else are tampering with the build.

Some additional things I need guidance on:
- Should I handle the library building differently than the provided external.sh? I don't think unsetting CFLAGS is a proper solution, right?
- Currently the package installs everything into /opt/vpinball there is most likely a better location for it. I did this because the finished build is the VPinballX_BGFX binary as well as ~20 libraries which the program seems to expect in the directory it is currently in.
- Do you have any general feedback on my PKGBUILD ?

Any feedback helps. Thank you!

Offline

#2 2025-05-09 19:40:31

joni_999
Member
Registered: 2024-12-30
Posts: 2

Re: Need advice for maintaining my first AUR package (vpinball)

Just noticed that this post probably belongs in the "Creating & Modifying Packages" , sorry!

Offline

#3 2025-05-09 20:31:15

loqs
Member
Registered: 2014-03-06
Posts: 18,433

Re: Need advice for maintaining my first AUR package (vpinball)

Did you try disabling LTO? I would suggest using the repository supplied versions of libraries rather than source building. If you must build from source include the sources in the sources array.  'gcc' 'pkgconf' 'autoconf' 'automake' 'libtool' 'bison' are all supplied by base-devel and should not be in makedepends.

Offline

Board footer

Powered by FluxBB