mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-28 08:22:56 +02:00
libcap-ng: make this build on musl.
This commit is contained in:
parent
ef1b09b598
commit
6eb1ac471f
2 changed files with 18 additions and 13 deletions
12
srcpkgs/libcap-ng/patches/pid_t-portability.patch
Normal file
12
srcpkgs/libcap-ng/patches/pid_t-portability.patch
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
Make this build with musl, uid_t/pid_t are defined in <sys/types.h>.
|
||||||
|
|
||||||
|
--- utils/proc-llist.h.orig 2014-01-11 11:38:42.960868985 +0100
|
||||||
|
+++ utils/proc-llist.h 2014-01-11 11:39:01.776988967 +0100
|
||||||
|
@@ -24,6 +24,7 @@
|
||||||
|
#ifndef PROC_HEADER
|
||||||
|
#define PROC_HEADER
|
||||||
|
|
||||||
|
+#include <sys/types.h> /* uid_t, pid_t */
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'libcap-ng'
|
# Template file for 'libcap-ng'
|
||||||
pkgname=libcap-ng
|
pkgname=libcap-ng
|
||||||
version=0.7.1
|
version=0.7.1
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="python-devel swig"
|
hostmakedepends="python-devel swig"
|
||||||
short_desc="An alternate POSIX capabilities library"
|
short_desc="An alternate POSIX capabilities library"
|
||||||
|
@ -10,14 +10,6 @@ homepage="http://people.redhat.com/sgrubb/libcap-ng/"
|
||||||
license="GPL-2, LGPL-2.1"
|
license="GPL-2, LGPL-2.1"
|
||||||
distfiles="http://people.redhat.com/sgrubb/$pkgname/$pkgname-$version.tar.gz"
|
distfiles="http://people.redhat.com/sgrubb/$pkgname/$pkgname-$version.tar.gz"
|
||||||
checksum=bf74455c9540667a924d2983090c4eb7285f0a4a82a25becd0a496e8bbf3d8ff
|
checksum=bf74455c9540667a924d2983090c4eb7285f0a4a82a25becd0a496e8bbf3d8ff
|
||||||
long_desc="
|
|
||||||
This library implements the user-space interfaces to the POSIX 1003.1e
|
|
||||||
capabilities available in Linux kernels. These capabilities are a
|
|
||||||
partitioning of the all powerful root privilege into a set of distinct
|
|
||||||
privileges.
|
|
||||||
|
|
||||||
The libcap-ng library is intended to make programming with posix capabilities
|
|
||||||
much easier than the traditional libcap library."
|
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
unset hostmakedepends
|
unset hostmakedepends
|
||||||
|
@ -25,19 +17,20 @@ if [ "$CROSS_BUILD" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
libcap-ng-devel_package() {
|
libcap-ng-devel_package() {
|
||||||
depends="libcap-ng>=${version}"
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" -- development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig
|
||||||
vmove "usr/lib/*.a"
|
vmove "usr/lib/*.a"
|
||||||
|
vmove "usr/lib/*.so"
|
||||||
vmove usr/share/man/man3
|
vmove usr/share/man/man3
|
||||||
vmove usr/share/aclocal
|
vmove usr/share/aclocal
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
libcap-ng-progs_package() {
|
libcap-ng-progs_package() {
|
||||||
short_desc+=" -- utilities"
|
short_desc+=" - utilities"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin
|
vmove usr/bin
|
||||||
vmove usr/share
|
vmove usr/share
|
||||||
|
@ -46,7 +39,7 @@ libcap-ng-progs_package() {
|
||||||
|
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
if [ -z "$CROSS_BUILD" ]; then
|
||||||
libcap-ng-python_package() {
|
libcap-ng-python_package() {
|
||||||
short_desc+=" -- python bindings"
|
short_desc+=" - python bindings"
|
||||||
depends="python"
|
depends="python"
|
||||||
pycompile_module="capng"
|
pycompile_module="capng"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue