[pacman-dev] [PATCH] Add support for arch='all' to makepkg

Roman Kyrylych roman.kyrylych at gmail.com
Tue Oct 30 09:44:34 EDT 2007


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

-- 
Roman Kyrylych (Роман Кирилич)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-support-for-arch-all-to-makepkg.patch
Type: text/x-patch
Size: 802 bytes
Desc: not available
URL: <http://archlinux.org/pipermail/pacman-dev/attachments/20071030/30ac4d6c/attachment.bin>


More information about the pacman-dev mailing list