Package Details: nq-git 0.3.1.r6.g8165cee-1

Git Clone URL: https://aur.archlinux.org/nq-git.git (read-only, click to copy)
Package Base: nq-git
Description: Unix command line queue utility
Upstream URL: https://github.com/leahneukirchen/nq
Licenses: custom
Conflicts: nq
Provides: nq
Submitter: ckafi
Maintainer: gmy
Last Packager: ckafi
Votes: 3
Popularity: 0.35
First Submitted: 2018-12-18 16:57
Last Updated: 2021-02-27 11:32

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

ckafi commented on 2021-02-27 11:34

Thank you @staaas. I updated the PKGBUILD with your patches, but I will disown this package, as I no longer use nq.

staaas commented on 2021-02-25 05:43

These patches should fix the issues I've mentioned in my previous comment.

From b67cc3b3ba8b40e6b02881085056b069ddfdbf8d Mon Sep 17 00:00:00 2001
From: Author User <user@example.com>
Date: Thu, 25 Feb 2021 08:39:30 +0300
Subject: [PATCH 1/2] Fix `check()` by pointing `PATH` to `/usr/bin/core_perl`
 that contains `prove` binary

---
 PKGBUILD | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index c0053ec..73f3efa 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ arch=('x86_64')
 url="https://github.com/chneukirchen/nq"
 license=('custom')
 depends=('bash')
-makedepends=('git')
+makedepends=('git' 'perl')
 provides=("${pkgname%-git}")
 conflicts=("${pkgname%-git}")
 source=("git+${url}.git")
@@ -25,7 +25,7 @@ build() {

 check() {
    cd "$srcdir/${pkgname%-git}"
-   make -k check
+   PATH=/usr/bin/core_perl:$PATH make -k check
 }

 package() {
--
2.30.1

From f9dc5873e1df05d5f6eae2617209d57559627b6a Mon Sep 17 00:00:00 2001
From: Author User <user@example.com>
Date: Thu, 25 Feb 2021 08:41:44 +0300
Subject: [PATCH 2/2] Fix url after the repo has moved to
 https://github.com/leahneukirchen/nq

This is minor because github redirects from the old repo to the new repo just fine
---
 PKGBUILD | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PKGBUILD b/PKGBUILD
index 73f3efa..f9eea7f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@ pkgver=0.3.1.r0.gc09c3a7
 pkgrel=1
 pkgdesc="Unix command line queue utility"
 arch=('x86_64')
-url="https://github.com/chneukirchen/nq"
+url="https://github.com/leahneukirchen/nq"
 license=('custom')
 depends=('bash')
 makedepends=('git' 'perl')
--
2.30.1

staaas commented on 2021-02-25 05:30

Thanks for packaging nq!

I had some issues building it

==> Making package: nq-git 0.3.1.r6.g8165cee-1 (Thu 25 Feb 2021 08:16:55 AM +03)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating nq git repo...
Fetching origin
==> Validating source files with md5sums...
    nq ... Skipped
==> Extracting sources...
  -> Creating working copy of nq git repo...
Switched to a new branch 'makepkg'
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
make: Nothing to be done for 'all'.
==> Starting check()...
prove -v ./tests
make: prove: No such file or directory
make: *** [Makefile:16: check] Error 127
==> ERROR: A failure occurred in check().
    Aborting...

prove binary belongs to package perl, but that binary is not added to $PATH by default (https://wiki.archlinux.org/index.php/Perl_Policy#Binaries_and_scripts)

pacman -Ql perl | grep prove

This works

PATH=/usr/bin/core_perl:$PATH makepkg

Hence we need to add perl to makedepends and do something about PATH here.

And one more minor comment: the repository has moved from https://github.com/chneukirchen/nq to https://github.com/leahneukirchen/nq (github redirects automatically, so it's not a huge issue).

yzhs commented on 2019-05-24 06:03

In case anyone else has $NQDIR set: I got the tests passing by executing "unset NQDIR" before "make -k check".