You are not logged in.

#1 2015-07-28 16:15:38

Kuci
Member
Registered: 2013-03-29
Posts: 38
Website

Unable to push a new package to AUR4

Hello, I'd like to submit a new package to AUR4 called "gitlab-ci-multi-runner". However, my push request is being rejected with the following error message:

git-receive-pack: permission denied: Kuci
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I don't really understand why I'm getting this message. I've already submitted 5 packages without any problems. Also, cloning the empty repository using

$ git clone ssh://aur@aur4.archlinux.org/gitlab-ci-multi-runner.git

works properly. Maybe I've done a mistake while creating the tree or forgot to add something and I don't see it. In that case, here's content of the tree:

drwxr-xr-x 8 kuci users 4096 Jul 28 17:54 .git
-rw-r--r-- 1 kuci users   29 Jul 27 14:48 .gitignore
-rw-r--r-- 1 kuci users  289 Jul 28 10:18 gitlab-runner.install
-rw-r--r-- 1 kuci users  538 Jul 27 22:40 gitlab-runner.service
-rw-r--r-- 1 kuci users   64 Jul 28 00:34 gitlab-runner.sysusers
-rw-r--r-- 1 kuci users   60 Jul 28 00:24 gitlab-runner.tmpfiles
-rw-r--r-- 1 kuci users  441 Jul 28 15:50 godeps.patch
-rw-r--r-- 1 kuci users  502 Jul 27 19:02 makefile.patch
-rw-r--r-- 1 kuci users 2760 Jul 28 16:01 PKGBUILD
-rw-r--r-- 1 kuci users 1717 Jul 28 17:11 .SRCINFO

Since it contains both PKGBUILD and .SRCINFO I'm quite confused. I'll appreciate any kind of help.


Notebook: ASUS U38DT + Samsung SSD 840 EVO 250GB + Intel Dual Band Wireless AC 7260

GitHub

Offline

#2 2015-07-28 16:28:32

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,858
Website

Re: Unable to push a new package to AUR4

What is the output of

$ git remote -v

while you are in the directory?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2015-07-28 16:31:40

Kuci
Member
Registered: 2013-03-29
Posts: 38
Website

Re: Unable to push a new package to AUR4

WorMzy wrote:

What is the output of

$ git remote -v

while you are in the directory?

I've checked it already, looks correctly:

origin	ssh://aur@aur4.archlinux.org/gitlab-ci-multi-runner.git (fetch)
origin	ssh://aur@aur4.archlinux.org/gitlab-ci-multi-runner.git (push)

Notebook: ASUS U38DT + Samsung SSD 840 EVO 250GB + Intel Dual Band Wireless AC 7260

GitHub

Offline

#4 2015-07-28 18:59:05

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 1,022

Re: Unable to push a new package to AUR4

pkgbase need to match the repo, in your case gitlab-ci-multi-runner.
second look if the aur4 has not already a gitlab-ci-multi-runner addopted by someother user.
next check that ths ssh creation create the package if need, I try acces aur4 pkg but look like it doesnot exist in aur4 then you need to «ssh aur4.archlinux.org setup-repo gitlab-ci-multi-runner» and then cone and then update all blah blah.


Well, I suppose that this is somekind of signature, no?

Offline

#5 2015-07-28 19:17:25

Kuci
Member
Registered: 2013-03-29
Posts: 38
Website

Re: Unable to push a new package to AUR4

Jristz wrote:

pkgbase need to match the repo, in your case gitlab-ci-multi-runner.
second look if the aur4 has not already a gitlab-ci-multi-runner addopted by someother user.
next check that ths ssh creation create the package if need, I try acces aur4 pkg but look like it doesnot exist in aur4 then you need to «ssh aur4.archlinux.org setup-repo gitlab-ci-multi-runner» and then cone and then update all blah blah.

I tried to create the repo using the command you suggested and I received this response:

setup-repo: package base already exists: gitlab-ci-multi-runner

Well, there are currently 4 gitlab packages in AUR4. I've checked all of them and there's not a single perfect match in pkgbase with my package. However, there is at least one partial match, "gitlab-ci". To me it seems like AUR4 matches it incorrectly.


Notebook: ASUS U38DT + Samsung SSD 840 EVO 250GB + Intel Dual Band Wireless AC 7260

GitHub

Offline

#6 2015-07-28 19:36:28

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,858
Website

Re: Unable to push a new package to AUR4

What is your pkgbase?

EDIT: derp. Ignore.

Could you post the PKGBUILD here?

Last edited by WorMzy (2015-07-28 19:39:07)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#7 2015-07-28 19:46:03

Kuci
Member
Registered: 2013-03-29
Posts: 38
Website

Re: Unable to push a new package to AUR4

Sure. I wanted to do it at the very beginning, I forgot probably. Here it is:

