generated from gaoyang3513/SDK_RK3288
[Mod] First commit
This commit is contained in:
20
package/perl-sys-cpu/0001-remove-extraneous-include.patch
Normal file
20
package/perl-sys-cpu/0001-remove-extraneous-include.patch
Normal file
@ -0,0 +1,20 @@
|
||||
Drop <sys/unistd.h> include
|
||||
|
||||
<sys/unistd.h> does not exist in musl or uClibc, so including it
|
||||
causes a build failure. In glibc, it simply redirects to <unistd.h>,
|
||||
so we can safely drop the inclusion of <sys/unistd.h>
|
||||
|
||||
Signed-off-by: Christopher McCrory <chrismcc@gmail.com>
|
||||
|
||||
Index: b/CPU.xs
|
||||
===================================================================
|
||||
--- a/CPU.xs
|
||||
+++ b/CPU.xs
|
||||
@@ -24,7 +24,6 @@
|
||||
#include <winreg.h>
|
||||
#else /* other (try unix) */
|
||||
#include <unistd.h>
|
||||
- #include <sys/unistd.h>
|
||||
#endif
|
||||
#if defined(__sun) || defined(__sun__)
|
||||
#include <sys/processor.h>
|
||||
11
package/perl-sys-cpu/Config.in
Normal file
11
package/perl-sys-cpu/Config.in
Normal file
@ -0,0 +1,11 @@
|
||||
config BR2_PACKAGE_PERL_SYS_CPU
|
||||
bool "perl-sys-cpu"
|
||||
depends on !BR2_STATIC_LIBS
|
||||
help
|
||||
Perl module for getting information about the system CPU
|
||||
(Sys::CPU).
|
||||
|
||||
http://search.cpan.org/dist/Sys-CPU/
|
||||
|
||||
comment "perl-sys-cpu needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
3
package/perl-sys-cpu/perl-sys-cpu.hash
Normal file
3
package/perl-sys-cpu/perl-sys-cpu.hash
Normal file
@ -0,0 +1,3 @@
|
||||
# locally computed
|
||||
sha256 ca0ec47ab24070e3040e5075337cfc69721362d9bef50f6992072efe644d4d26 Sys-CPU-0.52.tar.gz
|
||||
sha256 911a3f8e83dfff143794b34881e13f0759b498c31e067fc7dff0c2e641559e1e README
|
||||
13
package/perl-sys-cpu/perl-sys-cpu.mk
Normal file
13
package/perl-sys-cpu/perl-sys-cpu.mk
Normal file
@ -0,0 +1,13 @@
|
||||
################################################################################
|
||||
#
|
||||
# perl-sys-cpu
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PERL_SYS_CPU_VERSION = 0.52
|
||||
PERL_SYS_CPU_SOURCE = Sys-CPU-$(PERL_SYS_CPU_VERSION).tar.gz
|
||||
PERL_SYS_CPU_SITE = $(BR2_CPAN_MIRROR)/authors/id/M/MK/MKODERER
|
||||
PERL_SYS_CPU_LICENSE = Artistic or GPL-1.0+
|
||||
PERL_SYS_CPU_LICENSE_FILES = README
|
||||
|
||||
$(eval $(perl-package))
|
||||
Reference in New Issue
Block a user