You are not logged in.

#1 2024-09-23 23:32:15

triplelllgaming
Member
Registered: 2024-09-23
Posts: 6

"missing PKGBUILD" error when attempting to push a package to the aur

alright, so i made a bash script that helps with compiling vmware kernel modules. i wanna publish it to the aur. no problem, i set up a git repo and pushing to github works swell. but when i try to push to the aur, this occurs.

> git push aur
Enumerating objects: 18, done.
Counting objects: 100% (18/18), done.
Delta compression using up to 8 threads
Compressing objects: 100% (15/15), done.
Writing objects: 100% (18/18), 16.99 KiB | 16.99 MiB/s, done.
Total 18 (delta 6), reused 14 (delta 3), pack-reused 0 (from 0)
remote: error: The following error occurred when parsing commit
remote: error: f4943ddd069dd498e4cea3355e7d88b10b3fa181:
remote: error: missing PKGBUILD
remote: error: hook declined to update refs/heads/master
To ssh://aur.archlinux.org/vmcompile.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://aur.archlinux.org/vmcompile.git'
> git push -f aur
(same thing)

what's going on here? i clearly have the PKGBUILD and .SRCINFO as seen below, and my ssh keys are in check.

> ls -a
.  ..  .directory  .git  .gitignore  LICENSE  PKGBUILD  README.md  .SRCINFO  vmcompile  vmcompile.sh

not gonna post my public key fingerprints here unless necessary, so i'll just reenact what it returned when i entered 'ssh-add -l'

[MAIN SSH KEY, NOT THE AUR ONE]
256 SHA256:[FINGERPRINT] triplelllgaming@robotii (ED25519)

and i can also confirm i'm connected and that the PKGBUILD and .SRCINFO are in the repo, by running these commands

> ssh -T aur@aur.archlinux.org
Welcome to AUR, TripleLLLGaming! Interactive shell is disabled.
Try `ssh aur@aur.archlinux.org help` for a list of commands.
> git ls-files
.SRCINFO
.gitignore
LICENSE
PKGBUILD
README.md
vmcompile.sh

and if you're wondering, here is the PKGBUILD and .SRCINFO in their entirety:

PKGBUILD:

# Maintainer: [NAME] <[EMAIL]>
pkgname=vmcompile
pkgver=1.0
pkgrel=1
pkgdesc="A VMware kernel modules compiling script for noobs."
arch=('x86_64')
url="https://github.com/TripleLLL9/vmcompile"
license=('GPL')
depends=('git' 'linux-headers')
source=("vmcompile.sh")
sha256sums=('d2dd3e73596be9a6c7bc28e2095633254d527e1a87b8ff348305e4a7a8e88428')

package() {
    install -Dm755 "$srcdir/vmcompile.sh" "$pkgdir/usr/bin/vmcompile"
}

.SRCINFO:

pkgbase = vmcompile
        pkgdesc = A VMware kernel modules compiling script for noobs.
        pkgver = 1.0
        pkgrel = 1
        url = https://github.com/TripleLLL9/vmcompile
        arch = x86_64
        license = GPL
        depends = git
        depends = linux-headers
        source = vmcompile.sh
        sha256sums = d2dd3e73596be9a6c7bc28e2095633254d527e1a87b8ff348305e4a7a8e88428

pkgname = vmcompile

and that's pretty much it. help would be greatly appreciated. thank you!!!! :3

Last edited by triplelllgaming (2024-09-23 23:33:05)

Offline

#2 2024-09-23 23:41:04

loqs
Member
Registered: 2014-03-06
Posts: 18,014

Re: "missing PKGBUILD" error when attempting to push a package to the aur

What is the output of:

git status
git diff --cached

Offline

#3 2024-09-24 01:27:56

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,072

Re: "missing PKGBUILD" error when attempting to push a package to the aur

It tells you which commit is a problem. At the commit in question, there is indeed no PKGBUILD, making it invalid for the AUR. https://github.com/TripleLLL9/vmcompile … b10b3fa181

In fact you made a bit of a mess with the PKGBUILD and .SRCINFO. You shouldn't be trying to upload the source to the AUR anyway, and isn't this just a worse version of https://aur.archlinux.org/packages/vmwa … s-dkms-git ?

Last edited by Scimmia (2024-09-24 03:55:23)

Offline

#4 2024-09-28 19:16:22

triplelllgaming
Member
Registered: 2024-09-23
Posts: 6

Re: "missing PKGBUILD" error when attempting to push a package to the aur

Scimmia wrote:

(...) isn't this just a worse version of https://aur.archlinux.org/packages/vmwa … s-dkms-git ?

