Package Details: hunter 1.3.5-2

Git Clone URL: https://aur.archlinux.org/hunter.git (read-only, click to copy)
Package Base: hunter
Description: Ranger-like CLI file browser written in Rust
Upstream URL: https://github.com/rabite0/hunter
Keywords: cli file manager mc ranger
Licenses: custom:WTFPL
Provides: hunter
Submitter: flacks
Maintainer: None
Last Packager: ragouel
Votes: 9
Popularity: 0.000042
First Submitted: 2019-04-07 20:48 (UTC)
Last Updated: 2020-05-13 00:20 (UTC)

Dependencies (23)

Required by (0)

Sources (1)

Latest Comments

solnce commented on 2021-10-19 12:49 (UTC) (edited on 2021-10-19 15:52 (UTC) by solnce)

Does not build for me.

==> Making package: hunter 1.3.5-2 (Tue 19 Oct 2021 02:47:28 PM CEST)
==> Retrieving sources...
  -> Downloading hunter-1.3.5.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   122  100   122    0     0    708      0 --:--:-- --:--:-- --:--:--   705
100  199k    0  199k    0     0   477k      0 --:--:-- --:--:-- --:--:--  477k
==> Validating source files with sha256sums...
    hunter-1.3.5.tar.gz ... Passed
==> Making package: hunter 1.3.5-2 (Tue 19 Oct 2021 02:47:30 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found hunter-1.3.5.tar.gz
==> Validating source files with sha256sums...
    hunter-1.3.5.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting hunter-1.3.5.tar.gz with bsdtar
==> Sources are ready.
hunter-1.3.5-2: parsing pkg list...
==> Making package: hunter 1.3.5-2 (Tue 19 Oct 2021 02:47:32 PM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
info: using existing install for 'nightly-x86_64-unknown-linux-gnu'
info: override toolchain for '/tmp/makepkg/hunter/src/hunter-1.3.5' set to 'nightly-x86_64-unknown-linux-gnu'

  nightly-x86_64-unknown-linux-gnu unchanged - rustc 1.58.0-nightly (bd41e09da 2021-10-18)

   Compiling libc v0.2.66
   Compiling pkg-config v0.3.17
   Compiling cfg-if v0.1.10
   Compiling autocfg v1.0.0
   Compiling lazy_static v1.4.0
   Compiling semver-parser v0.7.0
   Compiling autocfg v0.1.7
   Compiling bitflags v1.2.1
   Compiling proc-macro2 v0.4.30
   Compiling byteorder v1.3.2
   Compiling version_check v0.9.1
   Compiling unicode-xid v0.1.0
   Compiling winapi-build v0.1.1
   Compiling proc-macro2 v1.0.8
   Compiling scopeguard v1.0.0
   Compiling unicode-xid v0.2.0
   Compiling syn v0.15.44
   Compiling cc v1.0.50
   Compiling gstreamer v0.14.5
   Compiling either v1.5.3
   Compiling maybe-uninit v2.0.0
   Compiling rayon-core v1.7.0
   Compiling syn v1.0.14
   Compiling winapi v0.2.8
   Compiling muldiv v0.2.1
   Compiling log v0.4.8
   Compiling memchr v2.3.0
   Compiling gstreamer-base v0.14.4
   Compiling make-cmd v0.1.0
   Compiling failure_derive v0.1.6
   Compiling adler32 v1.0.4
   Compiling num-derive v0.2.5
   Compiling lazy_static v0.2.11
   Compiling rustc-demangle v0.1.16
   Compiling numtoa v0.1.0
   Compiling lzw v0.10.0
   Compiling gstreamer-video v0.14.5
   Compiling regex-syntax v0.3.9
   Compiling utf8-ranges v0.1.3
   Compiling stable_deref_trait v1.1.1
   Compiling slab v0.4.2
   Compiling lazycell v1.2.1
   Compiling unicode-segmentation v1.6.0
   Compiling ordermap v0.3.5
   Compiling color_quant v1.0.1
   Compiling ansi_term v0.11.0
   Compiling fixedbitset v0.1.9
   Compiling regex-syntax v0.6.13
   Compiling unicode-width v0.1.7
   Compiling same-file v1.0.6
   Compiling gstreamer-app v0.14.0
   Compiling gstreamer-player v0.14.0
   Compiling nom v2.2.1
   Compiling mime v0.3.16
   Compiling bytesize v1.0.0
   Compiling strsim v0.8.0
   Compiling vec_map v0.8.1
   Compiling scoped_threadpool v0.1.9
   Compiling fnv v1.0.6
   Compiling alphanumeric-sort v1.0.11
   Compiling strum v0.15.0
   Compiling rust-ini v0.13.0
   Compiling thread_local v1.0.1
   Compiling num-traits v0.2.11
   Compiling num-integer v0.1.42
   Compiling num-rational v0.2.3
   Compiling num-iter v0.1.40
   Compiling semver v0.9.0
   Compiling glib-sys v0.9.1
   Compiling gobject-sys v0.9.1
   Compiling gstreamer-sys v0.8.1
   Compiling gstreamer-base-sys v0.8.1
   Compiling gstreamer-video-sys v0.8.1
   Compiling gstreamer-app-sys v0.8.1
   Compiling gstreamer-player-sys v0.8.0
   Compiling crossbeam-utils v0.7.0
   Compiling crossbeam-epoch v0.8.0
   Compiling kernel32-sys v0.2.2
   Compiling unicase v2.6.0
   Compiling itertools v0.8.2
   Compiling backtrace-sys v0.1.32
   Compiling sixel-sys v0.3.1
   Compiling inflate v0.4.5
   Compiling owning_ref v0.3.3
   Compiling gif v0.10.3
   Compiling heck v0.3.1
   Compiling petgraph v0.4.13
   Compiling lscolors v0.5.0
   Compiling textwrap v0.11.0
   Compiling walkdir v2.3.1
   Compiling rustc_version v0.2.3
   Compiling osstrtools v0.2.1
   Compiling num_cpus v1.12.0
   Compiling memchr v0.1.11
   Compiling net2 v0.2.33
   Compiling iovec v0.1.4
   Compiling rand v0.4.6
   Compiling memchr v1.0.2
   Compiling inotify-sys v0.1.3
   Compiling time v0.1.42
   Compiling atty v0.2.14
   Compiling dirs v1.0.5
   Compiling filetime v0.2.8
   Compiling dirs-2 v1.1.0
   Compiling termion v1.5.5
   Compiling users v0.8.1
   Compiling signal-notify v0.1.3
   Compiling memoffset v0.5.3
   Compiling deflate v0.7.20
   Compiling base64 v0.10.1
   Compiling quote v0.6.13
   Compiling quote v1.0.2
   Compiling smallvec v0.6.13
   Compiling aho-corasick v0.7.6
   Compiling aho-corasick v0.5.3
   Compiling mio v0.6.21
   Compiling nom v3.2.1
   Compiling inotify v0.7.0
   Compiling clap v2.33.0
   Compiling pathbuftools v0.1.2
   Compiling hunter v1.3.5 (/tmp/makepkg/hunter/src/hunter-1.3.5)
   Compiling crossbeam-queue v0.2.1
   Compiling thread-id v2.0.0
   Compiling mime_guess v2.0.1
   Compiling parking_lot_core v0.2.14
   Compiling backtrace v0.3.42
   Compiling regex v1.3.3
   Compiling mio-extras v2.0.6
   Compiling glib v0.8.2
   Compiling chrono v0.4.10
   Compiling thread_local v0.2.7
   Compiling synstructure v0.12.3
   Compiling strum_macros v0.15.0
   Compiling derivative v1.0.3
   Compiling parking_lot v0.4.8
   Compiling notify v4.0.15
   Compiling parse-ansi v0.1.6
   Compiling png v0.14.1
   Compiling systemstat v0.1.5
   Compiling regex v0.1.80
   Compiling tiff v0.2.2
   Compiling tree_magic v0.2.1
   Compiling crossbeam-deque v0.7.2
   Compiling semver-parser v0.6.2
   Compiling failure v0.1.6
   Compiling sixel v0.3.2
   Compiling rayon v1.3.0
   Compiling jpeg-decoder v0.1.18
   Compiling async_value v0.2.5
   Compiling image v0.21.3
error[E0412]: cannot find type `NoneError` in module `std::option`
   --> src/fail.rs:329:24
    |
329 | impl From<std::option::NoneError> for HError {
    |                        ^^^^^^^^^ not found in `std::option`
    |
help: there is an enum variant `crate::HError::NoneError`; try using the variant's enum
    |
329 | impl From<crate::HError> for HError {
    |           ~~~~~~~~~~~~~

error[E0412]: cannot find type `NoneError` in module `std::option`
   --> src/fail.rs:330:34
    |
330 |     fn from(_error: std::option::NoneError) -> Self {
    |                                  ^^^^^^^^^ not found in `std::option`
    |
help: there is an enum variant `crate::HError::NoneError`; try using the variant's enum
    |
330 |     fn from(_error: crate::HError) -> Self {
    |                     ~~~~~~~~~~~~~

warning: unnecessary braces around block return value
  --> src/preview.rs:23:51
   |
23 |     static ref SUBPROC: Arc<Mutex<Option<u32>>> = { Arc::new(Mutex::new(None)) };
   |                                                   ^^                          ^^
   |
   = note: `#[warn(unused_braces)]` on by default
help: remove these braces
   |
23 -     static ref SUBPROC: Arc<Mutex<Option<u32>>> = { Arc::new(Mutex::new(None)) };
23 +     static ref SUBPROC: Arc<Mutex<Option<u32>>> = Arc::new(Mutex::new(None));
   |

error[E0119]: conflicting implementations of trait `fail::ErrorLog` for type `std::result::Result<_, _>`
   --> src/fail.rs:260:1
    |
243 | / impl<T, E> ErrorLog for Result<T, E>
244 | | where E: Into<HError> + Clone {
245 | |     fn log(self) {
246 | |         if let Err(err) = self {
...   |
257 | |     }
258 | | }
    | |_- first implementation here
259 |
260 | / impl<E> ErrorLog for E
261 | | where E: Into<HError> + Clone {
262 | |     fn log(self) {
263 | |         let err: HError = self.into();
...   |
271 | |     }
272 | | }
    | |_^ conflicting implementation for `std::result::Result<_, _>`

Some errors have detailed explanations: E0119, E0412.
For more information about an error, try `rustc --explain E0119`.
warning: `hunter` (bin "hunter") generated 1 warning
error: could not compile `hunter` due to 3 previous errors; 1 warning emitted
warning: build failed, waiting for other jobs to finish...
error: build failed
==> ERROR: A failure occurred in build().
    Aborting...

neowinx commented on 2021-03-22 04:16 (UTC) (edited on 2021-03-22 04:17 (UTC) by neowinx)

Apparently the method remove_item has been removed in upstream versions of Rust. See:

I made a patch for version v1.3.5 that modifies the lines related to that change.

Feel free to try it.

fix_vector_remove_item.patch

Index: src/main.rs
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/main.rs b/src/main.rs
--- a/src/main.rs   (revision 7583e0a16e541a72cd87020414cdc53eddc958f6)
+++ b/src/main.rs   (date 1616384869756)
@@ -1,4 +1,3 @@
-#![feature(vec_remove_item)]
 #![feature(trivial_bounds)]
 #![feature(try_trait)]
 #![allow(dead_code)]
Index: src/files.rs
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/files.rs b/src/files.rs
--- a/src/files.rs  (revision 7583e0a16e541a72cd87020414cdc53eddc958f6)
+++ b/src/files.rs  (date 1616384854463)
@@ -517,7 +517,7 @@
     fn remove_placeholder(&mut self) {
         let dirpath = self.directory.path.clone();
         self.find_file_with_path(&dirpath).cloned()
-            .map(|placeholder| self.files.remove_item(&placeholder));
+            .map(|placeholder| self.files.remove(self.files.iter().position(|x| x.eq(&placeholder)).expect("needle not found")));
     }

     pub fn ready_to_refresh(&self) -> HResult<bool> {
@@ -1076,7 +1076,7 @@

         match new_state {
             true => TAGS.write()?.1.push(self.path.clone()),
-            false => { TAGS.write()?.1.remove_item(&self.path); },
+            false => { TAGS.write()?.1.remove(TAGS.write()?.1.iter().position(|x| x.eq( &self.path)).expect("needle not found")); },
         }
         self.save_tags()?;
         Ok(())

just create the file and then modify the build process in the PKGBUILD adding the patch process before the cargo build

The related code should go from this:

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  rustup override set nightly
  cargo build --release
}

to this:

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  rustup override set nightly
  patch -p1 < fix_vector_remove_item.patch
  cargo build --release
}

Hope this helps you somehow.

Regards.

neowinx

zayatura commented on 2021-02-08 14:21 (UTC)

I cannot build this package, it fails with the below error. I am using yay. Can anyone help?

warning: unnecessary braces around block return value
  --> src/preview.rs:23:51
   |
23 |     static ref SUBPROC: Arc<Mutex<Option<u32>>> = { Arc::new(Mutex::new(None)) };
   |                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these braces
   |
   = note: `#[warn(unused_braces)]` on by default

error[E0599]: no method named `remove_item` found for struct `Vec<files::File>` in the current scope
   --> src/files.rs:520:43
    |
520 |             .map(|placeholder| self.files.remove_item(&placeholder));
    |                                           ^^^^^^^^^^^ method not found in `Vec<files::File>`

error[E0599]: no method named `remove_item` found for struct `Vec<PathBuf>` in the current scope
    --> src/files.rs:1079:40
     |
1079 |             false => { TAGS.write()?.1.remove_item(&self.path); },
     |                                        ^^^^^^^^^^^ method not found in `Vec<PathBuf>`

error: aborting due to 2 previous errors; 1 warning emitted

For more information about this error, try `rustc --explain E0599`.
error: could not compile `hunter`

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...
error making: hunter

alerque commented on 2020-02-25 15:52 (UTC)

All of your AUR requests to delete other packages are invalid. Just because the stable packaging happens to be the latest after a release does not make VCS packages duplicates. *-git packages should remain for such a time as there are upsream developments that are not released yet.