Package Details: solanum 5.0.0-1

Git Clone URL: https://aur.archlinux.org/solanum.git (read-only, click to copy)
Package Base: solanum
Description: A pomodoro timer for the GNOME desktop
Upstream URL: https://gitlab.gnome.org/World/solanum
Licenses: GPL3
Submitter: rafaelff
Maintainer: rafaelff
Last Packager: rafaelff
Votes: 15
Popularity: 0.065658
First Submitted: 2020-10-23 14:28 (UTC)
Last Updated: 2023-12-08 17:38 (UTC)

Latest Comments

rafaelff commented on 2023-10-02 18:00 (UTC)

@weitcis: I built locally in a clean chroot (as I always do) without any issue. Please double check your system to find what could be interfering in the build environment.

rafaelff commented on 2023-09-30 11:12 (UTC)

Removed out-of-date flag because this package is already in the latest version

@weitcis, consider reporting this to upstream. While there is the workaround you suggested, it looks a permanent solution would be interesting.

uetcis commented on 2023-09-30 03:02 (UTC) (edited on 2023-09-30 03:02 (UTC) by uetcis)

I got this error while compiling. Tried both stable and nightly versions of rust and neither of them was able to build this. A working workaround on my machine was to remove the existing Cargo.lock.

error[E0635]: unknown feature `proc_macro_span_shrink`
  --> /home/weitcis/.cache/paru/clone/solanum/src/build/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.54/src/lib.rs:92:30
   |
92 |     feature(proc_macro_span, proc_macro_span_shrink)
   |                              ^^^^^^^^^^^^^^^^^^^^^^

rafaelff commented on 2023-02-20 17:51 (UTC)

@saltedcoffii: thanks for the valuable info. I fixed the buildtype and changed rust to cargo.

saltedcoffii commented on 2023-02-20 10:45 (UTC)

Also, the rust dependency should be switched to cargo so that a user can choose between rust and rustup as either are sufficient. This is in compliance with rust packages in the core and extra repositories.

Thanks for your work on this package!!

saltedcoffii commented on 2023-02-20 10:40 (UTC) (edited on 2023-02-20 10:45 (UTC) by saltedcoffii)

@rafaelff: sorry it took me so long to respond. arch-meson is causing solanum to be built with debug flags due to these lines in the source code at build-aux/cargo.sh:

if [ $BUILDTYPE = "release" ]
then
    echo "RELEASE MODE"
    cargo build --manifest-path \
        "$MESON_SOURCE_ROOT"/Cargo.toml --release && \
        cp "$CARGO_TARGET_DIR"/release/"$APP_BIN" "$OUTPUT"
else
    echo "DEBUG MODE"
    cargo build --manifest-path \
        "$MESON_SOURCE_ROOT"/Cargo.toml --verbose && \
        cp "$CARGO_TARGET_DIR"/debug/"$APP_BIN" "$OUTPUT"
fi

It would probably be good enough to patch this file by not checking for the mode and just running the release code, e.g.,:

echo "RELEASE MODE"
cargo build --manifest-path \
    "$MESON_SOURCE_ROOT"/Cargo.toml --release && \
    cp "$CARGO_TARGET_DIR"/release/"$APP_BIN" "$OUTPUT"

Here's some output from the build process if you need extra proof:

  User defined options
    auto_features: enabled
    buildtype    : plain
    libexecdir   : lib
    prefix       : /usr
    sbindir      : bin
    wrap_mode    : nodownload
    b_lto        : true
    b_pie        : true

Found ninja-1.11.1 at /usr/bin/ninja
ninja: Entering directory `/build/solanum/src/build'
[1/26] Generating data/solanum_gresource with a custom command
[2/26] Generating po/cs/LC_MESSAGES/solanum-cs.mo with a custom command
[3/26] Generating po/da/LC_MESSAGES/solanum-da.mo with a custom command
[4/26] Generating po/es/LC_MESSAGES/solanum-es.mo with a custom command
[5/26] Generating po/de/LC_MESSAGES/solanum-de.mo with a custom command
[6/26] Generating po/gl/LC_MESSAGES/solanum-gl.mo with a custom command
[7/26] Generating po/id/LC_MESSAGES/solanum-id.mo with a custom command
[8/26] Generating po/it/LC_MESSAGES/solanum-it.mo with a custom command
[9/26] Generating po/en_GB/LC_MESSAGES/solanum-en_GB.mo with a custom command
[10/26] Generating po/eu/LC_MESSAGES/solanum-eu.mo with a custom command
[11/26] Generating po/fr/LC_MESSAGES/solanum-fr.mo with a custom command
[12/26] Generating po/fi/LC_MESSAGES/solanum-fi.mo with a custom command
[12/26] Generating src/cargo-build with a custom command
DEBUG MODE
    Updating crates.io index

Note that it says DEBUG MODE on the second to last line.

rafaelff commented on 2022-11-14 02:00 (UTC)

@saltedcoffii: Are you sure you are using the PKGBUILD as it is now? This PKGBUILD uses arch-meson script, provided by meson package. The arch-meson script specifies --buildtype=plain, so debug should not happen.

saltedcoffii commented on 2022-11-13 23:20 (UTC)

Solanum is building with debug mode. Consider passing --buildtype release to meson or find another fix?

ryzokuken commented on 2022-02-22 20:28 (UTC)

fails to build with

solanum/data/meson.build:3:0: ERROR: Function does not take positional arguments.