]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
dwz: New package
authorStefan Schantl <stefan.schantl@ipfire.org>
Mon, 20 Mar 2023 19:06:43 +0000 (20:06 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 21 Mar 2023 18:20:56 +0000 (18:20 +0000)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
dwz/dwz.nm [new file with mode: 0644]

diff --git a/dwz/dwz.nm b/dwz/dwz.nm
new file mode 100644 (file)
index 0000000..8b63a64
--- /dev/null
@@ -0,0 +1,66 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = dwz
+version    = 0.15
+release    = 1
+
+groups     = Development/Tools
+url        = https://sourceware.org/dwz/
+license    = GPLv2+ and GPLv3+
+summary    = DWARF optimization and duplicate removal tool
+
+description
+       The dwz package contains a program that attempts to optimize DWARF
+       debugging information contained in ELF shared libraries and ELF executables
+       for size, by replacing DWARF information representation with equivalent
+       smaller representation where possible and by reducing the amount of
+       duplication using techniques from DWARF standard appendix E - creating
+       DW_TAG_partial_unit compilation units (CUs) for duplicated information
+       and using DW_TAG_imported_unit to import it into each CU that needs it.
+end
+
+source_dl = https://sourceware.org/ftp/dwz/releases/
+sources   = %{thisapp}.tar.xz
+
+build
+       requires
+               elfutils-devel
+               xxhash-devel
+
+               # Testsuite
+               dejagnu
+               gdb
+       end
+
+       DIR_APP = %{DIR_SRC}/%{name}
+
+       make_build_targets += \
+               CFLAGS="%{CFLAGS}" \
+               LDFLAGS="%{LDFLAGS}" \
+               srcdir=%{DIR_APP} \
+               prefix=%{prefix} \
+               bindir=%{bindir} \
+               mandir=%{mandir}
+
+       test
+               # Compile the testsuite without any compiler or linker flags.
+               CFLAGS= LDFLAGS= srcdir=%{DIR_APP} make check
+       end
+
+       make_install_targets += \
+               srcdir=%{DIR_APP} \
+               prefix=%{prefix} \
+               bindir=%{bindir} \
+               mandir=%{mandir}
+end
+
+packages
+       package %{name}
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end