Skip to content

Commit 85aa07d

Browse files
Merge pull request #1681 from kaysond/patch-1
Fix Debian packaging issues
2 parents eeaae36 + b96820e commit 85aa07d

File tree

5 files changed

+25
-3
lines changed

5 files changed

+25
-3
lines changed

tools/pckgen.d/deb/debian/changelog

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@
44

55
-- <PACKAGE_MAINTAINER> <PACKAGE_DATE>
66

7+
open-cas-linux (25.03.0.0980-1) trusty; urgency=medium
8+
9+
* Fix package build
10+
11+
-- Rafal Stefanowski <rafal.stefanowski@open-cas.com> Mon, 08 Sep 2025 13:31:02 +0100
12+
13+
open-cas-linux (25.03.0.0980-1) trusty; urgency=medium
14+
15+
* Fix package build
16+
17+
-- Aram Akhavan <github@aram.nubmail.ca> Mon, 01 Sep 2025 22:27:59 -0700
18+
719
open-cas-linux (22.03.0.0683-1) trusty; urgency=medium
820

921
* Fix debug packages creation

tools/pckgen.d/deb/debian/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Source: <CAS_NAME>
22
Section: utils
33
Priority: optional
44
Maintainer: <PACKAGE_MAINTAINER>
5-
Build-Depends: debhelper (>= 11), gawk, libelf-dev, linux-headers-generic, dkms
5+
Build-Depends: debhelper (>= 11), gawk, libelf-dev, linux-headers-generic, dkms, dh-dkms
66
Standards-Version: 4.1.2
77
Homepage: <CAS_HOMEPAGE>
88
Vcs-Git: <CAS_GIT>

tools/pckgen.d/deb/debian/rules

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/make -f
22
#
33
# Copyright(c) 2020-2022 Intel Corporation
4+
# Copyright(c) 2025 Huawei Technologies
45
# SPDX-License-Identifier: BSD-3-Clause
56
#
67

@@ -14,6 +15,7 @@ override_dh_auto_configure:
1415

1516
override_dh_auto_build:
1617
(cd tools/; ./cas_version_gen.sh build)
18+
make -C utils
1719
<MAKE_BUILD>
1820

1921
override_dh_auto_install:

tools/pckgen.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ DEPENDENCIES_TAR=(tar)
4242
DEPENDENCIES_ZIP=(zip)
4343
DEPENDENCIES_RPM=(rpmbuild tar)
4444
DEPENDENCIES_SRPM=("${DEPENDENCIES_RPM[@]}")
45-
DEPENDENCIES_DEB=(debuild dh fakeroot tar dkms)
45+
DEPENDENCIES_DEB=(debuild dh fakeroot tar dkms dh_dkms)
4646
DEPENDENCIES_DSC=("${DEPENDENCIES_DEB[@]}")
4747
# List of relative submodule directories:
4848
SUBMODULES=(
@@ -236,7 +236,9 @@ check_dependencies() {
236236
DEPENDENCIES+=(${!DEP_NAME})
237237
done
238238
for DEP in ${DEPENDENCIES[@]}; do
239-
if ! which $DEP &>/dev/null; then
239+
# Some distros doesn't include /sbin and /usr/sbin in PATH for
240+
# unprivileged users, so append it temporarily for the dependency check.
241+
if ! PATH="$PATH:/sbin:/usr/sbin" which $DEP &>/dev/null; then
240242
local FAILED_DEPS+="$DEP "
241243
fi
242244
done

utils/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ manpage:
2727
gzip -k -f opencas.conf.5
2828
gzip -k -f casctl.8
2929

30+
clean:
31+
@rm -f opencas.conf.5.gz
32+
@rm -f casctl.8.gz
33+
34+
distclean: clean
35+
3036
install: install_files
3137
ifeq (, $(PYTHON3))
3238
$(error package 'python3' not found)

0 commit comments

Comments
 (0)