From patchwork Thu Oct 4 21:26:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentine Barshak X-Patchwork-Id: 189334 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 59DD52C032F for ; Fri, 5 Oct 2012 07:25:30 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 3D553A053F; Thu, 4 Oct 2012 21:25:29 +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 40180j6PQ9FG; Thu, 4 Oct 2012 21:25:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 77C1DA027B; Thu, 4 Oct 2012 21:25:26 +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 9CDCF8F74B for ; Thu, 4 Oct 2012 21:25:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 419638108E for ; Thu, 4 Oct 2012 21:25:24 +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 jH7+U8FOiy6O for ; Thu, 4 Oct 2012 21:25:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com [209.85.217.171]) by whitealder.osuosl.org (Postfix) with ESMTPS id F36F6899CD for ; Thu, 4 Oct 2012 21:25:22 +0000 (UTC) Received: by mail-lb0-f171.google.com with SMTP id m4so1588695lbo.16 for ; Thu, 04 Oct 2012 14:25:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer; bh=T2aUCQiNV9CUjxlG4/SN6AsdUmZo43gCIZLAxJkQPmk=; b=t6nsvE/WFJXjFBNEB2y2foLBTTB2DJ2Fq5x2CabbvkUbMFNIRvVIrNeG3lIscCVmkD /EG6oPsMLE/+YSLPM30O00dRELlbGB3BXJn2lfwRElosalPVe5f2a/XJF/Xyr8yyJYsg H7p9HKPizqHd3huH3AHVQYZIrgo05ikjjIyd0H4U89y3pn7KOPpj6RBCtSHYiMrJwmJb txlS8IE8QtSLFpqJsiP4RmscsLZuy4kDACisIjeOT1kC0Ww5465kqwq7if/WLvxcrQOk C6p8/4L1VHZjtnPlW/b1RKPaTPggqGbX/Pn7H97srxxrRy91i0sMvvpm0+UduxsbpzdE 0qTA== Received: by 10.152.47.79 with SMTP id b15mr5217712lan.57.1349385920737; Thu, 04 Oct 2012 14:25:20 -0700 (PDT) Received: from black.localnet ([93.100.122.208]) by mx.google.com with ESMTPS id hz16sm2578552lab.6.2012.10.04.14.25.20 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 04 Oct 2012 14:25:20 -0700 (PDT) From: Valentine Barshak To: buildroot@busybox.net Date: Fri, 5 Oct 2012 01:26:04 +0400 Message-Id: <1349385964-710-1-git-send-email-gvaxon@gmail.com> X-Mailer: git-send-email 1.7.11.4 Subject: [Buildroot] [PATCH] webkit: Fix build issue with gcc-4.6 and above 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: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net This fixes the "Unknown parameter for tags/attrs" build error. Backported from commit 88e08c43d0200a4b06a298b7d2541965eebc0afe [PATCH] 2011-04-17 Thierry Reding Reviewed by Adam Barth. Fix build with GCC 4.6. * dom/make_names.pl: Execute preprocessor without the -P option. The preprocessor in GCC 4.6 eats empty lines, effectively breaking the parsing performed by this script. Dropping the -P option when invoking the preprocessor keeps the empty lines but as a side-effect also adds additional linemarkers. From the cpp manpage: -P Inhibit generation of linemarkers in the output from the preprocessor. This might be useful when running the preprocessor on something that is not C code, and will be sent to a program which might be confused by the linemarkers. The linemarkers are not problematic, however, because the script properly handles them by ignoring all lines starting with a #. Signed-off-by: Valentine Barshak Tested-by: Samuel Martin Acked-by: Samuel Martin --- package/webkit/webkit-fix-build-with-gcc-4-6.patch | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 package/webkit/webkit-fix-build-with-gcc-4-6.patch diff --git a/package/webkit/webkit-fix-build-with-gcc-4-6.patch b/package/webkit/webkit-fix-build-with-gcc-4-6.patch new file mode 100644 index 0000000..15f32d9 --- /dev/null +++ b/package/webkit/webkit-fix-build-with-gcc-4-6.patch @@ -0,0 +1,45 @@ +Backported from commit 88e08c43d0200a4b06a298b7d2541965eebc0afe: +Removed the ChangeLog part. + +From: "commit-queue@webkit.org" + +Date: Mon, 18 Apr 2011 06:53:23 +0000 +Subject: [PATCH] 2011-04-17 Thierry Reding + + + Reviewed by Adam Barth. + + Fix build with GCC 4.6. + + * dom/make_names.pl: Execute preprocessor without the -P option. The + preprocessor in GCC 4.6 eats empty lines, effectively breaking the + parsing performed by this script. Dropping the -P option when invoking + the preprocessor keeps the empty lines but as a side-effect also adds + additional linemarkers. + + From the cpp manpage: + + -P Inhibit generation of linemarkers in the output from the + preprocessor. This might be useful when running the preprocessor + on something that is not C code, and will be sent to a program + which might be confused by the linemarkers. + + The linemarkers are not problematic, however, because the script + properly handles them by ignoring all lines starting with a #. + +diff --git a/WebCore/dom/make_names.pl b/Source/WebCore/dom/make_names.pl +index 836137e..50386e0 100755 +--- a/WebCore/dom/make_names.pl ++++ b/WebCore/dom/make_names.pl +@@ -54,7 +54,7 @@ if ($ENV{CC}) { + } else { + $gccLocation = "/usr/bin/gcc"; + } +-my $preprocessor = $gccLocation . " -E -P -x c++"; ++my $preprocessor = $gccLocation . " -E -x c++"; + + GetOptions( + 'tags=s' => \$tagsFile, +-- +1.7.11.4 +