2014-10-04 21:52:46 +02:00
|
|
|
[![Build Status](https://travis-ci.org/voidlinux/xbps.svg?branch=master)](https://travis-ci.org/voidlinux/xbps)
|
2014-10-04 22:14:32 +02:00
|
|
|
[![Build Status](https://scan.coverity.com/projects/3167/badge.svg)](https://scan.coverity.com/projects/3167)
|
2014-10-04 21:52:46 +02:00
|
|
|
|
2013-06-21 10:36:35 +02:00
|
|
|
## XBPS
|
|
|
|
|
2014-09-23 13:37:07 +02:00
|
|
|
The X Binary Package System (in short XBPS) is a binary package system
|
|
|
|
**designed and implemented from scratch**. Its goal is to be fast, easy to use,
|
|
|
|
bug-free, featureful and portable as much as possible.
|
2013-06-21 10:36:35 +02:00
|
|
|
|
2014-09-23 13:37:07 +02:00
|
|
|
The XBPS code is totally **compatible with POSIX/SUSv2/C99 standards**, and
|
|
|
|
released with a **Simplified BSD license (2 clause)**. There is a well
|
|
|
|
documented API provided by the XBPS Library that is the basis for its frontends
|
|
|
|
to handle binary packages and repositories. Some highlights:
|
2013-06-21 10:45:22 +02:00
|
|
|
|
2013-10-07 11:11:19 +02:00
|
|
|
* Supports **multiple local and remote repositories** (HTTP/HTTPS/FTP).
|
2013-10-08 10:28:31 +02:00
|
|
|
* **RSA signed remote repositories** (NEW in 0.27).
|
2013-06-21 10:45:22 +02:00
|
|
|
* **SHA256 hashes** for package metadata, files and binary packages.
|
2014-09-23 13:37:07 +02:00
|
|
|
* Supports **package states** (ala dpkg) to mitigate broken package
|
|
|
|
installs/updates.
|
2013-06-21 10:45:22 +02:00
|
|
|
* Ability to **resume** partial package install/updates.
|
|
|
|
* Ability to **unpack only files that have been modified** in package updates.
|
|
|
|
* Ability to use **virtual packages**.
|
2014-09-23 13:37:07 +02:00
|
|
|
* Ability to **check for incompatible shared libraries in reverse
|
|
|
|
dependencies**.
|
2013-06-21 10:45:22 +02:00
|
|
|
* Ability to **replace packages**.
|
|
|
|
* Ability to **put packages on hold** (to never update them. NEW in 0.16).
|
|
|
|
* Ability to **preserve/update configuration files**.
|
|
|
|
* Ability to **force reinstallation** of any installed package.
|
|
|
|
* Ability to **downgrade any** installed package.
|
|
|
|
* Ability to **execute pre/post install/remove/update scriptlets**.
|
2014-09-23 13:37:07 +02:00
|
|
|
* Ability to **check package integrity**: missing files, hashes, missing or
|
|
|
|
unresolved (reverse)dependencies, dangling or modified symlinks, etc.
|
2013-06-21 10:45:22 +02:00
|
|
|
* **Low memory** footprint.
|
|
|
|
* **Fast** dependency resolver and sorting algorithms.
|
2013-06-21 10:36:35 +02:00
|
|
|
|
2013-09-25 11:24:46 +02:00
|
|
|
### Getting source code
|
|
|
|
|
2014-09-23 13:37:07 +02:00
|
|
|
Starting with **0.26** there are not source tarballs anymore. **git** must be
|
|
|
|
used to clone the repository with the appropiate tag. The latest stable version
|
|
|
|
can be fetched with:
|
2013-09-25 11:24:46 +02:00
|
|
|
|
2013-11-14 16:24:25 +01:00
|
|
|
$ git clone -b <version> git://github.com/xtraeme/xbps.git
|
2013-09-25 11:24:46 +02:00
|
|
|
|
|
|
|
See `git tag -l` to list all available stable releases.
|
2013-06-21 10:36:35 +02:00
|
|
|
|
|
|
|
### Build requirements
|
2009-12-12 11:20:23 +01:00
|
|
|
|
|
|
|
To build this you'll need:
|
|
|
|
|
2014-01-05 10:11:35 +01:00
|
|
|
- A C99 compiler (clang and gcc tested)
|
2013-06-21 10:45:22 +02:00
|
|
|
- [GNU make](http://www.gnu.org/software/make/)
|
|
|
|
- [pkg-config](http://www.freedesktop.org/wiki/Software/pkg-config/)
|
|
|
|
- [zlib](http://www.zlib.net)
|
|
|
|
- [openssl](http://www.openssl.org)
|
2013-08-19 16:00:45 +02:00
|
|
|
- [libarchive >= 2.8.0](http://www.libarchive.org)
|
2010-01-23 02:37:19 +01:00
|
|
|
|
2012-03-12 15:39:53 +01:00
|
|
|
and optionally:
|
2010-01-23 02:37:19 +01:00
|
|
|
|
2014-09-23 13:37:07 +02:00
|
|
|
- [graphviz](http://www.graphviz.org) and [doxygen](http://www.doxygen.org)
|
|
|
|
(--enable-api-docs) to build API documentation.
|
|
|
|
- [atf >= 0.15](http://code.google.com/p/kyua) (--enable-tests) to build the
|
|
|
|
Kyua test suite.
|
2009-12-12 11:20:23 +01:00
|
|
|
|
2014-09-29 10:11:58 +02:00
|
|
|
### Tests
|
|
|
|
|
|
|
|
To run the test suite make sure *kyua* is installed and run the following:
|
|
|
|
|
|
|
|
```
|
|
|
|
./configure --enable-tests --enable-debug
|
|
|
|
make
|
|
|
|
make DESTDIR=~/XBPS install clean
|
|
|
|
LD_PRELOAD=~/XBPS/usr/local/lib/libxbps.so.2 PATH=~/XBPS/usr/local/sbin:$PATH kyua test -k ~/XBPS/usr/local/tests/xbps/Kyuafile
|
|
|
|
```
|
|
|
|
|
2013-06-21 10:36:35 +02:00
|
|
|
### Build instructions
|
|
|
|
|
|
|
|
Standard configure script (not generated by GNU autoconf).
|
|
|
|
|
|
|
|
```
|
|
|
|
./configure --prefix=/blah
|
|
|
|
make -jX
|
|
|
|
make install
|
|
|
|
```
|
|
|
|
|
2014-09-23 13:37:07 +02:00
|
|
|
By default PREFIX is set `/usr/local` and may be changed by setting `--prefix`
|
|
|
|
in the `configure` script. The `DESTDIR` variable is also supported at the
|
|
|
|
install stage.
|
2009-12-12 11:20:23 +01:00
|
|
|
|
2010-05-19 22:38:27 +02:00
|
|
|
There are some more options that can be tweaked, see them with
|
2014-09-23 13:53:38 +02:00
|
|
|
`./configure --help`.
|
2009-12-28 16:19:58 +01:00
|
|
|
|
2009-12-12 11:20:23 +01:00
|
|
|
Good luck!
|