On Sun, Jun 22, 2008 at 11:49:47PM +1000, Lucas Hazel wrote:
I'm putting together some multilib ports in the style that has been suggested for the upcoming 64 bit test run. An issue unique to multilib, compared to pure 64 bit, is that two different sets of libraries exist on the same system. This also means that there are a different set of options required for each one to be used by pkgmk.
http://git.die.net.au/cgit/crux/ports/core/tree/pkgutils/x86_64/pkgmk.conf?h...
This is the solution Daniel came up with when he first released the original CRUX64 several years ago. While not ideal, it's a necessary evil when dealing with multilib.
The issue is that pkgutils requires the port to identify itself as a compat32 port. The method I'm using currently is to use a .arch file in the port.
Hmm, I don't understand that. The item 'port' is normaly used for the directory in which Pkgfile/.md5sum etc. are laying around. In both cases you need the port IMO, or do I miss something?
http://git.die.net.au/cgit/crux/tools/pkgutils/commit/?id=e31dab6d68b26811e9...
This differs from Daniels original implementation which was to put it into the Pkgfile using arch=compat32. However, I believe that keeping it out of the Pkgfile is a much better solution.
I'd not call the file .arch but find a better name that reflects more what it really does, pulling in different settings to build the port. It should be read after pkgmk.conf so it would be possible to alter other variables like MAKEFLAGS for example. One drawback of the .xxxx file approach is that a modification of pkgmk is required, but I tend to favor that solution.
Using such a method also has it's advantages in cross compiling for people who want to build ports for alternative architectures that don't have the resources to build natively, such as embedded platforms.
I'm just wondering if anyone else had anything to contribute to the idea, or alternative solutions before I go too far and have another set of ports that isn't going to be incompatible with CRUX.
Greetings Juergen -- Juergen Daubert | mailto:jue@jue.li Korb, Germany | http://jue.li/crux