Package Details: pulseaudio-module-xrdp 0.7-2

Git Clone URL: https://aur.archlinux.org/pulseaudio-module-xrdp.git (read-only, click to copy)
Package Base: pulseaudio-module-xrdp
Description: xrdp pulseaudio module
Upstream URL: https://github.com/neutrinolabs/pulseaudio-module-xrdp
Licenses: LGPL-2.1-only
Conflicts: pulseaudio-module-xrdp
Provides: pulseaudio-module-xrdp
Submitter: kballen
Maintainer: Jat (rtrueck, D3vil0p3r, xiota)
Last Packager: xiota
Votes: 4
Popularity: 0.65
First Submitted: 2019-10-16 19:53 (UTC)
Last Updated: 2025-02-02 01:01 (UTC)

Dependencies (7)

Required by (0)

Sources (2)

Latest Comments

1 2 3 4 5 Next › Last »

TheLamer commented on 2025-02-02 03:03 (UTC)

Yeah, your logic is spot on, building now. Sorry if any false alarms.

xiota commented on 2025-02-02 01:20 (UTC) (edited on 2025-02-02 01:28 (UTC) by xiota)

This package has been successfully built on at least three different Arch machines. The way it wouldn't have worked was if repos were not up to date. Otherwise, it obtains the commit hash, not the release version.

$ _pulseaudio_ver=$(LANG=C LC_ALL=C pacman -Si pulseaudio | grep -Pom1 '^Version\s+:\s+\K(\S+)-[0-9\.]+')

$ echo $_pulseaudio_ver
17.0+r43+g3e2bb8a1e-1

$ _ref=$(sed -E 's&^\S+[+]g([a-f0-9]+)-\S+$&\1&' <<< ${_pulseaudio_ver})

$ echo $_ref
3e2bb8a1e

Package has been updated to include the tag prefix when the commit hash is not found in the pulseaudio version string. pkgrel was not bumped because there is no need to rebuild if already recently built.

TheLamer commented on 2025-02-02 01:08 (UTC)

This is on the pulseaudio checkout https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=pulseaudio-module-xrdp#n49 you can run this logic line on any arch distro and it will fail.

TheLamer commented on 2025-02-02 01:07 (UTC)

No, this is vanilla Arch, the package in repos right now starts with 17.0+ and the tag name is v17.0 I honestly cannot figure out how this could be working for anyone?

xiota commented on 2025-02-02 00:55 (UTC)

@TheLamer Are you on a distro with delayed updates? I'll revise to work better in that scenario, but would recommend switching to the testing repo on such distros.

TheLamer commented on 2025-02-01 22:17 (UTC) (edited on 2025-02-01 22:18 (UTC) by TheLamer)

This no longer builds due to git branch references:

155.5 Building pulseaudio...
155.5 error: pathspec '17.0' did not match any file(s) known to git

Looking at the branches on git they don't even have a 17.x or anything close to it:

0.9.15-stable
0.9.17-stable
0.9.18-stable
0.9.19-stable
0.9.20-stable
master
master-tx
merge-queue
routing
rtpoll
stable-1.x
stable-11.x
stable-12.x
stable-14.x
stable-16.x
stable-2.x
stable-3.x
stable-7.x
stable-queue

Sorry it is just logistics, they have a tag but it is all prepended with v IE:

v17.0

Just need to modify the PKGBUILD

xiota commented on 2025-01-29 16:23 (UTC)

Updated sync with extra/pulseaudio. Not changing depends on pulseaudio because module uses pulseaudio internal API. For pipewire, use aur/pipewire-module-xrdp.

rtrueck commented on 2025-01-25 08:02 (UTC) (edited on 2025-01-25 08:04 (UTC) by rtrueck)

PulseAudio is now based on Git instead of a release tarball, so we need to build it from the same version.


_commit="3e2bb8a1ece02ae4e2c217273c9c0929cb9f5cae"

source=(
    "git+https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git#commit=${_commit}"
    "git+${url}.git#branch=devel"
)

MasWag commented on 2025-01-17 11:47 (UTC)

Umm. It seems I still have the same issue as before

$ PULSE_SCRIPT=/etc/xrdp/pulse/default.pa  pulseaudio 
E: [pulseaudio] module.c: Module "module-xrdp-sink" version (17.0) doesn't match the expected version (17.0-43-g3e2bb).
E: [pulseaudio] main.c: Module load failed.
E: [pulseaudio] main.c: Failed to initialize daemon due to errors while executing startup commands. Source of commands: /etc/xrdp/pulse/default.pa

StarAssassin64 commented on 2025-01-16 04:00 (UTC)

fixed the issue, posted the fixed PKGBUILD on pastebin: https://pastebin.com/pjA3AixR

comment copy if you want to stay here:

# Maintainer: Jat <chat@jat.email>

pkgname='pulseaudio-module-xrdp'
pkgver='0.7'
pkgrel='1'
pkgdesc='PulseAudio modules for xrdp.'
arch=('i686' 'x86_64' 'armv6h' 'armv7l' 'aarch64')
url="https://github.com/neutrinolabs/pulseaudio-module-xrdp"
license=('LGPL-2.1')
depends=('pulseaudio' 'xrdp')
makedepends=('meson' 'check' 'doxygen' 'perl-xml-parser')
install="${pkgname}.install"

_pulseaudio_ver="17.0"

source=(
    "${url}/archive/refs/tags/v${pkgver}.tar.gz"
    "https://freedesktop.org/software/pulseaudio/releases/pulseaudio-${_pulseaudio_ver}.tar.xz"
)
sha256sums=(
    "be101538ebe891bd4ae9d533559b99cf07abf0bbce399f50f2d248f35c160a9d"
    "$(curl -fs "${source[1]}.sha256sum" | awk '{print $1}')"
)

prepare() {
    cd "${srcdir}/pulseaudio-${_pulseaudio_ver}"

    meson build
}

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"

    sed -i '\#-I $(PULSE_DIR)/src#a -I $(PULSE_DIR)/build \\' src/Makefile.am

    ./bootstrap
    ./configure "PULSE_DIR=${srcdir}/pulseaudio-${_pulseaudio_ver}"
    make
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"

    make DESTDIR="$pkgdir" install
}