[Glibc-bsd-commits] r4539 - in trunk/freebsd-libs/debian: . patches

rmh at alioth.debian.org rmh at alioth.debian.org
Mon Jul 8 12:42:10 UTC 2013


Author: rmh
Date: 2013-06-19 19:49:26 +0000 (Wed, 19 Jun 2013)
New Revision: 4539

Added:
   trunk/freebsd-libs/debian/libdwarf3-dev.install
   trunk/freebsd-libs/debian/libdwarf3.install
   trunk/freebsd-libs/debian/libdwarf3.symbols
   trunk/freebsd-libs/debian/libelf-freebsd-1.install
   trunk/freebsd-libs/debian/libelf-freebsd-1.symbols
   trunk/freebsd-libs/debian/libelf-freebsd-dev.install
   trunk/freebsd-libs/debian/patches/dwarf.diff
   trunk/freebsd-libs/debian/patches/elf.diff
Modified:
   trunk/freebsd-libs/debian/changelog
   trunk/freebsd-libs/debian/control
   trunk/freebsd-libs/debian/copyright
   trunk/freebsd-libs/debian/patches/series
   trunk/freebsd-libs/debian/rules
Log:
Add libelf and libdwarf

Modified: trunk/freebsd-libs/debian/changelog
===================================================================
--- trunk/freebsd-libs/debian/changelog	2013-06-19 19:38:51 UTC (rev 4538)
+++ trunk/freebsd-libs/debian/changelog	2013-06-19 19:49:26 UTC (rev 4539)
@@ -1,5 +1,6 @@
-freebsd-libs (9.0+ds1-5) UNRELEASED; urgency=low
+freebsd-libs (9.0+ds2-1) UNRELEASED; urgency=low
 
+  * Add libelf and libdwarf.
   * Remove debian/patches/implicit-declaration (obsoleted by
     freebsd-glue 0.0.5).
 

Modified: trunk/freebsd-libs/debian/control
===================================================================
--- trunk/freebsd-libs/debian/control	2013-06-19 19:38:51 UTC (rev 4538)
+++ trunk/freebsd-libs/debian/control	2013-06-19 19:49:26 UTC (rev 4539)
@@ -47,6 +47,40 @@
  This package contains the header files and static library needed to
  compile applications that use libsbuf.
 
+Package: libdwarf3
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: library to consume and produce DWARF debug information (FreeBSD version)
+ The libdwarf package provides a shared library which allows reading/consumer
+ and writing/producer of DWARF debugging information from object files, shared
+ libraries, and executables.
+
+Package: libdwarf3-dev
+Section: libdevel
+Architecture: any
+Depends: libdwarf3 (= ${binary:Version}), ${misc:Depends}, libc0.1-dev | libc-dev
+Conflicts: libdwarf-dev
+Description: Development files for libdwarf (FreeBSD version)
+ This package contains the header files and static library needed to
+ compile applications that use libdwarf.
+
+Package: libelf-freebsd-1
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: library to consume and produce DWARF debug information (FreeBSD version)
+ The libdwarf package provides a shared library which allows reading/consumer
+ and writing/producer of DWARF debugging information from object files, shared
+ libraries, and executables.
+
+Package: libelf-freebsd-dev
+Section: libdevel
+Architecture: any
+Depends: libelf-freebsd-1 (= ${binary:Version}), ${misc:Depends}, libc0.1-dev | libc-dev
+Conflicts: libelf-dev, libelfg0-dev
+Description: Development files for libdwarf (FreeBSD version)
+ This package contains the header files and static library needed to
+ compile applications that use libdwarf.
+
 Package: libcam6
 Architecture: kfreebsd-any
 Depends: ${shlibs:Depends}, ${misc:Depends}

Modified: trunk/freebsd-libs/debian/copyright
===================================================================
--- trunk/freebsd-libs/debian/copyright	2013-06-19 19:38:51 UTC (rev 4538)
+++ trunk/freebsd-libs/debian/copyright	2013-06-19 19:49:26 UTC (rev 4539)
@@ -1,4 +1,4 @@
-This package was debianized by Robert Millan <rmh at aybabtu.com> on
+This package was debianized by Robert Millan <rmh at debian.org> on
 Fri, 12 Aug 2005 12:04:07 +0200.
 
 It was downloaded from http://www.freebsd.org/
