Bug 245382

Summary: New port: devel/dwz DWARF optimization and duplicate removal tool
Product: Ports & Packages Reporter: Brian Callahan <bcallah>
Component: Individual Port(s)Assignee: Dmitry Marakasov <amdmi3>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
dwz port shar none

Description Brian Callahan 2020-04-05 19:37:40 UTC
Created attachment 213104 [details]
dwz port shar

Included here is a shar for a new port, devel/dwz. dwz is 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.

This is a port of the OpenBSD port of dwz.

Let me know if there's anything else I need to do.
Comment 1 commit-hook freebsd_committer 2021-02-18 19:45:14 UTC
A commit references this bug:

Author: amdmi3
Date: Thu Feb 18 19:44:41 UTC 2021
New revision: 565971
URL: https://svnweb.freebsd.org/changeset/ports/565971

Log:
  - Add devel/dwz: DWARF optimization and duplicate removal tool

  dwz is 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.

  WWW: https://sourceware.org/dwz/

  PR:		245382
  Submitted by:	bcallah@openbsd.org

Changes:
  head/devel/Makefile
  head/devel/dwz/
  head/devel/dwz/Makefile
  head/devel/dwz/distinfo
  head/devel/dwz/files/
  head/devel/dwz/files/patch-Makefile
  head/devel/dwz/files/patch-dwz.c
  head/devel/dwz/files/patch-hashtab.c
  head/devel/dwz/files/patch-obstack.c
  head/devel/dwz/files/patch-obstack.h
  head/devel/dwz/files/patch-sha1.c
  head/devel/dwz/pkg-descr
  head/devel/dwz/pkg-plist
Comment 2 Dmitry Marakasov freebsd_committer 2021-02-18 19:45:37 UTC
Committed, thanks! Would be nice if at least some patches could be upstreamed.