Package Details: weylus 0.11.4-3

Git Clone URL: https://aur.archlinux.org/weylus.git (read-only, click to copy)
Package Base: weylus
Description: Use your tablet as graphic tablet/touch screen on your computer.
Upstream URL: https://github.com/H-M-H/Weylus
Licenses: AGPL3
Conflicts: weylus-bin
Submitter: HMH_13
Maintainer: HMH_13
Last Packager: HMH_13
Votes: 10
Popularity: 0.166035
First Submitted: 2021-03-10 11:33 (UTC)
Last Updated: 2024-10-17 08:48 (UTC)

Latest Comments

1 2 Next › Last »

HMH_13 commented on 2024-10-17 08:53 (UTC)

Thanks for the reports! Building should work again. But as already pointed out, the latest release is a little dated. If you want to try the latest master you can try weylus-git (not provided by myself but @PeterWang-dev).

dreieck commented on 2024-07-08 09:15 (UTC) (edited on 2024-07-08 09:20 (UTC) by dreieck)

build() fails for me with error[E0310]: the parameter typeTmay not live long enough:

==> Starting build()...
[...]
   Compiling futures-channel v0.3.17
error[E0310]: the parameter type `T` may not live long enough
    --> /var/cache/makepkg/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustc-serialize-0.3.24/src/serialize.rs:1155:5
     |
1155 |     fn decode<D: Decoder>(d: &mut D) -> Result<Cow<'static, T>, D::Error> {
     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |     |
     |     the parameter type `T` must be valid for the static lifetime...
     |     ...so that the type `T` will meet its required lifetime bounds...
     |
note: ...that is required by this bound
    --> /build/rust/src/rustc-1.79.0-src/library/alloc/src/borrow.rs:180:30
help: consider adding an explicit lifetime bound
     |
1151 | impl<'a, T: ?Sized + 'static> Decodable for Cow<'a, T>
     |                    +++++++++

   Compiling crc32fast v1.2.1
[...]
For more information about this error, try `rustc --explain E0310`.
error: could not compile `rustc-serialize` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

rustc --explain E0310:

A parameter type is missing a lifetime constraint or has a lifetime that does not live long enough.

Erroneous code example:

// This won't compile because T is not constrained to the static lifetime
// the reference needs
struct Foo<T> {
    foo: &'static T
}

Type parameters in type definitions have lifetimes associated with them that represent how long the data stored within them is guaranteed
to live. This lifetime must be as long as the data needs to be alive, and missing the constraint that denotes this will cause this error.

This will compile, because it has the constraint on the type parameter:

struct Foo<T: 'static> {
    foo: &'static T
}

↗ Upstream issue report.

Regards!

dreieck commented on 2024-07-08 09:06 (UTC)

Please move the rust download stuff out of build() into prepare() so that build() can run in an offline environment.

And also, please set $CARGO_HOME or such to a sub directory of $srcdir so that rust does not clutter the build user's home directory but everything that this PKGBUILD does is restrained to $srcdir and $pkgdir as it should be.

Regards and thanks for maintaining!

==> Starting build()...
    Updating git repository `https://github.com/H-M-H/autopilot-rs.git`
    Updating crates.io index
  Downloaded safemem v0.3.3
  Downloaded futures-sink v0.3.17
  Downloaded byte-tools v0.3.1
  Downloaded either v1.6.1
  Downloaded png v0.16.8
 Downloading 163 crates, remaining bytes: 3.7 MB          
[...]

Zorn commented on 2024-03-15 10:00 (UTC)

@nobane In fact, the project seems to be quite old and no longer maintained (it has been down for 2 years). I have sent source correction request to H-M-H on GitHub.

nobane commented on 2024-03-03 05:14 (UTC) (edited on 2024-03-03 05:15 (UTC) by nobane)

@Zorn if you clone the aur repo you can set the rust version with rustup before you build the package. I was able to get it to build with 1.52.0 (first version I decided to try, it may work on a more recent version):

git clone https://aur.archlinux.org/weylus
cd weylus
rustup override set 1.52.0
makepkg -si

Zorn commented on 2024-02-14 15:40 (UTC)

The compilation of Weylus fails due to the following error:

Compiling adler32 v1.2.0 error[E0310]: the parameter type T may not live long enough --> /home/zorn/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustc-serialize-0.3.24/src/serialize.rs:1155:5 | 1155 | fn decode<D: Decoder>(d: &mut D) -> Result<Cow<'static, T>, D::Error... | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | the parameter type T must be valid for the static lifetime... | ...so that the type T will meet its required lifetime bounds... | note: ...that is required by this bound --> /usr/src/debug/rust/rustc-1.76.0-src/library/alloc/src/borrow.rs:180:30 help: consider adding an explicit lifetime bound | 1151 | impl<'a, T: ?Sized + 'static> Decodable for Cow<'a, T> | +++++++++

Compiling log v0.3.9 Compiling memoffset v0.6.4 Compiling pin-utils v0.1.0 Compiling unicode-xid v0.0.3 Compiling term v0.4.6 Compiling num-rational v0.3.2 For more information about this error, try rustc --explain E0310. error: could not compile rustc-serialize (lib) due to 1 previous error warning: build failed, waiting for other jobs to finish...

hammer commented on 2022-05-20 15:58 (UTC)

Great, now it works!

HMH_13 commented on 2022-05-20 15:30 (UTC)

Ok, please try again. I think the problem was the linking order of some libraries which I have changed now.

hammer commented on 2022-05-17 02:48 (UTC)

When I change my rust toolchain from nightly to stable, this error disappear. I guess it will be an interesting bug :P. Thank you!