@@ -58,6 +58,9 @@
     Copyright (C) 2009 James Gritton
     Copyright (C) 2009 Sylvestre Gallon
     Copyright (c) 2002, 2003 MarcusCom, Inc.
+    Copyright (c) 2006-2008 Joseph Koshy
+    Copyright (c) 2007 John Birrell (jb at freebsd.org)
+    Copyright (c) 2008-2009, 2011, Juniper Networks, Inc.
 
 
 Licenses:
@@ -66,6 +69,125 @@
            lib/libcam/camlib.c
            lib/libcam/camlib.h
            lib/libcam/scsi_cmdparse.c
+           lib/libdwarf/dwarf_abbrev.c
+           lib/libdwarf/dwarf_attr.c
+           lib/libdwarf/dwarf_attrval.c
+           lib/libdwarf/dwarf_cu.c
+           lib/libdwarf/dwarf_dealloc.c
+           lib/libdwarf/dwarf_die.c
+           lib/libdwarf/dwarf_dump.c
+           lib/libdwarf/dwarf_errmsg.c
+           lib/libdwarf/dwarf_errno.c
+           lib/libdwarf/dwarf_finish.c
+           lib/libdwarf/dwarf_form.c
+           lib/libdwarf/dwarf_func.c
+           lib/libdwarf/dwarf_init.c
+           lib/libdwarf/dwarf_loc.c
+           lib/libdwarf/dwarf.h
+           lib/libdwarf/_libdwarf.h
+           lib/libdwarf/libdwarf.h
+           lib/libelf/elf_begin.c
+           lib/libelf/elf_cntl.c
+           lib/libelf/elf_data.c
+           lib/libelf/elf_end.c
+           lib/libelf/elf_errmsg.c
+           lib/libelf/elf_errno.c
+           lib/libelf/elf_fill.c
+           lib/libelf/elf_flag.c
+           lib/libelf/elf_getarhdr.c
+           lib/libelf/elf_getarsym.c
+           lib/libelf/elf_getbase.c
+           lib/libelf/elf_getident.c
+           lib/libelf/elf_hash.c
+           lib/libelf/elf_kind.c
+           lib/libelf/elf_memory.c
+           lib/libelf/elf_next.c
+           lib/libelf/elf_phnum.c
+           lib/libelf/elf_rand.c
+           lib/libelf/elf_rawfile.c
+           lib/libelf/elf_scn.c
+           lib/libelf/elf_shnum.c
+           lib/libelf/elf_shstrndx.c
+           lib/libelf/elf_strptr.c
+           lib/libelf/elf_update.c
+           lib/libelf/elf_version.c
+           lib/libelf/gelf_cap.c
+           lib/libelf/gelf_checksum.c
+           lib/libelf/gelf_dyn.c
+           lib/libelf/gelf_ehdr.c
+           lib/libelf/gelf_fsize.c
+           lib/libelf/gelf_getclass.c
+           lib/libelf/gelf_move.c
+           lib/libelf/gelf_phdr.c
+           lib/libelf/gelf_rela.c
+           lib/libelf/gelf_rel.c
+           lib/libelf/gelf_shdr.c
+           lib/libelf/gelf_sym.c
+           lib/libelf/gelf_syminfo.c
+           lib/libelf/gelf_symshndx.c
+           lib/libelf/gelf_xlate.c
+           lib/libelf/libelf_align.c
+           lib/libelf/libelf_allocate.c
+           lib/libelf/libelf_ar.c
+           lib/libelf/libelf_ar_util.c
+           lib/libelf/libelf.c
+           lib/libelf/libelf_checksum.c
+           lib/libelf/libelf_data.c
+           lib/libelf/libelf_ehdr.c
+           lib/libelf/libelf_extended.c
+           lib/libelf/libelf_phdr.c
+           lib/libelf/libelf_shdr.c
+           lib/libelf/libelf_xlate.c
+           lib/libelf/gelf.h
+           lib/libelf/_libelf.h
+           lib/libelf/libelf.h
+           lib/libelf/elf.3
+           lib/libelf/elf_begin.3
+           lib/libelf/elf_cntl.3
+           lib/libelf/elf_end.3
+           lib/libelf/elf_errmsg.3
+           lib/libelf/elf_fill.3
+           lib/libelf/elf_flagdata.3
+           lib/libelf/elf_getarhdr.3
+           lib/libelf/elf_getarsym.3
+           lib/libelf/elf_getbase.3
+           lib/libelf/elf_getdata.3
+           lib/libelf/elf_getident.3
+           lib/libelf/elf_getphdrnum.3
+           lib/libelf/elf_getphnum.3
+           lib/libelf/elf_getscn.3
+           lib/libelf/elf_getshdrnum.3
+           lib/libelf/elf_getshdrstrndx.3
+           lib/libelf/elf_getshnum.3
+           lib/libelf/elf_getshstrndx.3
+           lib/libelf/elf_hash.3
+           lib/libelf/elf_kind.3
+           lib/libelf/elf_memory.3
+           lib/libelf/elf_next.3
+           lib/libelf/elf_rand.3
+           lib/libelf/elf_rawfile.3
+           lib/libelf/elf_strptr.3
+           lib/libelf/elf_update.3
+           lib/libelf/elf_version.3
+           lib/libelf/gelf.3
+           lib/libelf/gelf_checksum.3
+           lib/libelf/gelf_fsize.3
+           lib/libelf/gelf_getcap.3
+           lib/libelf/gelf_getclass.3
+           lib/libelf/gelf_getdyn.3
+           lib/libelf/gelf_getehdr.3
+           lib/libelf/gelf_getmove.3
+           lib/libelf/gelf_getphdr.3
+           lib/libelf/gelf_getrel.3
+           lib/libelf/gelf_getrela.3
+           lib/libelf/gelf_getshdr.3
+           lib/libelf/gelf_getsym.3
+           lib/libelf/gelf_getsyminfo.3
+           lib/libelf/gelf_getsymshndx.3
+           lib/libelf/gelf_newehdr.3
+           lib/libelf/gelf_newphdr.3
+           lib/libelf/gelf_update_ehdr.3
+           lib/libelf/gelf_xlatetof.3
            lib/libgeom/geom_ctl.c
            lib/libgeom/geom_getxml.c
            lib/libgeom/geom_stats.c

