]> git.sesse.net Git - bcachefs-tools-debian/blob - packaging/README
Disable pristine-tar option in gbp.conf, since there is no pristine-tar branch.
[bcachefs-tools-debian] / packaging / README
1 ==== liburcu requirement ====
2
3 https://liburcu.org/ is needed for this software to work, but older RHEL/CentOS and other
4 distros might not have a reliable install. You might have to do the following...
5
6 1. Make & install the latest liburcu tarball from their site.
7 2. In the Makefile for bcachefs-tools...
8    a. Remove liburcu from PKGCONFIG_LIBS
9    b. Add -lurcu to LDLIBS
10 3. Add LD_LIBRARY_PATH=/usr/local/lib to /etc/environment
11 4. Remove "BuildRequires:  userspace-rcu-devel" and "Requires:   userspace-rcu" from the
12    spec file here.
13
14 ==== RHEL-CentOS 7 ====
15
16 You need to use https://www.softwarecollections.org/ to install a newer GCC.
17
18 As root: yum install devtoolset-8-gcc
19
20 Before building: scl enable devtoolset-8 bash
21
22 ===== RHEL-CentOS (any) ====
23
24 1. As root, "yum install rpmdevtools help2man"
25 2. Make a non-root user to build RPMs with.
26 3. "su - (non-root user)" and use "rpmdev-setuptree" to create an RPM build structure.
27 4. Copy the SPEC file from this directory to the "~/rpmbuild/SPECS/" folder.
28 6. Move the parent directory here to bcachefs-tools-(VERSION), and "cd" to its parent.
29 7. "tar cjf bcachefs-tools-(VERSION).tar.bz2 (directory of bcachefs-tools-(VERSION))"
30 8. "rpmbuild -bs ~/rpmbuild/SPECS/bcachefs-tools.spec"
31 9. "rpmbuild -bb ~/rpmbuild/SPECS/bcachefs-tools.spec"
32 10. The RPMs will be in "~/rpmbuild/RPMS" and "~/rpmbuild/SRPMS".