From patchwork Thu Aug 23 22:07:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 144976 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp607224ljw; Thu, 23 Aug 2018 15:07:19 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxU299chOTSwFVFt52PdSmkQx8BKVn8TTHAeq/FX7/Auy43vahRCJqIYHkSf5cJFPpJycRF X-Received: by 2002:a65:52cc:: with SMTP id z12-v6mr57571888pgp.69.1535062039397; Thu, 23 Aug 2018 15:07:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535062039; cv=none; d=google.com; s=arc-20160816; b=MGCguOsYhrh2gYPQq4O1HKQKbFwYglAoXGfgcyQO0sxI32jE42PHetfD4VudBQZAgL n7ZIeyd7y46oxmzNFnZRA8+ryj3G8WOAOSDurFLpJLt5MiHHl++Fm2Y7TExyxSCmCwYG Dy7zjKtUQOOPlxyj02NSxFjyt8FBguE4MvT1T8jfNCCMv2cWap5JKXUCBepoYgz98Og+ nX2tPXTEBcSMCA51m7jnUfJNIxyNJg+ulgFcg7igM3dCSc5RojmICag+AQaPBeoS6P2X HiO+KWS6Uy8xKgSPQ6xHhLOnZYSqV+1IXJ5ppA363bnYKljUuVkg0sJJxzTiurokmfqe kWcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=aw+tahQZOldsR8hKIUyzSjT/OjHK/MUZdceioXQQc/E=; b=IEyzrsB6A+aiM64MAy1uuLcQdxc3ThoW6HF73JZw2R0jmuJ//HhgbapplUV8hKs1PB lLm+1gZRngYWv0DSSKDtN7tfe8UKjNRm5fiL+L6i3RI3UmBW7GCvxszksn7sextovhLO TXP+4KDOcKfDnFPDzQ0gLuXV7TBWbMG3m8KRWGQ8mdl3wugrpFiBAhmuwyGpDKx5QKxk ajgpcTgaEiC8EQ7DAAMYD/ntZ6hDCv3XDkAAgz/Wp8BBCXyCk0AEu0iozH1eGU4nNVZD 3V6doHcMJmvAmqjhpUzi3RTMLWNkXW2oUBdtfETWeu61mKRIOttdcv5nJRjXmZrJMMwa 4VIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=AWYff6co; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id a84-v6si5840942pfj.300.2018.08.23.15.07.19; Thu, 23 Aug 2018 15:07:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=AWYff6co; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 58532795B2; Thu, 23 Aug 2018 22:07:17 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.193]) by mail.openembedded.org (Postfix) with ESMTP id 1E07A794AA for ; Thu, 23 Aug 2018 22:07:16 +0000 (UTC) Received: by mail-pg1-f193.google.com with SMTP id z25-v6so3311527pgu.7 for ; Thu, 23 Aug 2018 15:07:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=1diDjb3QJLcQKVgmsu4hcXHSTYkdbSEZpxSrx2+LLIc=; b=AWYff6coeDkX2zrcHH3Pe2bAAlAH9AdCrxCLLQlxkfyVKZSc7oHAJGOBrlKdYcXo9x HlMFJRVlq6dZ+wQC/R77bhTwiPvRXMZiJnAsdsWuCrDAqHfTBXu8h39f9YPznhlJ6bUv zjetQDkRjvtUtvOFAu8vQDQ9EIiPwzBGWVRbUBVDAKqGN4ETBkiXPFbVD9X4uy6lm8LX 5/ngitZuePEcLUECUzWfbjwJ7QcMesqRUoSx6c0JkSLM/VWnNbyGHhv98rR85oJt89DG Cx7GgKzsOzwELwFt3DulSnSfoO+8KMfs1/3iUfGn4niYsOtS6szCYWagGrYDTUmTxvJ7 FRCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=1diDjb3QJLcQKVgmsu4hcXHSTYkdbSEZpxSrx2+LLIc=; b=BNiddYqXgS9Zwmi3yHHkbiNk0F8vcoaIGMO9IGfOVijXFnRZxtRYpYHkV0dp2O7FsP 03UBHgRmbZg9lu0IhYiyiL2HiJxSEc3UKg822JTo6onCIvEKn5z+C38ucKxOAPEryE/N QsTBJ0dGxyGFQdbRkNznRTC0PDl0OgYCZIiK2AEJTppcZ5KRq/iXYxBWejlKdKTTcqyV dwg4//QnIlDvITNkZpniBAgPn02xXESuWaZyOFfWBaxRIaf54askTcPCzTGv6EqKxL2/ aqlipq4N0xl3R2l6Vn+sI7eFf6/dw2HwIel2YuBvMsw3vQAkxvqPPQGJwzdl5d5nwSlO Qd1g== X-Gm-Message-State: AOUpUlFA2L18fYo7FOtbRDxum7o4YP5c9k6psWl1i25RIdqJNxXnQ5Nm BN1LJ9tQRJc6xIe+bScysHSVON3y X-Received: by 2002:a62:d74f:: with SMTP id v15-v6mr32751509pfl.257.1535062036739; Thu, 23 Aug 2018 15:07:16 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::4add]) by smtp.gmail.com with ESMTPSA id j195-v6sm8862346pgc.25.2018.08.23.15.07.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Aug 2018 15:07:16 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Thu, 23 Aug 2018 15:07:06 -0700 Message-Id: <20180823220708.44582-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.18.0 Subject: [oe] [PATCH 1/3] xfsprogs: Fix build on mips X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...001-Check-for-MAP_SYNC-in-sys-mman.h.patch | 52 +++++++++++++++++++ ...include-xfs-linux.h-after-sys-mman.h.patch | 33 ++++++++++++ .../recipes-utils/xfsprogs/xfsprogs_4.17.0.bb | 5 +- 3 files changed, 89 insertions(+), 1 deletion(-) create mode 100644 meta-filesystems/recipes-utils/xfsprogs/files/0001-Check-for-MAP_SYNC-in-sys-mman.h.patch create mode 100644 meta-filesystems/recipes-utils/xfsprogs/files/0002-include-include-xfs-linux.h-after-sys-mman.h.patch -- 2.18.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-filesystems/recipes-utils/xfsprogs/files/0001-Check-for-MAP_SYNC-in-sys-mman.h.patch b/meta-filesystems/recipes-utils/xfsprogs/files/0001-Check-for-MAP_SYNC-in-sys-mman.h.patch new file mode 100644 index 0000000000..75b227ac19 --- /dev/null +++ b/meta-filesystems/recipes-utils/xfsprogs/files/0001-Check-for-MAP_SYNC-in-sys-mman.h.patch @@ -0,0 +1,52 @@ +From f41ef1f06d428c81fcdef73d896dfc7ceda1809c Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 23 Aug 2018 04:59:39 +0000 +Subject: [PATCH] Check for MAP_SYNC in sys/mman.h + +Not all arches have wired MAP_SYNC e.g. mips +which have conflicts with definition, so checking +a generic file is going to mis-configure xfsprogs +for such arches. + +libc now has added the relevant macros to +sys/mman.h, and returns the right values for arches +where its implemented and nothing for others +unlike asm-generic/mman.h which only checks +for kernel headers and ignored arches + +Upstream-Status: Pending + +Signed-off-by: Khem Raj +--- + include/linux.h | 3 +-- + m4/package_libcdev.m4 | 3 +-- + 2 files changed, 2 insertions(+), 4 deletions(-) + +diff --git a/include/linux.h b/include/linux.h +index 1998941..7e5c9ab 100644 +--- a/include/linux.h ++++ b/include/linux.h +@@ -331,8 +331,7 @@ fsmap_advance( + #define MAP_SYNC 0 + #define MAP_SHARED_VALIDATE 0 + #else +-#include +-#include ++#include + #endif /* HAVE_MAP_SYNC */ + + #endif /* __XFS_LINUX_H__ */ +diff --git a/m4/package_libcdev.m4 b/m4/package_libcdev.m4 +index 0a6b514..2b47d2f 100644 +--- a/m4/package_libcdev.m4 ++++ b/m4/package_libcdev.m4 +@@ -335,8 +335,7 @@ AC_DEFUN([AC_HAVE_STATFS_FLAGS], + AC_DEFUN([AC_HAVE_MAP_SYNC], + [ AC_MSG_CHECKING([for MAP_SYNC]) + AC_TRY_COMPILE([ +-#include +-#include ++#include + ], [ + int flags = MAP_SYNC | MAP_SHARED_VALIDATE; + ], have_map_sync=yes diff --git a/meta-filesystems/recipes-utils/xfsprogs/files/0002-include-include-xfs-linux.h-after-sys-mman.h.patch b/meta-filesystems/recipes-utils/xfsprogs/files/0002-include-include-xfs-linux.h-after-sys-mman.h.patch new file mode 100644 index 0000000000..89447fd92e --- /dev/null +++ b/meta-filesystems/recipes-utils/xfsprogs/files/0002-include-include-xfs-linux.h-after-sys-mman.h.patch @@ -0,0 +1,33 @@ +From 18298d7c028cd5fbd2c68fa428dc2384344aeb91 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 23 Aug 2018 05:33:57 +0000 +Subject: [PATCH] include include/xfs/linux.h after + +This helps compiling with musl which goes ahead and undefines MAP_SYNC +for mips and other architectures where its not wired in kernel + +Upstream-Status: Pending + +Signed-off-by: Khem Raj +--- + io/mmap.c | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/io/mmap.c b/io/mmap.c +index 106be49..34fadf4 100644 +--- a/io/mmap.c ++++ b/io/mmap.c +@@ -16,10 +16,11 @@ + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +-#include "command.h" +-#include "input.h" + #include + #include ++ ++#include "command.h" ++#include "input.h" + #include "init.h" + #include "io.h" + diff --git a/meta-filesystems/recipes-utils/xfsprogs/xfsprogs_4.17.0.bb b/meta-filesystems/recipes-utils/xfsprogs/xfsprogs_4.17.0.bb index 06f774d875..ee571ce863 100644 --- a/meta-filesystems/recipes-utils/xfsprogs/xfsprogs_4.17.0.bb +++ b/meta-filesystems/recipes-utils/xfsprogs/xfsprogs_4.17.0.bb @@ -9,6 +9,8 @@ SRC_URI = "https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/${BP}.tar.xz \ file://remove_flags_from_build_flags.patch \ file://0001-build-Check-for-sync_file_range-libc-function.patch \ file://disable-xfs_scrub-build.patch \ + file://0001-Check-for-MAP_SYNC-in-sys-mman.h.patch \ + file://0002-include-include-xfs-linux.h-after-sys-mman.h.patch \ " SRC_URI[md5sum] = "b935b693dfac0264e232c3c4e52d5569" SRC_URI[sha256sum] = "f53f5169cb98cfca471ddea30092738c427ba284c5356e01b45dd1ae3b297e0d" @@ -48,13 +50,14 @@ export tagname="CC" EXTRA_OEMAKE = "DIST_ROOT='${D}'" -do_configure_prepend () { +do_configure () { export BUILD_CC="${BUILD_CC} ${BUILD_CFLAGS}" # Prevent Makefile from calling configure without arguments, # when do_configure gets called for a second time. rm -f ${B}/include/builddefs ${B}/include/platform_defs.h ${B}/configure # Recreate configure script. oe_runmake configure + oe_runconf } do_install_append() { From patchwork Thu Aug 23 22:07:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 144977 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp607287ljw; Thu, 23 Aug 2018 15:07:23 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyP9gY5iL/Qjb9sAnygx+CK7+pW49PoUWVuTNoBYNDFZpgqvEAAfNluG1s6O7dp1MOZDAs+ X-Received: by 2002:a17:902:e3:: with SMTP id a90-v6mr36040528pla.227.1535062043484; Thu, 23 Aug 2018 15:07:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535062043; cv=none; d=google.com; s=arc-20160816; b=yeJ4yFLQo6IHJ3+BpSZbreTWZQlGF2cH/G97sN1ngT7m6Y0FVZiK+erpcbKGmb3th8 3PWyoElpUfn3CuEF6utQGYnIOAjP5mBiICwKf/dVR4PJSCUNHKJOeDRCgFKrdlpu2Qev 0+PFrUT1xTVlPCXHcM1tcPRmsL6Jz2f/CEzDsCkqNGzUuUMxFXwdcfGhQp8JiDFjnwU3 xeuhQ7dMjkOCA89GnFagJ5+83c9nRy3rfc64AXaI03fNA8452WcZShbP0i7ym/md2DbS yFeKRfe61Ez4jnJsFweldaXW/qvkvn+k9ZBU56lDnGj5vsRaJHB5J+sEIN/cqEiNXP73 tAuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=GJBiMhkGmXtpMhvDChCnGDkM7lTpAnmP7/QRTJUsF7w=; b=MJvXO2Vq2kHlph6vlWmgnBsZUy+kxUGoZQZtuxMZfbgeUZbKzWDh9KWLWZJw+WOjRQ CI990DkYjdUju3Bk3QTcnB1G3xBQVz1j1iMqFBkNyf5WyqF1pTD8hREAmAMY+DKuBq1K ZKECom7M16zeC/KVFbhG0Qoy6tmV+QSEL9H2aDrljnSJGCWWnBcoRwxdkirtSecgQaHN +I9epPNuOv0Q/1B0v+HzoiydXs3rmer83jbnKdg1JBxq1MtW0T5w7cV16VU44uW1BaCc o4ZIUYONRlOgibkN4ltSSu6P1hFXq7ZYg5ULQRgIdy4rLcKbCjp0MR31QZT/U7TAw1+l FJzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=ocDVXEKz; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id 90-v6si5175804pla.466.2018.08.23.15.07.23; Thu, 23 Aug 2018 15:07:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=ocDVXEKz; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 02DF0795BB; Thu, 23 Aug 2018 22:07:19 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by mail.openembedded.org (Postfix) with ESMTP id A68ED794AA for ; Thu, 23 Aug 2018 22:07:16 +0000 (UTC) Received: by mail-pf1-f171.google.com with SMTP id x17-v6so3511576pfh.5 for ; Thu, 23 Aug 2018 15:07:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7PpQk3OajuMJFxy9jmKS51BVPLEmCYHq+g+ojJ1VoDU=; b=ocDVXEKzchcpBuoe855hi72I00loYAGipSoBVNqU1ETggoJVLlqtI9aqb7tB/n4nz1 VE1rDB3m63IOmxKiseiM3H8S3u/JeepcGz1Fp657qkxmbTcjXbfsZaf76T6ooMQihH3U 9ZSjiQC2b3ucxqbcsW040Q70mDLQK0TuDe1kgd20AOAKija/Q0Bb4oiWyTwWQt3yKR1B lQBmcAnQiaVKBQuFkXc6B75pSuTUIuRgk6QyHzqU4Q0fGkSd7mfPtpOExbuqReN9RaYi uPjOAxy4HmbwCtyeWa6oVZNKjNuAgMkS3E04GaJE40TejlTYwB0kC7ARulVpZFHsK88X I0pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7PpQk3OajuMJFxy9jmKS51BVPLEmCYHq+g+ojJ1VoDU=; b=QnZD8xu8lJfLF7Zc0KP+98+hGZimStoqEQewoDpivZ8bVMszvcFG9icjncyX+3Pk+a FNDc7/G3eW8Ou/qGtKlukNsL/Peie48+77YFkVUgNeR06hi/FQJ8Ya94Pw3Nw/wwVuf2 s9GXNXhP+uCh1bznFONMPBQMCrQ0bZ0/ZURhTA62wd8dAhqGVGiCBcW1xsBb9pui77eU txC4hoJWbpKNpEh03gPZ9xRlNaNe8eSfjCRnBkB4Adapbc05vWp0el/i6fYrBmmHPsd2 DyhfUkCUuJuUEkf9BpqZrrzc6P5N77fWDlM0hbcIq0Tzt0P0EiVzQG1ahgz8QcBqGB3j 2clA== X-Gm-Message-State: APzg51AZObVbCtg5XNEVTuzfC1WTVTiPWf70+FcOWNo4L3fHjDZpHLsg rjFEm9jr978nrUE1VObPsNEbEseQ X-Received: by 2002:a62:9894:: with SMTP id d20-v6mr11754202pfk.186.1535062037419; Thu, 23 Aug 2018 15:07:17 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::4add]) by smtp.gmail.com with ESMTPSA id j195-v6sm8862346pgc.25.2018.08.23.15.07.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Aug 2018 15:07:17 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Thu, 23 Aug 2018 15:07:07 -0700 Message-Id: <20180823220708.44582-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180823220708.44582-1-raj.khem@gmail.com> References: <20180823220708.44582-1-raj.khem@gmail.com> Subject: [oe] [PATCH 2/3] espeak: Fix cp command to preserve mode X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- meta-oe/recipes-support/espeak/espeak_1.48.04.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.18.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-support/espeak/espeak_1.48.04.bb b/meta-oe/recipes-support/espeak/espeak_1.48.04.bb index 552f40413b..57e30f0710 100644 --- a/meta-oe/recipes-support/espeak/espeak_1.48.04.bb +++ b/meta-oe/recipes-support/espeak/espeak_1.48.04.bb @@ -36,6 +36,5 @@ do_install() { rm -f ${S}/espeak-data/phon* fi - cp -prf ${S}/espeak-data/* ${D}${datadir}/espeak-data - chown -R root:root ${D}${datadir}/espeak-data + cp -R --no-dereference --preserve=mode,links ${S}/espeak-data/* ${D}${datadir}/espeak-data } From patchwork Thu Aug 23 22:07:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 144978 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp607369ljw; Thu, 23 Aug 2018 15:07:29 -0700 (PDT) X-Google-Smtp-Source: AA+uWPx5tpIA8hvD2wHf5Fbkz03CUTvU8uFoDUPQGf7xlJ/DdICjQasaGgFbvzg0klg+jPKB733B X-Received: by 2002:a63:31c2:: with SMTP id x185-v6mr31088052pgx.373.1535062048941; Thu, 23 Aug 2018 15:07:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535062048; cv=none; d=google.com; s=arc-20160816; b=NsgXbWrQC+/yYCTB3oSvxff+E/XmmJWaDeXoOCUVnH+3CBs2NvSd1PxafP7XY6UeqN toNyncQOU3uf7J4dvP5meDcRnmjrzTsNG3v6bUmvtmr+HHQJnbutczdj56E9elKpXrxK MLtaDdQrRiKc4kwDnH7MQEwVr6EdOgn4wvFxE9Bj7P1Zb7gfmfj80ZVu2sRa5zPgdFCO MHKCnu/k3zEg5vl4IfCi3VnjVqdsfnTdlDgXhIYG61bnFLppgGEGgn3j3Nw9okw1asBU LRxwVzNhbVG1t0jyKLoBUUDh3cEbUlQOa3ofvjpk6sarvYx6S9Ge57P3t81lZkS2R+B3 T4Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=JNFGzEkQ8cH42D0oZqqcg/NS/yUh8pd/dBFlBicJfjM=; b=HgOcortHa7uFocAw8CRacI1+uvqzF1CHSDats64EYk8HLAf4owjtAeQRMWMTmoVc7r Y6zQExRY5M+mXVQpB4cJe8QrfF3eJe0jFq7V+IWw28gYxgnJpmWH+mADg7gLEVOrmvha LOGls2+bju9zQ5/w6CkpBe8GVGI70qbOfHlpOShGnZDYnWKJ5tOy4C0dBwZhZ6tk+lap 9BdURA7UJJmP+X4SusjNDPymjuXP7WZAlxN4iEE65E34O10YzssmTP3jxuX31rI3Q7Pr k5XA5SxRm7wtTCA5q+e20K0nyXeEU4FmEFK+pM6gQDBTbEaejMa9UkO0Skbd/vgZD8/T qXeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=PIPzS9qU; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id d20-v6si5148412pls.179.2018.08.23.15.07.28; Thu, 23 Aug 2018 15:07:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=PIPzS9qU; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 26892795BE; Thu, 23 Aug 2018 22:07:21 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by mail.openembedded.org (Postfix) with ESMTP id 99DE1795BC for ; Thu, 23 Aug 2018 22:07:17 +0000 (UTC) Received: by mail-pg1-f194.google.com with SMTP id m4-v6so2790895pgv.12 for ; Thu, 23 Aug 2018 15:07:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tVpTLuPXe5OLfl54D1w+O/Z4Ve0Lgr2vkqysOYLQ5qA=; b=PIPzS9qUEB4j7BinunSfKDOYA9QQ1/yoTeIQJ5jmkAqN+PDqciPmSXyS9vw+LDPNp9 OiXgsOoHD3Sco9g76aL9Ja2e/HMQcASrdXZeSaKTm7nJ3kS3ipTKy6UeHLFWbsJrPStH 2m7ItAl8KctW9VtNsTSqAqFY5bZfgmCsbjgI77T/f6/ANgp1nE9JkpCV1eGkSuhuD9va hR8LwhwA1JJbE2tEiqVo/yAD0XxPRqSgucHSjME/7d50y8dzmQ05Jv1CmsqsPGc0jDgi y1sbygT7WC4ePagpm7TZbIP2/SytPPBXfrx/JwJO7o2lvBKMZcRzpzj9+GmxyK1sNdMr HsrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tVpTLuPXe5OLfl54D1w+O/Z4Ve0Lgr2vkqysOYLQ5qA=; b=ifE7J88+e75WXP9kglDtZzFQuTKKb3ELMsqKJn8b62UD++gRYXgZnb9Jsvb+fLRKgE w1gsJz413kwi2k7yTZdGNHQASAsi+9DGekTopCdPfwEqNmxmofJSb2seieesPUjZ66Ha vl211TJdooOxNbEn9Yk5LG1PQFkARWLqUYEb4PllXEZBuWn/etlSGu2k29yzW8j3CIuI A638MaDtaI9anvQIa1g8eIt5MeJOTAhrHGNjtBEGcYeUc/JkERANhEPYPhvNQfK7dOXM Gkc12MDaAXDe7VCilCED1mShGVhmriNzjulnxtp/uGGyT0CyptJ/ZVXy6OxWbsI5KRrV OUOQ== X-Gm-Message-State: APzg51CSFM45JmQztOF9EoffVmUIfuugXanHAwGBYw9/OHwq1/zXjEa4 cxNoi7xJfL1zKUcr1/HVZr8WydFc X-Received: by 2002:a63:1426:: with SMTP id u38-v6mr7365405pgl.168.1535062038389; Thu, 23 Aug 2018 15:07:18 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::4add]) by smtp.gmail.com with ESMTPSA id j195-v6sm8862346pgc.25.2018.08.23.15.07.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Aug 2018 15:07:17 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Thu, 23 Aug 2018 15:07:08 -0700 Message-Id: <20180823220708.44582-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180823220708.44582-1-raj.khem@gmail.com> References: <20180823220708.44582-1-raj.khem@gmail.com> Subject: [oe] [PATCH 3/3] espeak: Add -fPIC to CFLAGS needed on some arches with security flags on X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Update the narrowing fix patches from Fedora Signed-off-by: Khem Raj --- .../espeak/espeak-data_1.48.04.bb | 2 +- meta-oe/recipes-support/espeak/espeak.inc | 3 +- ...red-library-on-architectures-needing.patch | 31 ++++++++++ .../espeak/files/espeak-1.48-gcc-6-fix.patch | 12 ++++ .../files/gcc-narrowing-warning-fix.patch | 56 ------------------- 5 files changed, 46 insertions(+), 58 deletions(-) create mode 100644 meta-oe/recipes-support/espeak/files/0001-Fix-build-of-shared-library-on-architectures-needing.patch create mode 100644 meta-oe/recipes-support/espeak/files/espeak-1.48-gcc-6-fix.patch delete mode 100644 meta-oe/recipes-support/espeak/files/gcc-narrowing-warning-fix.patch -- 2.18.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-support/espeak/espeak-data_1.48.04.bb b/meta-oe/recipes-support/espeak/espeak-data_1.48.04.bb index 79b2cc1f41..a4e5d14d17 100644 --- a/meta-oe/recipes-support/espeak/espeak-data_1.48.04.bb +++ b/meta-oe/recipes-support/espeak/espeak-data_1.48.04.bb @@ -14,7 +14,7 @@ do_compile() { sed -i '/^ *CC *=/d' Makefile sed -i 's/\(.*BYTE_ORDER\)/#undef BYTE_ORDER\n#define BYTE_ORDER BIG_ENDIAN\n\1/' espeak-phoneme-data.c oe_runmake - ./espeak-phoneme-data "${S}/espeak-data" + ./espeak-phoneme-data "${S}/espeak-data" "." "${S}/espeak-data/phondata-manifest" cp -f phondata phonindex phontab "${S}/espeak-data" } diff --git a/meta-oe/recipes-support/espeak/espeak.inc b/meta-oe/recipes-support/espeak/espeak.inc index 60b3f73c81..f45455c7e1 100644 --- a/meta-oe/recipes-support/espeak/espeak.inc +++ b/meta-oe/recipes-support/espeak/espeak.inc @@ -4,7 +4,8 @@ LICENSE = "GPLv3" LIC_FILES_CHKSUM = "file://License.txt;md5=cb7a20edb4c9f5f478de6523dcd7362c" SRC_URI = "http://downloads.sourceforge.net/espeak/espeak-1.48.04-source.zip \ - file://gcc-narrowing-warning-fix.patch \ + file://0001-Fix-build-of-shared-library-on-architectures-needing.patch \ + file://espeak-1.48-gcc-6-fix.patch \ " SRC_URI[md5sum] = "cadd7482eaafe9239546bdc09fa244c3" SRC_URI[sha256sum] = "bf9a17673adffcc28ff7ea18764f06136547e97bbd9edf2ec612f09b207f0659" diff --git a/meta-oe/recipes-support/espeak/files/0001-Fix-build-of-shared-library-on-architectures-needing.patch b/meta-oe/recipes-support/espeak/files/0001-Fix-build-of-shared-library-on-architectures-needing.patch new file mode 100644 index 0000000000..2590e15841 --- /dev/null +++ b/meta-oe/recipes-support/espeak/files/0001-Fix-build-of-shared-library-on-architectures-needing.patch @@ -0,0 +1,31 @@ +From 08a464e2b6bd31bb2bf4e258ebfa9b9d65805abf Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni +Date: Fri, 27 Nov 2015 15:17:02 +0100 +Subject: [PATCH] Fix build of shared library on architectures needing -fPIC + +Certain architectures, like Sparc and Sparc64 require objects to be +built with -fPIC (and not just -fpic) to be usable in shared +libraries. On other architectures, -fPIC is the same as -fpic so this +patch doesn't affect such architectures. + +Signed-off-by: Thomas Petazzoni +--- + src/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/Makefile b/src/Makefile +index 95fe549..c293611 100755 +--- a/src/Makefile ++++ b/src/Makefile +@@ -110,7 +110,7 @@ $(BIN2_NAME): $(OBJS3) $(LIB_NAME) + + + x_%.o: %.cpp +- $(CXX) $(CXXFLAGS) $(USE_AUDIO) -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -Wall -fpic -fvisibility=hidden -pedantic \ ++ $(CXX) $(CXXFLAGS) $(USE_AUDIO) -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -Wall -fPIC -fvisibility=hidden -pedantic \ + -I. -D LIBRARY -c -fno-exceptions $< -o x_$*.o + + $(LIB_NAME): $(OBJS2) +-- +2.6.3 + diff --git a/meta-oe/recipes-support/espeak/files/espeak-1.48-gcc-6-fix.patch b/meta-oe/recipes-support/espeak/files/espeak-1.48-gcc-6-fix.patch new file mode 100644 index 0000000000..6e59c7892f --- /dev/null +++ b/meta-oe/recipes-support/espeak/files/espeak-1.48-gcc-6-fix.patch @@ -0,0 +1,12 @@ +diff --git a/src/tr_languages.cpp b/src/tr_languages.cpp +--- a/src/tr_languages.cpp ++++ b/src/tr_languages.cpp +@@ -198,7 +198,7 @@ static const unsigned short chars_ignore_zwnj_hyphen[] = { + 0x200d, 1, // zero width joiner + 0, 0 }; + +-const char string_ordinal[] = {0xc2,0xba,0}; // masculine ordinal character, UTF-8 ++const char string_ordinal[] = {'\xc2','\xba',0}; // masculine ordinal character, UTF-8 + + + static Translator* NewTranslator(void) diff --git a/meta-oe/recipes-support/espeak/files/gcc-narrowing-warning-fix.patch b/meta-oe/recipes-support/espeak/files/gcc-narrowing-warning-fix.patch deleted file mode 100644 index 2a9b4607d9..0000000000 --- a/meta-oe/recipes-support/espeak/files/gcc-narrowing-warning-fix.patch +++ /dev/null @@ -1,56 +0,0 @@ -From f09c83640b9173552fd9277c3a48619b903fa436 Mon Sep 17 00:00:00 2001 -From: "Reece H. Dunn" -Date: Wed, 20 Jan 2016 20:48:29 +0000 -Subject: [PATCH] Fix GCC -Wnarrowing warnings. - ---- - src/tr_languages.cpp | 7 ++++--- - src/translate.h | 2 +- - 2 files changed, 5 insertions(+), 4 deletions(-) - -Index: espeak-1.48.04-source/src/tr_languages.cpp -=================================================================== ---- espeak-1.48.04-source.orig/src/tr_languages.cpp -+++ espeak-1.48.04-source/src/tr_languages.cpp -@@ -198,8 +198,8 @@ static const unsigned short chars_ignore - 0x200d, 1, // zero width joiner - 0, 0 }; - --const char string_ordinal[] = {0xc2,0xba,0}; // masculine ordinal character, UTF-8 -- -+const unsigned char string_ordinal[] = {0xc2,0xba,0}; // masculine ordinal character, UTF-8 -+const unsigned char utf8_null[] = { 0 }; // null string, UTF-8 - - static Translator* NewTranslator(void) - {//=================================== -@@ -296,7 +296,7 @@ static const char transpose_map_latin[] - tr->langopts.replace_chars = NULL; - tr->langopts.ascii_language[0] = 0; // Non-Latin alphabet languages, use this language to speak Latin words, default is English - tr->langopts.alt_alphabet_lang = L('e','n'); -- tr->langopts.roman_suffix = ""; -+ tr->langopts.roman_suffix = utf8_null; - - SetLengthMods(tr,201); - // tr->langopts.length_mods = length_mods_en; -@@ -758,7 +758,7 @@ Translator *SelectTranslator(const char - tr->langopts.stress_flags = S_FINAL_SPANISH | S_FINAL_DIM_ONLY | S_FINAL_NO_2; - tr->langopts.numbers = NUM_SINGLE_STRESS | NUM_DECIMAL_COMMA | NUM_AND_UNITS | NUM_OMIT_1_HUNDRED | NUM_OMIT_1_THOUSAND | NUM_ROMAN | NUM_ROMAN_ORDINAL; - tr->langopts.numbers2 = NUM2_ORDINAL_NO_AND; -- tr->langopts.roman_suffix = string_ordinal; -+ tr->langopts.roman_suffix = utf8_null; - } - else - if(name2 == L_pap) -Index: espeak-1.48.04-source/src/translate.h -=================================================================== ---- espeak-1.48.04-source.orig/src/translate.h -+++ espeak-1.48.04-source/src/translate.h -@@ -545,7 +545,7 @@ typedef struct { - int decimal_sep; - int max_digits; // max number of digits which can be spoken as an integer number (rather than individual digits) - const char *ordinal_indicator; // UTF-8 string -- const char *roman_suffix; // add this (ordinal) suffix to Roman numbers (LANG=an) -+ const unsigned char *roman_suffix; // add this (ordinal) suffix to Roman numbers (LANG=an) - - // bit 0, accent name before the letter name, bit 1 "capital" after letter name - int accents;