Added: trunk/freebsd-libs/debian/libdwarf3-dev.install
===================================================================
--- trunk/freebsd-libs/debian/libdwarf3-dev.install	                        (rev 0)
+++ trunk/freebsd-libs/debian/libdwarf3-dev.install	2013-06-19 19:49:26 UTC (rev 4539)
@@ -0,0 +1,4 @@
+usr/lib/libdwarf.a
+usr/lib/libdwarf*.so
+usr/include/dwarf.h
+usr/include/libdwarf.h

Added: trunk/freebsd-libs/debian/libdwarf3.install
===================================================================
--- trunk/freebsd-libs/debian/libdwarf3.install	                        (rev 0)
+++ trunk/freebsd-libs/debian/libdwarf3.install	2013-06-19 19:49:26 UTC (rev 4539)
@@ -0,0 +1 @@
+usr/lib/libdwarf*.so.*

Added: trunk/freebsd-libs/debian/libdwarf3.symbols
===================================================================
--- trunk/freebsd-libs/debian/libdwarf3.symbols	                        (rev 0)
+++ trunk/freebsd-libs/debian/libdwarf3.symbols	2013-06-19 19:49:26 UTC (rev 4539)
@@ -0,0 +1,47 @@
+libdwarf.so.3 libdwarf3 #MINVER#
+ dwarf_abbrev_add at Base 9.0+ds2
+ dwarf_abbrev_find at Base 9.0+ds2
+ dwarf_attr at Base 9.0+ds2
+ dwarf_attr_add at Base 9.0+ds2
+ dwarf_attrval_add at Base 9.0+ds2
+ dwarf_attrval_find at Base 9.0+ds2
+ dwarf_attrval_flag at Base 9.0+ds2
+ dwarf_attrval_signed at Base 9.0+ds2
+ dwarf_attrval_string at Base 9.0+ds2
+ dwarf_attrval_unsigned at Base 9.0+ds2
+ dwarf_build_function_table at Base 9.0+ds2
+ dwarf_child at Base 9.0+ds2
+ dwarf_dealloc at Base 9.0+ds2
+ dwarf_die_add at Base 9.0+ds2
+ dwarf_die_find at Base 9.0+ds2
+ dwarf_dieoffset at Base 9.0+ds2
+ dwarf_dump at Base 9.0+ds2
+ dwarf_dump_abbrev at Base 9.0+ds2
+ dwarf_dump_av at Base 9.0+ds2
+ dwarf_dump_dbgstr at Base 9.0+ds2
+ dwarf_dump_die at Base 9.0+ds2
+ dwarf_dump_die_at_offset at Base 9.0+ds2
+ dwarf_dump_info at Base 9.0+ds2
+ dwarf_dump_raw at Base 9.0+ds2
+ dwarf_dump_shstrtab at Base 9.0+ds2
+ dwarf_dump_strtab at Base 9.0+ds2
+ dwarf_dump_symtab at Base 9.0+ds2
+ dwarf_dump_tree at Base 9.0+ds2
+ dwarf_elf_init at Base 9.0+ds2
+ dwarf_errmsg at Base 9.0+ds2
+ dwarf_errno at Base 9.0+ds2
+ dwarf_find_function_by_name at Base 9.0+ds2
+ dwarf_find_function_by_offset at Base 9.0+ds2
+ dwarf_finish at Base 9.0+ds2
+ dwarf_function_get_addr_range at Base 9.0+ds2
+ dwarf_function_is_inlined at Base 9.0+ds2
+ dwarf_function_iterate_inlined_instance at Base 9.0+ds2
+ dwarf_init at Base 9.0+ds2
+ dwarf_inlined_function_get_addr_range at Base 9.0+ds2
+ dwarf_locdesc at Base 9.0+ds2
+ dwarf_locdesc_free at Base 9.0+ds2
+ dwarf_next_cu_header at Base 9.0+ds2
+ dwarf_op_num at Base 9.0+ds2
+ dwarf_siblingof at Base 9.0+ds2
+ dwarf_tag at Base 9.0+ds2
+ dwarf_whatform at Base 9.0+ds2

