From patchwork Sun Jul 22 13:28:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Samuel Martin X-Patchwork-Id: 172513 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id A083B2C0143 for ; Sun, 22 Jul 2012 23:32:46 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id ACDD3A065C; Sun, 22 Jul 2012 13:32:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4TgtV4rc0plt; Sun, 22 Jul 2012 13:32:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 60D53A065B; Sun, 22 Jul 2012 13:32:29 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 895FE8F753 for ; Sun, 22 Jul 2012 13:30:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id BED668F4D1 for ; Sun, 22 Jul 2012 13:30:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eosUS6je3pZs for ; Sun, 22 Jul 2012 13:30:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f53.google.com (mail-wg0-f53.google.com [74.125.82.53]) by whitealder.osuosl.org (Postfix) with ESMTPS id 4B6B28E856 for ; Sun, 22 Jul 2012 13:30:26 +0000 (UTC) Received: by mail-wg0-f53.google.com with SMTP id fm10so4169266wgb.10 for ; Sun, 22 Jul 2012 06:30:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=jf+BjuVOQgXzyV4lKM1+DHF0IbgjP+hXq7xlJpIL4gw=; b=s5jtShvIVtSfjqNux6fZ2zw8UHGShHlPyGgjkhyj530JH1UGbtl8pObdXSfYX67EtA MK42wYrPpVw7jsvbGSwFpqRKmksuOsIkc7PjpdXVuyKzdVHcVnupAS9gwu23jIraGWMJ gNB0WZYyqh15pDv9zFgUUhCjn74ZThD9xmfoa3H5/N9lIq5iSHt6/L0JATho15WjFyXp vqfroonRbujGZi/EsY2YMmYYdwC4qvm2iCYUDAmYEpuYtkQBhNqZArWHnCGMK1IyZcnS NlgC5gmAgG6qbqeUnk3CFZ6mfeTbh2JvvXrdThzHEUugfruQP+SQ9NxHpVIChAzkdoA+ 8uVQ== Received: by 10.216.3.85 with SMTP id 63mr3054912weg.134.1342963825900; Sun, 22 Jul 2012 06:30:25 -0700 (PDT) Received: from localhost.localdomain (ivr94-4-82-229-165-48.fbx.proxad.net. [82.229.165.48]) by mx.google.com with ESMTPS id fb20sm16263469wid.1.2012.07.22.06.30.24 (version=SSLv3 cipher=OTHER); Sun, 22 Jul 2012 06:30:24 -0700 (PDT) From: Samuel Martin To: buildroot@busybox.net Date: Sun, 22 Jul 2012 15:28:39 +0200 Message-Id: <1342963719-1810-12-git-send-email-s.martin49@gmail.com> X-Mailer: git-send-email 1.7.11.2 In-Reply-To: <1342963719-1810-1-git-send-email-s.martin49@gmail.com> References: <1342963719-1810-1-git-send-email-s.martin49@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] =?utf-8?q?=5BPATCH_11/11=5D_libecore=3A_fix_build_wit?= =?utf-8?q?h_glibc_=3E=3D2=2E16?= X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Samuel Martin create mode 100644 package/efl/libecore/libecore-ecore_exec-c-fix-build-with-glibc-2-16.patch diff --git a/package/efl/libecore/libecore-ecore_exec-c-fix-build-with-glibc-2-16.patch b/package/efl/libecore/libecore-ecore_exec-c-fix-build-with-glibc-2-16.patch new file mode 100644 index 0000000..9d53dfd --- /dev/null +++ b/package/efl/libecore/libecore-ecore_exec-c-fix-build-with-glibc-2-16.patch @@ -0,0 +1,62 @@ +This patch fix build with glibc-2.16, avoiding the following error occurs: + +Making all in ecore +make[6]: Entering directory `/opt/buildroot/output/build/host-libecore-1.1.0/src/lib/ecore' + CC ecore.lo + CC ecore_anim.lo + CC ecore_app.lo + CC ecore_events.lo + CC ecore_getopt.lo + CC ecore_idle_enterer.lo + CC ecore_idle_exiter.lo + CC ecore_idler.lo + CC ecore_job.lo + CC ecore_main.lo + CC ecore_pipe.lo + CC ecore_poll.lo + CC ecore_time.lo + CC ecore_timer.lo + CC ecore_thread.lo + CC ecore_glib.lo + CC ecore_throttle.lo + CC ecore_signal.lo + CC ecore_exe.lo +ecore_exe.c: In function ‘ecore_exe_pipe_run’: +ecore_exe.c:486:15: warning: implicit declaration of function ‘setpriority’ [-Wimplicit-function-declaration] +ecore_exe.c:486:27: error ‘PRIO_PROCESS’ undeclared (first use in this function) +ecore_exe.c:486:27: note: each undeclared identifier is reported only once for each function it appears in +make[6]: *** [ecore_exe.lo] Error 1 + + +Signed-off-by: Samuel Martin + +--- +diff -purN host-libecore-1.1.0.orig/src/lib/ecore/ecore_exe.c host-libecore-1.1.0/src/lib/ecore/ecore_exe.c +--- host-libecore-1.1.0.orig/src/lib/ecore/ecore_exe.c 2011-10-21 07:37:11.000000000 +0200 ++++ host-libecore-1.1.0/src/lib/ecore/ecore_exe.c 2012-07-22 10:46:00.362956073 +0200 +@@ -2,11 +2,6 @@ + # include + #endif + +-#if defined (__FreeBSD__) || defined (__OpenBSD__) || defined (__NetBSD__) +-# include +-# include +-#endif +- + #include + #include + #include +@@ -15,6 +10,13 @@ + #include + #include + ++#if defined (__FreeBSD__) || defined (__OpenBSD__) || defined (__NetBSD__) || ( defined(__linux__) && defined(__GLIBC__) && !defined(__UCLIBC__) && __GLIBC_PREREQ(2, 16) ) ++# if !defined(__linux__) ++# include ++# endif ++# include ++#endif ++ + #ifdef HAVE_SYS_PRCTL_H + # include + #endif