libcap: Update to 2.29 10933/head
authorRosen Penev <rosenp@gmail.com>
Fri, 3 Jan 2020 06:17:18 +0000 (22:17 -0800)
committerRosen Penev <rosenp@gmail.com>
Thu, 9 Jan 2020 00:08:35 +0000 (16:08 -0800)
Fixed PKG_LICENSE.

Added PKG_BUILD_PARALLEL for faster compilation.

Refreshed patches.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/libcap/Makefile
libs/libcap/patches/100-portability.patch
libs/libcap/patches/200-change-hardcoded-shell-to-sh.patch

index e77fed6ed7e3a483c211bc6e300986895cdc14d9..db40595205760f9812a01d1180f96fa7a0c16088 100644 (file)
@@ -8,18 +8,19 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libcap
-PKG_VERSION:=2.27
-PKG_RELEASE:=3
+PKG_VERSION:=2.30
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@KERNEL/linux/libs/security/linux-privs/libcap2
-PKG_HASH:=dac1792d0118bee6aae6ba7fb93ff1602c6a9bda812fd63916eee1435b9c486a
+PKG_HASH:=a287bae0b0d95e5230a1c4177b835c70774511b631f87c7bd29e91a03e027f11
 
 PKG_MAINTAINER:=Paul Wassi <p.wassi@gmx.at>
-PKG_LICENSE:=GPL-2.0
+PKG_LICENSE:=GPL-2.0-only
 PKG_LICENSE_FILES:=License
 
 PKG_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
 
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/kernel.mk
@@ -69,6 +70,7 @@ MAKE_FLAGS += \
     LD="$(TARGET_CC) -Wl,-x -shared" \
     LDFLAGS="$(TARGET_LDFLAGS)" \
     INDENT="| true" \
+    GOLANG="no" \
     PAM_CAP="no" \
     RAISE_SETFCAP="no" \
     DYNAMIC="yes" \
index 735a97396b7f9bae92d37bd743e43d0af30fcccb..19d28d15632d19c763b6aed41220a6a30d86cd96 100644 (file)
@@ -1,14 +1,14 @@
 --- a/libcap/_makenames.c
 +++ b/libcap/_makenames.c
-@@ -7,7 +7,6 @@
+@@ -8,7 +8,6 @@
  #include <stdio.h>
  #include <stdlib.h>
+ #include <string.h>
 -#include <sys/capability.h>
  
  /*
   * #include 'sed' generated array
-@@ -22,7 +21,7 @@ struct {
+@@ -23,7 +22,7 @@ struct {
  };
  
  /* this should be more than big enough (factor of three at least) */
index 27865ff617b58efd81cf06151711e86f81d868ed..59b766f600e3c952fb3aa338d594466b2c392a29 100644 (file)
@@ -1,8 +1,8 @@
 --- a/progs/capsh.c
 +++ b/progs/capsh.c
-@@ -24,6 +24,9 @@
+@@ -25,6 +25,9 @@
  #include <sys/wait.h>
- #include <sys/prctl.h>
+ #include <unistd.h>
  
 +#ifndef SHELL
 +#define SHELL "/bin/sh"
@@ -10,7 +10,7 @@
  #define MAX_GROUPS       100   /* max number of supplementary groups for user */
  
  static char *binary(unsigned long value)
-@@ -692,10 +695,10 @@ int main(int argc, char *argv[], char *envp[])
+@@ -756,10 +759,10 @@ int main(int argc, char *argv[], char *envp[])
        } else if (!strcmp("--print", argv[i])) {
            arg_print();
        } else if ((!strcmp("--", argv[i])) || (!strcmp("==", argv[i]))) {
@@ -23,7 +23,7 @@
            exit(1);
        } else {
        usage:
-@@ -720,7 +723,7 @@ int main(int argc, char *argv[], char *envp[])
+@@ -789,7 +792,7 @@ int main(int argc, char *argv[], char *envp[])
                   "  --killit=<n>   send signal(n) to child\n"
                   "  --forkfor=<n>  fork and make child sleep for <n> sec\n"
                   "  ==             re-exec(capsh) with args as for --\n"