Added: trunk/freebsd-libs/debian/libelf-freebsd-1.install
===================================================================
--- trunk/freebsd-libs/debian/libelf-freebsd-1.install	                        (rev 0)
+++ trunk/freebsd-libs/debian/libelf-freebsd-1.install	2013-06-19 19:49:26 UTC (rev 4539)
@@ -0,0 +1 @@
+usr/lib/libelf.so.*

Added: trunk/freebsd-libs/debian/libelf-freebsd-1.symbols
===================================================================
--- trunk/freebsd-libs/debian/libelf-freebsd-1.symbols	                        (rev 0)
+++ trunk/freebsd-libs/debian/libelf-freebsd-1.symbols	2013-06-19 19:49:26 UTC (rev 4539)
@@ -0,0 +1,87 @@
+libelf.so.1 libelf-freebsd-1 #MINVER#
+ FBSD_1.0 at FBSD_1.0 9.0+ds2
+ FBSDprivate_1.0 at FBSDprivate_1.0 9.0+ds2
+ _libelf_get_max_error at FBSDprivate_1.0 9.0+ds2
+ _libelf_get_no_error_message at FBSDprivate_1.0 9.0+ds2
+ _libelf_get_unknown_error_message at FBSDprivate_1.0 9.0+ds2
+ _libelf_set_error at FBSDprivate_1.0 9.0+ds2
+ elf32_checksum at FBSD_1.0 9.0+ds2
+ elf32_fsize at FBSD_1.0 9.0+ds2
+ elf32_getehdr at FBSD_1.0 9.0+ds2
+ elf32_getphdr at FBSD_1.0 9.0+ds2
+ elf32_getshdr at FBSD_1.0 9.0+ds2
+ elf32_newehdr at FBSD_1.0 9.0+ds2
+ elf32_newphdr at FBSD_1.0 9.0+ds2
+ elf32_xlatetof at FBSD_1.0 9.0+ds2
+ elf32_xlatetom at FBSD_1.0 9.0+ds2
+ elf64_checksum at FBSD_1.0 9.0+ds2
+ elf64_fsize at FBSD_1.0 9.0+ds2
+ elf64_getehdr at FBSD_1.0 9.0+ds2
+ elf64_getphdr at FBSD_1.0 9.0+ds2
+ elf64_getshdr at FBSD_1.0 9.0+ds2
+ elf64_newehdr at FBSD_1.0 9.0+ds2
+ elf64_newphdr at FBSD_1.0 9.0+ds2
+ elf64_xlatetof at FBSD_1.0 9.0+ds2
+ elf64_xlatetom at FBSD_1.0 9.0+ds2
+ elf_begin at FBSD_1.0 9.0+ds2
+ elf_cntl at FBSD_1.0 9.0+ds2
+ elf_end at FBSD_1.0 9.0+ds2
+ elf_errmsg at FBSD_1.0 9.0+ds2
+ elf_errno at FBSD_1.0 9.0+ds2
+ elf_fill at FBSD_1.0 9.0+ds2
+ elf_flagdata at FBSD_1.0 9.0+ds2
+ elf_flagehdr at FBSD_1.0 9.0+ds2
+ elf_flagelf at FBSD_1.0 9.0+ds2
+ elf_flagphdr at FBSD_1.0 9.0+ds2
+ elf_flagscn at FBSD_1.0 9.0+ds2
+ elf_flagshdr at FBSD_1.0 9.0+ds2
+ elf_getarhdr at FBSD_1.0 9.0+ds2
+ elf_getarsym at FBSD_1.0 9.0+ds2
+ elf_getbase at FBSD_1.0 9.0+ds2
+ elf_getdata at FBSD_1.0 9.0+ds2
+ elf_getident at FBSD_1.0 9.0+ds2
+ elf_getphdrnum at FBSD_1.0 9.0+ds2
+ elf_getphnum at FBSD_1.0 9.0+ds2
+ elf_getscn at FBSD_1.0 9.0+ds2
+ elf_getshdrnum at FBSD_1.0 9.0+ds2
+ elf_getshdrstrndx at FBSD_1.0 9.0+ds2
+ elf_getshnum at FBSD_1.0 9.0+ds2
+ elf_getshstrndx at FBSD_1.0 9.0+ds2
+ elf_hash at FBSD_1.0 9.0+ds2
+ elf_kind at FBSD_1.0 9.0+ds2
+ elf_memory at FBSD_1.0 9.0+ds2
+ elf_ndxscn at FBSD_1.0 9.0+ds2
+ elf_newdata at FBSD_1.0 9.0+ds2
+ elf_newscn at FBSD_1.0 9.0+ds2
+ elf_next at FBSD_1.0 9.0+ds2
+ elf_nextscn at FBSD_1.0 9.0+ds2
+ elf_rand at FBSD_1.0 9.0+ds2
+ elf_rawdata at FBSD_1.0 9.0+ds2
+ elf_rawfile at FBSD_1.0 9.0+ds2
+ elf_setshstrndx at FBSD_1.0 9.0+ds2
+ elf_strptr at FBSD_1.0 9.0+ds2
+ elf_update at FBSD_1.0 9.0+ds2
+ elf_version at FBSD_1.0 9.0+ds2
+ gelf_checksum at FBSD_1.0 9.0+ds2
+ gelf_fsize at FBSD_1.0 9.0+ds2
+ gelf_getclass at FBSD_1.0 9.0+ds2
+ gelf_getdyn at FBSD_1.0 9.0+ds2
+ gelf_getehdr at FBSD_1.0 9.0+ds2
+ gelf_getphdr at FBSD_1.0 9.0+ds2
+ gelf_getrel at FBSD_1.0 9.0+ds2
+ gelf_getrela at FBSD_1.0 9.0+ds2
+ gelf_getshdr at FBSD_1.0 9.0+ds2
+ gelf_getsym at FBSD_1.0 9.0+ds2
+ gelf_getsymshndx at FBSD_1.0 9.0+ds2
+ gelf_newehdr at FBSD_1.0 9.0+ds2
+ gelf_newphdr at FBSD_1.0 9.0+ds2
+ gelf_update_dyn at FBSD_1.0 9.0+ds2
+ gelf_update_ehdr at FBSD_1.0 9.0+ds2
+ gelf_update_phdr at FBSD_1.0 9.0+ds2
+ gelf_update_rel at FBSD_1.0 9.0+ds2
+ gelf_update_rela at FBSD_1.0 9.0+ds2
+ gelf_update_shdr at FBSD_1.0 9.0+ds2
+ gelf_update_sym at FBSD_1.0 9.0+ds2
+ gelf_update_symshndx at FBSD_1.0 9.0+ds2
+ gelf_xlatetof at FBSD_1.0 9.0+ds2
+ gelf_xlatetom at FBSD_1.0 9.0+ds2

