Arch's modern mesa package no longer ships the classic libOSMesa, which BambuStudio links against (-lOSMesa). The Arch build therefore fails at the final link step with /usr/bin/ld: cannot find -lOSMesa, and even if it linked, the resulting package would not run on a stock Arch system.
mesa-amber still provides libOSMesa but conflicts with mesa, so it cannot simply be installed alongside it.
Fix: during the dependency step, extract libOSMesa.so.8 (and its libglapi.so.0 dependency) out of the mesa-amber package without installing it, so the link succeeds; and bundle both into the produced package so it also runs on a stock Arch install.
Arch's modern
mesapackage no longer ships the classiclibOSMesa, which BambuStudio links against (-lOSMesa). The Arch build therefore fails at the final link step with/usr/bin/ld: cannot find -lOSMesa, and even if it linked, the resulting package would not run on a stock Arch system.mesa-amberstill provideslibOSMesabut conflicts withmesa, so it cannot simply be installed alongside it.Fix: during the dependency step, extract
libOSMesa.so.8(and itslibglapi.so.0dependency) out of themesa-amberpackage without installing it, so the link succeeds; and bundle both into the produced package so it also runs on a stock Arch install.