[gnome-build-meta/alatiera/debugsym] vm: include debuginfo by default
- From: Jordan Petridis <jpetridis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/alatiera/debugsym] vm: include debuginfo by default
- Date: Fri, 28 Jan 2022 19:18:47 +0000 (UTC)
commit be1e15e70105f7439108073c13a27f3ce0826469
Author: Jordan Petridis <jordan centricular com>
Date: Thu Jan 27 12:26:55 2022 +0200
vm: include debuginfo by default
Include debuginfo for most of the stack, minus webkit.
Also strip the generated sources to reduce the size of the
refs/objects.
And also strip the .debug files of various utilities that
are sizable enough and we are unlikely to debug in gnomeos
as they are outside our stack.
Close #322
elements/vm/cleanup-debug-devel.bst | 38 +++++++++++++++++++++++++++++++++++++
elements/vm/cleanup-debug-user.bst | 36 +++++++++++++++++++++++++++++++++++
elements/vm/filesystem-devel.bst | 5 ++++-
elements/vm/filesystem.bst | 4 +++-
4 files changed, 81 insertions(+), 2 deletions(-)
---
diff --git a/elements/vm/cleanup-debug-devel.bst b/elements/vm/cleanup-debug-devel.bst
new file mode 100644
index 000000000..896a19655
--- /dev/null
+++ b/elements/vm/cleanup-debug-devel.bst
@@ -0,0 +1,38 @@
+kind: stack
+
+depends:
+- freedesktop-sdk.bst:bootstrap-import.bst
+
+public:
+ bst:
+ integration-commands:
+ - rm -r '%{debugdir}%{libexecdir}/valgrind'
+
+ - rm '%{debugdir}/usr/%{triplet}/bin/ld.gold.debug'
+ - rm '%{debugdir}%{bindir}/ctest.debug'
+ - rm '%{debugdir}%{bindir}/cpack.debug'
+ - rm '%{debugdir}%{bindir}/cmake.debug'
+ - rm '%{debugdir}%{bindir}/ccmake.debug'
+ - rm '%{debugdir}%{bindir}/c-index-test.debug'
+ - rm '%{debugdir}%{bindir}/llvm-exegesis.debug'
+ - rm '%{debugdir}%{bindir}/gdb.debug'
+ - rm '%{debugdir}%{bindir}/dwp.debug'
+ - rm '%{debugdir}%{bindir}/ccache.debug'
+ - rm '%{debugdir}%{libdir}/libLLVM-12.so.debug'
+ - rm '%{debugdir}%{libdir}/libclang.so.12.debug'
+ - rm '%{debugdir}%{libdir}/libclang-cpp.so.12.debug'
+ - rm '%{debugdir}%{bindir}/doxygen.debug'
+ - rm '%{debugdir}%{bindir}/podman.debug'
+ - rm '%{debugdir}%{bindir}/podman-remote.debug'
+ - rm '%{debugdir}%{bindir}/obj2yaml.debug'
+ - rm '%{debugdir}%{bindir}/yaml2obj.debug'
+ - rm '%{debugdir}%{bindir}/llvm-tblgen.debug'
+ - rm '%{debugdir}%{bindir}/lli-child-target.debug'
+ - rm '%{debugdir}%{bindir}/perf.debug'
+
+ # might be good to have later once vulkan backends get going
+ - rm '%{debugdir}%{libdir}/libSPIRV-Tools-opt.so.debug'
+ - rm '%{debugdir}%{libdir}/libSPIRV-Tools-reduce.so.debug'
+ - rm '%{debugdir}%{libdir}/libSPIRV-Tools-shared.so.debug'
+ - rm '%{debugdir}%{libdir}/libSPIRV-Tools.so.debug'
+ - rm '%{debugdir}%{libdir}/libSPIRV.so.debug'
diff --git a/elements/vm/cleanup-debug-user.bst b/elements/vm/cleanup-debug-user.bst
new file mode 100644
index 000000000..3f85c333d
--- /dev/null
+++ b/elements/vm/cleanup-debug-user.bst
@@ -0,0 +1,36 @@
+kind: stack
+
+depends:
+- freedesktop-sdk.bst:bootstrap-import.bst
+
+public:
+ bst:
+ integration-commands:
+ # we inherit fd.o sources
+ - rm -r '%{sourcedir}'
+
+ - rm -r '%{debugdir}%{libexecdir}/installed-tests'
+ - rm -r '%{debugdir}%{libexecdir}/gcc'
+ - rm -r '%{debugdir}%{libdir}/samba'
+ - rm -r '%{debugdir}%{libdir}/sane'
+
+ # gjs deps on mozjs91, polkit only deps on 78
+ - rm '%{debugdir}%{libdir}/libmozjs-78.so.debug'
+
+ - rm '%{debugdir}%{libdir}/libaom.so.3.2.0.debug'
+ - rm '%{debugdir}%{libdir}/libVkLayer_khronos_validation.so.debug'
+ - rm '%{debugdir}%{libdir}/libprotoc.so.26.0.8.debug'
+ - rm '%{debugdir}%{libdir}/libprotobuf.so.26.0.8.debug'
+
+ - rm '%{debugdir}%{bindir}/lto-dump.debug'
+ - rm '%{debugdir}%{bindir}/gs.debug'
+ - rm '%{debugdir}%{bindir}/gpcl6.debug'
+ - rm '%{debugdir}%{bindir}/gxps.debug'
+ - rm '%{debugdir}%{bindir}/fish_indent.debug'
+ - rm '%{debugdir}%{bindir}/fish.debug'
+ - rm '%{debugdir}%{bindir}/fish_key_reader.debug'
+ - rm '%{debugdir}%{bindir}/smbtorture.debug'
+ - rm '%{debugdir}%{bindir}/gen_binary_files.debug'
+
+ # gtk-doc/html/{gio, glib, gobject, libxml2, orc} inherited from fd.o
+ - rm -r '%{datadir}/gtk-doc/html'
\ No newline at end of file
diff --git a/elements/vm/filesystem-devel.bst b/elements/vm/filesystem-devel.bst
index efbf2ef4b..0868159fe 100644
--- a/elements/vm/filesystem-devel.bst
+++ b/elements/vm/filesystem-devel.bst
@@ -3,8 +3,11 @@ kind: compose
build-depends:
- vm/deps-devel.bst
- vm/initramfs.bst
+- vm/cleanup-debug-user.bst
+- vm/cleanup-debug-devel.bst
- vm/manifest-devel.bst
config:
exclude:
- - debug
+ - webkit-debug
+ - source
diff --git a/elements/vm/filesystem.bst b/elements/vm/filesystem.bst
index 932f08c90..612ac58df 100644
--- a/elements/vm/filesystem.bst
+++ b/elements/vm/filesystem.bst
@@ -3,10 +3,12 @@ kind: compose
build-depends:
- vm/deps.bst
- vm/initramfs.bst
+- vm/cleanup-debug-user.bst
- vm/manifest.bst
config:
exclude:
- devel
- - debug
- doc
+ - webkit-debug
+ - source
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]