Added: trunk/freebsd-libs/debian/libelf-freebsd-dev.install
===================================================================
--- trunk/freebsd-libs/debian/libelf-freebsd-dev.install	                        (rev 0)
+++ trunk/freebsd-libs/debian/libelf-freebsd-dev.install	2013-06-19 19:49:26 UTC (rev 4539)
@@ -0,0 +1,4 @@
+usr/lib/libelf.a
+usr/lib/libelf*.so
+usr/include/gelf.h
+usr/include/libelf.h

Added: trunk/freebsd-libs/debian/patches/dwarf.diff
===================================================================
--- trunk/freebsd-libs/debian/patches/dwarf.diff	                        (rev 0)
+++ trunk/freebsd-libs/debian/patches/dwarf.diff	2013-06-19 19:49:26 UTC (rev 4539)
@@ -0,0 +1,12 @@
+--- a/lib/libdwarf/Makefile
++++ b/lib/libdwarf/Makefile
+@@ -20,7 +20,8 @@
+ 
+ INCS=	dwarf.h libdwarf.h
+ 
+-CFLAGS+=	-I${.CURDIR}
++LDADD+=		-L../libelf -lelf
++CFLAGS+=	-I${.CURDIR} -I../libelf
+ 
+ SHLIB_MAJOR=	3
+ 

