git bug cannot be installed with AUR

Labels: area/packaging resolution/no-action-planned

Timeline

JoaKing (JoacoG) opened

I'm using WSL with archlinux distro. I tried to install git bug using yay. I got this error...

install: cannot stat '/home/joaquin/.cache/yay/git-bug-bin/src/git-bug-0.8.1/misc/bash_completion/*': No such file or directory

In the git bug page in AUR there is a proposed fix in the comments section

From cb981b702abf01e383c37b44a873eaaf2df498c9 Mon Sep 17 00:00:00 2001
From: Aki <please@ignore.pl>
Date: Sun, 24 Mar 2024 17:49:33 +0100
Subject: [PATCH] Install completion scripts from the new directory

---
 .SRCINFO | 2 +-
 PKGBUILD | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index 15850b7..67f6732 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = git-bug-bin
    pkgdesc = Distributed bug tracker embedded in Git
    pkgver = 0.8.0
-   pkgrel = 1
+   pkgrel = 2
    url = https://github.com/MichaelMure/git-bug
    arch = x86_64
    arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index e99af1c..a6b6d22 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
 _pkgname=git-bug
 pkgname=git-bug-bin
 pkgver=0.8.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Distributed bug tracker embedded in Git"
 arch=('x86_64' 'i686' 'arm')
 url='https://github.com/MichaelMure/git-bug'
@@ -28,8 +28,8 @@ package() {
   install -Dm755 "${!_source_bin##*/}" "$pkgdir/usr/bin/$_pkgname"

   # Shell completion
-  install -Dm644 -t "$pkgdir/usr/share/bash-completion/completions/" "$srcdir/$_pkgname-$pkgver/misc/bash_completion/"*
-  install -Dm644 -t "$pkgdir/usr/share/zsh/site-functions/" "$srcdir/$_pkgname-$pkgver/misc/zsh_completion/"*
+  install -Dm644 -t "$pkgdir/usr/share/bash-completion/completions/" "$srcdir/$_pkgname-$pkgver/misc/completion/bash/"*
+  install -Dm644 -t "$pkgdir/usr/share/zsh/site-functions/" "$srcdir/$_pkgname-$pkgver/misc/completion/zsh/"*

   # Fixup zsh completion
   mv "$pkgdir/usr/share/zsh/site-functions/$_pkgname" "$pkgdir/usr/share/zsh/site-functions/_$_pkgname"
-- 
2.44.0

Another related problem is that the package version in AUR didn't sync automatically after the update 0.9.0 in the repo. Couldn't this be made automatically?

sudoforge commented

hey there - thanks for creating an issue for this.

unfortunately, this is non-actionable. we do not maintain the AUR package. as a former AUR package maintainer, i hosted my repositories on github to increase visibility and enable contributions like this, but it doesn't look like the current maintainer for that package does that, so the best way to reach them is via the comment feed on the package (where you're pulling this patch from), or via email directly (unless the maintainer has specified an alternate communication method).


i do maintain the git-bug package in nixpkgs, and that receives updates pretty immediately.

i have some undocumented plans to automate the package update for nixpkgs so that a patch is propagated out immediately upon release. once that's in place, i'd consider taking ownership of the AUR package if the current maintainer was open to that.

sudoforge added label resolution/closed

sudoforge added label resolution/no-action-planned

sudoforge added label area/packaging

sudoforge removed label resolution/closed

sudoforge closed the bug