Skip to content

Commit

Permalink
[deb] Add some fixes from downstream Debian
Browse files Browse the repository at this point in the history
Signed-off-by: Arif Ali <[email protected]>
  • Loading branch information
arif-ali committed Jul 18, 2024
1 parent e98ae54 commit 4ef4f02
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 4 deletions.
39 changes: 38 additions & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,47 @@ deb_build_task:
pip3 install -r test-requirements.txt --break-system-packages
main_script: |
dpkg-buildpackage -b -us -uc -rfakeroot -m --build-by="[email protected]"
prep_artifacts_script: mv ../*.deb ./sos_cirrus.deb
prep_artifacts_script: |
tar cf sos_cirrus_deb.tgz ../*.buildinfo ../*.changes ../*.deb
mv ../*.deb ./sos_cirrus.deb
packages_artifacts:
path: ./sos_cirrus.deb
type: application/octet-stream
pkgsrc_artifacts:
path: ./sos_cirrus_deb.tgz

# Run lintian on the deb package sources
deb_lintian_task:
alias: "deb_lintian"
name: "deb lintian from Checkout build"
depends_on:
- deb_build
gce_instance:
image_project: "${UBUNTU_PROJECT}"
image_name: "${UBUNTU_DEB_IMAGE_NAME}"
type: e2-micro
setup_script: |
apt update --allow-releaseinfo-change
apt -y install lintian
$ARTCURL/deb%20Build%20From%20Checkout/pkgsrc/sos_cirrus_deb.tgz
tar xf sos_cirrus_deb.tgz
main_script:
lintian -v -i -I -E --pedantic --profile debian *.changes

# Check license of all files based on debian/copyright file
deb_license_check_task:
alias: "deb_license_check"
name: "deb license check from Checkout"
allow_failures: true
gce_instance:
image_project: "${UBUNTU_PROJECT}"
image_name: "${UBUNTU_DEB_IMAGE_NAME}"
type: e2-micro
setup_script: |
apt update --allow-releaseinfo-change
apt -y install licenserecon
main_script:
lrc

# Make sure a user can manually build a snap from the checkout
snap_build_task:
Expand Down
7 changes: 4 additions & 3 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ Source: sosreport
Maintainer: David Negreira <[email protected]>
Section: admin
Priority: optional
Standards-Version: 4.5.1
Standards-Version: 4.7.0
Rules-Requires-Root: no
Build-Depends:
debhelper-compat (= 13),
dh-python,
Expand All @@ -19,11 +20,11 @@ Build-Depends:
Homepage: https://github.com/sosreport/sos
Vcs-Browser: https://salsa.debian.org/sosreport-team/sosreport
Vcs-Git: https://salsa.debian.org/sosreport-team/sosreport.git
X-Python3-Version: >= 3.6

Package: sosreport
Architecture: any
Depends: ${python3:Depends}, ${misc:Depends}, python3-pexpect, python3-magic, python3-packaging, python3-boto3
Depends: ${python3:Depends}, ${misc:Depends}, python3-pexpect, python3-magic, python3-packaging
Recommends: python3-boto3
Description: Set of tools to gather troubleshooting data from a system
Sos is a set of tools that gathers information about system
hardware and configuration. The information can then be used for
Expand Down
10 changes: 10 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ Upstream-Name: sosreport
Upstream-Contact: Jake Hunsaker <[email protected]>
Source: https://github.com/sosreport/sos

Files: *
Copyright: 2007-2024 Upstream
License: GPL-2+

Files: debian/*
Copyright:
2013 Adam Stokes <[email protected]>
2023-2024 Canonical Ltd.
License: GPL-2+

License: GPL-2+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down

0 comments on commit 4ef4f02

Please sign in to comment.