Skip to content

Commit

Permalink
pkg(sbom): update debhelper compat to 12 and set override_dh_dwz
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Aug 4, 2023
1 parent 712e381 commit 58f5607
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion pkg/sbom/deb/compat

This file was deleted.

2 changes: 1 addition & 1 deletion pkg/sbom/deb/control
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Vcs-Browser: https://github.com/docker/sbom-cli-plugin
Vcs-Git: git://github.com/docker/sbom-cli-plugin.git
Standards-Version: 3.9.6
Build-Depends: bash,
debhelper (>= 10~) | dh-systemd,
debhelper-compat (= 12),
make

Package: docker-sbom-plugin
Expand Down
6 changes: 6 additions & 0 deletions pkg/sbom/deb/rules
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ override_dh_auto_test:
override_dh_strip:
# Go has lots of problems with stripping, so just don't

# http://manpages.debian.org/dh_dwz
override_dh_dwz:
# dh_dwz in debhelper versions less than 13 has issues with files that are missing debug symbols (once we update to debhelper-compat 13+ this can be removed)
@# https://packages.debian.org/debhelper
@# https://packages.ubuntu.com/debhelper

override_dh_auto_install:
install -D -m 0755 /usr/libexec/docker/cli-plugins/docker-sbom debian/docker-sbom-plugin/usr/libexec/docker/cli-plugins/docker-sbom

Expand Down
2 changes: 1 addition & 1 deletion pkg/sbom/scripts/pkg-deb-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ mkdir -p "${pkgoutput}"

set -x

chmod -x debian/compat debian/control debian/docs
chmod -x debian/control debian/docs
VERSION=${GENVER_VERSION} REVISION=${GENVER_COMMIT} dpkg-buildpackage $PKG_DEB_BUILDFLAGS --host-arch $(xx-info debian-arch) --target-arch $(xx-info debian-arch)
cp /root/docker-* "${pkgoutput}"/

0 comments on commit 58f5607

Please sign in to comment.