Debian packaging issues
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-firmware (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Lintian reports many packaging issues.
The following issues can easily be fixed with small updates inside debian/*:
W: linux-firmware source: debhelper-
E: linux-firmware source: declares-
E: linux-firmware source: depends-
W: linux-firmware source: debian-
W: linux-firmware source: ancient-
W: linux-firmware: copyright-
W: linux-firmware: extra-license-file lib/firmware/GPL-3
W: linux-firmware: extra-license-file lib/firmware/
W: linux-firmware: script-
W: linux-firmware: executable-
W: linux-firmware: executable-
W: linux-firmware: executable-
W: linux-firmware: executable-
W: linux-firmware: executable-
W: linux-firmware: executable-
The remaining ones should be overridden:
W: linux-firmware: windows-
W: linux-firmware: extra-license-file usr/share/
W: linux-firmware: extra-license-file usr/share/
I'm running Ubuntu 14.04.
Fixed packaging files are attached.
Additionally here's a diff:
--- a/compat
+++ b/compat
@@ -1 +1 @@
-5
+9
--- a/control
+++ b/control
@@ -2,14 +2,15 @@
Section: misc
Priority: optional
Maintainer: Ubuntu Kernel Team <email address hidden>
-Standards-Version: 3.6.1
-Build-Depends: debhelper (>= 4.0.0), rsync, gcc
+Standards-Version: 3.9.5
+Build-Depends: debhelper (>= 9), rsync
Vcs-Git: git://kernel.
Package: linux-firmware
Architecture: all
Multi-Arch: foreign
Priority: optional
+Depends: ${misc:Depends}
Provides: atmel-firmware
Conflicts: atmel-firmware
Replaces: atmel-firmware, linux-restricte
@@ -20,6 +21,7 @@
XC-Package-Type: udeb
Architecture: all
Section: debian-installer
+Depends: ${misc:Depends}
Description: Firmware for NICs
This package contains firmware needed by some network controllers.
@@ -27,5 +29,6 @@
XC-Package-Type: udeb
Architecture: all
Section: debian-installer
+Depends: ${misc:Depends}
Description: Firmware for SCSI controllers
This package contains firmware needed by some scsi controllers.
--- a/copyright
+++ b/copyright
@@ -6,6 +6,9 @@
This package is currently maintained by the
Ubuntu Kernel Team <email address hidden>
+Copyright (c) 2008-2015 Ubuntu Kernel Team <email address hidden>
+
+
FIRMWARE:
TERMS AND CONDITIONS
--- /dev/null
+++ b/linux-
@@ -0,0 +1,2 @@
+/usr/share/
+/usr/share/
--- /dev/null
+++ b/linux-
@@ -0,0 +1,8 @@
+# False positive. This is actually a firmware binary.
+linux-firmware: windows-
+
+# This is probably better then creating an unreadable wall of text
+# in a single file.
+linux-firmware: extra-license-file usr/share/
+linux-firmware: extra-license-file usr/share/
+
--- a/rules
+++ b/rules
@@ -8,38 +8,40 @@
#
#
-# This is the debhelper compatability version to use.
-export DH_COMPAT=5
-export LC_ALL=C
-export SHELL=/bin/bash -e
-
#
# A list of the directories created by makefiles under fw_source.
#
GENERATED_DIRS=ea
-binary-arch:
-
-build-arch:
- $(MAKE) -C fw_source update
-
-build-indep:
-
firm_dir = $(CURDIR)
doc_dir = $(CURDIR)
license_dir = $(doc_dir)/licenses
nic_firm_dir = $(CURDIR)
scsi_firm_dir = $(CURDIR)
-install-indep: build-indep
- dh_testdir
- dh_testroot
- dh_clean -k -i
+%:
+ dh $@ --parallel
+
+override_
+ dh_auto_clean
+ rm -rf $(GENERATED_DIRS)
+
+override_
+ $(MAKE) -C fw_source update
+
+override_
+
+override_
install -d $(firm_dir)
- rsync -a --exclude=WHENCE --exclude=.git --exclude=debian --exclude fw_source * $(firm_dir)
- find $(firm_dir) -type f -name "LICEN[CS]E*" |xargs rm
+ rsync -a --exclude=WHENCE --exclude=
+ --exclude=fw_source --exclude=configure --exclude=Makefile * $(firm_dir)
+ find $(firm_dir) -type f -name "LICEN[CS]E*" -delete
+
+ for ext in bin img asc dfu fw z77 S lds c h txt cmake diff cis sbcf bseq ucode dsp dat csp sys ncf; do \
+ chmod 0644 `find $(firm_dir) -type f -name \*.$$ext` ; \
+ done
for f in $$(cat debian/
install -m644 -D $$f $(nic_firm_
@@ -55,24 +57,3 @@
install -d $(license_dir)
cp LICEN[CS]E* $(license_dir)
-binary-indep: install-indep
- dh_testdir
- dh_testroot
-
- dh_installchang
- dh_installdocs -i
- dh_compress -i
- dh_fixperms -i
- dh_installdeb -i
- dh_gencontrol -i
- dh_md5sums -i
- dh_builddeb -i
-
-binary: binary-indep binary-arch
-build: build-arch build-indep
-
-clean:
- rm -rf $(GENERATED_DIRS)
- dh_testdir
- dh_testroot
- dh_clean
--- /dev/null
+++ b/source/format
@@ -0,0 +1 @@
+3.0 (native)
--- /dev/null
+++ b/source/options
@@ -0,0 +1 @@
+compression = bzip2
tags: | added: patch |
I believe this has been addressed in the meantime, please confirm.
https:/ /git.launchpad. net/~ubuntu- kernel/ ubuntu/ +source/ linux-firmware/ tree/debian? h=jammy