This is an old revision of the document!


Hyperbola Packaging Guidelines

The Hyperbola Packaging Guidelines is the commitment that we, the Hyperbola Project, make to the Free Software Community in general and our users in particular. It is because of this that our packaging guidelines will always follow the philosophy of freedom, privacy, stability and security.

  1. Freedom: All packages follow the GNU Free System Distribution Guidelines. They do not include or recommend non-free software or documentation and do not provide any type of support for the installation or execution of non-free software. This includes:
  2. Privacy: Hyperbola's objective is to support privacy of its community. This includes:
    • a) Software built and patched to be secure from global data surveillance revealed in the publication of Snowden's NSA documents.
    • b) Additional hardened packages which remove lower level protocols that may cause privacy leaks, metadata/fingerprinting, and vulnerabilities.
  3. FHS: All packages follow the Filesystem Hierarchy Standard (FHS) which defines the main directories and their contents in GNU/Linux and other Unix-like computer operating systems such as GNU/Hurd. Therefore, all packages should be fixed using the required standard without exceptions.
  4. Free software projects: If there is software that contain a stable version, then the upstream version should be blacklisted. There are examples such as:
    • a) The long-term support (LTS) of Linux-libre kernel instead of the upstream one.
    • b) The extended support release (ESR) of libre version of Iceweasel instead of the upstream one.
    • c) The stable version of Nginx instead of the mainline one.
    • d) The still version of LibreOffice instead of the fresh one.
    • e) The stable version of GnuPG instead of the modern one.
  5. Anti-abandonware: Hyperbola considers orphaned projects without bugfixes and patches activity as security issue and should be blacklisted. Exceptions are considered:
    • a) If a package is needed for a functionality and there is no a current replacement for it.
    • b) If a package is an important dependency for active projects and there is no a current replacement for it.
    • c) If a package is a driver, firmware or hardware emulation and there is no a current replacement for it.
  6. Snapshot versions: Since Hyperbola is a long-term support (LTS) distribution; all packages are based on Arch snapshots from the above-mentioned date announced in the Hyperbola mailing lists or main page, and designed to be supported for a longer than normal period until the next stable release. Exceptions are considered:
    • a) If a package version in the snapshot is 1.1.0, and there is a bugfix in 1.1.1, it could be upgraded because it is a revision, not a strong upgrade or a drastic version change.
    • b) If a package version in the snapshot is 1.1.0.a, and there is a bugfix in 1.1.0.b, it could be upgraded because it is a revision, not a strong upgrade or a drastic version change.
    • c) If a package version in the snapshot is 1.1.0-beta, and there is a final version in 1.1.0, it could be upgraded.
    • d) If a package version in the snapshot is 1.1.0-beta without plans for a final version, and there is a 2.0.0-rc, it could be upgraded as exception.
    • e) If a package version in the snapshot is 1.1.0 and depends on abandonware project (eg. OpenRC 0.25.x depends on SysVinit), and there is a 1.2.0 with a replacement, it could be upgraded as bugfix version. (eg. SysVinit is replaced with openrc-init in OpenRC 0.28.x).
    • f) If a package version in the snapshot is a long-term support (LTS) project, all minor versions of a release series are accepted as exception such as ESR 52 series in the libre version of Iceweasel (eg. 52.x.x).
    • g) If a package version needs taking security parts from a newer version, but it is inefficient to be backported, a newer version could be considered as exception (see Backporting amendment for further details).
  7. Package release: All packages contain a release number specific in the pkgrel for package maintainers to make updates to the package's configure flags inside PKGBUILD. This is typically set to 1 for each new stable upstream software release and incremented for intermediate PKGBUILD updates, however if a package comes from Arch or AUR with modifications made for Hyperbola, then it should set to “$archreleasenumber.hyperbola$hyperbolareleasenumber” (eg. pkgrel=1.hyperbola1). Exceptions are considered:
    • a) If a package was not modified from official Arch or AUR package(s).
    • b) If a package was built from a libre replacement project (eg. Linux-libre kernel) or another libre project not included in Arch or AUR.
  8. Backporting: Hyperbola uses the term backporting to describe a package which needs many modifications spread across multiple files of the code and it is inefficient to be fixed. In this case, the newer version replaces the current one ​to be adjusted and adapted for usage on the current stable release. It requires be repackaged with the appropriate package release “backports$backportsreleasenumber” for official Arch, AUR or Hyperbola packages (eg. pkgrel=1.backports1) and Arch or AUR packages modified by Hyperbola (eg. pkgrel=1.hyperbola1.backports1) until the next stable release. Backporting is accepted in Hyperbola as exception, but under the following conditions:
    • a) All newer version packages and its required newer version library and dependency packages should be repackaged with the appropriate package release too, since it will be rebuilt in a stable environment so that it will run without new libraries. This suffix is applied until the next stable release.
    • b) All newer version packages should follow the snapshot version rules from Hyperbola Packaging Guidelines using its release date as a snapshot version, it means Hyperbola will not accept recurrent drastic version changes as long as fixing is possible.
  9. Package licenses: All packages contain a license field that specifies the license(s) source that apply to the package using the commonly used licenses in /usr/share/licenses/common. It means, if a source is under a license which is available in /usr/share/licenses/common (eg. GPL2), simply it should be referenced in the package license field (eg. license=('GPL2')). If it is not the case, then it should be included in the package itself and set license=('custom:LicenseName'). The license file should be placed in /usr/share/licenses/$pkgname when building the package. If multiple licenses are applicable, all of them should be listed (eg. license=('GPL2' 'FDL1.3')).
  10. Debian patches: All packages contain Debian security/stability patches to follow the Social Contract and the program quilt to automate the patching. The mdadm's PKGBUILD is used as example for all packages. Exceptions are considered:
    • a) If Debian does not maintain the required package. In this case, we should use the Devuan or Gentoo patches.
    • b) If there are no patches available for the required package.
    • c) For Linux-libre kernels.
  11. HTTPS and tarballs: All packages need to be built from the source through its official tarball not from a version control system (VCS). Therefore, all packages should be fixed using the required tarball from its HTTPS site. Exceptions are considered:
    • a) If there is not an HTTPS site. In this case, HTTP is the alternative option.
    • b) If there is not an HTTP site. In this case, FTP is the alternative option.
    • c) If there is no an official tarball. In this case, tarballs from the official Debian repositories is the alternative option.
    • d) If there is an official tarball, however tarballs from the official Debian repositories contain bugfixes. In this case, the official tarballs from Debian should be used by default. (eg. Mutt+NeoMutt bugfixes)
    • e) If there is an official tarball, however it requires download git submodules to be built from the source. In this case, tarballs from the official Debian repositories is the alternative option.
    • f) If there are no available tarballs. In this case, it should be used in a specific tag or branch from a version control system (VCS) and repackaged with the appropriate suffix (eg. -bzr for Bazaar, -git for Git, -hg for Mercurial and -svn for Subversion) until a final version is available.
    • g) If there is not support for GNU/Linux in tarballs, tags or branches. In this case, a master branch from a version control system (VCS) could be used temporarily and repackaged with the appropriate suffix (eg. -bzr for Bazaar, -git for Git, -hg for Mercurial and -svn for Subversion) until a final version with GNU/Linux support is available.
  12. SHA512 or WHIRLPOOL: All packages should use SHA512 or WHIRLPOOL cryptographic hash functions only. Other cryptographic hash functions such as MD5 and SHA1 should not be used because they are severely compromised. Exceptions are considered:
    • a) If the package is using a version control system (VCS) because it does not contain GNU/Linux support or/and tarballs.
  13. GPG: All packages should use signature verification. Exceptions are considered:
    • a) If tarballs do not contain signatures.
  14. Anti-obfuscation: obfuscation is the deliberate act of creating obfuscated code, i.e. source or machine code that is difficult for humans to understand. All obfuscated code will be rejected without exceptions.