On 23 Jan 2008 23:23, Roman Kyrylych wrote:
Things that work now: * makepkg support to understand arch=('any') and build a package correctly * repo-add/repo-remove work too, so you can create a db with them and test how pacman installs those packages. * pacman should pring 'Architecture: any' on -Si/-Qi Note that repo-add/repo-remove and pacman didn't require a single change to support '-any' packages, that's because they don't care about packages' architecture.
Right, so they are arch agnostic, cool.
Packages produced from PKGBUILD with arch=('any') are _excactly_ same when built on either i686 or x86_64 or even unofficial 'i586' and 'ppc' (when built with makepkg >= 3.0). (They can differ only by build timestamp)
Right now, '-any' packages cannot be used in AUR and official repos yet. You may use them for your own local repo for arch-independent packages if you have both i686 and x86_64 installed.
Why the requirement for both "i686 and x86_64 installed" ?
Be sure to add '-any' to both i686 and x86_64 localrepo.db.tar.gz files when updating your repo db.
I know this is not the right way to do it but it's a first attempt to get a feel for how to do it properly... I have built an -any package and uploaded it into it's own area with it's own [repo] stanza and successfully added that same package to both an i686 and x86_64 system. I could not do this pre v3 pacman with i868 or x86_64 in the filename. What I am unsure of is, in this example, how to add the -any package to both 32bit and 64bit *.db.tar.gz files so that the -any package, in a different area, can still be downloaded... ie; will relative paths work ? I've added this to my /etc/pacman.conf, uncommenting the appropriate arch on either machine... [proaudio-any] Server = http://pkg.markconstable.com/proaudio/any #[proaudio-i32] #Server = http://pkg.markconstable.com/proaudio/i32 #[proaudio-i64] #Server = http://pkg.markconstable.com/proaudio/i64 -------------------------------------------------------------- # pacman -S fluidr3 resolving dependencies... looking for inter-conflicts... Targets: fluidr3-122501-2 [125.73 MB] Total Download Size: 125.73 MB Total Installed Size: 141.53 MB Proceed with installation? [Y/n] :: Retrieving packages from proaudio-any... fluidr3-122501-2-any 125.7M 89.2K/s 00:24:03 [...] 100% checking package integrity... (1/1) checking for file conflicts [...] 100% (1/1) upgrading fluidr3 [...] 100%
Add this line in your /etc/timidity++/timidity.cfg file to enable this soundfont :
soundfont /usr/share/soundfonts/fluidr3/FluidR3GM.SF2
--markc