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.000000
First Submitted: 2018-12-18 16:57 (UTC)
Last Updated: 2021-02-27 11:32 (UTC)

Dependencies (3)

Required by (0)

Sources (1)

Latest Comments

m040601 commented on 2022-12-09 03:31 (UTC) (edited on 2022-12-09 03:34 (UTC) by m040601)

Thanks for providing this PKGBUILD. I'm testing it and comparing it to batch/task-spooler/pueue etc.

In the meantime I just discovered that this tool, nq, conflicts with an official arch package. You should be aware of this and make the necessary changes to this nq PKGBUILD.

Read my comment at https://aur.archlinux.org/packages/nq and please coordinate with the "nq" AUR PKGBUILD maintainer. No need for reduplicated work.

ckafi commented on 2021-02-27 11:34 (UTC)

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 (UTC) (edited on 2021-02-25 05:45 (UTC) by staaas)

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 (UTC)

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 (UTC)

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