File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ sdb (0.6.0-1delphix1) unstable; urgency=medium
2+
3+ * Bootstrap merge of sdimitro/sdb (Spec 0003 Phase 1).
4+ * Repackage as a self-contained dh-virtualenv .deb.
5+
6+ -- Delphix Engineering <eng@delphix.com> Tue, 05 May 2026 00:00:00 +0000
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11Source: sdb
2- Section: misc
2+ Section: utils
33Priority: optional
4- Maintainer: Serapheim Dimitropoulos <serapheimd@gmail.com>
5- Standards-Version: 4.1.2
6- Build-Depends: debhelper (>= 9), dh-python, python3
4+ Maintainer: Delphix Engineering <eng@delphix.com>
5+ Build-Depends:
6+ debhelper-compat (= 13),
7+ dh-virtualenv (>= 1.2.2),
8+ python3,
9+ python3-dev,
10+ python3-pip,
11+ python3-setuptools,
12+ python3-venv
13+ Standards-Version: 4.6.2
14+ Homepage: https://github.com/sdimitro/sdb
715
816Package: sdb
9- Architecture: any
17+ Architecture: amd64
1018Depends: ${shlibs:Depends}, ${python3:Depends}
11- Description: The Slick/Simple Debugger
19+ Description: kernel debugger built on drgn
20+ sdb is a high-level kernel debugger built on top of drgn.
21+ .
22+ This package bundles drgn, kdumpling, pyelftools, and their
23+ transitive Python dependencies inside a self-contained virtualenv at
24+ /usr/share/python/sdb/. The /usr/bin/sdb entry point activates the
25+ venv. No external runtime dependency on libkdumpfile is required —
26+ drgn's manylinux wheel ships a bundled libkdumpfile.so via auditwheel
27+ with RPATH=$ORIGIN/drgn.libs.
Original file line number Diff line number Diff line change 1- Format: http ://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
1+ Format: https ://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
22Upstream-Name: sdb
3+ Upstream-Contact: Serapheim Dimitropoulos
34Source: https://github.com/sdimitro/sdb
45
56Files: *
6- Copyright: 2024 Serapheim Dimitropoulos
7- License: Apache-2.0
8-
9- Files: *
10- Copyright: 2016 - 2023 Delphix Corp.
11- License: Apache-2.0
7+ Copyright: see upstream LICENSE
8+ License: see upstream LICENSE
129
10+ Files: debian/*
11+ Copyright: 2026 Delphix
1312License: Apache-2.0
14- Licensed under the Apache License, Version 2.0 (the "License");
15- you may not use this file except in compliance with the License.
16- You may obtain a copy of the License at
17- .
18- http://www.apache.org/licenses/LICENSE-2.0
19- .
20- Unless required by applicable law or agreed to in writing, software
21- distributed under the License is distributed on an "AS IS" BASIS,
22- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23- See the License for the specific language governing permissions and
24- limitations under the License.
25- .
26- On Debian systems, the complete text of the Apache License can be found in
27- the file `/usr/share/common-licenses/Apache-2.0'.
Original file line number Diff line number Diff line change 11# !/usr/bin/make -f
22
33% :
4- dh $@ --with python3 --buildsystem=pybuild
5-
6- override_dh_auto_test :
7- #
8- # Don't run the tests when building the package. We'll enforce
9- # testing via another mechanism, so running it during package
10- # builds is unnecessary.
11- #
4+ dh $@ --with python_virtualenv
5+
6+ # drgn's manylinux wheel bundles pre-stripped .so files in drgn.libs/.
7+ # dh_dwz tries to compress their debug info but most of them have no
8+ # .debug_info sections, so it fails with "Too few files for multifile
9+ # optimization." Skip dwz entirely for this venv-only package.
10+ override_dh_dwz :
11+
12+ # Skip dh_strip for the same reason — stripping bundled libs further
13+ # produces no meaningful size savings and risks breaking auditwheel's
14+ # RPATH setup.
15+ override_dh_strip :
16+
17+ # drgn's bundled libs in drgn.libs/ use auditwheel's $ORIGIN RPATH and
18+ # aren't in any Debian package, so dpkg-shlibdeps can't resolve them.
19+ # Skip shlibdeps — the venv is self-contained; ${python3:Depends}
20+ # (filled by dh_python3) covers the Python runtime requirement.
21+ override_dh_shlibdeps :
22+
23+ # dh_python3 doesn't know about the venv layout dh_virtualenv produces
24+ # and will complain about unmanaged files. The dh-virtualenv add-on
25+ # already wires the right Python deps; skip dh_python3.
26+ override_dh_python3 :
Original file line number Diff line number Diff line change 1+ 3.0 (native)
You can’t perform that action at this time.
0 commit comments