pkgsrc-Bugs archive

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

pkg/59580: pkgsrc: Fix vim on Haiku



>Number:         59580
>Category:       pkg
>Synopsis:       pkgsrc: Fix vim on Haiku
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 08 01:00:00 +0000 2025
>Originator:     Brian Callahan
>Release:        pkgsrc -current
>Organization:
>Environment:
Haiku shredder 1 hrev57937+113 Sep 12 2024 21:59 x86_64 x86_64 Haiku
(Haiku R1/beta5)
>Description:
Vim, specifically editors/vim-share, fails to link on Haiku because it is missing -lgnu for the xattr family of functions. Supplied patch adds it. Haikuports does the same thing.
>How-To-Repeat:
Install Haiku on a spare machine, bootstrap pkgsrc, try to build editors/vm
>Fix:
diff --git a/editors/vim-share/Makefile.common b/editors/vim-share/Makefile.common
index 8bd8c507b322..3eb2a3eed498 100644
--- a/editors/vim-share/Makefile.common
+++ b/editors/vim-share/Makefile.common
@@ -50,6 +50,10 @@ DISTINFO_FILE?=              ${.CURDIR}/../../editors/vim-share/distinfo
 BUILDLINK_PASSTHRU_DIRS+=      /Developer/Headers/FlatCarbon
 .endif

+# Haiku needs -lgnu for the xattr family of functions.
+# Haikuports also adds -lgnu but doesn't explain why.
+LIBS.Haiku+=           -lgnu
+
 .if empty(PKGNAME:Mvim-share*)
 ALTERNATIVES_SRC=      ${.CURDIR}/../../editors/vim-share/ALTERNATIVES
 .else


Home | Main Index | Thread Index | Old Index