pkgname=gitlab-ci-multi-runner
pkgver=0.5.1
pkgrel=1
pkgdesc="The official GitLab CI runner written in Go"
arch=('i686' 'x86_64')
url='https://gitlab.com/gitlab-org/gitlab-ci-multi-runner'
license=('GPLv3')
depends=('glibc' 'ca-certificates' 'git')
makedepends=('go' 'godep' 'make')
install='gitlab-runner.install'
source=("${pkgname}.tar.gz"::"https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/repository/archive.tar.gz?ref=v${pkgver}"
        "gitlab-runner.install"
        "gitlab-runner.service"
        "gitlab-runner.sysusers"
        "gitlab-runner.tmpfiles"
        "godeps.patch"
        "makefile.patch")
sha512sums=('bb275f3e667cfb74f7e7d4529492851465999f1d4c0dd18f4faf25c342fd9a9c2e1fcba4bd63f066911844cf6b83691131fa64e27edf710f706630903b155e40'
            '74c4751d12b957861aab68618339489a7a1a25c147b0b86d47c916aec3ea532abb4e2fdc3352e9bee19cc9410f167c252dcce6e284cf806a12cf2e4d09ce651a'
            'e0db2ecd45ba9472a9e9109b0254c12d1d27571fa28a01329dbd7f9aa32df33c1d8f1583a27a8105b1ee6e26e5ae5a6696248544f1f7a9d399271973d6a21fed'
            '648647fbffbf8dac5558d06d257e460f47ede45dc7e60b183091d03af96546b31fd6e8120b6b2e02af2e49f7aa094e472ef2db266a8b3baa8490a96afd915944'
            '0108ca0d8367295fb3394ecc8ca1f9a7cc52030673fcb08f0b5a09ff69e3db90760501db1423db2342676dc9c3c5af27ec22e8cf6e1a581d3b002aadbf1d3575'
            '12d31bab9dc650a235cc55a355741b8b5565ae1cd61631e53515a311d369d72b35d748f0218fd6c44e11c6bdec6600a2bf8b26320341a40b2a3e50c4da45d8f2'
            '6d6eaa1f4b8433157745c02c4a66835d419e5d000426124dfa4cae409666d06917c3d0ec4f0a4d95dcfa79e5b370609466dd10955d8e5ea82e390fd17a37adac')

prepare() {
    cd "${srcdir}/${pkgname}.git"

    # Patch invalid revisions in Godeps/Godeps.json
    patch -p0 -i "${srcdir}/godeps.patch"

    # Patch escaped newlines in common/version.go
    patch -p0 -i "${srcdir}/makefile.patch"

    GOPATH="${srcdir}" godep restore

    make version REVISION=unknown RELEASE=true

    mkdir -p "${srcdir}/src/gitlab.com/gitlab-org/${pkgname}"
    cp -r */ "${srcdir}/src/gitlab.com/gitlab-org/${pkgname}"
}

build() {
    cd "${srcdir}/${pkgname}.git"
    GOPATH="${srcdir}" go build
    echo "concurrent = 4" > "config.toml"
}

package() {
    cd "${srcdir}/${pkgname}.git"
    install -Dm644 "config.toml" "${pkgdir}/etc/gitlab-runner/config.toml"
    install -Dm644 "${srcdir}/gitlab-runner.service" "${pkgdir}/etc/systemd/system/gitlab-runner.service"
    install -Dm644 "${srcdir}/gitlab-runner.sysusers" "${pkgdir}/usr/lib/sysusers.d/gitlab-runner.conf"
    install -Dm644 "${srcdir}/gitlab-runner.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/gitlab-runner.conf"
    install -Dm755 "${pkgname}.git" "${pkgdir}/usr/bin/${pkgname}"
}

Last edited by Kuci (2015-07-28 20:05:38)


Notebook: ASUS U38DT + Samsung SSD 840 EVO 250GB + Intel Dual Band Wireless AC 7260

GitHub

Offline

#8 2015-07-28 21:57:26

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,858
Website

Re: Unable to push a new package to AUR4

I'm afraid I can't see what's wrong either.

You might want to ask on the aur-general mailing list as well.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#9 2015-07-28 23:42:35

Kuci
Member
Registered: 2013-03-29
Posts: 38
Website

Re: Unable to push a new package to AUR4

I'm going to file a bug report because for me it's obvious that what we see is a bug. For now, I've created temporary repository on my GitHub just in case you guys would like to dig a bit inside and try to sort it out.

EDIT: Bug reported as FS#45820 - [AUR 4] Incorrectly matched package base

Last edited by Kuci (2015-07-29 00:26:37)


Notebook: ASUS U38DT + Samsung SSD 840 EVO 250GB + Intel Dual Band Wireless AC 7260

GitHub

Offline

Board footer

Powered by FluxBB