[Glibc-bsd-commits] r5190 - in trunk: . ctfutils ctfutils/debian ctfutils/debian/patches ctfutils/debian/source

rmh at alioth.debian.org rmh at alioth.debian.org
Sat Nov 30 00:04:26 UTC 2013


Author: rmh
Date: 2013-11-30 00:04:26 +0000 (Sat, 30 Nov 2013)
New Revision: 5190

Added:
   trunk/ctfutils/
   trunk/ctfutils/debian/
   trunk/ctfutils/debian/changelog
   trunk/ctfutils/debian/compat
   trunk/ctfutils/debian/control
   trunk/ctfutils/debian/copyright
   trunk/ctfutils/debian/ctfutils.install
   trunk/ctfutils/debian/ctfutils.manpages
   trunk/ctfutils/debian/patches/
   trunk/ctfutils/debian/patches/compat_opensolaris.diff
   trunk/ctfutils/debian/patches/makefile.diff
   trunk/ctfutils/debian/patches/series
   trunk/ctfutils/debian/patches/ulong_t.diff
   trunk/ctfutils/debian/rules
   trunk/ctfutils/debian/source/
   trunk/ctfutils/debian/source/format
Log:
Initial release of ctfutils

Added: trunk/ctfutils/debian/changelog
===================================================================
--- trunk/ctfutils/debian/changelog	                        (rev 0)
+++ trunk/ctfutils/debian/changelog	2013-11-30 00:04:26 UTC (rev 5190)
@@ -0,0 +1,5 @@
+ctfutils (9.2-1) unstable; urgency=low
+
+  * Initial release.  (Closes: #729149)
+
+ -- Robert Millan <rmh at debian.org>  Sat, 09 Nov 2013 17:07:06 +0100

Added: trunk/ctfutils/debian/compat
===================================================================
--- trunk/ctfutils/debian/compat	                        (rev 0)
+++ trunk/ctfutils/debian/compat	2013-11-30 00:04:26 UTC (rev 5190)
@@ -0,0 +1 @@
+7

Added: trunk/ctfutils/debian/control
===================================================================
--- trunk/ctfutils/debian/control	                        (rev 0)
+++ trunk/ctfutils/debian/control	2013-11-30 00:04:26 UTC (rev 5190)
@@ -0,0 +1,21 @@
+Source: ctfutils
+Section: devel
+Priority: extra
+Maintainer: Robert Millan <rmh at debian.org>
+Build-Depends: debhelper (>= 7.0.50~),
+ freebsd-buildutils (>= 9.0-5~),
+ libbsd-dev (>= 0.3.0),
+ freebsd-glue (>= 0.1.8~),
+ libdwarf-freebsd-dev,
+ libelf-freebsd-dev,
+Standards-Version: 3.9.3
+
+Package: ctfutils
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: FreeBSD CTF utilities
+ This package contains utilities to create, merge and dump contents of
+ CTF files.
+ .
+ CTF (Compact C Type) format encapsulates a reduced form of debugging
+ information similar to DWARF.

Added: trunk/ctfutils/debian/copyright
===================================================================
--- trunk/ctfutils/debian/copyright	                        (rev 0)
+++ trunk/ctfutils/debian/copyright	2013-11-30 00:04:26 UTC (rev 5190)
@@ -0,0 +1,557 @@
+Name: FreeBSD CTF utilities
+Source: FreeBSD (which in turn is based on sources from illumos)
+
+Files:
+ cddl/contrib/*
+ sys/cddl/contrib/*
+Copyright:
+  2001-2002, Sun Microsystems, Inc.
+  2001-2003, Sun Microsystems, Inc.
+  2002, Sun Microsystems, Inc.
+  2003, Sun Microsystems, Inc.
+  2005, Sun Microsystems, Inc.
+  2006, Sun Microsystems, Inc.
+  2008, Sun Microsystems, Inc.
+  2009, Sun Microsystems, Inc.
+
+Files:
+ cddl/compat/*
+ sys/cddl/compat/*
+Copyright:
+  2006, Pawel Jakub Dawidek <pjd at FreeBSD.org>
+  2006-2007, Pawel Jakub Dawidek <pjd at FreeBSD.org>
+  2007, Pawel Jakub Dawidek <pjd at FreeBSD.org>
+  2008, Pawel Jakub Dawidek <pjd at FreeBSD.org>
+  2009, Pawel Jakub Dawidek <pjd at FreeBSD.org>
+  2010, Pawel Jakub Dawidek <pjd at FreeBSD.org>
+License: BSD (2 clause)
+
+Files:
+ cddl/compat/opensolaris/include/alloca.h
+ cddl/compat/opensolaris/include/dtrace.h
+ cddl/compat/opensolaris/include/fcntl.h
+ cddl/compat/opensolaris/include/libproc.h
+ cddl/compat/opensolaris/include/stdio.h
+ cddl/compat/opensolaris/include/stdlib.h
+ cddl/compat/opensolaris/include/strings.h
+ cddl/compat/opensolaris/include/unistd.h
+ sys/cddl/compat/opensolaris/sys/feature_tests.h
+ sys/cddl/compat/opensolaris/sys/mman.h
+ sys/cddl/compat/opensolaris/sys/modctl.h
+ sys/cddl/compat/opensolaris/sys/param.h
+ sys/cddl/compat/opensolaris/sys/pcpu.h
+ sys/cddl/compat/opensolaris/sys/sema.h
+ sys/cddl/compat/opensolaris/sys/stat.h
+ sys/cddl/compat/opensolaris/kern/opensolaris.c
+ sys/cddl/compat/opensolaris/kern/opensolaris_cmn_err.c
+Copyright:
+  2007, John Birrell <jb at freebsd.org>
+  2008, John Birrell <jb at freebsd.org>
+License: BSD (2 clause)
+
+Files:
+ sys/cddl/compat/opensolaris/sys/cpupart.h
+ sys/cddl/compat/opensolaris/sys/cpuvar.h
+ sys/cddl/compat/opensolaris/sys/cpuvar_defs.h
+ sys/cddl/compat/opensolaris/sys/elf.h
+ sys/cddl/compat/opensolaris/sys/objfs.h
+ sys/cddl/compat/opensolaris/sys/bitmap.h
+ sys/cddl/compat/opensolaris/sys/byteorder.h
+ sys/cddl/compat/opensolaris/kern/opensolaris_uio.c
+ sys/cddl/compat/opensolaris/kern/opensolaris_string.c
+Copyright:
+  2005, Sun Microsystems, Inc.
+  2007, Sun Microsystems, Inc.
+  2009, Sun Microsystems, Inc.
+License: CDDL
+
+Files:
+ cddl/compat/opensolaris/include/devid.h
+ cddl/compat/opensolaris/misc/mkdirp.c
+ cddl/compat/opensolaris/lib/libumem/umem.h
+ sys/cddl/compat/opensolaris/sys/cyclic.h
+ sys/cddl/compat/opensolaris/sys/mntent.h
+ sys/cddl/compat/opensolaris/sys/cyclic_impl.h
+Copyright:
+  1999-2001, Sun Microsystems, Inc
+  2001-2002, Sun Microsystems, Inc.
+  2001-2003, Sun Microsystems, Inc.
+  2002, Sun Microsystems, Inc.
+  2003, Sun Microsystems, Inc.
+  2004, Sun Microsystems, Inc.
+  2005, Sun Microsystems, Inc.
+  2006, Sun Microsystems, Inc.
+License: CDDL
+
+Files:
+ cddl/contrib/opensolaris/tools/ctf/cvt/st_parse.c
+ sys/cddl/contrib/opensolaris/uts/common/sys/cpupart.h
+ sys/cddl/contrib/opensolaris/uts/common/sys/cpuvar.h
+ sys/cddl/contrib/opensolaris/uts/common/sys/fm/protocol.h
+ sys/cddl/contrib/opensolaris/uts/common/sys/fm/util.h
+ sys/cddl/contrib/opensolaris/uts/common/sys/gfs.h
+ sys/cddl/contrib/opensolaris/uts/common/sys/sysevent.h
+ sys/cddl/contrib/opensolaris/uts/common/sys/nvpair.h
+ sys/cddl/contrib/opensolaris/uts/common/sys/vnode.h
+ sys/cddl/contrib/opensolaris/uts/common/sys/sysevent/eventdefs.h
+Copyright:
+  1988, 2010, Oracle and/or its affiliates.
+  1989, 2010, Oracle and/or its affiliates.
+  1996, 2010, Oracle and/or its affiliates.
+  2000, 2010, Oracle and/or its affiliates.
+  2001, 2010, Oracle and/or its affiliates.
+  2004, 2010, Oracle and/or its affiliates.
+  2005, 2010, Oracle and/or its affiliates.
+  2006, 2010, Oracle and/or its affiliates.
+  2007, 2010, Oracle and/or its affiliates.
+  2008, 2010, Oracle and/or its affiliates.
+  2009-2010, Oracle and/or its affiliates.
+License: CDDL
+
+Files:
+ sys/cddl/contrib/opensolaris/uts/common/sys/procset.h
+ sys/cddl/contrib/opensolaris/uts/common/sys/processor.h
+ sys/cddl/contrib/opensolaris/uts/common/sys/vnode.h
+ sys/cddl/contrib/opensolaris/uts/common/sys/cred.h
+ sys/cddl/contrib/opensolaris/uts/common/sys/bitmap.h
+ sys/cddl/contrib/opensolaris/uts/common/sys/debug.h
+ sys/cddl/contrib/opensolaris/uts/common/sys/cmn_err.h
+ sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h
+ sys/cddl/compat/opensolaris/kern/opensolaris_uio.c
+ sys/cddl/compat/opensolaris/sys/byteorder.h
+ sys/cddl/compat/opensolaris/sys/bitmap.h
+ sys/cddl/compat/opensolaris/sys/mntent.h
+ cddl/compat/opensolaris/misc/mkdirp.c
+ cddl/contrib/opensolaris/lib/libgen/common/gmatch.c
+Copyright: 
+  1984, 1986, 1987, 1988, 1989 AT&T
+License: CDDL
+
+Files:
+ sys/cddl/contrib/opensolaris/uts/common/sys/sysevent/eventdefs.h
+ sys/cddl/contrib/opensolaris/uts/common/sys/fs/zfs.h
+Copyright:
+  2011, Nexenta Systems, Inc.
+  2013, Nexenta Systems, Inc.
+License: CDDL
+
+Files:
+ cddl/usr.bin/ctfconvert/ctfconvert.1
+ cddl/usr.bin/ctfdump/ctfdump.1
+ cddl/usr.bin/ctfmerge/ctfmerge.1
+Copyright:
+  2010, The FreeBSD Foundation
+License: BSD (2 clause)
+
+Files:
+ sys/cddl/compat/opensolaris/kern/opensolaris_acl.c
+ sys/cddl/compat/opensolaris/sys/acl.h
+Copyright:
+  2008-2009, Edward Tomasz Napierała <trasz at FreeBSD.org>
+License: BSD (2 clause)
+
+Files:
+ sys/cddl/compat/opensolaris/sys/assfail.h
+ sys/cddl/contrib/opensolaris/uts/common/sys/fs/zfs.h
+Copyright:
+  2012, Martin Matuska <mm at FreeBSD.org>
+License: BSD (2 clause)
+
+Files:
+ sys/cddl/contrib/opensolaris/uts/common/sys/debug.h
+ sys/cddl/contrib/opensolaris/uts/common/sys/fs/zfs.h
+Copyright:
+  2012, Delphix.
+License: CDDL
+
+Files:
+ sys/cddl/contrib/opensolaris/uts/common/sys/fs/zfs.h
+Copyright:
+  2010, Robert Milkowski
+  2012, Joyent, Inc.
+License: CDDL
+
+Files:
+ sys/cddl/contrib/opensolaris/uts/common/sys/u8_textprep_data.h
+Copyright:
+  1991-2006, Unicode, Inc.
+License: CDDL
+
+License: CDDL
+  COMMON DEVELOPMENT AND DISTRIBUTION LICENSE Version 1.0
+  
+  1. Definitions.
+  
+      1.1. "Contributor" means each individual or entity that creates
+           or contributes to the creation of Modifications.
+  
+      1.2. "Contributor Version" means the combination of the Original
+           Software, prior Modifications used by a Contributor (if any),
+           and the Modifications made by that particular Contributor.
+  
+      1.3. "Covered Software" means (a) the Original Software, or (b)
+           Modifications, or (c) the combination of files containing
+           Original Software with files containing Modifications, in
+           each case including portions thereof.
+  
+      1.4. "Executable" means the Covered Software in any form other
+           than Source Code.
+  
+      1.5. "Initial Developer" means the individual or entity that first
+           makes Original Software available under this License.
+  
+      1.6. "Larger Work" means a work which combines Covered Software or
+           portions thereof with code not governed by the terms of this
+           License.
+  
+      1.7. "License" means this document.
+  
+      1.8. "Licensable" means having the right to grant, to the maximum
+           extent possible, whether at the time of the initial grant or
+           subsequently acquired, any and all of the rights conveyed
+           herein.
+  
+      1.9. "Modifications" means the Source Code and Executable form of
+           any of the following:
+  
+          A. Any file that results from an addition to, deletion from or
+             modification of the contents of a file containing Original
+             Software or previous Modifications;
+  
+          B. Any new file that contains any part of the Original
+             Software or previous Modifications; or
+  
+          C. Any new file that is contributed or otherwise made
+             available under the terms of this License.
+  
+      1.10. "Original Software" means the Source Code and Executable
+            form of computer software code that is originally released
+            under this License.
+  
+      1.11. "Patent Claims" means any patent claim(s), now owned or
+            hereafter acquired, including without limitation, method,
+            process, and apparatus claims, in any patent Licensable by
+            grantor.
+  
+      1.12. "Source Code" means (a) the common form of computer software
+            code in which modifications are made and (b) associated
+            documentation included in or with such code.
+  
+      1.13. "You" (or "Your") means an individual or a legal entity
+            exercising rights under, and complying with all of the terms
+            of, this License.  For legal entities, "You" includes any
+            entity which controls, is controlled by, or is under common
+            control with You.  For purposes of this definition,
+            "control" means (a) the power, direct or indirect, to cause
+            the direction or management of such entity, whether by
+            contract or otherwise, or (b) ownership of more than fifty
+            percent (50%) of the outstanding shares or beneficial
+            ownership of such entity.
+  
+  2. License Grants.
+  
+      2.1. The Initial Developer Grant.
+  
+      Conditioned upon Your compliance with Section 3.1 below and
+      subject to third party intellectual property claims, the Initial
+      Developer hereby grants You a world-wide, royalty-free,
+      non-exclusive license:
+  
+          (a) under intellectual property rights (other than patent or
+              trademark) Licensable by Initial Developer, to use,
+              reproduce, modify, display, perform, sublicense and
+              distribute the Original Software (or portions thereof),
+              with or without Modifications, and/or as part of a Larger
+              Work; and
+  
+          (b) under Patent Claims infringed by the making, using or
+              selling of Original Software, to make, have made, use,
+              practice, sell, and offer for sale, and/or otherwise
+              dispose of the Original Software (or portions thereof).
+  
+          (c) The licenses granted in Sections 2.1(a) and (b) are
+              effective on the date Initial Developer first distributes
+              or otherwise makes the Original Software available to a
+              third party under the terms of this License.
+  
+          (d) Notwithstanding Section 2.1(b) above, no patent license is
+              granted: (1) for code that You delete from the Original
+              Software, or (2) for infringements caused by: (i) the
+              modification of the Original Software, or (ii) the
+              combination of the Original Software with other software
+              or devices.
+  
+      2.2. Contributor Grant.
+  
+      Conditioned upon Your compliance with Section 3.1 below and
+      subject to third party intellectual property claims, each
+      Contributor hereby grants You a world-wide, royalty-free,
+      non-exclusive license:
+  
+          (a) under intellectual property rights (other than patent or
+              trademark) Licensable by Contributor to use, reproduce,
+              modify, display, perform, sublicense and distribute the
+              Modifications created by such Contributor (or portions
+              thereof), either on an unmodified basis, with other
+              Modifications, as Covered Software and/or as part of a
+              Larger Work; and
+  
+          (b) under Patent Claims infringed by the making, using, or
+              selling of Modifications made by that Contributor either
+              alone and/or in combination with its Contributor Version
+              (or portions of such combination), to make, use, sell,
+              offer for sale, have made, and/or otherwise dispose of:
+              (1) Modifications made by that Contributor (or portions
+              thereof); and (2) the combination of Modifications made by
+              that Contributor with its Contributor Version (or portions
+              of such combination).
+  
+          (c) The licenses granted in Sections 2.2(a) and 2.2(b) are
+              effective on the date Contributor first distributes or
+              otherwise makes the Modifications available to a third
+              party.
+  
+          (d) Notwithstanding Section 2.2(b) above, no patent license is
+              granted: (1) for any code that Contributor has deleted
+              from the Contributor Version; (2) for infringements caused
+              by: (i) third party modifications of Contributor Version,
+              or (ii) the combination of Modifications made by that
+              Contributor with other software (except as part of the
+              Contributor Version) or other devices; or (3) under Patent
+              Claims infringed by Covered Software in the absence of
+              Modifications made by that Contributor.
+  
+  3. Distribution Obligations.
+  
+      3.1. Availability of Source Code.
+  
+      Any Covered Software that You distribute or otherwise make
+      available in Executable form must also be made available in Source
+      Code form and that Source Code form must be distributed only under
+      the terms of this License.  You must include a copy of this
+      License with every copy of the Source Code form of the Covered
+      Software You distribute or otherwise make available.  You must
+      inform recipients of any such Covered Software in Executable form
+      as to how they can obtain such Covered Software in Source Code
+      form in a reasonable manner on or through a medium customarily
+      used for software exchange.
+  
+      3.2. Modifications.
+  
+      The Modifications that You create or to which You contribute are
+      governed by the terms of this License.  You represent that You
+      believe Your Modifications are Your original creation(s) and/or
+      You have sufficient rights to grant the rights conveyed by this
+      License.
+  
+      3.3. Required Notices.
+  
+      You must include a notice in each of Your Modifications that
+      identifies You as the Contributor of the Modification.  You may
+      not remove or alter any copyright, patent or trademark notices
+      contained within the Covered Software, or any notices of licensing
+      or any descriptive text giving attribution to any Contributor or
+      the Initial Developer.
+  
+      3.4. Application of Additional Terms.
+  
+      You may not offer or impose any terms on any Covered Software in
+      Source Code form that alters or restricts the applicable version
+      of this License or the recipients' rights hereunder.  You may
+      choose to offer, and to charge a fee for, warranty, support,
+      indemnity or liability obligations to one or more recipients of
+      Covered Software.  However, you may do so only on Your own behalf,
+      and not on behalf of the Initial Developer or any Contributor.
+      You must make it absolutely clear that any such warranty, support,
+      indemnity or liability obligation is offered by You alone, and You
+      hereby agree to indemnify the Initial Developer and every
+      Contributor for any liability incurred by the Initial Developer or
+      such Contributor as a result of warranty, support, indemnity or
+      liability terms You offer.
+  
+      3.5. Distribution of Executable Versions.
+  
+      You may distribute the Executable form of the Covered Software
+      under the terms of this License or under the terms of a license of
+      Your choice, which may contain terms different from this License,
+      provided that You are in compliance with the terms of this License
+      and that the license for the Executable form does not attempt to
+      limit or alter the recipient's rights in the Source Code form from
+      the rights set forth in this License.  If You distribute the
+      Covered Software in Executable form under a different license, You
+      must make it absolutely clear that any terms which differ from
+      this License are offered by You alone, not by the Initial
+      Developer or Contributor.  You hereby agree to indemnify the
+      Initial Developer and every Contributor for any liability incurred
+      by the Initial Developer or such Contributor as a result of any
+      such terms You offer.
+  
+      3.6. Larger Works.
+  
+      You may create a Larger Work by combining Covered Software with
+      other code not governed by the terms of this License and
+      distribute the Larger Work as a single product.  In such a case,
+      You must make sure the requirements of this License are fulfilled
+      for the Covered Software.
+  
+  4. Versions of the License.
+  
+      4.1. New Versions.
+  
+      Sun Microsystems, Inc. is the initial license steward and may
+      publish revised and/or new versions of this License from time to
+      time.  Each version will be given a distinguishing version number.
+      Except as provided in Section 4.3, no one other than the license
+      steward has the right to modify this License.
+  
+      4.2. Effect of New Versions.
+  
+      You may always continue to use, distribute or otherwise make the
+      Covered Software available under the terms of the version of the
+      License under which You originally received the Covered Software.
+      If the Initial Developer includes a notice in the Original
+      Software prohibiting it from being distributed or otherwise made
+      available under any subsequent version of the License, You must
+      distribute and make the Covered Software available under the terms
+      of the version of the License under which You originally received
+      the Covered Software.  Otherwise, You may also choose to use,
+      distribute or otherwise make the Covered Software available under
+      the terms of any subsequent version of the License published by
+      the license steward.
+  
+      4.3. Modified Versions.
+  
+      When You are an Initial Developer and You want to create a new
+      license for Your Original Software, You may create and use a
+      modified version of this License if You: (a) rename the license
+      and remove any references to the name of the license steward
+      (except to note that the license differs from this License); and
+      (b) otherwise make it clear that the license contains terms which
+      differ from this License.
+  
+  5. DISCLAIMER OF WARRANTY.
+  
+      COVERED SOFTWARE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS"
+      BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
+      INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED
+      SOFTWARE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR
+      PURPOSE OR NON-INFRINGING.  THE ENTIRE RISK AS TO THE QUALITY AND
+      PERFORMANCE OF THE COVERED SOFTWARE IS WITH YOU.  SHOULD ANY
+      COVERED SOFTWARE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE
+      INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY
+      NECESSARY SERVICING, REPAIR OR CORRECTION.  THIS DISCLAIMER OF
+      WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE.  NO USE OF
+      ANY COVERED SOFTWARE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS
+      DISCLAIMER.
+  
+  6. TERMINATION.
+  
+      6.1. This License and the rights granted hereunder will terminate
+      automatically if You fail to comply with terms herein and fail to
+      cure such breach within 30 days of becoming aware of the breach.
+      Provisions which, by their nature, must remain in effect beyond
+      the termination of this License shall survive.
+  
+      6.2. If You assert a patent infringement claim (excluding
+      declaratory judgment actions) against Initial Developer or a
+      Contributor (the Initial Developer or Contributor against whom You
+      assert such claim is referred to as "Participant") alleging that
+      the Participant Software (meaning the Contributor Version where
+      the Participant is a Contributor or the Original Software where
+      the Participant is the Initial Developer) directly or indirectly
+      infringes any patent, then any and all rights granted directly or
+      indirectly to You by such Participant, the Initial Developer (if
+      the Initial Developer is not the Participant) and all Contributors
+      under Sections 2.1 and/or 2.2 of this License shall, upon 60 days
+      notice from Participant terminate prospectively and automatically
+      at the expiration of such 60 day notice period, unless if within
+      such 60 day period You withdraw Your claim with respect to the
+      Participant Software against such Participant either unilaterally
+      or pursuant to a written agreement with Participant.
+  
+      6.3. In the event of termination under Sections 6.1 or 6.2 above,
+      all end user licenses that have been validly granted by You or any
+      distributor hereunder prior to termination (excluding licenses
+      granted to You by any distributor) shall survive termination.
+  
+  7. LIMITATION OF LIABILITY.
+  
+      UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
+      (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE
+      INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF
+      COVERED SOFTWARE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE
+      LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR
+      CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT
+      LIMITATION, DAMAGES FOR LOST PROFITS, LOSS OF GOODWILL, WORK
+      STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER
+      COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN
+      INFORMED OF THE POSSIBILITY OF SUCH DAMAGES.  THIS LIMITATION OF
+      LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL
+      INJURY RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT
+      APPLICABLE LAW PROHIBITS SUCH LIMITATION.  SOME JURISDICTIONS DO
+      NOT ALLOW THE EXCLUSION OR LIMITATION OF INCIDENTAL OR
+      CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND LIMITATION MAY NOT
+      APPLY TO YOU.
+  
+  8. U.S. GOVERNMENT END USERS.
+  
+      The Covered Software is a "commercial item," as that term is
+      defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial
+      computer software" (as that term is defined at 48
+      C.F.R. 252.227-7014(a)(1)) and "commercial computer software
+      documentation" as such terms are used in 48 C.F.R. 12.212
+      (Sept. 1995).  Consistent with 48 C.F.R. 12.212 and 48
+      C.F.R. 227.7202-1 through 227.7202-4 (June 1995), all
+      U.S. Government End Users acquire Covered Software with only those
+      rights set forth herein.  This U.S. Government Rights clause is in
+      lieu of, and supersedes, any other FAR, DFAR, or other clause or
+      provision that addresses Government rights in computer software
+      under this License.
+  
+  9. MISCELLANEOUS.
+  
+      This License represents the complete agreement concerning subject
+      matter hereof.  If any provision of this License is held to be
+      unenforceable, such provision shall be reformed only to the extent
+      necessary to make it enforceable.  This License shall be governed
+      by the law of the jurisdiction specified in a notice contained
+      within the Original Software (except to the extent applicable law,
+      if any, provides otherwise), excluding such jurisdiction's
+      conflict-of-law provisions.  Any litigation relating to this
+      License shall be subject to the jurisdiction of the courts located
+      in the jurisdiction and venue specified in a notice contained
+      within the Original Software, with the losing party responsible
+      for costs, including, without limitation, court costs and
+      reasonable attorneys' fees and expenses.  The application of the
+      United Nations Convention on Contracts for the International Sale
+      of Goods is expressly excluded.  Any law or regulation which
+      provides that the language of a contract shall be construed
+      against the drafter shall not apply to this License.  You agree
+      that You alone are responsible for compliance with the United
+      States export administration regulations (and the export control
+      laws and regulation of any other countries) when You use,
+      distribute or otherwise make available any Covered Software.
+  
+  10. RESPONSIBILITY FOR CLAIMS.
+  
+      As between Initial Developer and the Contributors, each party is
+      responsible for claims and damages arising, directly or
+      indirectly, out of its utilization of rights under this License
+      and You agree to work with Initial Developer and Contributors to
+      distribute such responsibility on an equitable basis.  Nothing
+      herein is intended or shall be deemed to constitute any admission
+      of liability.
+  
+  --------------------------------------------------------------------
+  
+  NOTICE PURSUANT TO SECTION 9 OF THE COMMON DEVELOPMENT AND
+  DISTRIBUTION LICENSE (CDDL)
+  
+  For Covered Software in this distribution, this License shall
+  be governed by the laws of the State of California (excluding
+  conflict-of-law provisions).
+  
+  Any litigation relating to this License shall be subject to the
+  jurisdiction of the Federal Courts of the Northern District of
+  California and the state courts of the State of California, with
+  venue lying in Santa Clara County, California.

Added: trunk/ctfutils/debian/ctfutils.install
===================================================================
--- trunk/ctfutils/debian/ctfutils.install	                        (rev 0)
+++ trunk/ctfutils/debian/ctfutils.install	2013-11-30 00:04:26 UTC (rev 5190)
@@ -0,0 +1,4 @@
+cddl/usr.bin/ctfconvert/ctfconvert	usr/bin
+cddl/usr.bin/ctfdump/ctfdump		usr/bin
+cddl/usr.bin/ctfmerge/ctfmerge		usr/bin
+cddl/lib/libctf/libctf.so.*		usr/lib

Added: trunk/ctfutils/debian/ctfutils.manpages
===================================================================
--- trunk/ctfutils/debian/ctfutils.manpages	                        (rev 0)
+++ trunk/ctfutils/debian/ctfutils.manpages	2013-11-30 00:04:26 UTC (rev 5190)
@@ -0,0 +1,3 @@
+cddl/usr.bin/ctfconvert/ctfconvert.1
+cddl/usr.bin/ctfdump/ctfdump.1
+cddl/usr.bin/ctfmerge/ctfmerge.1

Added: trunk/ctfutils/debian/patches/compat_opensolaris.diff
===================================================================
--- trunk/ctfutils/debian/patches/compat_opensolaris.diff	                        (rev 0)
+++ trunk/ctfutils/debian/patches/compat_opensolaris.diff	2013-11-30 00:04:26 UTC (rev 5190)
@@ -0,0 +1,208 @@
+--- a/sys/cddl/compat/opensolaris/sys/param.h
++++ b/sys/cddl/compat/opensolaris/sys/param.h
+@@ -27,11 +27,11 @@
+  *
+  */
+ 
++#include_next <sys/param.h>
++
+ #ifndef _COMPAT_OPENSOLARIS_SYS_PARAM_H_
+ #define _COMPAT_OPENSOLARIS_SYS_PARAM_H_
+ 
+-#include_next <sys/param.h>
+-
+ #define	PAGESIZE	PAGE_SIZE
+ 
+ #ifdef _KERNEL
+--- a/cddl/compat/opensolaris/include/stdio.h
++++ b/cddl/compat/opensolaris/include/stdio.h
+@@ -27,11 +27,11 @@
+  *
+  */
+ 
++#include_next <stdio.h>
++
+ #ifndef _COMPAT_OPENSOLARIS_STDIO_H_
+ #define _COMPAT_OPENSOLARIS_STDIO_H_
+ 
+-#include_next <stdio.h>
+-
+ #define ftello64	ftello
+ #define lseek64		lseek
+ #define fseeko64	fseeko
+--- a/cddl/compat/opensolaris/include/stdlib.h
++++ b/cddl/compat/opensolaris/include/stdlib.h
+@@ -27,11 +27,11 @@
+  *
+  */
+ 
++#include_next <stdlib.h>
++
+ #ifndef _COMPAT_OPENSOLARIS_STDLIB_H_
+ #define _COMPAT_OPENSOLARIS_STDLIB_H_
+ 
+-#include_next <stdlib.h>
+-
+ #define getexecname	getprogname
+ 
+ #endif
+--- a/cddl/compat/opensolaris/include/alloca.h
++++ b/cddl/compat/opensolaris/include/alloca.h
+@@ -27,6 +27,10 @@
+  *
+  */
+ 
++#ifdef __GLIBC__
++#include_next <alloca.h>
++#endif
++
+ #ifndef _COMPAT_OPENSOLARIS_ALLOCA_H_
+ #define _COMPAT_OPENSOLARIS_ALLOCA_H_
+ 
+--- a/sys/cddl/compat/opensolaris/sys/misc.h
++++ b/sys/cddl/compat/opensolaris/sys/misc.h
+@@ -31,7 +31,11 @@
+ 
+ #include <sys/limits.h>
+ 
++#ifdef UID_MAX
+ #define	MAXUID	UID_MAX
++#else
++#define MAXUID	UINT_MAX
++#endif
+ 
+ #define	SPEC_MAXOFFSET_T	OFF_MAX
+ 
+--- a/sys/cddl/compat/opensolaris/sys/vnode.h
++++ b/sys/cddl/compat/opensolaris/sys/vnode.h
+@@ -116,7 +116,11 @@
+ #define	va_blksize	va_blocksize
+ #define	va_seq		va_gen
+ 
++#ifndef OFF_MAX
++#define MAXOFFSET_T	__OFF_MAX
++#else
+ #define	MAXOFFSET_T	OFF_MAX
++#endif
+ #define	EXCL		0
+ 
+ #define	ACCESSED		(AT_ATIME)
+--- a/sys/cddl/compat/opensolaris/sys/stat.h
++++ b/sys/cddl/compat/opensolaris/sys/stat.h
+@@ -32,11 +32,17 @@
+ 
+ #include_next <sys/stat.h>
+ 
++#ifndef __GLIBC__
+ #define	stat64	stat
++#endif
+ 
++#ifdef OFF_MAX
+ #define	MAXOFFSET_T	OFF_MAX
++#else
++#define MAXOFFSET_T	__OFF_MAX
++#endif
+ 
+-#ifndef _KERNEL
++#if !defined(_KERNEL) && !defined(__GLIBC__)
+ #include <sys/disk.h>
+ 
+ static __inline int
+--- a/cddl/compat/opensolaris/include/mnttab.h
++++ b/cddl/compat/opensolaris/include/mnttab.h
+@@ -9,7 +9,7 @@
+ #include <stdio.h>
+ #include <paths.h>
+ 
+-#define	MNTTAB		_PATH_DEVZERO
++#define	MNTTAB		_PATH_MNTTAB
+ #define	MNT_LINE_MAX	1024
+ 
+ #define	MS_OVERLAY	0x0
+@@ -28,6 +28,8 @@
+ 
+ int getmntany(FILE *fd, struct mnttab *mgetp, struct mnttab *mrefp);
+ int getmntent(FILE *fp, struct mnttab *mp);
++
++#define hasmntopt solaris_hasmntopt
+ char *hasmntopt(struct mnttab *mnt, char *opt);
+ 
+ void statfs2mnttab(struct statfs *sfs, struct mnttab *mp);
+--- a/sys/cddl/compat/opensolaris/rpc/xdr.h
++++ b/sys/cddl/compat/opensolaris/rpc/xdr.h
+@@ -60,10 +60,16 @@
+ }
+ 
+ #undef XDR_CONTROL
++#ifdef __GLIBC__
++#define	XDR_CONTROL(xdrs, req, op)					\
++	(xdrmem_control((xdrs), (req), (op)))
++
++#else
+ #define	XDR_CONTROL(xdrs, req, op)					\
+ 	(((xdrs)->x_ops->x_control == NULL) ?				\
+ 	    xdrmem_control((xdrs), (req), (op)) :			\
+ 	    (*(xdrs)->x_ops->x_control)(xdrs, req, op))   
++#endif
+ 
+ #endif	/* !_KERNEL */
+ 
+--- a/cddl/compat/opensolaris/misc/fsshare.c
++++ b/cddl/compat/opensolaris/misc/fsshare.c
+@@ -34,7 +34,6 @@
+ #include <fcntl.h>
+ #include <fsshare.h>
+ #include <libutil.h>
+-#include <pathnames.h>	/* _PATH_MOUNTDPID */
+ #include <signal.h>
+ #include <stdio.h>
+ #include <string.h>
+@@ -47,6 +46,9 @@
+ static void
+ restart_mountd(void)
+ {
++	fprintf (stderr, "warning: mountd isn't supported in "
++		"Debian GNU/kFreeBSD yet\n");
++#if 0
+ 	struct pidfh *pfh;
+ 	pid_t mountdpid;
+ 
+@@ -62,6 +64,7 @@
+ 	}
+ 	/* We have mountd(8) PID in mountdpid varible. */
+ 	kill(mountdpid, SIGHUP);
++#endif
+ }
+ 
+ /*
+@@ -69,7 +72,7 @@
+  * mountpoint specified in the 'skip' argument.
+  */
+ static char *
+-getline(FILE *fd, const char *skip)
++xgetline(FILE *fd, const char *skip)
+ {
+ 	static char line[MAXLINESIZE];
+ 	size_t len, skiplen;
+@@ -200,7 +203,7 @@
+ 
+ 	/* Place big, fat warning at the begining of the file. */
+ 	fprintf(newfd, "%s", FILE_HEADER);
+-	while (oldfd != NULL && (line = getline(oldfd, mountpoint)) != NULL)
++	while (oldfd != NULL && (line = xgetline(oldfd, mountpoint)) != NULL)
+ 		fprintf(newfd, "%s\n", line);
+ 	if (oldfd != NULL && ferror(oldfd) != 0) {
+ 		error = ferror(oldfd);
+--- a/sys/cddl/compat/opensolaris/sys/dirent.h
++++ b/sys/cddl/compat/opensolaris/sys/dirent.h
+@@ -36,7 +36,10 @@
+ typedef	struct dirent	dirent64_t;
+ typedef ino_t		ino64_t;
+ 
++/* GNU libc has its own dirent64 declaration */
++#ifndef __GLIBC__
+ #define	dirent64	dirent
++#endif
+ 
+ #define	d_ino	d_fileno
+ 

Added: trunk/ctfutils/debian/patches/makefile.diff
===================================================================
--- trunk/ctfutils/debian/patches/makefile.diff	                        (rev 0)
+++ trunk/ctfutils/debian/patches/makefile.diff	2013-11-30 00:04:26 UTC (rev 5190)
@@ -0,0 +1,36 @@
+--- a/cddl/usr.bin/ctfconvert/Makefile
++++ b/cddl/usr.bin/ctfconvert/Makefile
+@@ -37,6 +37,8 @@
+ 		-I${OPENSOLARIS_SYS_DISTDIR}/uts/common
+ 
+ DPADD=		${LIBCTF} ${LIBDWARF} ${LIBELF} ${LIBZ} ${LIBPTHREAD}
+-LDADD=		-lctf -ldwarf -lelf -lz -lpthread
++LDADD=		-lctf -ldwarf-freebsd -lelf-freebsd -lz -lpthread
++
++LDADD+=		-L../../lib/libctf -lbsd
+ 
+ .include <bsd.prog.mk>
+--- a/cddl/usr.bin/ctfmerge/Makefile
++++ b/cddl/usr.bin/ctfmerge/Makefile
+@@ -34,6 +34,8 @@
+ 		-I${OPENSOLARIS_SYS_DISTDIR}/uts/common
+ 
+ DPADD=		${LIBCTF} ${LIBDWARF} ${LIBELF} ${LIBZ} ${LIBPTHREAD}
+-LDADD=		-lctf -ldwarf -lelf -lz -lpthread
++LDADD=		-lctf -ldwarf-freebsd -lelf-freebsd -lz -lpthread
++
++LDADD+=		-L../../lib/libctf -lbsd
+ 
+ .include <bsd.prog.mk>
+--- a/cddl/usr.bin/ctfdump/Makefile
++++ b/cddl/usr.bin/ctfdump/Makefile
+@@ -18,6 +18,8 @@
+ 		-I${OPENSOLARIS_SYS_DISTDIR}/uts/common
+ 
+ DPADD=		${LIBPTHREAD} ${LIBELF} ${LIBZ}
+-LDADD=		-lpthread -lelf -lz
++LDADD=		-lpthread -lelf-freebsd -lz
++
++LDADD+=		-lbsd
+ 
+ .include <bsd.prog.mk>

Added: trunk/ctfutils/debian/patches/series
===================================================================
--- trunk/ctfutils/debian/patches/series	                        (rev 0)
+++ trunk/ctfutils/debian/patches/series	2013-11-30 00:04:26 UTC (rev 5190)
@@ -0,0 +1,10 @@
+# Patches from (or merged in) upstream
+
+# Mergeable material
+compat_opensolaris.diff
+
+# Other patches that might or might not be mergeable
+ulong_t.diff
+
+# Patches that are likely to be Debian-specific
+makefile.diff

Added: trunk/ctfutils/debian/patches/ulong_t.diff
===================================================================
--- trunk/ctfutils/debian/patches/ulong_t.diff	                        (rev 0)
+++ trunk/ctfutils/debian/patches/ulong_t.diff	2013-11-30 00:04:26 UTC (rev 5190)
@@ -0,0 +1,11 @@
+--- a/sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h
++++ b/sys/cddl/contrib/opensolaris/uts/common/sys/sysmacros.h
+@@ -380,7 +380,7 @@
+  * High order bit is 31 (or 63 in _LP64 kernel).
+  */
+ static __inline int
+-highbit(ulong_t i)
++highbit(unsigned long i)
+ {
+ 	register int h = 1;
+ 

Added: trunk/ctfutils/debian/rules
===================================================================
--- trunk/ctfutils/debian/rules	                        (rev 0)
+++ trunk/ctfutils/debian/rules	2013-11-30 00:04:26 UTC (rev 5190)
@@ -0,0 +1,137 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+SHELL=bash
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+CFLAGS = -Wall -Wno-unknown-pragmas -g -pipe -fPIC -I. \
+         -D_GNU_SOURCE -DNEED_SOLARIS_BOOLEAN \
+	-isystem /usr/include/freebsd \
+	-Werror=implicit-function-declaration \
+	$(NULL)
+
+ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+full_version	:= $(shell dpkg-parsechangelog | grep ^Version: | sed -e 's/^.*: //g')
+tar_version	:= $(shell echo $(full_version) | sed -e 's/-.*//g')
+svn_revision	:= $(shell echo $(full_version) | sed -e 's/.*~svn\([0-9]*\)-[0-9]*/\1/g')
+version		:= $(shell echo $(full_version) | sed -e 's/[~+-].*//g')
+major           := $(shell echo $(version) | sed -e 's/\..*//g')
+revision	:= $(shell echo $(full_version) | sed -e 's/^[^+-]*//g')
+
+SVN		:= http://svn.freebsd.org/base/release/$(version).0
+#SVN		:= http://svn.freebsd.org/base/releng/$(version)
+#SVN		:= http://svn.freebsd.org/base/stable/$(major)
+#SVN		:= http://svn.freebsd.org/base/head
+
+SOURCE = ctfutils
+ORIGDIR = $(SOURCE)-$(tar_version)
+TARNAME = $(SOURCE)_$(tar_version).orig.tar.gz
+
+PATH := /usr/lib/freebsd:$(PATH)
+DESTDIR = $(CURDIR)/debian/tmp
+PMAKE = COPTS="$(CFLAGS)" CFLAGS="$(CFLAGS)" NO_WERROR=1 NOGCCERROR=1 \
+	OPENSOLARIS_USR_DISTDIR="$(CURDIR)/cddl/contrib/opensolaris" \
+	OPENSOLARIS_SYS_DISTDIR="$(CURDIR)/sys/cddl/contrib/opensolaris" \
+        NOSHARED=NO NO_SHARED=NO DESTDIR=$(DESTDIR) make
+export SHLIB_MAJOR = 0
+
+get-orig-source:
+	rm -rf $(ORIGDIR)
+	for i in \
+		cddl/compat/opensolaris \
+		sys/cddl/compat/opensolaris \
+		\
+		cddl/contrib/opensolaris/common/ctf \
+		cddl/contrib/opensolaris/tools/ctf \
+		cddl/contrib/opensolaris/lib/libctf \
+		cddl/contrib/opensolaris/lib/libgen \
+		sys/cddl/contrib/opensolaris/uts/common/ctf \
+		sys/cddl/contrib/opensolaris/uts/common/sys \
+		\
+		cddl/lib/libctf \
+		cddl/usr.bin/ctfconvert \
+		cddl/usr.bin/ctfdump \
+		cddl/usr.bin/ctfmerge \
+	         ; do \
+	    svn export $(SVN)/$$i $(ORIGDIR)/$$i ; \
+	done
+	tar --numeric-owner --owner 0 --group 0 -czf ../$(TARNAME) $(ORIGDIR)
+	rm -rf $(ORIGDIR)
+
+build: build-arch build-indep
+
+build-arch: build-ctfutils
+
+build-indep:
+# We have nothing to do by default.
+
+
+build-libctf: build-libctf-stamp
+build-libctf-stamp:
+	$(PMAKE) -C $(CURDIR)/cddl/lib/libctf
+	touch $@
+
+build-ctfutils: build-ctfutils-stamp
+build-ctfutils-stamp: build-libctf-stamp build-libctf-stamp
+	$(PMAKE) -C $(CURDIR)/cddl/usr.bin/ctfconvert
+	$(PMAKE) -C $(CURDIR)/cddl/usr.bin/ctfdump
+	$(PMAKE) -C $(CURDIR)/cddl/usr.bin/ctfmerge
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	$(PMAKE) -C $(CURDIR)/cddl/lib/libctf clean
+	$(PMAKE) -C $(CURDIR)/cddl/usr.bin/ctfconvert clean
+	$(PMAKE) -C $(CURDIR)/cddl/usr.bin/ctfdump clean
+	$(PMAKE) -C $(CURDIR)/cddl/usr.bin/ctfmerge clean
+
+	rm -f *stamp
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep -s
+	dh_installdirs -s
+	dh_install -s
+
+
+binary: binary-arch binary-indep
+
+binary-indep: build install
+# We have nothing to do by default.
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs -a
+	dh_installdocs -a
+#	dh_installexamples
+	dh_installcron
+#	dh_installinfo
+	dh_installman
+	dh_link -a
+	dh_strip -a
+	dh_compress -a
+	dh_fixperms -a
+#	dh_perl
+#	dh_python
+	dh_makeshlibs -a
+	dh_installdeb -a
+	dh_shlibdeps -a
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
+
+.PHONY: build clean binary-indep binary-arch binary install configure build-arch build-indep


Property changes on: trunk/ctfutils/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/ctfutils/debian/source/format
===================================================================
--- trunk/ctfutils/debian/source/format	                        (rev 0)
+++ trunk/ctfutils/debian/source/format	2013-11-30 00:04:26 UTC (rev 5190)
@@ -0,0 +1 @@
+3.0 (quilt)




More information about the Glibc-bsd-commits mailing list