From patchwork Thu Oct 11 20:27:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 982698 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="PM888zhk"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42WMw35mBcz9s7W for ; Fri, 12 Oct 2018 07:27:31 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 48C33226F0; Thu, 11 Oct 2018 20:27:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aqgMFoqbbg0B; Thu, 11 Oct 2018 20:27:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 79EAE22735; Thu, 11 Oct 2018 20:27:28 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id F40BD1C158B for ; Thu, 11 Oct 2018 20:27:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id BC75422735 for ; Thu, 11 Oct 2018 20:27:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5OXoMlvtV5c3 for ; Thu, 11 Oct 2018 20:27:24 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by silver.osuosl.org (Postfix) with ESMTPS id 5B89B226F0 for ; Thu, 11 Oct 2018 20:27:24 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id w5-v6so11106640wrt.2 for ; Thu, 11 Oct 2018 13:27:24 -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=j+Qo7IAuYwc1q+Lsxl0dpDfDzsnvlXvY59K4EGl/aXA=; b=PM888zhkBq+V2k3u7O3UfoChpEC6JEVIh5ynWz9M8M6c8NlhHmTcDNuzIoGr3bpJ8f gZervbA0Odov1vkNkQbcvOwlVNo+e96QTtAHX2MIZZ7AYUUXxDYZCGAU9ghJ9XOw2v7m KfGdXTZvaNcoL5dHxIwrEMeKanDJvyacIHGelNjVhCm9KweJZVA0fisfNzCplo+V5ZcC At6ff/6rTJC0glMP4AxMbd5EEEIbqF/GE2ytV4buGVnlgHkW3TNnFHE6F74h8GCufYu5 +xWXYKUNYoPZwQeBLOKHM8UrSL5UNpulldzoPGGuAbFhKE4ikhplU6448f1L7Lq6AZaL BQ+Q== 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=j+Qo7IAuYwc1q+Lsxl0dpDfDzsnvlXvY59K4EGl/aXA=; b=cST7ZvPnL43bdBARpvLmCxMQP5/gma3ivparphubU7pKRKn4ZqJN1uyorj2oEu20cn GBV0BHoEYxHKm2JIg+/C2It8iKg3F/rQp9DdYvQb81F7HaNaHfNJrFL4UgjlrEYjj5mt Vqw8mHLHqRCqpPynNqi3h1f7Df+OA3ZzFgQiCq8WxfXgFKJSgkKnAtQRYrQ2knP8UaKt 7cfgTFtJ6rWn2/A8ZRKv2DjntDvZA3OtQCudbSP1eyGJkL11f4om1RJPVma6ZwcMygBm mYYpAlfP36TVT1LBstxgye19esRiMsQt83CCXBwjFS4APYqX/AURTRCCUFd7lwoFWz/U HnkA== X-Gm-Message-State: ABuFfog9jQoFb9qtAZgb1do0tNVycbo5G9j3Bvjdp3ob8hUz5nfUbzTC KgzKVf+Z7l5XFOYjRqaVphLL2jZq X-Google-Smtp-Source: ACcGV60P2b2QQdqnASqURfGQLQo9nhTYfIn9Wk4JSxcIofWCUKsOtGDfCP8Op6uNbKblRe4uERw9pQ== X-Received: by 2002:adf:9bcf:: with SMTP id e15-v6mr2733010wrc.240.1539289642459; Thu, 11 Oct 2018 13:27:22 -0700 (PDT) Received: from localhost.localdomain (ARennes-656-1-30-142.w86-214.abo.wanadoo.fr. [86.214.94.142]) by smtp.gmail.com with ESMTPSA id b5-v6sm17165022wrs.62.2018.10.11.13.27.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Oct 2018 13:27:21 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Thu, 11 Oct 2018 22:27:10 +0200 Message-Id: <20181011202710.9575-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [PATCH 1/1] xerces: fix build without pthread X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabrice Fontaine MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" If threads is set to OFF, do not fail when pthreads is not available Fixes: - http://autobuild.buildroot.org/results/63cc4d3d69db19d0c639437d6996f881888a926b Signed-off-by: Fabrice Fontaine --- .../0001-fix-build-without-pthread.patch | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 package/xerces/0001-fix-build-without-pthread.patch diff --git a/package/xerces/0001-fix-build-without-pthread.patch b/package/xerces/0001-fix-build-without-pthread.patch new file mode 100644 index 0000000000..f84049c357 --- /dev/null +++ b/package/xerces/0001-fix-build-without-pthread.patch @@ -0,0 +1,51 @@ +From d6a1e80b4dd36c138f5ee9163ff69a90b743ee49 Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine +Date: Thu, 11 Oct 2018 22:11:54 +0200 +Subject: [PATCH] fix build without pthread + +If threads is set to OFF, do not fail when pthreads is not available + +Signed-off-by: Fabrice Fontaine +[Upstream status: https://issues.apache.org/jira/browse/XERCESC-2155] +--- + cmake/XercesMutexMgrSelection.cmake | 14 +++++++------- + 1 file changed, 7 insertions(+), 7 deletions(-) + +diff --git a/cmake/XercesMutexMgrSelection.cmake b/cmake/XercesMutexMgrSelection.cmake +index 2f1d71c50..7502c3719 100644 +--- a/cmake/XercesMutexMgrSelection.cmake ++++ b/cmake/XercesMutexMgrSelection.cmake +@@ -23,12 +23,13 @@ option(threads "Threading support" ON) + + include(CheckCXXSourceCompiles) + +-find_package(Threads REQUIRED) ++if(threads) ++ find_package(Threads REQUIRED) + +-function(thread_test outvar) +- set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) ++ function(thread_test outvar) ++ set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) + +- check_cxx_source_compiles( ++ check_cxx_source_compiles( + "#include + #include + #include +@@ -57,10 +58,9 @@ int main() { + }" + ${outvar}) + +- set(${outvar} ${${outvar}} PARENT_SCOPE) +-endfunction(thread_test) ++ set(${outvar} ${${outvar}} PARENT_SCOPE) ++ endfunction(thread_test) + +-if(threads) + set(THREADS_PREFER_PTHREAD_FLAG ON) + add_definitions(-D_THREAD_SAFE=1) + find_package(Threads) +-- +2.17.1 +