You are not logged in.

#1 2012-02-11 18:19:23

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,606
Website

build a particular git commit in a PKGBUILD (xbmc-eden-git)

Two questions:

1) How do I go about determining which commit corresponds to a particular milestone?  In my case, I would like to build the corresponding code for the "eden beta 3" milestone of xbmc.  I found some tagged code on the github page.  Am I correct in assuming that commit 52e9d21510e3d4330322d7a8962c42b8f00cec76 is what I want in this case?

2) I'd like to modify the  xbmc-eden-git PKGBUILD to .  How would I edit the PKGBUILD to accomplish this?

Thx!

Last edited by graysky (2012-02-11 18:20:04)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2012-02-11 19:35:22

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: build a particular git commit in a PKGBUILD (xbmc-eden-git)

Why don't you just grab the beta 3 tarball from the Xbmc downloads page?

Saves you messing around with git as well.

Both my XvBA git build and the regular Xbmc git build from the AUR show how to pull in up till a particular git commit, if you like to persevere.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2012-02-12 13:33:49

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,606
Website

Re: build a particular git commit in a PKGBUILD (xbmc-eden-git)

<<Headsmack>>

Thanks, you answered question 2.... how about question 1?

_commit=4bf8428afb48c6495f8bc1a1f55f82aa5f722021

cd "${srcdir}"
    msg "Connecting to GIT server...."

    if [ -d "${pkgname%-git-xvba}" ] ; then
        cd "${pkgname%-git-xvba}" && git checkout xvba && git pull origin 
	git checkout
        #[[ "${_commit}" ]] && git checkout "${_commit}"
        msg "The local files are updated."
        msg "Running make distclean"
        make distclean || :
    else
        git clone "${_gitroot}" -b xvba "${pkgname%-git-xvba}"
        cd "${pkgname%-git-xvba}"
	git checkout
        #[[ "${_commit}" ]] && git checkout "${_commit}"
    fi

Last edited by graysky (2012-02-12 13:34:16)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2012-02-12 16:40:46

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: build a particular git commit in a PKGBUILD (xbmc-eden-git)

The only way I know to match a commit to a hash is to check the gitweb interface tongue.

Edit: a git log in the local git tree should show you as well what commit is linked to a particular hash.

Last edited by .:B:. (2012-02-12 16:43:01)


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2012-02-13 07:52:18

ctarwater
Member
Registered: 2009-02-05
Posts: 300

Re: build a particular git commit in a PKGBUILD (xbmc-eden-git)

Hey Graysky did you ever get it figured out?  I'd love to have a stable-ish beta build of eden.

Offline

#6 2012-02-13 16:34:48

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: build a particular git commit in a PKGBUILD (xbmc-eden-git)

That's what the beta tarballs are for... Don't you people ever read? Sheez.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#7 2012-02-13 17:47:31

ctarwater
Member
Registered: 2009-02-05
Posts: 300

Re: build a particular git commit in a PKGBUILD (xbmc-eden-git)

.:B:. wrote:

That's what the beta tarballs are for... Don't you people ever read? Sheez.

Of course I don't read, I just ask on the forums...

seriously though, the issue I've had is getting a working non-git PKGBUILD with the patches used by the git versions from the AUR.  Git still confuses the hell out of me so the PKGBUILD is a bit difficult for me to decipher and there have been so many changes from xbmc-dharma to xbmc-eden that I'm worried about adapting the community PKGBUILD for xbmc-dharma to eden.

I guess I'll just stick with the nightlies for now.

Offline

#8 2012-02-14 07:23:09

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: build a particular git commit in a PKGBUILD (xbmc-eden-git)

What patches would you be needing? I have a non-git beta build up in the AUR for xbmc (xbmc-xvba).


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#9 2012-02-14 08:14:58

ctarwater
Member
Registered: 2009-02-05
Posts: 300

Re: build a particular git commit in a PKGBUILD (xbmc-eden-git)

I saw that shortly after my last post.  I managed to edit the pkgbuild to remove the xvba stuff so that it seemed to just compile as xbmc-eden-beta3.  I was mostly worried about the libpng patch and once I saw that yours had it I was good.  Thanks!

Offline

Board footer

Powered by FluxBB