Merging SPARC and x86 packages
By Jan Hlodan on Feb 26, 2009
I was looking for information about how to publish just one package which will contain information for both architecture (SPARC and x86). I didn't find anything. I discussed this problem with pkg team and here is their how to:
You have to publish the architectures independently to separate repository and then use the merge program to merge each package into a third repository.
How to create repository can be found here. You will need to create three repositories. One for SPARC, x86 and one common repository.
Merging script can be found here.
For publishing into third repository use this script.
1. Import SPARC package:
$ eval `pkgsend -s http://localhost:11000 open SUNWpackage@0.0.1`
$ pkgsend -s http://localhost:11000 import SUNWpackage@0.0.1
$ pkgsend -s http://localhost:11000 close
2. Import x86 package:
$ eval `pkgsend -s http://localhost:12000 open SUNWpackage@0.0.1`
$ pkgsend -s http://localhost:12000 import SUNWpackage@0.0.1
$ pkgsend -s http://localhost:12000 close
3. Merge packages (use merging script):
$ ./merge.py -r -d /tmp/common -v sparc,http://localhost:12000 -v i386,http://localhost:11000 arch
4. Publish merged package (use pkg_publish script)
$ ./pkg_publish /tmp/common http://localhost:13000
The package SUNWpackage@0.0.1 should appear in your local repository - http://localhost:13000