You are not logged in.

#1 2009-09-28 18:23:29

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Is it possible to override architecture in split packages?

I'm currently repackaging Nexuiz to incorporate a libjpeg patch. I'm taking the opportunity to split it into nexuiz and nexuiz-data because the game data is huge and architecture independent.

I've written a PKGBUILD which successfully splits the package but it won't let me overwrite the architecture (yeah, I noticed that it was missing from the PKGBUILD man page's list of overwritable variables). Is there any way to do this?

If not, what would you recommend/prefer? The choices are:
a) a split PKGBUILD which means that the user can easily rebuild the package without having to think about moving the source code files around to avoid a massive duplicate download, but massive duplicate data on the servers and a pain packages to upload (x86_64, i686)
b) an "any" data package in a separate packagebuild

I'm leaning towards the latter unless there's some way to hack the architecture in the split package. I'll file a feature request later but I want to get this up tonight.


*edit*

Scratch that. The whole point of splitting the package is to avoid duplicates on the server. I'll use 2 PKGBUILDs for now and file a feature request for later. Sorry for the noise.

Last edited by Xyne (2009-09-28 18:29:26)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#2 2009-09-28 20:00:04

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: Is it possible to override architecture in split packages?

I don't understand your edit. I think your dilemma was valid. Both options have its advantages and its inconvenients, as you very well presented.

I also don't understand why you opened a new bug, when both Loui and I pointed you at the existing bug report on the ML :
http://bugs.archlinux.org/task/15955
smile


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#3 2009-09-28 20:20:05

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: Is it possible to override architecture in split packages?

Sorry, I didn't refresh my inbox before opening the bug (well, feature request). hmm

About the edit:
The benefits of splitting the package using 2 PKGBUILDS:
* the game data can be uploaded to "any", which was the original reason for wanting to split the package
* the client can be patched and updated without a massive download (or upload)
The downside is that if the user wants to build the package, he has to think about reusing the source code. All that takes is a simple cp|mv|ln, so it's hardly an issue.

Splitting the package using a split PKGBUILD avoids the need to cp|mv|ln the source and also makes it possible to patch the client, but it still duplicates the data (and adds 2 packages to the mix, one for each arch). Considering that most users won't build it themselves and that those who do will probably know what they're doing anyway, I decided that using 2 PKGBUILDs was the better solution for now.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#4 2009-09-28 21:18:20

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,481
Website

Re: Is it possible to override architecture in split packages?

I have a rough patch to get this working...  It is much more annoying than other variables to override so I want to test it some more.

Offline

#5 2009-09-29 15:25:55

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: Is it possible to override architecture in split packages?

Xyne wrote:

The downside is that if the user wants to build the package, he has to think about reusing the source code. All that takes is a simple cp|mv|ln, so it's hardly an issue.

Am I the only one using $SRCDEST ?


English is not my native language .

Offline

Board footer

Powered by FluxBB