You are not logged in.

#1 2015-09-23 00:19:35

Waljakov
Member
From: Germany
Registered: 2010-01-13
Posts: 14

[SOLVED] missing .SRCINFO

Hi @ all,
I want to submit a PKGBUILD + Patch for freqtweak.

First, I cloned the repo

git clone ssh://aur@aur.archlinux.org/freqtweak.git

Next, I copied my files to the directory and run mksrcinfo. The .SRCINFO file is really there

ls -all
total 28
drwxr-xr-x 3 fff users   32 Sep 23 03:51 .
drwxr-xr-x 3 fff users 4096 Sep 23 03:44 ..
-rw-r--r-- 1 fff users  256 Sep 23 02:42 FTutils.hpp.patch
drwxr-xr-x 8 fff users 4096 Sep 23 04:07 .git
-rw-r--r-- 1 fff users  825 Sep 23 03:19 PKGBUILD
-rw-r--r-- 1 fff users  397 Sep 23 04:06 .SRCINFO

So I added the files to the repo and commited them

git add PKGBUILD .SRCINFO FTutils.hpp.patch
git commit -m "initial commit"

When I try to push the repo, I get

git push origin master
Counting objects: 7, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 1.46 KiB | 0 bytes/s, done.
Total 7 (delta 0), reused 0 (delta 0)
remote: error: The following error occurred when parsing commit
remote: error: 038d2ef585b6b715924b4af502a938d8ff2f0f48:
remote: error: missing .SRCINFO
remote: error: hook declined to update refs/heads/master
To ssh://aur@aur.archlinux.org/freqtweak.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://aur@aur.archlinux.org/freqtweak.git'

At which piont it went wrong?
Would be nice if someone could help smile

Last edited by Waljakov (2015-09-23 01:26:30)


Sorry for bad English

Offline

#2 2015-09-23 00:45:55

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: [SOLVED] missing .SRCINFO

Is the .SRCINFO present in *all* the commits of the repository? In particular, does commit 038d2ef585b6b715924b4af502a contain a .SRCINFO -- because the error is saying it does not.

Offline

#3 2015-09-23 00:52:08

Waljakov
Member
From: Germany
Registered: 2010-01-13
Posts: 14

Re: [SOLVED] missing .SRCINFO

I thought, a .SRCINFO file is related to a PKGBUILD and not to a commit.
How can I create a .SRCINFO file which is related to a certain commit?


Sorry for bad English

Offline

#4 2015-09-23 00:56:50

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: [SOLVED] missing .SRCINFO

Every commit must have a .SRCINFO. If you've missed adding it in any commits the only solution I know is to wipe the git repo and start fresh. It is annoying, but a user can checkout any commit in an AUR repo and should expect a sane package -- that includes a .SRCINFO

Offline

#5 2015-09-23 01:03:36

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

Re: [SOLVED] missing .SRCINFO

You don't have to start over if you missed adding it to a commit, you just have to rewrite the history. There are a number of ways to do this, I would probably use git filter-branch.

Offline

#6 2015-09-23 01:26:14

Waljakov
Member
From: Germany
Registered: 2010-01-13
Posts: 14

Re: [SOLVED] missing .SRCINFO

Thanks guys, it worked.


Sorry for bad English

Offline

Board footer

Powered by FluxBB