You are not logged in.

#1 2011-08-24 07:21:46

slopjong
Member
Registered: 2011-07-25
Posts: 6

ABS and PKGBUILDs with fancy build()

First of all my post doesn't relate to the simple question "How to downgrade or upgrade packages?".

I'm curious what the correct ABS way is to install a different version of a package whose PKGBUILD has a fancy build() which makes it unsufficient to just change the package version (as described here) as it's incompatible to a higher/lower package version?

Must I have a look into the package repository, e.g. https://projects.archlinux.org/svntogit … 0a9d0bc1ba , and get the PKGBUILD from there? If so this way is somehow very cumbersome.

As a showing example boost-1.46.0 depends on 4994-compile-fix-for-Python32-v2.patch which I didn't find on the fly. So it isn't present during the build process and thus it fails. It's surely not recommended to downgrade Boost but as an example it's best suited to represent packages with fancy build() not to be compatible with other versions.

I'm not downgrading any packages at the moment but I want to be prepared if I have such a case. Should I then always use a downgrade script as mentioned here?

Last edited by slopjong (2011-08-24 07:22:14)

Offline

#2 2011-08-24 07:55:16

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,360

Re: ABS and PKGBUILDs with fancy build()

You'd need to provide specific examples, as there's no one-size-fits-all in this case. Downgrading is not SUPPOSED to be totally error-free, after all. You need to know what you're doing, and be aware of what may and will break.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2011-08-24 08:14:56

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: ABS and PKGBUILDs with fancy build()

@slopjong well, if you click to see only the PKGBUILD changes, logically you don't see the patch. move one level up to trunk and you'll see it

https://projects.archlinux.org/svntogit … 0a9d0bc1ba

build() is not fancy at all. build is not running under fakeroot, only package(), if available and it speeds up compilation.


Give what you have. To someone, it may be better than you dare to think.

Offline

Board footer

Powered by FluxBB