About LSB SI Tools

From ISP_RAS
Jump to: navigation, search

About LSB Sample Implementation (SI)

LSB Sample Implementation (LSB SI) is a minimal LSB-conforming runtime environment used for testing purposes. It can be run in a chroot mode. The LSB SI is not a general-purpose distribution, it's a limited test environment, and a proof-of-concept of building to the LSB spec.

Most Linux distributions supply lots of packages, and which of them gets installed, and later added, removed or upgraded is in the local sysadmin's control. Which is as it should be, except when your job is to build a portable application that will run everywhere - how can you be sure you haven't linked in something which is not guaranteed to be present on every system where that will be installed. You can if you take advantage of the contract that LSB conforming systems offer you as an application developer: that a core set of libraries and programs will be present, and will work in the way that is documented in the LSB.

The LSB SI is a minimal implementation of that set which can be used to test programs before releasing them to the field.

For example, some software has auto-detecting build scripts (such as GNU configure), which will enable the build to make use of many things installed on a system, whether or not those are part of the LSB. Running the resulting binary in the LSB SI will help detect cases where non-LSB features have crept in, as those features likely not be present in the LSB SI.

Note that the primary testing tool for an LSB application is Linux Application Checker. It is a static tool, however, and so cannot catch runtime issues, such as calling out to another program. The LSB SI provides a way to run the application in a conforming environment.

Finally, the LSB SI is able to stay in lockstep with the evolving LSB specification. New features appear in test versions of the LSB SI as they are finalized into the specification, and the LSB SI aims to release versions matching fully approved new specifications at roughly the same time as the spec. This gives developers the opportunity to preview new features before they become a fully-supported part of their favorite distributions.

The LSB SI is not designed as a standalone Linux distribution. It is mainly an example and a test environment - the LSB project does not have the resources to track and fix performance and security issues that is part of the value-add of a true distributor.

LSB SI Tools

LSB Sample Implementation Tools (LSB SI Tools) is a wrapper for LSB SI. They allow launching and adjusting chroot environment to run SI in a user-friendly way. Provided package consists of 2 parts:

  • The first part 'lsbsi-chroot' presents already built and configured LSB SI.
  • The second part 'lsbsi-tools' contains scripts for launching chroot environment.

The LSB SI Tools release can be downloaded from this page. Please read LSB SI Tools Getting Started for instructions on how to install and use it.

Future Plans

The following features are planned to be added in future versions of the LSB SI Tools:

  • Running the chroot using ssh demon from chroot environment.
  • Packaging SI in a virtual machine.
  • Own GUI installer.
  • Integration with the LSB Eclipse-plugin.
Personal tools