@fabian-ang
My bad, I missed that earlier comment. I know downgrading is not a solution, but in my opinion, neither is having to rebuild. So I switched to sunshine-bin and reported it there (it has the same issue).
Git Clone URL: | https://aur.archlinux.org/sunshine.git (read-only, click to copy) |
---|---|
Package Base: | sunshine |
Description: | A self-hosted GameStream host for Moonlight |
Upstream URL: | https://github.com/LizardByte/Sunshine |
Keywords: | gaming moonlight streaming |
Licenses: | GPL-3.0-only |
Submitter: | hadogenes |
Maintainer: | dr460nf1r3 (xiota) |
Last Packager: | xiota |
Votes: | 59 |
Popularity: | 3.00 |
First Submitted: | 2021-04-26 11:33 (UTC) |
Last Updated: | 2025-05-05 04:18 (UTC) |
@fabian-ang
My bad, I missed that earlier comment. I know downgrading is not a solution, but in my opinion, neither is having to rebuild. So I switched to sunshine-bin and reported it there (it has the same issue).
@krims0n As mentioned previously you need to rebuild sunshine. Downgrading dependencies or symlinking so files is the wrong way to go.
It's even mentioned in the wiki
sunshine: error while loading shared libraries: libminiupnpc.so.18: cannot open shared object file: No such file or directory
Downgrading miniupnpc to 2.2.8 is a workaround.
@oskenso Don't do that. When there's a library version mismatch, rebuild the package. If there are errors during build, flag for maintainer review. (I've already rebuilt this package to confirm that will fix the library reference.)
I have a temporary workaround for the latest version that breaks because of a missing dependency
➜ ldd /usr/bin/sunshine | grep libmini
libminiupnpc.so.18 => not found
➜ pacman -Ql miniupnpc | grep libmini
miniupnpc /usr/lib/libminiupnpc.so
miniupnpc /usr/lib/libminiupnpc.so.19
I symlinked the library to the latest and then modified the .service file
sudo ln -s /usr/lib/libminiupnpc.so.19 /usr/lib/libminiupnpc.so.18
Then edit ~/.config/systemd/user/xdg-desktop-autostart.target.wants/sunshine.service
and add the following line under [Service]
Environment="LD_LIBRARY_PATH=/usr/lib"
Make sure to reload using systemctl --user daemon-reload
Just say it:
Before installing, it is best to make sure avahi
is enabled and running:
sudo systemctl enable avahi-daemon.service
Then reboot.
If avahi is not running, you might probably not be able to access the webUI at all. (that almost makes me mad..)
Hi @xiota, thank you for your help, all solved with pacman -Syudd
:) Have a nice day
@Scla Try upgrading all packages with pacman -Syudd
before rebuilding. If that still refuses to upgrade miniupnpc
, try building in a clean chroot.
Hello, I am currently facing an issue when updating to the latest version.
error: failed to prepare transaction (could not satisfy dependencies)
:: installing miniupnpc (2.3.0-1) breaks dependency 'libminiupnpc.so=18-64' required by sunshine
miniupnpc 2.3.0 came out yesterday on extra repository. Thanks!
@murkl
Pinned Comments
xiota commented on 2025-02-19 18:03 (UTC) (edited on 2025-05-02 04:06 (UTC) by xiota)
Rebuilding AUR packages for library updates and mismatches is inevitable. This package uses sodeps to reduce breaks caused by library updates. When ready to rebuild, use a clean chroot or force upgrades with
pacman -Syudd
.xiota commented on 2024-07-17 01:54 (UTC) (edited on 2025-02-19 18:06 (UTC) by xiota)
Switched default to
cuda
disabled (no nvenc) becausecuda
is a heavy package and Nvidia users are minority on Linux.Nvidia users, install
cuda
manually before building or run as_build_cuda=t makepkg
(method to pass variables to AUR helpers may vary).xiota commented on 2024-07-09 23:41 (UTC) (edited on 2025-02-19 18:07 (UTC) by xiota)
For those concerned about "losing" upstream support for AUR, such support had already officially been discontinued long ago. The relevant comment from 2023-02-21 is pinned.
Before reporting issues to upstream, confirm them with git checkout or upstream binaries.
Package-specific issues should be reported here.
<deleted-account> commented on 2023-02-21 02:33 (UTC)
In order to simplify maintenance of Sunshine, we have decided to drop support of this AUR package, since we are now publishing a pre-compiled pkg.tar.zst package as well as the PKGBUILD file to our GitHub releases. If someone would like to take over the AUR it would be ideal if there is communication with us in our Discord. Please reach out if you're interested. Thanks!