dflemstr / rq

Record Query - A tool for doing record analysis and transformation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AUR Build fails

johantiden opened this issue · comments

Trying to build build install record-query-git v1.0.0.r1.g594d6a9-1 via AUR.

PKGBUILD

# Maintainer: David Flemström <david.flemstrom@gmail.com>
pkgname=record-query-git
pkgver=v1.0.2.r4.g56f6314
pkgrel=1
epoch=
pkgdesc="A tool for doing record analysis and transformation"
arch=('x86_64')
url="https://github.com/dflemstr/rq"
license=('Apache')
groups=()
depends=(gcc-libs)
makedepends=(cargo git rust)
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(
  $pkgname::git+https://github.com/dflemstr/rq.git
)
noextract=()
md5sums=(
  SKIP
)

pkgver() {
  cd "$srcdir/$pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

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

check() {
  cd "$srcdir/$pkgname"
  cargo test
}

package() {
  cd "$srcdir/$pkgname"
  mkdir -p "$pkgdir/usr/bin"
  install -m755 target/release/rq -t "$pkgdir/usr/bin"
}

# vim:set ts=2 sw=2 et:

Output:

Preparing...
Checking record-query-git dependencies...
Resolving dependencies...
Checking inter-conflicts...

Building record-query-git...
Cloning record-query-git build files...
==> Making package: record-query-git v1.0.0.r1.g594d6a9-1 (tor 29 apr 2021 19:56:49)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning record-query-git git repo...
Cloning into bare repository '/var/tmp/pamac-build-johan/record-query-git/record-query-git'...
==> Validating source files with md5sums...
    record-query-git ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of record-query-git git repo...
Cloning into 'record-query-git'...
done.
==> Starting pkgver()...
==> Updated version: record-query-git v1.0.2.r4.g56f6314-1
==> Starting build()...
 Downloading crates ...
  Downloaded proc-macro2 v1.0.6
  Downloaded quote v1.0.2
  Downloaded quick-error v1.2.2
  Downloaded rle-decode-fast v1.0.1
  Downloaded num-integer v0.1.41
  Downloaded chrono v0.4.9
  Downloaded half v1.4.0
  Downloaded unicode-segmentation v1.6.0
  Downloaded libc v0.2.65
  Downloaded serde_test v0.8.23
  Downloaded serde-hjson v0.9.1
  Downloaded regex v1.3.1
  Downloaded serde_yaml v0.8.11
  Downloaded regex-automata v0.1.8
  Downloaded atty v0.2.13
  Downloaded ansi_term v0.12.1
  Downloaded crc v1.8.1
  Downloaded build_const v0.2.1
  Downloaded failure v0.1.6
  Downloaded failure_derive v0.1.6
  Downloaded aho-corasick v0.7.6
  Downloaded heck v0.3.1
  Downloaded adler32 v1.0.4
  Downloaded dirs-sys v0.3.4
  Downloaded matches v0.1.8
  Downloaded crc32fast v1.2.0
  Downloaded smallvec v0.6.13
  Downloaded nix v0.15.0
  Downloaded linked-hash-map v0.5.2
  Downloaded pkg-config v0.3.17
  Downloaded memchr v2.2.1
  Downloaded take_mut v0.2.2
  Downloaded log v0.4.8
  Downloaded unicode-bidi v0.3.4
  Downloaded idna v0.2.0
  Downloaded ryu v1.0.2
  Downloaded termcolor v1.0.5
  Downloaded thread_local v0.3.6
  Downloaded linked-hash-map v0.3.0
  Downloaded generic-array v0.12.3
  Downloaded unicode-xid v0.2.0
  Downloaded toml v0.5.5
  Downloaded clap v2.33.0
  Downloaded byteorder v1.3.2
  Downloaded env_logger v0.7.1
  Downloaded serde v0.8.23
  Downloaded vec_map v0.8.1
  Downloaded unicode-width v0.1.6
  Downloaded backtrace v0.3.40
  Downloaded libflate v0.1.27
  Downloaded rmp v0.8.8
  Downloaded pest v2.1.2
  Downloaded rustc-demangle v0.1.16
  Downloaded serde_cbor v0.10.2
  Downloaded itoa v0.4.4
  Downloaded synstructure v0.12.3
  Downloaded ucd-trie v0.1.2
  Downloaded unicode-normalization v0.1.9
  Downloaded directories v2.0.2
  Downloaded serde_json v1.0.41
  Downloaded yaml-rust v0.4.3
  Downloaded proc-macro-error v0.2.6
  Downloaded time v0.1.42
  Downloaded url v2.1.0
  Downloaded num-traits v0.1.43
  Downloaded bitflags v1.2.1
  Downloaded glob v0.3.0
  Downloaded maybe-uninit v2.0.0
  Downloaded autocfg v0.1.7
  Downloaded humantime v1.3.0
  Downloaded rand v0.4.6
  Downloaded typenum v1.11.2
  Downloaded void v1.0.2
  Downloaded ordered-float v1.0.2
  Downloaded textwrap v0.11.0
  Downloaded num_cpus v1.11.1
  Downloaded strsim v0.8.0
  Downloaded rand v0.3.23
  Downloaded ansi_term v0.11.0
  Downloaded digest v0.8.1
  Downloaded semver v0.9.0
  Downloaded backtrace-sys v0.1.32
  Downloaded semver-parser v0.7.0
  Downloaded vergen v3.0.4
  Downloaded percent-encoding v2.1.0
  Downloaded cfg-if v0.1.10
  Downloaded regex-syntax v0.6.12
  Downloaded serde v1.0.102
  Downloaded rmpv v0.4.2
  Downloaded git2 v0.10.1
  Downloaded structopt v0.3.4
  Downloaded cc v1.0.47
  Downloaded avro-rs v0.6.5
  Downloaded jobserver v0.1.17
  Downloaded structopt-derive v0.3.4
  Downloaded built v0.3.2
  Downloaded serde_derive v1.0.102
  Downloaded syn v1.0.8
  Downloaded serde-protobuf v0.8.1
  Downloaded num-traits v0.2.9
  Downloaded dtoa v0.4.4
  Downloaded libz-sys v1.0.25
  Downloaded csv-core v0.1.6
  Downloaded bstr v0.2.8
  Downloaded snap v0.2.5
  Downloaded csv v1.1.1
  Downloaded protobuf v2.8.1
  Downloaded libgit2-sys v0.9.1
   Compiling libc v0.2.65
   Compiling log v0.4.8
   Compiling cfg-if v0.1.10
   Compiling autocfg v0.1.7
   Compiling proc-macro2 v1.0.6
   Compiling memchr v2.2.1
   Compiling serde v1.0.102
   Compiling unicode-xid v0.2.0
   Compiling syn v1.0.8
   Compiling bitflags v1.2.1
   Compiling pkg-config v0.3.17
   Compiling maybe-uninit v2.0.0
   Compiling byteorder v1.3.2
   Compiling failure_derive v0.1.6
   Compiling lazy_static v1.4.0
   Compiling matches v0.1.8
   Compiling typenum v1.11.2
   Compiling ryu v1.0.2
   Compiling percent-encoding v2.1.0
   Compiling rustc-demangle v0.1.16
   Compiling regex-syntax v0.6.12
   Compiling semver-parser v0.7.0
   Compiling crc32fast v1.2.0
   Compiling build_const v0.2.1
   Compiling quick-error v1.2.2
   Compiling linked-hash-map v0.5.2
   Compiling unicode-width v0.1.6
   Compiling serde v0.8.23
   Compiling termcolor v1.0.5
   Compiling unicode-segmentation v1.6.0
   Compiling itoa v0.4.4
   Compiling protobuf v2.8.1
   Compiling rle-decode-fast v1.0.1
   Compiling adler32 v1.0.4
   Compiling ansi_term v0.11.0
   Compiling vec_map v0.8.1
   Compiling nix v0.15.0
   Compiling take_mut v0.2.2
   Compiling strsim v0.8.0
   Compiling ucd-trie v0.1.2
   Compiling half v1.4.0
   Compiling dtoa v0.4.4
   Compiling void v1.0.2
   Compiling ansi_term v0.12.1
   Compiling glob v0.3.0
   Compiling thread_local v0.3.6
   Compiling unicode-bidi v0.3.4
   Compiling num-traits v0.2.9
   Compiling num-integer v0.1.41
   Compiling semver v0.9.0
   Compiling humantime v1.3.0
   Compiling crc v1.8.1
   Compiling textwrap v0.11.0
   Compiling yaml-rust v0.4.3
   Compiling heck v0.3.1
   Compiling pest v2.1.2
   Compiling serde_test v0.8.23
   Compiling smallvec v0.6.13
   Compiling quote v1.0.2
   Compiling num_cpus v1.11.1
   Compiling jobserver v0.1.17
   Compiling time v0.1.42
   Compiling atty v0.2.13
   Compiling rand v0.4.6
   Compiling dirs-sys v0.3.4
   Compiling regex-automata v0.1.8
   Compiling snap v0.2.5
   Compiling libflate v0.1.27
   Compiling linked-hash-map v0.3.0
   Compiling generic-array v0.12.3
   Compiling unicode-normalization v0.1.9
   Compiling num-traits v0.1.43
   Compiling rmp v0.8.8
   Compiling ordered-float v1.0.2
   Compiling cc v1.0.47
   Compiling toml v0.5.5
   Compiling serde_json v1.0.41
   Compiling serde_yaml v0.8.11
   Compiling serde_cbor v0.10.2
   Compiling aho-corasick v0.7.6
   Compiling clap v2.33.0
   Compiling csv-core v0.1.6
   Compiling directories v2.0.2
   Compiling bstr v0.2.8
   Compiling rand v0.3.23
   Compiling digest v0.8.1
   Compiling chrono v0.4.9
   Compiling idna v0.2.0
   Compiling rmpv v0.4.2
   Compiling backtrace-sys v0.1.32
   Compiling libz-sys v1.0.25
   Compiling libgit2-sys v0.9.1
   Compiling regex v1.3.1
   Compiling synstructure v0.12.3
   Compiling proc-macro-error v0.2.6
   Compiling csv v1.1.1
   Compiling url v2.1.0
   Compiling vergen v3.0.4
   Compiling env_logger v0.7.1
   Compiling serde-hjson v0.9.1
   Compiling structopt-derive v0.3.4
   Compiling serde_derive v1.0.102
   Compiling backtrace v0.3.40
   Compiling failure v0.1.6
   Compiling structopt v0.3.4
   Compiling serde-protobuf v0.8.1
   Compiling avro-rs v0.6.5
   Compiling git2 v0.10.1
   Compiling built v0.3.2
   Compiling record-query v1.0.3-alpha.0 (/var/tmp/pamac-build-johan/record-query-git/src/record-query-git)
error: panic message is not a string literal
   --> src/value/avro.rs:173:34
    |
173 |             Err(error) => panic!(error),
    |                                  ^^^^^
    |
note: the lint level is defined here
   --> src/lib.rs:6:9
    |
6   | #![deny(warnings)]
    |         ^^^^^^^^
    = note: `#[deny(non_fmt_panic)]` implied by `#[deny(warnings)]`
    = note: this is no longer accepted in Rust 2021
help: add a "{}" format string to Display the message
    |
173 |             Err(error) => panic!("{}", error),
    |                                  ^^^^^
help: or use std::panic::panic_any instead
    |
173 |             Err(error) => std::panic::panic_any(error),
    |                           ^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to previous error

error: could not compile `record-query`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
==> ERROR: A failure occurred in build().
    Aborting...

I have no idea what this means. I don't use rust at all. Just wanted to raise it so that your are aware that the AUR build isn't perfect. :)
I don't know what extra info you may need.

$ cargo --version
cargo 1.51.0

Thanks for the report, I believe this is fixed by the recently merged #216

Works on my machine! Thank you!

   Compiling record-query v1.0.3-alpha.0 (/var/tmp/pamac-build-johan/record-query-git/src/record-query-git)
warning: trait objects without an explicit `dyn` are deprecated
   --> src/bin/rq.rs:374:14
    |
374 |     for e in failure::Fail::iter_causes(error) {
    |              ^^^^^^^^^^^^^ help: use `dyn`: `<dyn failure::Fail>`
    |
    = note: `#[warn(bare_trait_objects)]` on by default

warning: 1 warning emitted

    Finished release [optimized] target(s) in 2m 36s`