diff mbox series

debian: fix lintian errors and warnings

Message ID 20230706091126.58940-1-ivan.hu@canonical.com
State Accepted
Headers show
Series debian: fix lintian errors and warnings | expand

Commit Message

ivanhu July 6, 2023, 9:11 a.m. UTC
BugLink: https://bugs.launchpad.net/fwts/+bug/2026268

fix the lintian errors and warnings below,
E: fwts source: missing-build-dependency-for-dh_-command dh_dkms => dkms | dh-sequence-dkms [debian/rules]
W: fwts source: debian-rules-sets-dpkg-architecture-variable DEB_BUILD_ARCH (line 5)
W: fwts source: superfluous-file-pattern src/acpi/common/common.c [debian/copyright:11]
W: fwts source: superfluous-file-pattern src/acpica/source/compiler/fwts_iasl_interface.c [debian/copyright:5]
W: fwts source: superfluous-file-pattern src/acpica/source/compiler/fwts_iasl_interface.h [debian/copyright:5]
W: fwts source: superfluous-file-pattern src/dmi/dmi_decode/dmi_decode.c [debian/copyright:11]
W: fwts source: superfluous-file-pattern src/hpet/hpet_check/hpet_check.c [debian/copyright:11]
W: fwts source: superfluous-file-pattern src/lib/include/fwts_e820.h [debian/copyright:11]
W: fwts source: superfluous-file-pattern src/lib/include/fwts_virt.h [debian/copyright:31]
W: fwts source: superfluous-file-pattern src/lib/src/e820.c [debian/copyright:11]
W: fwts source: superfluous-file-pattern src/lib/src/virt.c [debian/copyright:31]
W: fwts source: useless-autoreconf-build-depends dh-autoreconf

Signed-off-by: Ivan Hu <ivan.hu@canonical.com>
---
 debian/control   |  3 +--
 debian/copyright | 11 ++---------
 debian/rules     |  2 --
 3 files changed, 3 insertions(+), 13 deletions(-)
diff mbox series

Patch

diff --git a/debian/control b/debian/control
index 4c70b372..c3a2e607 100644
--- a/debian/control
+++ b/debian/control
@@ -12,8 +12,7 @@  Build-Depends: debhelper-compat (= 13),
                libtool,
                flex,
                bison,
-               dh-autoreconf,
-               dkms (<< 3.0.3-3~) | dh-dkms,
+               dkms (<< 3.0.3-3~) | dh-sequence-dkms,
                libglib2.0-dev,
                pkg-config,
                libfdt-dev,
diff --git a/debian/copyright b/debian/copyright
index bd377e69..2f1045f2 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -3,14 +3,13 @@  Upstream-Name: fwts
 Source: git://kernel.ubuntu.com/hwe/fwts
 
 Files: *
-       src/acpica/source/compiler/fwts_iasl_interface.c
-       src/acpica/source/compiler/fwts_iasl_interface.h
+       src/libfwtsiasl/fwts_iasl_interface.c
+       src/libfwtsacpica/fwts_acpica.c
 Copyright: 2010-2023, Canonical Ltd
 License: GPL-2
 
 Files: src/acpi/acpiinfo/acpiinfo.c
        src/acpi/battery/battery.c
-       src/acpi/common/common.c
        src/acpi/cstates/cstates.c
        src/acpi/dmar/dmar.c
        src/acpi/fan/fan.c
@@ -19,18 +18,12 @@  Files: src/acpi/acpiinfo/acpiinfo.c
        src/bios/mtrr/mtrr.c
        src/cpu/cpufreq/cpufreq.c
        src/cpu/microcode/microcode.c
-       src/dmi/dmi_decode/dmi_decode.c
-       src/hpet/hpet_check/hpet_check.c
-       src/lib/include/fwts_e820.h
-       src/lib/src/e820.c
        src/pci/maxreadreq/maxreadreq.c
 Copyright: 2010-2023, Canonical Ltd
            2006, Intel Corporation
 License: GPL-2
 
 Files: src/cpu/virt/virt.c
-       src/lib/include/fwts_virt.h
-       src/lib/src/virt.c
 Copyright: 2010-2023, Canonical Ltd
            2007, AMD Inc
            2006, Intel Corporation
diff --git a/debian/rules b/debian/rules
index 01b952af..00fa5ba1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,8 +2,6 @@ 
 
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
-DEB_BUILD_ARCH := $(shell dpkg-architecture -qDEB_BUILD_ARCH)
-
 DEBVERS := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2 \
 		| cut -d- -f1)