Skip to content

Commit

Permalink
fix packaging
Browse files Browse the repository at this point in the history
- 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 <[email protected]>
  • Loading branch information
fougner committed Dec 9, 2023
1 parent 6b674b8 commit 3ecafdb
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ Maintainer: Kent Overstreet <[email protected]>
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, udev, systemd
Homepage: https://bcachefs.org/

Package: bcachefs-tools
Expand Down
2 changes: 1 addition & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
PREFIX := /usr

%:
dh --with python3 $@
dh $@ --with python3

override_dh_auto_install:
dh_auto_install -- "PREFIX=$(PREFIX)"
1 change: 1 addition & 0 deletions fsck/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.service
bcachefsck_all
3 changes: 3 additions & 0 deletions packaging/bcachefs-tools.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -55,6 +56,8 @@ rm -f %{buildroot}/usr/lib/libbcachefs.so
%{_sbindir}/mkfs.fuse.bcachefs
%{_mandir}/man8/bcachefs.8.gz
%{_udevrulesdir}/64-bcachefs.rules
%{_unitdir}/*bcachefsck*
${_prefix}/lib/bcachefsck_*

%changelog
* Tue Nov 15 2022 Eric Sandeen <[email protected]> - 2022.11.15-1
Expand Down

0 comments on commit 3ecafdb

Please sign in to comment.