You are not logged in.

#1 2014-02-05 09:23:43

vvd
Member
Registered: 2008-08-07
Posts: 20

Replace repo package with svn version of the software?

I need a package from the extra repository to be a newer, svn version. Since there is all kind of stuff depending on it and I don't want to mess with dependencies, I thought it would be best to create the same package myself (using svn sources) and then just replace the one from the repo with my own, so that, for pacman, nothing really changes. Please correct me if there are other, more 'arch-style' ways to accomplish the same.

Is there a wiki page that describes the process, or could you please give some hints? I have never created a package myself and I am very unpatient.


I am an evil patriARCH, peach!

Offline

#2 2014-02-05 10:23:49

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

Re: Replace repo package with svn version of the software?

If the svn version of the unnamed software you want has deps that are as well compiled from svn you need to "mess" with them.  Does the software-svn exist in the AUR?  If so, just build it with makepkg as God intended.


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

Offline

#3 2014-02-05 10:53:04

vvd
Member
Registered: 2008-08-07
Posts: 20

Re: Replace repo package with svn version of the software?

Hey graysky. Thanks for answering! Yeah, there is an svn package for the software in question in AUR. But it's rather old (svn r2186, while the svn-repo is at r2478 now and I need the changes from r2452). So I guess my question would be: How do I create my own arch package using the package files from AUR as a starting point? I have never used AUR. Do I just download the PKGBUILD from the AUR, fiddle with it and read https://wiki.archlinux.org/index.php/Creating_Packages ? I somehow feel getting closer! Thanks!


I am an evil patriARCH, peach!

Offline

#4 2014-02-05 10:56:55

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

Re: Replace repo package with svn version of the software?

SVN packages will pull the latest by default; r2452 is when the maintainer updated the PKGBUILD.  Just build it with makepkg and see if it works as-is to see if it needs to be modified.


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

Offline

#5 2014-02-05 11:02:24

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: Replace repo package with svn version of the software?

It will (probably) build r2452, pkgver just isn't set to latest revision.
pkgver() function in PKGBUILD will take care of finished package version.

EDIT: snaked

Last edited by Šaran (2014-02-05 11:02:46)

Offline

#6 2014-02-05 11:56:20

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Replace repo package with svn version of the software?

Make sure it has the same dependencies and check if the configuration is the same or not.

Offline

#7 2014-02-05 12:45:39

vvd
Member
Registered: 2008-08-07
Posts: 20

Re: Replace repo package with svn version of the software?

Well, I have changed a few lines in the PKGBUILD from AUR (like pkgver), and bam!^#@%% I got my up to date software, cleanly applied to the system! That was easier than expected. Thanks for bearing with me!


I am an evil patriARCH, peach!

Offline

#8 2014-02-05 12:57:02

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

Re: Replace repo package with svn version of the software?

If the PKGBUILD has a pkgver function, then you shouldn't need to update it (the pkgver) manually. If it doesn't have a pkgver function, then prompt the maintainer to update it.

What is the package in question?

Last edited by WorMzy (2014-02-05 12:57:16)


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 2014-02-05 14:48:20

vvd
Member
Registered: 2008-08-07
Posts: 20

Re: Replace repo package with svn version of the software?


I am an evil patriARCH, peach!

Offline

#10 2014-02-05 15:02:19

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Replace repo package with svn version of the software?

Have you read eh comment by schivmeister (the maintainer):

Sorry, the VCS packaging scheme used is out-of-date. This PKGBUILD needs to be updated and will not be functional until then.

Please post the updated PKGBUILD in the comments on that AUR page or upload it somewhere.

Offline

#11 2014-02-05 15:06:17

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

Re: Replace repo package with svn version of the software?

I'd also poke the maintainer. Posting a comment that the PKGBUILD is broken and needs rewriting, then not doing anything for three months is not a very good maintenance practice. If he/she hasn't got the time to update it, then they should orphan the package and let someone else take over.


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

Board footer

Powered by FluxBB