[Pkg-cgit-commits] [pkg-cgit] 07/08: Fix FTBFS on GNU/kFreeBSD by linking with -ldl

Peter Colberg peter at colberg.org
Mon Jun 20 00:56:35 UTC 2016


This is an automated email from the git hooks/post-receive script.

pc-guest pushed a commit to branch master
in repository pkg-cgit.

commit 9799404d946d8c94c5259472c077e005bff2ad76
Author: Peter Colberg <peter at colberg.org>
Date:   Sun Jun 19 18:59:36 2016 -0400

    Fix FTBFS on GNU/kFreeBSD by linking with -ldl
---
 debian/patches/link-with-ldl-on-gnu-kfreebsd.patch | 18 ++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 19 insertions(+)

diff --git a/debian/patches/link-with-ldl-on-gnu-kfreebsd.patch b/debian/patches/link-with-ldl-on-gnu-kfreebsd.patch
new file mode 100644
index 0000000..5e5f5f5
--- /dev/null
+++ b/debian/patches/link-with-ldl-on-gnu-kfreebsd.patch
@@ -0,0 +1,18 @@
+Description: Link with -ldl on GNU/kFreeBSD
+ GNU/kFreeBSD uses the FreeBSD kernel with the GNU C library.
+Author: Peter Colberg <peter at colberg.org>
+Forwarded: https://lists.zx2c4.com/pipermail/cgit/2016-June/003099.html
+Last-Update: 2016-06-19
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/cgit.mk
++++ b/cgit.mk
+@@ -54,7 +54,7 @@
+ endif
+ 
+ # Add -ldl to linker flags on non-BSD systems.
+-ifeq ($(findstring BSD,$(uname_S)),)
++ifeq (,$(filter $(uname_S),DragonFly FreeBSD NetBSD OpenBSD))
+ 	CGIT_LIBS += -ldl
+ endif
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 87f01d5..3cd909f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -10,3 +10,4 @@ use-debian-binary-name-rst2html.patch
 fix-spelling-in-man-page.patch
 fix-spelling-of-occurred.patch
 use-python3-in-md2html.patch
+link-with-ldl-on-gnu-kfreebsd.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-cgit/pkg-cgit.git



More information about the Pkg-cgit-commits mailing list