mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-06 18:07:43 +00:00
libcap: fix build issue when host pam is around
Closes #1843 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
c0b3dc2005
commit
2816c33c3d
6
CHANGES
6
CHANGES
@ -2,7 +2,11 @@
|
|||||||
|
|
||||||
Fixes all over the tree.
|
Fixes all over the tree.
|
||||||
|
|
||||||
Updated/fixed packages: coreutils, hal
|
Updated/fixed packages: coreutils, hal, libcap
|
||||||
|
|
||||||
|
Issues resolved (http://bugs.uclibc.org):
|
||||||
|
|
||||||
|
#1843: Fix libcap build failure
|
||||||
|
|
||||||
2010.05-rc3, Released May 27th, 2010:
|
2010.05-rc3, Released May 27th, 2010:
|
||||||
|
|
||||||
|
@ -1,13 +1,19 @@
|
|||||||
---
|
diff -Nura libcap-2.19.orig/libcap/Makefile libcap-2.19/libcap/Makefile
|
||||||
Make.Rules | 15 ++++++++-------
|
--- libcap-2.19.orig/libcap/Makefile 2008-12-04 05:03:12.000000000 -0200
|
||||||
libcap/Makefile | 2 +-
|
+++ libcap-2.19/libcap/Makefile 2010-05-28 14:32:06.290297694 -0300
|
||||||
2 files changed, 9 insertions(+), 8 deletions(-)
|
@@ -33,7 +33,7 @@
|
||||||
|
endif
|
||||||
|
|
||||||
Index: libcap-2.19/Make.Rules
|
_makenames: _makenames.c cap_names.list.h
|
||||||
===================================================================
|
- $(BUILD_CC) $(BUILD_CFLAGS) $< -o $@
|
||||||
--- libcap-2.19.orig/Make.Rules
|
+ $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $< -o $@
|
||||||
+++ libcap-2.19/Make.Rules
|
|
||||||
@@ -45,24 +45,25 @@
|
cap_names.h: _makenames
|
||||||
|
./_makenames > cap_names.h
|
||||||
|
diff -Nura libcap-2.19.orig/Make.Rules libcap-2.19/Make.Rules
|
||||||
|
--- libcap-2.19.orig/Make.Rules 2010-01-13 23:04:58.000000000 -0300
|
||||||
|
+++ libcap-2.19/Make.Rules 2010-05-28 14:32:31.802296186 -0300
|
||||||
|
@@ -45,25 +45,26 @@
|
||||||
KERNEL_HEADERS := $(topdir)/libcap/include
|
KERNEL_HEADERS := $(topdir)/libcap/include
|
||||||
IPATH += -I$(topdir)/libcap/include -I$(KERNEL_HEADERS)
|
IPATH += -I$(topdir)/libcap/include -I$(KERNEL_HEADERS)
|
||||||
|
|
||||||
@ -36,20 +42,9 @@ Index: libcap-2.19/Make.Rules
|
|||||||
INCS=$(topdir)/libcap/include/sys/capability.h
|
INCS=$(topdir)/libcap/include/sys/capability.h
|
||||||
LDFLAGS += -L$(topdir)/libcap
|
LDFLAGS += -L$(topdir)/libcap
|
||||||
CFLAGS += -Dlinux $(WARNINGS) $(DEBUG) $(IPATH)
|
CFLAGS += -Dlinux $(WARNINGS) $(DEBUG) $(IPATH)
|
||||||
|
-PAM_CAP := $(shell if [ -f /usr/include/security/pam_modules.h ]; then echo yes ; else echo no ; fi)
|
||||||
+CFLAGS_FOR_BUILD += $(IPATH)
|
+CFLAGS_FOR_BUILD += $(IPATH)
|
||||||
PAM_CAP := $(shell if [ -f /usr/include/security/pam_modules.h ]; then echo yes ; else echo no ; fi)
|
+PAM_CAP := no
|
||||||
INDENT := $(shell if [ -n "$(which indent 2>/dev/null)" ]; then echo "| indent -kr" ; fi)
|
INDENT := $(shell if [ -n "$(which indent 2>/dev/null)" ]; then echo "| indent -kr" ; fi)
|
||||||
DYNAMIC := $(shell if [ ! -d "$(topdir)/.git" ]; then echo yes; fi)
|
DYNAMIC := $(shell if [ ! -d "$(topdir)/.git" ]; then echo yes; fi)
|
||||||
Index: libcap-2.19/libcap/Makefile
|
LIBATTR := yes
|
||||||
===================================================================
|
|
||||||
--- libcap-2.19.orig/libcap/Makefile
|
|
||||||
+++ libcap-2.19/libcap/Makefile
|
|
||||||
@@ -33,7 +33,7 @@
|
|
||||||
endif
|
|
||||||
|
|
||||||
_makenames: _makenames.c cap_names.list.h
|
|
||||||
- $(BUILD_CC) $(BUILD_CFLAGS) $< -o $@
|
|
||||||
+ $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $< -o $@
|
|
||||||
|
|
||||||
cap_names.h: _makenames
|
|
||||||
./_makenames > cap_names.h
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user