-
Notifications
You must be signed in to change notification settings - Fork 551
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[debian][pkg] Update to latest packaging config
Bringing in most of the relevant changes from downstream build environment No transitional package to be used upstream Signed-off-by: Arif Ali <arif.ali@canonical.com>
- Loading branch information
1 parent
c506cee
commit 9a91496
Showing
14 changed files
with
228 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
debian/patches/0002-debian-do-not-install-LICENSE-README-AUTHORS.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From: Marc Leeman <marc.leeman@gmail.com> | ||
Date: Mon, 8 Jul 2024 09:53:51 +0100 | ||
Subject: Do not install LICENSE file | ||
|
||
Last-Update: 2024-08-29 | ||
Forwarded: not-needed | ||
|
||
The LICENSE in debian is contained in the copyright file that contains | ||
the same information. | ||
|
||
The files in share/doc/sos are already being populated into share/doc/sosreport | ||
so we don't want them to be duplicated. | ||
--- | ||
setup.py | 2 -- | ||
1 file changed, 2 deletions(-) | ||
|
||
diff --git a/setup.py b/setup.py | ||
index 6c0b09a1..c214570d 100644 | ||
--- a/setup.py | ||
+++ b/setup.py | ||
@@ -26,8 +26,6 @@ setup( | ||
'man/en/sos-mask.1', 'man/en/sos-help.1', | ||
'man/en/sos-upload.1']), | ||
('share/man/man5', ['man/en/sos.conf.5']), | ||
- ('share/licenses/sos', ['LICENSE']), | ||
- ('share/doc/sos', ['AUTHORS', 'README.md']), | ||
('config', ['sos.conf', 'tmpfiles/tmpfilesd-sos-rh.conf']) | ||
], | ||
packages=find_packages(include=['sos', 'sos.*']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
0001-debian-change-tmp-dir-location.patch | ||
0002-debian-do-not-install-LICENSE-README-AUTHORS.patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
#!/usr/bin/make -f | ||
|
||
export PYBUILD_NAME=sosreport | ||
export PYBUILD_NAME=sos | ||
export PYBUILD_DESTDIR=debian/$(PYBUILD_NAME) | ||
|
||
%: | ||
dh $@ --with python3 --buildsystem=pybuild | ||
|
||
override_dh_install: | ||
# Move config file to the right location. | ||
mv debian/sosreport/usr/config/sos.conf debian/sosreport/etc/sos/sos.conf | ||
mkdir -p debian/sos/etc/sos | ||
mv debian/sos/usr/config/sos.conf debian/sos/etc/sos/sos.conf | ||
# Remove unnecessary unused dir. | ||
rm -rf debian/sosreport/usr/config | ||
rm -rf debian/sos/usr/config | ||
|
||
override_dh_auto_test: | ||
nosetests3 -v --with-cover --cover-package=sos tests/unittests --ignore-files="policy_tests\.py" | ||
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) | ||
python3 -m unittest -v $(shell find tests/unittests -name "*_tests.py" -not -path "*policy_tests.py") | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
sos source: debian-watch-does-not-check-openpgp-signature [debian/watch] | ||
sos source: very-long-line-length-in-source-file 1039 > 512 [tests/report_tests/plugin_tests/juju/agent.conf:188] | ||
sos source: very-long-line-length-in-source-file 2374 > 512 [tests/report_tests/plugin_tests/curtin/curtin-install.log:883] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
Tests: simple.sh | ||
Depends: sosreport | ||
Restrictions: needs-root, allow-stderr, isolation-machine | ||
Tests: | ||
simple.sh, | ||
Depends: | ||
iproute2, | ||
kmod, | ||
lshw, | ||
sos, | ||
Restrictions: | ||
allow-stderr, | ||
needs-root, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Bug-Database: https://github.com/sosreport/sos/issues | ||
Bug-Submit: https://github.com/sosreport/sos/issues/new | ||
Documentation: https://github.com/sosreport/sos/wiki | ||
https://sos.readthedocs.io/ | ||
Repository: https://github.com/sosreport/sos.git | ||
Repository-Browse: https://github.com/sosreport/sos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
version=4 | ||
opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%sos-$1.tar.gz%" \ | ||
https://github.com/sosreport/sos/tags \ | ||
(?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate | ||
https://github.com/sosreport/sos/tags .*/v?(\d.*)@ARCHIVE_EXT@ |