mirror of
https://git.yoctoproject.org/poky
synced 2026-09-24 22:36:21 +02:00
busybox: Include sys/resource.h for rusage definition
Seen with eglibc 2.16 (From OE-Core rev: 077bd603040ebd16f01b4fa20999fb71a9a43695) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
99
meta/recipes-core/busybox/busybox-1.19.4/sys_resource.patch
Normal file
99
meta/recipes-core/busybox/busybox-1.19.4/sys_resource.patch
Normal file
@@ -0,0 +1,99 @@
|
|||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
|
||||||
|
Upstream-Status: Pending
|
||||||
|
|
||||||
|
From c5fe9f7b723f949457263ef8e22ab807d5b549ce Mon Sep 17 00:00:00 2001
|
||||||
|
From: Mike Frysinger <vapier@gentoo.org>
|
||||||
|
Date: Fri, 06 Jul 2012 03:19:09 +0000
|
||||||
|
Subject: include sys/resource.h where needed
|
||||||
|
|
||||||
|
We use functions from sys/resource.h in misc applets, but don't include
|
||||||
|
the header. This breaks building with newer glibc versions, so add the
|
||||||
|
include where needed.
|
||||||
|
|
||||||
|
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
||||||
|
---
|
||||||
|
Index: busybox-1.19.4/loginutils/passwd.c
|
||||||
|
===================================================================
|
||||||
|
--- busybox-1.19.4.orig/loginutils/passwd.c 2012-02-04 11:34:24.000000000 -0800
|
||||||
|
+++ busybox-1.19.4/loginutils/passwd.c 2012-07-06 17:48:27.388096092 -0700
|
||||||
|
@@ -15,6 +15,7 @@
|
||||||
|
|
||||||
|
#include "libbb.h"
|
||||||
|
#include <syslog.h>
|
||||||
|
+#include <sys/resource.h> /* setrlimit */
|
||||||
|
|
||||||
|
static void nuke_str(char *str)
|
||||||
|
{
|
||||||
|
Index: busybox-1.19.4/miscutils/time.c
|
||||||
|
===================================================================
|
||||||
|
--- busybox-1.19.4.orig/miscutils/time.c 2012-02-04 11:24:55.000000000 -0800
|
||||||
|
+++ busybox-1.19.4/miscutils/time.c 2012-07-06 17:48:27.388096092 -0700
|
||||||
|
@@ -16,6 +16,7 @@
|
||||||
|
//usage: "\n -v Verbose"
|
||||||
|
|
||||||
|
#include "libbb.h"
|
||||||
|
+#include <sys/resource.h> /* getrusage */
|
||||||
|
|
||||||
|
/* Information on the resources used by a child process. */
|
||||||
|
typedef struct {
|
||||||
|
Index: busybox-1.19.4/networking/inetd.c
|
||||||
|
===================================================================
|
||||||
|
--- busybox-1.19.4.orig/networking/inetd.c 2012-02-04 11:34:24.000000000 -0800
|
||||||
|
+++ busybox-1.19.4/networking/inetd.c 2012-07-06 17:48:54.852097259 -0700
|
||||||
|
@@ -165,6 +165,7 @@
|
||||||
|
//usage: "\n (default: 0 - disabled)"
|
||||||
|
|
||||||
|
#include <syslog.h>
|
||||||
|
+#include <sys/resource.h> /* setrlimit */
|
||||||
|
#include <sys/un.h>
|
||||||
|
|
||||||
|
#include "libbb.h"
|
||||||
|
Index: busybox-1.19.4/networking/ntpd.c
|
||||||
|
===================================================================
|
||||||
|
--- busybox-1.19.4.orig/networking/ntpd.c 2012-02-04 11:24:55.000000000 -0800
|
||||||
|
+++ busybox-1.19.4/networking/ntpd.c 2012-07-06 17:48:27.392096048 -0700
|
||||||
|
@@ -46,6 +46,7 @@
|
||||||
|
#include "libbb.h"
|
||||||
|
#include <math.h>
|
||||||
|
#include <netinet/ip.h> /* For IPTOS_LOWDELAY definition */
|
||||||
|
+#include <sys/resource.h> /* setpriority */
|
||||||
|
#include <sys/timex.h>
|
||||||
|
#ifndef IPTOS_LOWDELAY
|
||||||
|
# define IPTOS_LOWDELAY 0x10
|
||||||
|
Index: busybox-1.19.4/networking/ntpd_simple.c
|
||||||
|
===================================================================
|
||||||
|
--- busybox-1.19.4.orig/networking/ntpd_simple.c 2012-02-04 11:24:55.000000000 -0800
|
||||||
|
+++ busybox-1.19.4/networking/ntpd_simple.c 2012-07-06 17:48:27.400095949 -0700
|
||||||
|
@@ -7,6 +7,7 @@
|
||||||
|
*/
|
||||||
|
#include "libbb.h"
|
||||||
|
#include <netinet/ip.h> /* For IPTOS_LOWDELAY definition */
|
||||||
|
+#include <sys/resource.h> /* setpriority */
|
||||||
|
#ifndef IPTOS_LOWDELAY
|
||||||
|
# define IPTOS_LOWDELAY 0x10
|
||||||
|
#endif
|
||||||
|
Index: busybox-1.19.4/runit/chpst.c
|
||||||
|
===================================================================
|
||||||
|
--- busybox-1.19.4.orig/runit/chpst.c 2012-02-04 11:34:24.000000000 -0800
|
||||||
|
+++ busybox-1.19.4/runit/chpst.c 2012-07-06 17:48:27.400095949 -0700
|
||||||
|
@@ -91,6 +91,7 @@
|
||||||
|
//usage: "\n a SIGXCPU after N seconds"
|
||||||
|
|
||||||
|
#include "libbb.h"
|
||||||
|
+#include <sys/resource.h> /* getrlimit */
|
||||||
|
|
||||||
|
/*
|
||||||
|
Five applets here: chpst, envdir, envuidgid, setuidgid, softlimit.
|
||||||
|
Index: busybox-1.19.4/shell/shell_common.c
|
||||||
|
===================================================================
|
||||||
|
--- busybox-1.19.4.orig/shell/shell_common.c 2012-02-04 11:34:24.000000000 -0800
|
||||||
|
+++ busybox-1.19.4/shell/shell_common.c 2012-07-06 17:48:27.400095949 -0700
|
||||||
|
@@ -18,6 +18,7 @@
|
||||||
|
*/
|
||||||
|
#include "libbb.h"
|
||||||
|
#include "shell_common.h"
|
||||||
|
+#include <sys/resource.h> /* getrlimit */
|
||||||
|
|
||||||
|
const char defifsvar[] ALIGN1 = "IFS= \t\n";
|
||||||
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
require busybox.inc
|
require busybox.inc
|
||||||
PR = "r8"
|
PR = "r9"
|
||||||
|
|
||||||
SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
|
SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
|
||||||
file://B921600.patch \
|
file://B921600.patch \
|
||||||
@@ -8,6 +8,7 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
|
|||||||
file://run-parts.in.usr-bin.patch \
|
file://run-parts.in.usr-bin.patch \
|
||||||
file://watch.in.usr-bin.patch \
|
file://watch.in.usr-bin.patch \
|
||||||
file://busybox-udhcpc-no_deconfig.patch \
|
file://busybox-udhcpc-no_deconfig.patch \
|
||||||
|
file://sys_resource.patch \
|
||||||
file://find-touchscreen.sh \
|
file://find-touchscreen.sh \
|
||||||
file://busybox-cron \
|
file://busybox-cron \
|
||||||
file://busybox-httpd \
|
file://busybox-httpd \
|
||||||
|
|||||||
Reference in New Issue
Block a user