You are not logged in.

#1 2016-02-15 10:20:51

ams1
Member
Registered: 2013-12-02
Posts: 26

[solved] error: missing mandatory field: pkgname

I've just tried to push an update to the AUR, but the commit hook won't let me:

Counting objects: 5, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 565 bytes | 0 bytes/s, done.
Total 5 (delta 3), reused 0 (delta 0)
remote: error: The following error occurred when parsing commit
remote: error: ce0e8c23208c1a08f7d79c5d38280b48d0615aa5:
remote: error: missing mandatory field: pkgname
remote: error: hook declined to update refs/heads/master
To ssh://aur@aur.archlinux.org/zsh-autosuggestions-git.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://aur@aur.archlinux.org/zsh-autosuggestions-git.git'

The SHA given is the new commit, but the changes do not touch pkgname, and don't look wrong to me?

$ git show                                                                                                                                                                           [16-02-15 10:02]
commit ce0e8c23208c1a08f7d79c5d38280b48d0615aa5
Author: Andrew Stubbs <andrew.stubbs@gmail.com>
Date:   Mon Feb 15 09:49:29 2016 +0000

    Update for new install process.

diff --git a/.SRCINFO b/.SRCINFO
index 764f121..ef43670 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
 pkgbase = zsh-autosuggestions-git
        pkgdesc = Fish shell like fast/unobtrusive autosuggestions for zsh
-       pkgver = 0.2.1.101.f154d25
+       pkgver = 0.2.1.119.76f415b
        pkgrel = 1
        url = https://github.com/tarruda/zsh-autosuggestions
        install = zsh-autosuggestions.install
diff --git a/PKGBUILD b/PKGBUILD
index ef6905c..fce28c6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
 _name='zsh-autosuggestions'
 pkgname="${_name}-git"
-pkgver=0.2.1.101.f154d25
+pkgver=0.2.1.119.76f415b
 pkgrel=1
 pkgdesc='Fish shell like fast/unobtrusive autosuggestions for zsh'
 url='https://github.com/tarruda/zsh-autosuggestions'
@@ -20,14 +20,15 @@ pkgver() {
 
 package() {
     cd "${srcdir}/${_name}"
+    make -B zsh-autosuggestions.zsh
     install -d "${pkgdir}/usr/share/zsh/plugins/${_name}"
-    cp -a --no-preserve=ownership dist/autosuggestions.zsh "${pkgdir}/usr/share/zsh/plugins/${_name}"
+    cp -a --no-preserve=ownership "zsh-autosuggestions.zsh" "${pkgdir}/usr/share/zsh/plugins/${_name}"
 
     # license
     install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT"
 }
 
-#check() {
-#    cd "${srcdir}/${_name}"
-#    make test
-#}
+check() {
+    cd "${srcdir}/${_name}"
+    make test
+}
diff --git a/zsh-autosuggestions.install b/zsh-autosuggestions.install
index 5be4409..2d0b418 100644
--- a/zsh-autosuggestions.install
+++ b/zsh-autosuggestions.install
@@ -1,6 +1,4 @@
 post_install() {
     echo "==> To use zsh autosuggestions, include the following snippet in your .zshrc:
-    source /usr/share/zsh/plugins/zsh-autosuggestions/autosuggestions.zsh
-    ## if using zsh-syntax-highlighting, it should be sourced here, between the commands 
-    autosuggest_start"
+    source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh"
 }

The previous commit uploaded just fine.

Any suggestions, please?

Last edited by ams1 (2016-02-15 13:19:40)

Offline

#2 2016-02-15 11:44:23

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,919

Re: [solved] error: missing mandatory field: pkgname

AUR just got an update , https://lists.archlinux.org/pipermail/a … 32038.html

we switched to python-srcinfo for parsing package metadata

I think you should file a bug report.
If updating is urgent, try using this :  pkgname=zsh-autosuggestions-git


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Online

#3 2016-02-15 13:10:57

ams1
Member
Registered: 2013-12-02
Posts: 26

Re: [solved] error: missing mandatory field: pkgname

Thanks, I had not seen that. Your workaround works.

Offline

#4 2016-02-15 13:16:48

ams1
Member
Registered: 2013-12-02
Posts: 26

Re: [solved] error: missing mandatory field: pkgname

Offline

Board footer

Powered by FluxBB