noisetorch / NoiseTorch

Real-time microphone noise suppression on Linux.
Other
9.22k stars 229 forks source link

OBS RISCV build failure #403

Open mstsky115 opened 1 year ago

mstsky115 commented 1 year ago

Name: noisetorch Version: 0.12.2 Release: 0 Summary: Real-time microphone noise suppression on Linux License: GPL-3.0-or-later URL: https://github.com/NoiseTorch/NoiseTorch

osc service disabledrun

Source0: NoiseTorch-%{version}.tar.gz

osc service disabledrun

Source1: vendor.tar.gz BuildRequires: c++_compiler BuildRequires: cmake BuildRequires: git-core BuildRequires: hicolor-icon-theme BuildRequires: golang(API) = 1.18

%description NoiseTorch is an easy to use open source application for Linux with PulseAudio. It creates a virtual microphone that suppresses noise, in any application. Use whichever conferencing or VOIP application you like and simply select the NoiseTorch Virtual Microphone as input to torch the sound of your mechanical keyboard, computer fans, trains and the likes.

%prep %autosetup -p1 -n NoiseTorch-%{version} -a1

%build pushd c/ladspa %make_build ldd rnnoise_ladspa.so popd go generate

-tags release would enable the auto-updater (update.go)

CGO_ENABLED=0 GOOS=linux go build \ %ifnarch ppc64 -buildmode=pie \ %endif -a -ldflags '-w -X main.version=%{version} -X main.distribution=rpm' .

%install install -D -m 644 assets/icon/noisetorch.png %{buildroot}/%{_datadir}/icons/hicolor/256x256/apps/noisetorch.png install -D -m 644 assets/noisetorch.desktop %{buildroot}/%{_datadir}/applications/noisetorch.desktop install -D -m 755 noisetorch %{buildroot}/%{_bindir}/noisetorch

%files %license LICENSE %doc README.md %caps(cap_sys_resource+ep) %{_bindir}/noisetorch %{_datadir}/applications/noisetorch.desktop %{_datadir}/icons/hicolor/256x256/apps/noisetorch.png

%changelog

It‘s the spec file content

and the build result is [ 173s] ~/rpmbuild/BUILD/NoiseTorch-0.12.2 [ 173s] + go generate [ 178s] + CGO_ENABLED=0 [ 178s] + GOOS=linux [ 178s] + go build -buildmode=pie -a -ldflags '-w -X main.version=0.12.2 -X main.distribution=rpm' . [ 279s] # golang.org/x/exp/shiny/driver/x11driver [ 279s] vendor/golang.org/x/exp/shiny/driver/x11driver/buffer.go:111:12: undefined: shmClose [ 279s] vendor/golang.org/x/exp/shiny/driver/x11driver/screen.go:328:23: undefined: shmOpen [ 279s] vendor/golang.org/x/exp/shiny/driver/x11driver/screen.go:334:5: undefined: shmClose [ 292s] error: Bad exit status from /var/tmp/rpm-tmp.WsW8eK (%build)

ZyanKLee commented 1 year ago

I'm sorry, but I can't help here as I got no access to RISCV systems. Also this OBS build is not created nor supported by us, afaict. Can you please format the code and log as markdown code blocks and provide us with a link to the OBS project that you are referencing?

mstsky115 commented 1 year ago

https://build.opensuse.org/package/show/openSUSE:Factory:RISCV/noisetorch