Build with libsunavl

This commit is contained in:
Igor Pashev 2019-11-25 18:09:42 +03:00
parent edb97dfdd7
commit 1d738f6204
3 changed files with 28 additions and 1 deletions

View File

@ -6,7 +6,7 @@ Build-Depends:
dh-illumos,
gcc-multilib,
illumos-source-2.10,
lib32sunavl1-dev, libsunavl1-dev,
lib32sunavl-dev, libsunavl-dev,
lib32nvpair1-dev, libnvpair1-dev,
lib32uutil1-dev, libuutil1-dev,
quilt,

View File

@ -0,0 +1,26 @@
Index: libidmap/usr/src/lib/libidmap/common/idmap_cache.c
===================================================================
--- libidmap.orig/usr/src/lib/libidmap/common/idmap_cache.c
+++ libidmap/usr/src/lib/libidmap/common/idmap_cache.c
@@ -31,7 +31,7 @@
#include <sys/types.h>
-#include <sys/avl.h>
+#include <libsunavl.h>
#include <assert.h>
#include <pthread.h>
#include <strings.h>
Index: libidmap/usr/src/lib/libidmap/Makefile.com
===================================================================
--- libidmap.orig/usr/src/lib/libidmap/Makefile.com
+++ libidmap/usr/src/lib/libidmap/Makefile.com
@@ -43,7 +43,7 @@ include ../../Makefile.lib
C99MODE = $(C99_ENABLE)
LIBS = $(DYNLIB) $(LINTLIB)
-LDLIBS += -lc -lavl -lnsl -lnvpair -luutil
+LDLIBS += -lc -lsunavl -lnsl -lnvpair -luutil
SRCDIR = ../common
$(LINTLIB):= SRCS = $(SRCDIR)/$(LINTSRC)

View File

@ -1,2 +1,3 @@
libidmap-no-libscf.h.patch
libidmap-use-system-idmap_prot.x.patch
libidmap-libsunavl.patch