Package Details: hackernews_tui 0.13.4-1

Git Clone URL: https://aur.archlinux.org/hackernews_tui.git (read-only, click to copy)
Package Base: hackernews_tui
Description: A Terminal UI to browse hacker news.
Upstream URL: https://github.com/aome510/hackernews-TUI
Licenses: MIT
Submitter: BachoSeven
Maintainer: BachoSeven
Last Packager: BachoSeven
Votes: 5
Popularity: 0.29
First Submitted: 2021-03-04 16:29 (UTC)
Last Updated: 2023-11-09 17:46 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

volfenstein commented on 2024-10-13 10:37 (UTC) (edited on 2024-10-13 10:39 (UTC) by volfenstein)

Build fails with error:

error[E0282]: type annotations needed for `Box<_>`
  --> /home/$USER/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.30/src/format_description/parse/mod.rs:83:9
   |
83 |     let items = format_items
   |         ^^^^^
...
86 |     Ok(items.into())
   |              ---- type must be known at this point
   |
   = note: this is an inference error on crate `time` caused by an API change in Rust 1.80.0; update `time` to version `>=0.3.35` by calling `cargo update`

BachoSeven commented on 2023-06-07 21:52 (UTC)

@jahway603 try it now

jahway603 commented on 2023-06-07 21:23 (UTC)

Build is somehow failing on line #35 in PKGBUILD, but the file exists and the error received is

==> Entering fakeroot environment...
==> Starting package()...
install: cannot stat 'doc/config.md': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...
error: failed to build 'hackernews_tui-0.13.2-2': 

BachoSeven commented on 2023-04-23 10:34 (UTC)

@qudibt thanks, done!

qubidt commented on 2023-04-19 12:09 (UTC) (edited on 2023-04-19 12:11 (UTC) by qubidt)

The build fails with linker errors when building with LTO. (lto is enabled by default when using extra-x86_64-build from extra/devtools; see: /usr/share/devtools/makepkg-x86_64.conf).

This is caused by the ring dependency (see upstream issue).

Added an explicit !lto option to the PKGBUILD to workaround this issue. (see: community/maturin PKGBUILD) Also added the project's docs and example config to the package.

PKGBUILD:

diff --git a/PKGBUILD b/PKGBUILD
index 3b88e23..400b8f1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,6 +12,8 @@ makedepends=('cargo')
 optdepends=('mercury-parser: to view articles directly in the terminal')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/aome510/hackernews-TUI/archive/v$pkgver.tar.gz")
 sha512sums=('dc2082f209cce891f068b0459f4fb2205013b3481e4eea6302a9cce23b105ede497ae3e5ead775fd8125e28f21a917b5d517b38436b5b3cb804cd388f50caebb')
+# disable LTO until ring can be built with it: https://github.com/briansmith/ring/issues/1444
+options=(!lto)

 build() {
     cd "${_gitname}-$pkgver"
@@ -30,5 +32,7 @@ package() {

     install -Dm755 target/release/${pkgname} -t "${pkgdir}/usr/bin"
     install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+    install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" "README.md" "doc/config.md"
+    install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}/examples" "examples/hn-tui.toml"
 }
 # vim:set ts=2 sw=2 et: