You are not logged in.

#1 2016-02-07 00:57:48

fusion809
Member
Registered: 2015-06-19
Posts: 70

AUR commits being refused after EOF issue with a PKGBUILD

Hi,

In response to altalpo's comment on my moksha package in the AUR I removed the brackets around 'moksha.install' in my PKGBUILD, unfortunately I inadvertently removed one of the apostrophes too so my PKGBUILD ended up being:

# Maintainer: Brenton Horne <brentonhorne77 at gmail dot com>

pkgname=moksha
pkgver=0.2.0
pkgrel=1
pkgdesc="A fork of the E17 window manager"
arch=('i686' 'x86_64')
url="http://mokshadesktop.org"
license=('BSD')
depends=('desktop-file-utils' 'e_dbus' 'elementary')
optdepends=('acpid: power events on laptop lid close'
            'bc: calculator in everything module'
            'connman: network module'
            'doxygen: build documentation'
            'evas_generic_loaders: provide support for SVG icons'
            'gdb: create backtraces on crash'
            'geoclue2: geolocation module')
provides=('moksha')
conflicts=("enlightenment")
backup=('etc/enlightenment/sysactions.conf'
        'etc/xdg/menus/e-applications.menu')
source=("https://github.com/JeffHoogland/moksha/archive/$pkgver.tar.gz")
sha256sums=('f03601558902b9f9b286d85aa5da418dfa74acf3e3947992dcb131cc0e44994e')
install=moksha.install'

build() {
  cd $pkgname-$pkgver

  export CFLAGS="$CFLAGS -fvisibility=hidden"

  ./autogen.sh \
    --prefix=/usr \
    --sysconfdir=/etc

  make
}

package() {
  cd $pkgname-$pkgver

  make DESTDIR="$pkgdir" install
  install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

I had a cat on me at the time, so I pushed this new PKGBUILD to the AUR before I noticed this mistake. Then I realized this mistake and fixed the PKGBUILD and updated its SRCINFO file and pushed these changes to the AUR and this gave the output:

[master 96f9753] Fixing array issue
 2 files changed, 4 insertions(+), 2 deletions(-)
Enter passphrase for key '/home/fusion809/.ssh/aur': 
Counting objects: 18, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (18/18), done.
Writing objects: 100% (18/18), 1.75 KiB | 0 bytes/s, done.
Total 18 (delta 7), reused 0 (delta 0)
remote: Traceback (most recent call last):
remote:   File "hooks/update", line 253, in <module>
remote:     srcinfo_pkgbase = srcinfo._pkgbase['pkgname']
remote: KeyError: 'pkgname'
remote: error: hook declined to update refs/heads/master
To ssh://aur@aur.archlinux.org/moksha.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://aur@aur.archlinux.org/moksha.git'

and I haven't the foggiest as to why, I have tried modifying the PKGBUILD, deleting the SRCINFO and recreating it with mksrcinfo but each time I attempt to push the changes to the AUR I get this error message.

Thanks for your time,
Brenton

Last edited by fusion809 (2016-02-07 00:58:34)

Offline

#2 2016-02-07 01:15:06

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: AUR commits being refused after EOF issue with a PKGBUILD

What does the .SRCINFO file look like now?

Offline

#3 2016-02-07 01:18:48

fusion809
Member
Registered: 2015-06-19
Posts: 70

Re: AUR commits being refused after EOF issue with a PKGBUILD

This:

# Generated by mksrcinfo v8
# Sun Feb  7 00:42:34 UTC 2016
pkgbase = moksha
	pkgdesc = A fork of the E17 window manager
	pkgver = 0.2.0
	pkgrel = 1
	url = http://mokshadesktop.org
	install = moksha.install
	arch = i686
	arch = x86_64
	license = BSD
	depends = desktop-file-utils
	depends = e_dbus
	depends = elementary
	optdepends = acpid: power events on laptop lid close
	optdepends = bc: calculator in everything module
	optdepends = connman: network module
	optdepends = doxygen: build documentation
	optdepends = evas_generic_loaders: provide support for SVG icons
	optdepends = gdb: create backtraces on crash
	optdepends = geoclue2: geolocation module
	conflicts = enlightenment
	backup = etc/enlightenment/sysactions.conf
	backup = etc/xdg/menus/e-applications.menu
	source = https://github.com/JeffHoogland/moksha/archive/0.2.0.tar.gz
	sha256sums = f03601558902b9f9b286d85aa5da418dfa74acf3e3947992dcb131cc0e44994e

pkgname = moksha

Offline

#4 2016-02-07 01:32:22

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: AUR commits being refused after EOF issue with a PKGBUILD

The last commit you pushed to the AUR is "Fixing array issue" but your error message sounds like you are trying to push a different commit with the same commit message.

If you rebased, you cannot push that.

If you didn't rebase, what are the exact changes you are trying to push?


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#5 2016-02-07 01:38:51

fusion809
Member
Registered: 2015-06-19
Posts: 70

Re: AUR commits being refused after EOF issue with a PKGBUILD

I didn't rebase, here is the PKGBUILD I am trying to push upstream:

# Maintainer: Brenton Horne <brentonhorne77 at gmail dot com>

pkgname=moksha
pkgver=0.2.0
pkgrel=1
pkgdesc="A fork of the E17 window manager"
arch=('i686' 'x86_64')
url="http://mokshadesktop.org"
license=('BSD')
depends=('desktop-file-utils' 'e_dbus' 'elementary')
optdepends=('acpid: power events on laptop lid close'
            'bc: calculator in everything module'
            'connman: network module'
            'doxygen: build documentation'
            'evas_generic_loaders: provide support for SVG icons'
            'gdb: create backtraces on crash'
            'geoclue2: geolocation module')
provides=('moksha')
conflicts=("enlightenment")
backup=('etc/enlightenment/sysactions.conf'
        'etc/xdg/menus/e-applications.menu')
source=("https://github.com/JeffHoogland/moksha/archive/$pkgver.tar.gz")
sha256sums=('f03601558902b9f9b286d85aa5da418dfa74acf3e3947992dcb131cc0e44994e')
install='moksha.install'

build() {
  cd $pkgname-$pkgver

  export CFLAGS="$CFLAGS -fvisibility=hidden"

  ./autogen.sh \
    --prefix=/usr \
    --sysconfdir=/etc

  make
}

package() {
  cd $pkgname-$pkgver

  make DESTDIR="$pkgdir" install
  install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

here is my moksha.install file:

post_install() {
  update-mime-database usr/share/mime > /dev/null
  update-desktop-database -q
}

post_upgrade() {
  post_install
}

post_remove() {
  post_install
}

which has remained unchanged since 18 Jan 2016.

Offline

#6 2016-02-07 01:42:43

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,461

Re: AUR commits being refused after EOF issue with a PKGBUILD

The .SRCINFO looks ok to me. The fact that it gives a traceback makes me wonder if it's a server-side problem.

Offline

#7 2016-02-07 03:47:14

fusion809
Member
Registered: 2015-06-19
Posts: 70

Re: AUR commits being refused after EOF issue with a PKGBUILD

Well it does not seem to be self-resolving, I just retried to push these changes to the AUR and got the same error message.

Offline

#8 2019-02-24 17:39:17

arkades
Member
Registered: 2019-02-23
Posts: 6

Re: AUR commits being refused after EOF issue with a PKGBUILD

How did you solve this?

EDIT:
ok the answer by Narga did the trick
https://bbs.archlinux.org/viewtopic.php?id=200563

Last edited by arkades (2019-02-24 17:51:28)


The ships hung in the sky in much the same way that bricks don't. - Douglas Adams

Offline

#9 2019-02-24 18:30:20

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: AUR commits being refused after EOF issue with a PKGBUILD

Closing this old thread.


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

Board footer

Powered by FluxBB