yeah, but i personally don't use the dkms modules, and some people might not either. this is my first time using the aur, so i'm kind of a dumbass, so i'm really sorry if i'm doing anything wrong. i just wanted something (hopefully) useful to put out there for my first package. probably should've made a PKGBUILD request instead of writing one myself.

Offline

#5 2024-09-28 19:19:03

triplelllgaming
Member
Registered: 2024-09-23
Posts: 6

Re: "missing PKGBUILD" error when attempting to push a package to the aur

Scimmia wrote:

It tells you which commit is a problem. At the commit in question, there is indeed no PKGBUILD, making it invalid for the AUR. https://github.com/TripleLLL9/vmcompile … b10b3fa181

weird, because i thought i had pushed it to the repo. i wonder why that commit isn't syncing correctly?

Offline

#6 2024-09-28 21:01:23

triplelllgaming
Member
Registered: 2024-09-23
Posts: 6

Re: "missing PKGBUILD" error when attempting to push a package to the aur

triplelllgaming wrote:
Scimmia wrote:

It tells you which commit is a problem. At the commit in question, there is indeed no PKGBUILD, making it invalid for the AUR. https://github.com/TripleLLL9/vmcompile … b10b3fa181

weird, because i thought i had pushed it to the repo. i wonder why that commit isn't syncing correctly?

alright. after two LONG hours of work, i can FINALLY correctly push to the aur. i even compiled the bash script so it's not source, but a binary. thank you!!! ^_^
https://aur.archlinux.org/packages/vmcompile

Last edited by triplelllgaming (2024-09-28 21:01:45)

Offline

#7 2024-09-29 01:29:43

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,072

Re: "missing PKGBUILD" error when attempting to push a package to the aur

Jesus, do you bother reading anything before making a commit. You've made an absolute disaster out of that repo. Please learn how do use git!

Offline

#8 2024-09-29 07:19:43

seth
Member
Registered: 2012-09-03
Posts: 58,521

Re: "missing PKGBUILD" error when attempting to push a package to the aur

yeah, but i personally don't use the dkms modules

What are "dkms modules" and what difference do you assume?
DKMS is an automated way to build OOT modules, the resulting modules will be the same, you just won't forget to build them for a kernel update.

url="https://github.com/TripleLLL9/vmcompile"
license=('GPL')
depends=('git' 'linux-headers' 'shc')
source=("vmcompile.sh")

I'd have complained about the name being kinda meaningless and also violating the name-pattern rules for git packages, but it's not a git package because the git repo is a shell script and you just copied that into the AUR (what you're not supposed to do)
Also you're not depending on "linux-headers" at all. It'll be beneficial to have kernel header packages because otherwise you can't build any modules, but those headers are dictated by the actually relevant kernel. If I've the zen and lts kernel installed, your package forces me to install a pointless header package but doesn't require me to intall the relevant ones (the latter one isn't possible through the package system)

Also https://aur.archlinux.org/packages/shc is a build dependency, not a runtime one and wtf would you want to compile a 20 line shell script into a compiled binary itfp?

You can flag your AUR package for deletion yourself or I will.

Then please rethink your approach ("why am I attemting to replace dkms w/ a clumsy kludge here"), read at least https://wiki.archlinux.org/title/AUR_su … guidelines and https://wiki.archlinux.org/title/PKGBUILD and https://wiki.archlinux.org/title/.SRCINFO and feel free to click on any links you find there and read them, too.
Then start over.

Offline

#9 2024-10-03 11:25:28

triplelllgaming
Member
Registered: 2024-09-23
Posts: 6

Re: "missing PKGBUILD" error when attempting to push a package to the aur

hey. i just read the replies, and i have to just apologize. i wasted your time wanting help with something stupid, and i wish i didn't make the forum to begin with. i'm deeply sorry, everyone. go ahead and close this forum and delete the package, i don't really care anymore. sorry.

Last edited by triplelllgaming (2024-10-03 11:26:02)

Offline

#10 2024-10-03 12:15:31

seth
Member
Registered: 2012-09-03
Posts: 58,521

Re: "missing PKGBUILD" error when attempting to push a package to the aur

You didn't waste anything if you don't  run away, but learn from this for your next attempt.
Since you've shown up again, I'd really prefer and suggest to take this as a opportunity for a growing step and flag the package yourself.
You don't have to, but it will make it feel more like "something I learned today" than "I experienced push back and failure".

Offline

#11 2024-10-05 22:54:01

triplelllgaming
Member
Registered: 2024-09-23
Posts: 6

Re: "missing PKGBUILD" error when attempting to push a package to the aur

just submitted the deletion request. sorry once again, but thank you nonetheless.

Offline

Board footer

Powered by FluxBB