You are not logged in.

#1 2016-07-25 19:15:51

fommil
Member
Registered: 2016-07-16
Posts: 39

yaourt to build specific git hash of -git package

I'd really love to try out the emacs RC1 but the emacs-git package from yaourt wants to build the HEAD. I'd like to tell it to build the hash (or tag) corresponding to the RC1. Obviously I could just ./configure ; make manually, but not having to do that anymore is one of the reasons why I moved to ArchLinux from Debian in the first place.

While I'm at it... is there a way to store yaourt git repositories in a persistent location? /tmp is nuked all the time (and eats precious RAM!)

Offline

#2 2016-07-25 19:18:33

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: yaourt to build specific git hash of -git package

emacs-git package from yaourt

There's your problem; there's no such thing as a "package from yaourt". If you'd read the wiki, you'd know how to modify the PKGBUILD yourself.

https://wiki.archlinux.org/index.php/Ar … Repository
https://wiki.archlinux.org/index.php/PKGBUILD


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#3 2016-07-25 19:20:05

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: yaourt to build specific git hash of -git package

Moving to AUR Issues...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2016-07-25 19:33:56

fommil
Member
Registered: 2016-07-16
Posts: 39

Re: yaourt to build specific git hash of -git package

well, yes, yaourt is just a front end for AUR, of course. But to be clearer, I mean if there is a way to do this without a manual edit of the pkgfile... like a command line override or a preference for this package. It seems to reset itself on every sync.

Offline

#5 2016-07-25 19:42:03

fommil
Member
Registered: 2016-07-16
Posts: 39

Re: yaourt to build specific git hash of -git package

it's also not entirely clear where to specify the git commit. It is possible to modify the pkgver=25.1.50.r126330 line but that's not referencing a git commit hash, or a tag such as https://github.com/emacs-mirror/emacs/t … s-25.1-rc1

Offline

#6 2016-07-25 19:50:00

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

Re: yaourt to build specific git hash of -git package

I doubt there's a flag for yaourt, but the correct way to do this is described in the PKGBUILD man page.


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 2016-07-25 20:29:13

fommil
Member
Registered: 2016-07-16
Posts: 39

Re: yaourt to build specific git hash of -git package

WorMzy wrote:

I doubt there's a flag for yaourt, but the correct way to do this is described in the PKGBUILD man page.

Thanks! It was indeed in the man page, but not the wiki. But it doesn't work. I changed this line

source=("$pkgname::git://git.savannah.gnu.org/emacs.git")

to

source=("$pkgname::git://git.savannah.gnu.org/emacs.git#emacs-25.1-rc1")

and I got

ERROR: Unrecognised reference: emacs-25.1-rc1

but I can confirm that this tag does exist.

Offline

#8 2016-07-25 20:47:00

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

Re: yaourt to build specific git hash of -git package

You forgot an important part after the hash.

source=("$pkgname::git://git.savannah.gnu.org/emacs.git#tag=emacs-25.1-rc1")

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 2016-07-25 21:05:19

fommil
Member
Registered: 2016-07-16
Posts: 39

Re: yaourt to build specific git hash of -git package

WorMzy wrote:

You forgot an important part after the hash.

source=("$pkgname::git://git.savannah.gnu.org/emacs.git#tag=emacs-25.1-rc1")
ERROR: pkgver is not allowed to contain colons, hyphens or whitespace.

ARGH!

Offline

#10 2016-07-26 08:43:18

mis
Member
Registered: 2016-03-16
Posts: 234

Re: yaourt to build specific git hash of -git package

You could comment/remove the pkgver() function and set pkgver to pkgver=25.1.rc1

.. or modify the pkgver() function so that it generates a valid string.

Offline

#11 2016-07-29 22:21:52

fommil
Member
Registered: 2016-07-16
Posts: 39

Re: yaourt to build specific git hash of -git package

huzzah!

editing these lines

source=("$pkgname::git://git.savannah.gnu.org/emacs.git#tag=emacs-25.1-rc1")

pkgver() {
  echo "25.1.rc1"
}

(which will bring up a second PKGBUILD editing session in `yaourt -S emacs-git`) seems to have done the trick, thank you!

Offline

#12 2016-07-29 22:55:51

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

Re: yaourt to build specific git hash of -git package

Please remember to mark your thread as solved by editing the first post and amending the title with "[solved]".


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

#13 2016-07-31 12:12:26

fommil
Member
Registered: 2016-07-16
Posts: 39

Re: yaourt to build specific git hash of -git package

Turns out it's much easier than this:

yaourt -S emacs-pretest

you might need to add Nic's gpg key with

gpg --recv-keys 233587A47C207910 28D3BED851FDF3AB57FEF93C233587A47C207910
gpg --edit-key 233587A47C207910
gpg --edit-key 28D3BED851FDF3AB57FEF93C233587A47C207910

and setting trust to ultimate.

Last edited by fommil (2016-07-31 21:14:48)

Offline

Board footer

Powered by FluxBB