2007/10/30, Aaron Griffin <aaronmgriffin@gmail.com>:
On 10/30/07, Roman Kyrylych <roman.kyrylych@gmail.com> wrote:
2007/10/30, Roman Kyrylych <roman.kyrylych@gmail.com>:
Hi!
Today I have started adding support for noarch packages. This is the first step. The attached patch adds support for arch='all' to makepkg. It's very simple because it just sets CARCH to all and then everything else goes as usual.
When we'll add support for subpackages - we'll have to make additional checks to be sure we can build -i686/-x86_64 package and -all package from one PKGBUILD. This depends on a way we implement subpackages and can be modified later.
So far, pacman-git is able to install packages built with the modified makepkg, and shows "Architecture: all" on -Qi.
I'll post patches for other scripts soon.
How to test it: 1) get any font/cursor/etc PKGBUILD from AUR, 2) replace arch=('i686' 'x86_64') with arch='all' 3) use the patched makepkg to build the package 4) use pacman -U (git version, 3.0.x fails) to install the package 5) do pacman -Qi
OK, here is a patch for gensync and updatesync. repo-add and repo-remove don't need any modifications.
Both of these look good to me. One question though - are we sure we want to use "all" as the architecture? It makes sense grammatically, but is it the best name?
I just had to pick one. :-) Another variant I like is 'any'. pacman -Qi outputs: Architecture: all - OK Architecture: any - OK, probably even better Architecture: noarch - huh? sounds bad ;-) -- Roman Kyrylych (Роман Кирилич)