Merging SPARC and x86 packages

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.

Example:

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

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Solaris l10n & i18n, locales, keyboards, fonts and related topics.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today