You are here

Feed aggregator

Creating illumos packages for Tribblix

In the prior article in this series, I discussed how to build illumos-gate (and it applies to illumos-omnios too), using a Tribblix AMI on AWS.

After that, you'll have two directories of interest under illumos-gate.
  1. The proto area, specifically proto/root_i386, that is a fully installed copy of illumos.
  2. Under packages, an on-disk IPS package respoitory.
If you're using IPS, you could use that repository as is. Tribblix, however, uses SVR4 packages. So the next step is to convert the contents of the IPS repository into a set of SVR4 packages.

For this, there is an additional github repo you'll need to check out, in addition to the ones from the previous article.

cd ${HOME}/Tribblix
git clone https://github.com/tribblix/tribblix-transforms
What is this repo? It's a list of transformations that are applied to the package conversion process. Generally, rather than modify the gate or the build, if there's something I don't want to ship, or something I want to move between packages, or a file I want to change, then it gets transformed at the packaging stage.

The other thing you'll need to use my scripts is a signing certificate. In Tribblix, the illumos ELF objects are digitally signed (yes, I ought to extend this to all ELF objects I ship). Nothing actually uses this yet, but it's all there ready for when verification is required.

To create a signing key and certificate:

mkdir ${HOME}/f
cd ${HOME}/f
openssl req -x509 -newkey rsa:2048 -nodes \
  -subj "/O=MyOrganization/CN=my.domain.name" \
  -keyout elfcert.key -out elfcert.crt -days 3650Of course, choose the subject to match your own requirements.

Then you can run the scripts in the tribblix-build repo to generate SVR4 packages. These parse the IPS manifests, extract the files from the IPS repo, create the SVR4 prototype file, and automatically generate SVR4 install scripts from the IPS metadata.



So, to create packages, run the following as root:

/illumos/Tribblix/tribblix-build/repo_all.sh \
  -T /illumos/Tribblix \
  -G /illumos/Illumos/illumos-gate \
  -S /illumos/f/elfcert
Of course, replace /illumos with wherever your build user's home directory is. (You can't use $HOME, because this is run as root where $HOME is likely to be different to that of the user who did the build.) The -T flag tells it where the Tribblix tools are checked out, -G where the gate was built, and -S where the signing certificate is. If you want to change the version of the packages you generate, there's a -V flag as well. I normally redirect the output to a log file, as it's quite verbose

Wait a while, and you'll have a set of packages under /var/tmp/illumos-pkgs. Hopefully the pkgs directory there will have your packages, and the build and tmp directories will be empty (if the build directory isn't, it will have a half-created package or packages in it, so you'll be able to see which package or packages failed).

For omnitribblix it's very similar:

/illumos/Tribblix/tribblix-build/omni_all.sh \
  -T /illumos/Tribblix \
  -G /illumos/Illumos/omnitribblix \
  -S /illumos/f/elfcert
And the packages in this case end up in /var/tmp/omni-pkgs.

If you look, you'll see that there are 3 files for each package:

  • A .pkg file, which is in SVR4 datastream format
  • A .zap file, which is the (compressed) zap format Tribblix uses
  • An md5 checksum, which is used for basic validation in the package catalog
I then use those generated SVR4 packages to populate the package repository, and to build the Tribblix ISOs. The details of that will have to wait for another time.
Categories: Personal Blogs

gcc-6: fix download url

github/OpenIndiana/oi-userland - Fri, 03/22/2019 - 13:20
gcc-6: fix download url
Categories: oi-userland

gcc-6: update to 6.5.0

github/OpenIndiana/oi-userland - Fri, 03/22/2019 - 12:21
gcc-6: update to 6.5.0
Categories: oi-userland

10228 GTK3 Color Selection cores application

github/OpenIndiana/oi-userland - Fri, 03/22/2019 - 07:19
10228 GTK3 Color Selection cores application
Categories: oi-userland

gcc-8: update to 8.3.0

github/OpenIndiana/oi-userland - Fri, 03/22/2019 - 07:17
gcc-8: update to 8.3.0
Categories: oi-userland

gcc-7: update to 7.4.0

github/OpenIndiana/oi-userland - Fri, 03/22/2019 - 07:16
gcc-7: update to 7.4.0
Categories: oi-userland

10571 PostgreSQL auto-completion misbehaves after libedit update

github/OpenIndiana/oi-userland - Wed, 03/20/2019 - 13:38
10571 PostgreSQL auto-completion misbehaves after libedit update
Categories: oi-userland

bitmap: bump to 1.0.9

github/OpenIndiana/oi-userland - Tue, 03/19/2019 - 21:28
bitmap: bump to 1.0.9
Categories: oi-userland

xcalc: bump to 1.0.7

github/OpenIndiana/oi-userland - Tue, 03/19/2019 - 21:28
xcalc: bump to 1.0.7
Categories: oi-userland

xev: bump to 1.2.3

github/OpenIndiana/oi-userland - Tue, 03/19/2019 - 21:27
xev: bump to 1.2.3
Categories: oi-userland

xfsinfo: bump to 1.0.6

github/OpenIndiana/oi-userland - Tue, 03/19/2019 - 21:27
xfsinfo: bump to 1.0.6
Categories: oi-userland

xhost: bump to 1.0.8

github/OpenIndiana/oi-userland - Tue, 03/19/2019 - 21:27
xhost: bump to 1.0.8
Categories: oi-userland

xlsatoms: bump to 1.1.3

github/OpenIndiana/oi-userland - Tue, 03/19/2019 - 21:26
xlsatoms: bump to 1.1.3
Categories: oi-userland

xmodmap: bump to 1.0.10

github/OpenIndiana/oi-userland - Tue, 03/19/2019 - 21:26
xmodmap: bump to 1.0.10
Categories: oi-userland

xrdb: bump to 1.2.0

github/OpenIndiana/oi-userland - Tue, 03/19/2019 - 21:25
xrdb: bump to 1.2.0
Categories: oi-userland

xstdcmap: bump to 1.0.4

github/OpenIndiana/oi-userland - Tue, 03/19/2019 - 21:25
xstdcmap: bump to 1.0.4
Categories: oi-userland

xvinfo: bump to 1.1.4

github/OpenIndiana/oi-userland - Tue, 03/19/2019 - 21:25
xvinfo: bump to 1.1.4
Categories: oi-userland

xditview: bump to 1.0.5

github/OpenIndiana/oi-userland - Tue, 03/19/2019 - 21:24
xditview: bump to 1.0.5
Categories: oi-userland

xlogo: bump to 1.0.5

github/OpenIndiana/oi-userland - Tue, 03/19/2019 - 21:24
xlogo: bump to 1.0.5
Categories: oi-userland

xfd: bump to 1.1.3

github/OpenIndiana/oi-userland - Tue, 03/19/2019 - 21:23
xfd: bump to 1.1.3
Categories: oi-userland

Pages

Subscribe to OpenIndiana Ninja aggregator