Package Details: surfer-waveform-git 0.5.0.r49.g79b75e1-1

Git Clone URL: https://aur.archlinux.org/surfer-waveform-git.git (read-only, click to copy)
Package Base: surfer-waveform-git
Description: A waveform viewer with a focus on a snappy usable interface, and extensibility.
Upstream URL: https://gitlab.com/surfer-project/surfer
Licenses: EUPL-1.2
Conflicts: surfer-waveform
Provides: surfer-waveform
Submitter: delta64
Maintainer: delta64 (TheZoq2)
Last Packager: delta64
Votes: 2
Popularity: 0.003286
First Submitted: 2024-02-27 23:49 (UTC)
Last Updated: 2026-01-04 00:32 (UTC)

Latest Comments

1 2 3 Next › Last »

delta64 commented on 2026-01-04 12:45 (UTC)

If anyone else would like to be added as maintainer, I'd be happy to do so.

delta64 commented on 2026-01-04 00:33 (UTC)

Apologies for the delay, should be fixed now.

5hayanB commented on 2025-08-10 05:41 (UTC) (edited on 2025-08-10 09:04 (UTC) by 5hayanB)

After debugging, I found that there was indeed a discrepancy in RUSTFLAGS. RUSTFLAGS was not set when building from source, but was getting RUSTFLAGS=-C force-frame-pointers=yes -C debuginfo=2 --remap-path-prefix=$HOME/surfer-waveform-git/src=/usr/src/debug/surfer-waveform-git when using makepkg. Exporting the RUSTFLAGS from the makepkg environment while building from source also results in OOM. Adding !debug to the options array in PKGBUILD fixes the OOM error. Any reason not to add !debug in the PKGBUILD?

delta64 commented on 2025-08-09 13:19 (UTC)

Please try makepkg rather than paru. I can see https://github.com/Morganamilo/paru/issues/1383.

If that still fails I think you need to start dumping RUSTFLAGS and look for discrepancies. This will be hard for me to debug because it Works On My Machine^TM, but any additional information you can gather is greatly appreciated.

5hayanB commented on 2025-08-09 12:47 (UTC)

I am building surfer from source via the following commands.

export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
export PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1
cargo build --frozen --release --all-features

These commands are also present in the build() function of the PKGBUILD. Building from source compiles successfully but installing via paru gets OOM killed. Following are the flags in my makepkg.conf.

CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions \
        -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security \
        -fstack-clash-protection -fcf-protection \
        -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now \
         -Wl,-z,pack-relative-relocs"

LTOFLAGS won't matter due to options=(!lto) in PKGBUILD.

Also, https://gitlab.com/surfer-project/surfer/-/issues/424 was resolved so sed -i 's/#!\[deny(unused_crate_dependencies)\]//g' libsurfer/src/lib.rs can be removed now.

delta64 commented on 2025-07-13 23:22 (UTC)

I am getting OOM errors when building surfer via paru.

In my experience the two main factors that determine memory usage during compilation are 1) number of parallel processes used 2) optimisation level (especially LTO).

Please double check that the compilation flags (e.g RUSTFLAGS) are the exact same both times; I suspect you'll find a discrepancy.

5hayanB commented on 2025-07-12 13:44 (UTC)

I am getting OOM errors when building surfer via paru. However, following the build steps defined in the PKGBUILD (exporting the environment variables and executing cargo build --release --frozen --all-features) and building surfer from a freshly cloned repository, it is successfully building and no OOM errors are being reported. What could be going wrong?

delta64 commented on 2025-07-06 17:45 (UTC)

I am getting the following error.

Thanks, I've added a sed to workaround it and reported this upstream: https://gitlab.com/surfer-project/surfer/-/issues/424

5hayanB commented on 2025-07-05 12:55 (UTC)

I am getting the following error.

error: extern crate `serde_stacker` is unused in crate `libsurfer`
  |
  = help: remove the dependency or add `use serde_stacker as _;` to the crate root
note: the lint level is defined here
 --> libsurfer/src/lib.rs:1:9
  |
1 | #![deny(unused_crate_dependencies)]
  |         ^^^^^^^^^^^^^^^^^^^^^^^^^

warning: unused variable: `t`
  --> libsurfer/src/translation/mod.rs:88:35
   |
88 |             AnyTranslator::Python(t) => {}
   |                                   ^ help: if this is intentional, prefix it with an underscore: `_t`
   |
   = note: `#[warn(unused_variables)]` on by default

warning: unused variable: `t`
   --> libsurfer/src/translation/mod.rs:141:35
    |
141 |             AnyTranslator::Python(t) => None,
    |                                   ^ help: if this is intentional, prefix it with an underscore: `_t`

warning: `libsurfer` (lib) generated 2 warnings
error: could not compile `libsurfer` (lib) due to 1 previous error; 2 warnings emitted

However, building surfer with cargo build --release seems to work. I would suggest to temporarily change the cargo build --release --frozen --all-features to cargo build --release