You are not logged in.

#1 2014-02-01 14:49:24

Faerbit
Member
Registered: 2013-10-26
Posts: 11

[SOLVED] Package for different architectures

Hi everybody,

I like to package two binaries, one for 64 and one for 32 bit.
How should I handle this?
Initially I though about creating two seperate packages, but since the AUR doesn't allow two packages with the same name and just different architectures this doesn't work.
Should I include both binaries in the sources and just install the one which is needed?

Cheers,

Faerbit

Last edited by Faerbit (2014-02-03 13:54:50)

Offline

#2 2014-02-01 14:52:16

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

Re: [SOLVED] Package for different architectures

If I understand you correctly, you want a PKGBUILD that supplies both i686 and x86_64 bins that are precompiled?  See the mprime-bin PKGBUILD in the AUR for an example.

https://aur.archlinux.org/packages/mprime-bin

Offline

#3 2014-02-01 15:48:08

Faerbit
Member
Registered: 2013-10-26
Posts: 11

Re: [SOLVED] Package for different architectures

Thanks, that was really helpful.

I must say though the tools are not very helpful for this. Quite a few things I have to do manually.

Offline

#4 2014-02-01 15:49:33

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,373
Website

Re: [SOLVED] Package for different architectures

What tools? PKGBUILDs should be written by hand.


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

#5 2014-02-01 15:52:02

Faerbit
Member
Registered: 2013-10-26
Posts: 11

Re: [SOLVED] Package for different architectures

Tools like updpkgsums or makepkg. Also I was unable to fake my architecture, and had to install arch32-light, but this could also be my stupidity.

Offline

#6 2014-02-01 16:00:43

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

Re: [SOLVED] Package for different architectures

Use clean-chroot-manager in the AUR... exactly why I wrote it.

Offline

#7 2014-02-03 13:54:24

Faerbit
Member
Registered: 2013-10-26
Posts: 11

Re: [SOLVED] Package for different architectures

Well after a bit of wrestling with my nobody user (I messed with him before on a unrelated notice) I got it working. You are once again very helpful. Thank you graysky.

Offline

Board footer

Powered by FluxBB