Package Details: fselect-bin 0.8.4-1

Git Clone URL: https://aur.archlinux.org/fselect-bin.git (read-only, click to copy)
Package Base: fselect-bin
Description: Find files with SQL-like queries
Upstream URL: https://github.com/jhspetersson/fselect
Licenses: MIT
Conflicts: fselect
Provides: fselect
Submitter: jtraub
Maintainer: jtraub
Last Packager: jtraub
Votes: 4
Popularity: 0.000944
First Submitted: 2021-03-14 21:35 (UTC)
Last Updated: 2023-07-10 19:07 (UTC)

Dependencies (0)

Required by (0)

Sources (3)

Latest Comments

4censord commented on 2023-06-19 11:17 (UTC) (edited on 2023-06-19 11:30 (UTC) by 4censord)

I have created a patch for the validation failure as @jtraub and @tee described. Always clearing the caches is not a real option.

From 2f9252b92fd94f8e69fa650fc84eee930d4c5305 Mon Sep 17 00:00:00 2001
From: 4censord <mail@4censord.de>
Date: Mon, 19 Jun 2023 13:28:58 +0200
Subject: [PATCH] Fix non unique naming of sourcefiles

See also https://wiki.archlinux.org/title/PKGBUILD#source
---
 PKGBUILD | 13 ++++++-------
 .SRCINFO |  6 +++---
 2 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index d5c7e3a..91b5b24 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,11 +12,11 @@ conflicts=("$_pkgname")
 arch=('x86_64')

 source_x86_64=(
-    "${url}/releases/download/${pkgver}/${_pkgname}-x86_64-linux-musl.gz"
+    "${_pkgname}-${pkgver}-x86_64-linux-musl.gz::${url}/releases/download/${pkgver}/${_pkgname}-x86_64-linux-musl.gz"
     # man page
-    "https://raw.githubusercontent.com/jhspetersson/${_pkgname}/${pkgver}/docs/${_pkgname}.1"
+    "${_pkgname}-${pkgver}.1::https://raw.githubusercontent.com/jhspetersson/${_pkgname}/${pkgver}/docs/${_pkgname}.1"
     # more detailed document on usage
-    "https://raw.githubusercontent.com/jhspetersson/${_pkgname}/${pkgver}/docs/usage.md"
+    "${_pkgname}-${pkgver}-usage.md::https://raw.githubusercontent.com/jhspetersson/${_pkgname}/${pkgver}/docs/usage.md"
 )

 sha256sums_x86_64=('f554f6b59c7d8a601dd38de33433d31c35e271903d3a0473daf8b09a235ab2fd'
@@ -25,8 +25,7 @@ sha256sums_x86_64=('f554f6b59c7d8a601dd38de33433d31c35e271903d3a0473daf8b09a235a


 package() {
-    install -Dm 755 "$srcdir/${_pkgname}-x86_64-linux-musl" "$pkgdir/usr/bin/${_pkgname}"
-
-    install -Dm 644 "$srcdir/${_pkgname}.1" "$pkgdir/usr/share/man/man1/${_pkgname}.1"
-    install -Dm 644 "$srcdir/usage.md" "$pkgdir/usr/share/doc/${_pkgname}/usage.md"
+    install -Dm 755 "$srcdir/${_pkgname}-${pkgver}-x86_64-linux-musl" "$pkgdir/usr/bin/${_pkgname}"
+    install -Dm 644 "$srcdir/${_pkgname}-${pkgver}.1" "$pkgdir/usr/share/man/man1/${_pkgname}.1"
+    install -Dm 644 "${_pkgname}-${pkgver}-usage.md" "$pkgdir/usr/share/doc/${_pkgname}/usage.md"
 }
diff --git a/.SRCINFO b/.SRCINFO
index b017d00..387348f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -7,9 +7,9 @@ pkgbase = fselect-bin
    license = MIT
    provides = fselect
    conflicts = fselect
-   source_x86_64 = https://github.com/jhspetersson/fselect/releases/download/0.8.3/fselect-x86_64-linux-musl.gz
-   source_x86_64 = https://raw.githubusercontent.com/jhspetersson/fselect/0.8.3/docs/fselect.1
-   source_x86_64 = https://raw.githubusercontent.com/jhspetersson/fselect/0.8.3/docs/usage.md
+   source_x86_64 = fselect-0.8.3-x86_64-linux-musl.gz::https://github.com/jhspetersson/fselect/releases/download/0.8.3/fselect-x86_64-linux-musl.gz
+   source_x86_64 = fselect-0.8.3.1::https://raw.githubusercontent.com/jhspetersson/fselect/0.8.3/docs/fselect.1
+   source_x86_64 = fselect-0.8.3-usage.md::https://raw.githubusercontent.com/jhspetersson/fselect/0.8.3/docs/usage.md
    sha256sums_x86_64 = f554f6b59c7d8a601dd38de33433d31c35e271903d3a0473daf8b09a235ab2fd
    sha256sums_x86_64 = bb4b4ee7c2bf4ef481815f5e5310edad9c932acb92efcb9dcf02681458fb370a
    sha256sums_x86_64 = ce7fa0c9a52176c5e7af21616f5aa02a95193720a57b2cd631dc8fd82f6c600b
-- 
2.41.0

Feel free to use that.

tee commented on 2023-05-19 11:58 (UTC)

I get the same issue as @jtraub due to the download file being the same in every release, please read https://wiki.archlinux.org/title/PKGBUILD#Sources:~:text=Warning%3A%20The%20downloaded%20source%20filename%20must%20be%20unique and update your PKGBUILD.

hannula commented on 2021-11-07 08:31 (UTC)

@jtraub Thanks, clearing the paru cache for this package finally solved the issue.

jtraub commented on 2021-11-04 15:26 (UTC)

@hannula can you please try again. It looks like you either have issues with your internet connection or your drive is failing.

I have tried to install the package with paru in a clean chroot and it works just fine for me.

hannula commented on 2021-10-29 08:24 (UTC)

Hi, when trying to install this package with paru, I receive an error:

==> Making package: fselect-bin 0.7.7-1 (Fri 29 Oct 2021 11:21:53 EEST)
==> Retrieving sources...
  -> Found fselect-x86_64-linux-musl.gz
  -> Found fselect.1
  -> Found usage.md
==> Validating source_x86_64 files with sha256sums...
    fselect-x86_64-linux-musl.gz ... FAILED
    fselect.1 ... Passed
    usage.md ... FAILED
==> ERROR: One or more files did not pass the validity check!
error: failed to download sources for 'fselect-bin-0.7.7-1': 

What could the underlying issue be? The package worked fine before version 0.7.7.

Batou commented on 2021-04-22 18:33 (UTC)

Thanks jtraub! The issue has been fixed.

jtraub commented on 2021-04-08 08:18 (UTC)

@Batou It seems that the issue has been resolved in 0.7.4. I've updated the package so could you please update fselect and test again?

Batou commented on 2021-04-06 17:53 (UTC) (edited on 2021-04-06 17:55 (UTC) by Batou)

fselect-bin works fine for regular searches but I get this error if I try to use the interactive mode:

$ fselect -i
thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', src/main.rs:109:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

$ RUST_BACKTRACE=1 fselect -i
thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', src/main.rs:109:21
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

$ RUST_BACKTRACE=full fselect -i
thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', src/main.rs:109:21
stack backtrace:
   0:           0x5682e0 - <unknown>
   1:           0x43797c - <unknown>
   2:           0x567b51 - <unknown>
   3:           0x567391 - <unknown>
   4:           0x584b28 - <unknown>
   5:           0x584a9c - <unknown>
   6:           0x584a4d - <unknown>
   7:           0x435170 - <unknown>
   8:           0x435001 - <unknown>
   9:           0x4b401d - <unknown>
  10:           0x400273 - <unknown>
  11:           0x4b0491 - <unknown>

Does anyone know what the issue might be?