fix packaging

- make deb fails with dh: error: Unknown sequence --with
  (options should not come before the sequence)

- fix deb build deps

- add missing rpm files

Signed-off-by: Alexander Fougner <fougner89@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Alexander Fougner 2023-12-09 12:20:04 +01:00 committed by Kent Overstreet
parent b44629a3db
commit 4c5dcb018d
5 changed files with 13 additions and 8 deletions

View File

@ -18,11 +18,11 @@ jobs:
run: sudo rm -f /var/lib/man-db/auto-update
- name: Install build-deps
run: |
sudo apt-get update && sudo apt-get -y --no-install-recommends install pkg-config libaio-dev libblkid-dev \
libkeyutils-dev liblz4-dev libsodium-dev liburcu-dev libzstd-dev \
uuid-dev zlib1g-dev valgrind libudev-dev python3-docutils \
debhelper llvm clang libclang-dev rustc cargo \
devscripts udev
sudo apt-get update && sudo apt-get -y --no-install-recommends install \
valgrind \
equivs devscripts
mk-build-deps
sudo apt install ./bcachefs-tools-build-deps_*.deb
- name: Setup Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal

4
debian/control vendored
View File

@ -3,10 +3,10 @@ Maintainer: Kent Overstreet <kent.overstreet@gmail.com>
Section: utils
Priority: optional
Standards-Version: 3.9.5
Build-Depends: debhelper (>= 9), pkg-config, libaio-dev, libblkid-dev,
Build-Depends: debhelper (>= 9), dh-python, pkg-config, libaio-dev, libblkid-dev,
libkeyutils-dev, liblz4-dev, libsodium-dev, liburcu-dev, libudev-dev,
libzstd-dev, uuid-dev, zlib1g-dev, python3, python3-docutils,
rustc, cargo, llvm, clang, libclang-dev, systemd
rustc, cargo, llvm, clang, libclang-dev, systemd, udev
Homepage: https://bcachefs.org/
Package: bcachefs-tools

2
debian/rules vendored
View File

@ -3,7 +3,7 @@
PREFIX := /usr
%:
dh --with python3 $@
dh $@ --with python3
override_dh_auto_install:
dh_auto_install -- "PREFIX=$(PREFIX)"

1
fsck/.gitignore vendored
View File

@ -1 +1,2 @@
*.service
bcachefsck_all

View File

@ -20,6 +20,7 @@ BuildRequires: libuuid-devel
BuildRequires: libzstd-devel
BuildRequires: lz4-devel
BuildRequires: systemd-devel
BuildRequires: systemd-rpm-macros
BuildRequires: udev
BuildRequires: userspace-rcu-devel
BuildRequires: zlib-devel
@ -55,6 +56,9 @@ rm -f %{buildroot}/usr/lib/libbcachefs.so
%{_sbindir}/mkfs.fuse.bcachefs
%{_mandir}/man8/bcachefs.8.gz
%{_udevrulesdir}/64-bcachefs.rules
%{_unitdir}/bcachefsck*
%{_unitdir}/system-bcachefsck.slice
%{_prefix}/lib/bcachefsck*
%changelog
* Tue Nov 15 2022 Eric Sandeen <sandeen@sandeen.net> - 2022.11.15-1