From patchwork Fri Jul 14 05:40:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 107721 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp453849qge; Thu, 13 Jul 2017 22:41:50 -0700 (PDT) X-Received: by 10.98.55.132 with SMTP id e126mr3230451pfa.241.1500010910528; Thu, 13 Jul 2017 22:41:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500010910; cv=none; d=google.com; s=arc-20160816; b=OK5dfRlNMSAX7yBDoiS1v27zk8lKoQ4Oy6b7/m86//dT8ADlflqFu2zinZTu7bX9bm wxWn/qSlOfxWIr4KtHuWVRY+Nu3bSAT2U4XMq9JvZCR93RAxBPxvwl1Hu4Rh59QN9Qsv bGSa2HZFRte4U1KQGM7JSX0DGjicKmBybnlzRFwcT8J/3gRbZ7tu0EfJKxEFgbDZ90Uz h3X57LZ3GW15iO3WfV7KYDSlw0Itjij0KGneyWsdgmw5my6H3f+PQGVYCRYJ8OC3Rr79 ti3oj0z70iMt3eREZPg20T0nAUbnTh63vJlNlzzs5rpLsuFFIQ1KFgoU1FvfJ0/6UoPm 8oGQ== 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=NV+7/Xnr6bQ1d9vphZP11VSWJq7Myzvq0YaaR8ytgys=; b=lAoD/YxP/vLmIt/5FYSVpZ8NuDFx1SQehSTVheZVoEVZJ/nPj2Jaqqspy5LqdTaXEg a26HsSeTqIa51T8jb/mBeby/BmTOQzHLGNp8R/vssbXMgt5Ywy5hDtqBqYa++lu4wd5j mP/HWozREiHg0jvbUTrY0+MS9uWzEQCczXTkpsNoteSjGyqNvIf2mQOUYqSP3XtqK6cD 296ye5MQOC9IMAT4qbxAJLLOtiWSl7kg6XJWaLW/6R0HkIKNr9NxmDTajsc4nfW1IGNF +d4jd9cETWzpfkHlHAydyswQMLmACZ/yDgK9LdxcKGPCmqVHf4IVOEiSMC1vXxvi9uVr qhag== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.b=PMTZ33IO; 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=NONE 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 w31si287777pla.322.2017.07.13.22.41.50; Thu, 13 Jul 2017 22:41:50 -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.b=PMTZ33IO; 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=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 627FB78212; Fri, 14 Jul 2017 05:41:26 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by mail.openembedded.org (Postfix) with ESMTP id 64140780C3 for ; Fri, 14 Jul 2017 05:40:30 +0000 (UTC) Received: by mail-pf0-f195.google.com with SMTP id z6so9725570pfk.3 for ; Thu, 13 Jul 2017 22:40:32 -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=eHCL0ljA/zRlV/5iV5Ph9U2ZQ6mSM/M3d0M0fs4O78I=; b=PMTZ33IOSPsMKgJDFUCOGli02nLFiiu5GsUy4/ATAytcDfeoMK9/BXIphli0pXiYLH sEc3snOEfGt7SoxQRhQ3l41j8Sy7yo/7rjWHMYm3u1XtgzFuNhVSDMEA4vntlybD9eYI 8SQv+GpbHFnB9rXPeww4AI7SzFuopXYFscKLtXkaew96JbExd3lvSsglrSJPCQv3RQ9z wp7V6xztrP2uh4oB+CYJwEPLbpn22yNBYMAAfIMKXuZT+uK1JnyqbM0Nvuy6ZxaYOF3Z 1b3SDBwygrHFZEfdl7BNyfKeaTvUnsAL7EDzc6NkESh/qyOq6n/o+o8IEiYRVSEfDjCS vOgw== 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=eHCL0ljA/zRlV/5iV5Ph9U2ZQ6mSM/M3d0M0fs4O78I=; b=jto1XsPjlQriL+0rvTra4aFEpU/NT01S28n6oeg66Funk3IM1x25bQUknIm+Nn3vqF N2aChHh4Hjak7jIUDxkxaxbrklXvwES9FGiXt7+hQ8GFLS415uwVhtlG5UVfZ0+MHVq3 GCkU42K5Cl2OUUgZCulIvsd+5RsEa0uHDZnG+1L2czdTdxsvpNB0pgf7BpKhewuadUV0 OVXpBr1V8+2RxWCA1tDsOd6jBq6YqrH/SGDueeHHUYGWNhDPPTLo5QCmFDugvYe3SP2w jIjLckN3+uwtg0S+hXZUTrTEIsudGyVtVLXtdiLZXQmbzCMeieNn3aJ460vxcoYbeypa ohQA== X-Gm-Message-State: AIVw112ZeuyIm2xdQSp8aVPkMWRHoH6yDIRpKS+CAMPdkJvRayxOQUfn unDL4r9WxHp3extu X-Received: by 10.84.218.136 with SMTP id r8mr14541163pli.205.1500010831693; Thu, 13 Jul 2017 22:40:31 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::7028]) by smtp.gmail.com with ESMTPSA id z86sm17519420pfl.40.2017.07.13.22.40.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Jul 2017 22:40:30 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Thu, 13 Jul 2017 22:40:00 -0700 Message-Id: <20170714054013.34458-5-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170714054013.34458-1-raj.khem@gmail.com> References: <20170714054013.34458-1-raj.khem@gmail.com> Subject: [oe] [meta-multimedia][PATCH 05/18] cdparanoia: Fix build with musl 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 --- .../cdparanoia/cdparanoia_10.2.bb | 1 + ...-utils-Use-c99-compiler-independent-types.patch | 49 ++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 meta-multimedia/recipes-multimedia/cdparanoia/files/0001-utils-Use-c99-compiler-independent-types.patch -- 2.13.2 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-multimedia/recipes-multimedia/cdparanoia/cdparanoia_10.2.bb b/meta-multimedia/recipes-multimedia/cdparanoia/cdparanoia_10.2.bb index 30d71ff2c..27fa0e585 100644 --- a/meta-multimedia/recipes-multimedia/cdparanoia/cdparanoia_10.2.bb +++ b/meta-multimedia/recipes-multimedia/cdparanoia/cdparanoia_10.2.bb @@ -15,6 +15,7 @@ SRC_URI = "http://downloads.xiph.org/releases/cdparanoia/cdparanoia-III-${PV}.sr file://out-of-tree-build.patch \ file://0001-check-for-null-buffer-before-trying-a-byteswap.patch \ file://0002-Fix-printf-format-errors.patch \ + file://0001-utils-Use-c99-compiler-independent-types.patch \ " SRC_URI[md5sum] = "b304bbe8ab63373924a744eac9ebc652" SRC_URI[sha256sum] = "005db45ef4ee017f5c32ec124f913a0546e77014266c6a1c50df902a55fe64df" diff --git a/meta-multimedia/recipes-multimedia/cdparanoia/files/0001-utils-Use-c99-compiler-independent-types.patch b/meta-multimedia/recipes-multimedia/cdparanoia/files/0001-utils-Use-c99-compiler-independent-types.patch new file mode 100644 index 000000000..7699017f7 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/cdparanoia/files/0001-utils-Use-c99-compiler-independent-types.patch @@ -0,0 +1,49 @@ +From 89071cbc8d3ab9a15503f397580b7590338e5e91 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Wed, 12 Jul 2017 17:23:45 -0700 +Subject: [PATCH] utils: Use c99 compiler independent types + +Make it portable across different platforms + +Signed-off-by: Khem Raj +--- + utils.h | 13 +++++++------ + 1 file changed, 7 insertions(+), 6 deletions(-) + +diff --git a/utils.h b/utils.h +index 10dce58..73bba92 100644 +--- a/utils.h ++++ b/utils.h +@@ -3,6 +3,7 @@ + #include + #include + #include ++#include + + extern long buffering_write(int outf, char *buffer, long num); + extern int buffering_close(int fd); +@@ -18,15 +19,15 @@ static inline int bigendianp(void){ + } + + static inline int32_t swap32(int32_t x){ +- return((((u_int32_t)x & 0x000000ffU) << 24) | +- (((u_int32_t)x & 0x0000ff00U) << 8) | +- (((u_int32_t)x & 0x00ff0000U) >> 8) | +- (((u_int32_t)x & 0xff000000U) >> 24)); ++ return((((uint32_t)x & 0x000000ffU) << 24) | ++ (((uint32_t)x & 0x0000ff00U) << 8) | ++ (((uint32_t)x & 0x00ff0000U) >> 8) | ++ (((uint32_t)x & 0xff000000U) >> 24)); + } + + static inline int16_t swap16(int16_t x){ +- return((((u_int16_t)x & 0x00ffU) << 8) | +- (((u_int16_t)x & 0xff00U) >> 8)); ++ return((((uint16_t)x & 0x00ffU) << 8) | ++ (((uint16_t)x & 0xff00U) >> 8)); + } + + #if BYTE_ORDER == LITTLE_ENDIAN +-- +2.13.2 +