Added: trunk/freebsd-libs/debian/patches/elf.diff
===================================================================
--- trunk/freebsd-libs/debian/patches/elf.diff	                        (rev 0)
+++ trunk/freebsd-libs/debian/patches/elf.diff	2013-06-19 19:49:26 UTC (rev 4539)
@@ -0,0 +1,11 @@
+--- a/lib/libelf/Makefile
++++ b/lib/libelf/Makefile
+@@ -158,6 +158,8 @@
+ libelf_fsize.c:		elf_types.m4 libelf_fsize.m4
+ libelf_msize.c:		elf_types.m4 libelf_msize.m4
+ 
++LDADD+=	-lbsd
++
+ .include <bsd.lib.mk>
+ 
+ # Keep the .SUFFIXES line after the include of bsd.lib.mk

Modified: trunk/freebsd-libs/debian/patches/series
===================================================================
--- trunk/freebsd-libs/debian/patches/series	2013-06-19 19:38:51 UTC (rev 4538)
+++ trunk/freebsd-libs/debian/patches/series	2013-06-19 19:49:26 UTC (rev 4539)
@@ -18,3 +18,5 @@
 libusb_backward.diff
 libbsd_nlist.diff
 kvm_size_t_kludge.diff
+dwarf.diff
+elf.diff

Modified: trunk/freebsd-libs/debian/rules
===================================================================
--- trunk/freebsd-libs/debian/rules	2013-06-19 19:38:51 UTC (rev 4538)
+++ trunk/freebsd-libs/debian/rules	2013-06-19 19:49:26 UTC (rev 4539)
@@ -19,6 +19,7 @@
 
 CFLAGS = -Wall -g -pipe -fPIC -I. -I$(CURDIR)/sys -D_GNU_SOURCE \
          -D__va_list=__builtin_va_list \
+	 -I/usr/include/freebsd \
 	 -Werror=implicit-function-declaration
 
 ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
@@ -37,7 +38,7 @@
 
 PATH := /usr/lib/freebsd:$(PATH)
 DESTDIR = $(CURDIR)/debian/tmp
-PMAKE = COPTS="$(CFLAGS)" CFLAGS="$(CFLAGS) -isystem /usr/include/freebsd -I$(CURDIR)/debian/local/include" NO_WERROR=1 NOGCCERROR=1 \
+PMAKE = COPTS="$(CFLAGS)" CFLAGS="$(CFLAGS) -I$(CURDIR)/debian/local/include" NO_WERROR=1 NOGCCERROR=1 \
         NOSHARED=NO NO_SHARED=NO NO_PROFILE=1 DESTDIR=$(DESTDIR) make
 kernel = $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
 
@@ -47,6 +48,8 @@
 	mkdir -p $(ORIGDIR)/sys/kern
 	mkdir -p $(ORIGDIR)/sys/sys
 	for i in lib/libcam lib/libdevstat lib/libgeom lib/libipx \
+		lib/libelf \
+		lib/libdwarf \
 	         lib/libkiconv lib/libnetgraph lib/libjail \
 	         lib/libkvm lib/libmemstat lib/libsbuf lib/libusb \
 	         lib/libusbhid sys/cam \
@@ -67,7 +70,7 @@
 	tar --numeric-owner --owner 0 --group 0 -czf ../$(TARNAME) $(ORIGDIR)
 	rm -rf $(ORIGDIR)
 
-BUILD_TARGETS = build-sbuf
+BUILD_TARGETS = build-sbuf build-dwarf build-elf
 
 ifeq ($(kernel), kfreebsd)
 BUILD_TARGETS += \
@@ -122,6 +125,16 @@
 	$(PMAKE) -C $(CURDIR)/lib/libdevstat SHLIBDIR=./
 	touch $@
 
+build-elf: build-elf-stamp
+build-elf-stamp:
+	$(PMAKE) -C $(CURDIR)/lib/libelf SHLIBDIR=./
+	touch $@
+
+build-dwarf: build-dwarf-stamp
+build-dwarf-stamp: build-elf
+	$(PMAKE) -C $(CURDIR)/lib/libdwarf SHLIBDIR=./
+	touch $@
+
 build-memstat: build-memstat-stamp
 build-memstat-stamp: build-kvm
 	$(PMAKE) -C $(CURDIR)/lib/libmemstat SHLIBDIR=./
@@ -156,6 +169,8 @@
 	dh_testdir
 	dh_testroot
 	$(PMAKE) -C $(CURDIR)/lib/libsbuf clean
+	$(PMAKE) -C $(CURDIR)/lib/libdwarf clean
+	$(PMAKE) -C $(CURDIR)/lib/libelf clean
 ifeq ($(kernel), kfreebsd)
 	$(PMAKE) -C $(CURDIR)/lib/libcam clean
 	$(PMAKE) -C $(CURDIR)/lib/libnetgraph clean
@@ -181,6 +196,8 @@
 
 	mkdir -p $(DESTDIR)/lib $(DESTDIR)/usr/lib $(DESTDIR)/usr/include $(DESTDIR)/usr/share/man/man3
 	$(PMAKE) -C $(CURDIR)/lib/libsbuf install SHLIBDIR=/lib
+	$(PMAKE) -C $(CURDIR)/lib/libdwarf install SHLIBDIR=/usr/lib
+	$(PMAKE) -C $(CURDIR)/lib/libelf install SHLIBDIR=/usr/lib
 ifeq ($(kernel), kfreebsd)
 	$(PMAKE) -C $(CURDIR)/lib/libcam install SHLIBDIR=/usr/lib
 	$(PMAKE) -C $(CURDIR)/lib/libgeom install SHLIBDIR=/lib




More information about the Glibc-bsd-commits mailing list