mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
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>
|
||||
9
package/perl-sys-cpu/Config.in
Normal file
9
package/perl-sys-cpu/Config.in
Normal file
@@ -0,0 +1,9 @@
|
||||
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).
|
||||
|
||||
comment "perl-sys-cpu needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
2
package/perl-sys-cpu/perl-sys-cpu.hash
Normal file
2
package/perl-sys-cpu/perl-sys-cpu.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# locally computed
|
||||
sha256 ca0ec47ab24070e3040e5075337cfc69721362d9bef50f6992072efe644d4d26 Sys-CPU-0.52.tar.gz
|
||||
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