pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

wip/libbacktrace: import libbacktrace-master



Module Name:	pkgsrc-wip
Committed By:	Makoto Fujiwara <makoto%if.t.u-tokyo.ac.jp@localhost>
Pushed By:	mef
Date:		Sat Jun 22 22:03:47 2024 +0900
Changeset:	d7300bca4891b85f364b3d1c49d3e00b07826963

Added Files:
	libbacktrace/DESCR
	libbacktrace/Makefile
	libbacktrace/PLIST
	libbacktrace/buildlink3.mk
	libbacktrace/distinfo

Log Message:
wip/libbacktrace: import libbacktrace-master

# libbacktrace

A C library that may be linked into a C/C++ program to produce
symbolic backtraces

Initially written by Ian Lance Taylor <iant%golang.org@localhost>.

This is version 1.0.
It is likely that this will always be version 1.0.

The libbacktrace library may be linked into a program or library and
used to produce symbolic backtraces.
Sample uses would be to print a detailed backtrace when an error
occurs or to gather detailed profiling information.
In general the functions provided by this library are async-signal-safe,
meaning that they may be safely called from a signal handler.

The libbacktrace library is provided under a BSD license.
See the source files for the exact license text.

The public functions are declared and documented in the header file
backtrace.h, which should be #include'd by a user of the library.
...

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d7300bca4891b85f364b3d1c49d3e00b07826963

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 libbacktrace/DESCR         | 23 +++++++++++++++++++++++
 libbacktrace/Makefile      | 21 +++++++++++++++++++++
 libbacktrace/PLIST         |  4 ++++
 libbacktrace/buildlink3.mk | 13 +++++++++++++
 libbacktrace/distinfo      |  5 +++++
 5 files changed, 66 insertions(+)

diffs:
diff --git a/libbacktrace/DESCR b/libbacktrace/DESCR
new file mode 100644
index 0000000000..832682b2fa
--- /dev/null
+++ b/libbacktrace/DESCR
@@ -0,0 +1,23 @@
+# libbacktrace
+
+A C library that may be linked into a C/C++ program to produce
+symbolic backtraces
+
+Initially written by Ian Lance Taylor <iant%golang.org@localhost>.
+
+This is version 1.0.
+It is likely that this will always be version 1.0.
+
+The libbacktrace library may be linked into a program or library and
+used to produce symbolic backtraces.
+Sample uses would be to print a detailed backtrace when an error
+occurs or to gather detailed profiling information.
+In general the functions provided by this library are async-signal-safe,
+meaning that they may be safely called from a signal handler.
+
+The libbacktrace library is provided under a BSD license.
+See the source files for the exact license text.
+
+The public functions are declared and documented in the header file
+backtrace.h, which should be #include'd by a user of the library.
+...
diff --git a/libbacktrace/Makefile b/libbacktrace/Makefile
new file mode 100644
index 0000000000..bfbc962b12
--- /dev/null
+++ b/libbacktrace/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD$
+
+GITHUB_PROJECT=	libbacktrace
+GITHUB_TAG=	refs/heads/master
+DISTNAME=	master
+PKGNAME=	${GITHUB_PROJECT}-${DISTNAME}
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=ianlancetaylor/}
+EXTRACT_SUFX=	.zip
+DIST_SUBDIR=	${GITHUB_PROJECT}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/ianlancetaylor/libbacktrace/
+COMMENT=	C library  be linked into a C/C++ program for symbolic backtraces
+LICENSE=	modified-bsd
+
+WRKSRC=		${WRKDIR}/libbacktrace-master
+GNU_CONFIGURE=	yes
+USE_LIBTOOL=	yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/libbacktrace/PLIST b/libbacktrace/PLIST
new file mode 100644
index 0000000000..ce5a2a37f8
--- /dev/null
+++ b/libbacktrace/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+include/backtrace-supported.h
+include/backtrace.h
+lib/libbacktrace.la
diff --git a/libbacktrace/buildlink3.mk b/libbacktrace/buildlink3.mk
new file mode 100644
index 0000000000..4bb0fc08af
--- /dev/null
+++ b/libbacktrace/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	libbacktrace
+
+.if !defined(LIBBACKTRACE_BUILDLINK3_MK)
+LIBBACKTRACE_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libbacktrace+=	libbacktrace>=1.0.0
+BUILDLINK_PKGSRCDIR.libbacktrace?=	../../wip/libbacktrace
+
+.endif	# LIBBACKTRACE_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-libbacktrace
diff --git a/libbacktrace/distinfo b/libbacktrace/distinfo
new file mode 100644
index 0000000000..9ea486a009
--- /dev/null
+++ b/libbacktrace/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (libbacktrace/master.zip) = e0f980637e9d2df9e0531e17ab7eba015405247b4ced8c5b4ff1cb24210d3aa8
+SHA512 (libbacktrace/master.zip) = b5a7ffcf7cab565d47f86271f4bd0d6161c49ad837d0b6bf777dc1cbd9994820299def5987fe3916166496e43aa1142b8a553dbe4d0d912fce8f7b2842264981
+Size (libbacktrace/master.zip) = 741694 bytes


Home | Main Index | Thread Index | Old Index