From patchwork Sun Jan 13 21:47:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Seiderer X-Patchwork-Id: 1024163 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.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gmx.net Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43d9F56nVRz9s9h for ; Mon, 14 Jan 2019 08:47:37 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5901C854D8; Sun, 13 Jan 2019 21:47:35 +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 su4+DLHuUOS8; Sun, 13 Jan 2019 21:47:31 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 0EF4C85551; Sun, 13 Jan 2019 21:47:31 +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 14FD51BF5DA for ; Sun, 13 Jan 2019 21:47:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 12AF522193 for ; Sun, 13 Jan 2019 21:47:30 +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 lBb7uZLEKnaW for ; Sun, 13 Jan 2019 21:47:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by silver.osuosl.org (Postfix) with ESMTPS id 9CBB22077C for ; Sun, 13 Jan 2019 21:47:26 +0000 (UTC) Received: from localhost.localdomain ([188.110.60.75]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MhMg2-1gvVAP2958-00MaFE for ; Sun, 13 Jan 2019 22:47:23 +0100 From: Peter Seiderer To: buildroot@buildroot.org Date: Sun, 13 Jan 2019 22:47:22 +0100 Message-Id: <20190113214722.15104-1-ps.report@gmx.net> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:Dc9gNNN+7P9SFLjPGxR+GF9dP+Y1AMQAbsrfTdLZH1N0Z9fS569 EwxRSIlAjkHUswCChJFZsOBzNAFWo41j3XgO5iYNLSnfAMt2EOKBy2B8EE0LWwwT3ZCXlSl BuS7HgZCNKR7vLb1sP1ajixcrNAZYUobE97GIFDPJc9UM3HY9XapgarnX3CWqf/qnxraJqm fXi91H2MGDpBiC7JySfCw== X-UI-Out-Filterresults: notjunk:1; V03:K0:BOliBEaeZiQ=:FCKNbwsVCKmyyMeYq3sn5G Z2OhsyJZjxljGlKMxGM+htApRgVg8R3lswAergcE8B0yWZBINzqftQznTEJuNF9FLC+zcWRPa KUIWUhQK4kdxhdvenem/s3+2Re/QC099RmXx1C94+B2Xr6s//2/JZffX6vH8JlnFo07BsS/rF OunpjJ/dnC/FW3mHtaYjDoHJ3oTHidGEVY+rfha5zwajWb99Zg3QQw6bsIgX3GihdUsr9Mo5f dgPowVL4+vJbojJzLJPZ88LudBqfHN/FQLBC0gMIGMv3pwKYXQ85nn8JI4xscSpGqVdMbwxe/ vBd8seuchJj/pZWBHK9NV6XlE+HLh73H/KzTA+jSnE72aqdGUbifmDnan8aJJy08r2WrW+762 AX7Eav2EA8MW0YOqO1PhdJiWPvd/HoTdRjkOBgIFfT9MRPgo1Ngfs6BLj8fuTN25DjoHHh4kh kRZQQjagaGY40MxdhfoYWooMU6KwWw3+3iQ/rLuqfTu5dBVQm8pVESHAVnj9kBW60GamAJK2y cb4SbRWh/yK6hDRXMI+1NFfPEKNiOQD5J3AeJZOZRQfUyA7mcrRd7ns56eZK6K9/ALD15BdFP 1paZBMe3/5fnr4nwp2u5g2kJnEnQr9IxSgSTKDYNs31q766yiFDC5iHfwYGt97rVpTZ2g7gtQ grSJ/YG471WGVSMWjiBYV7jh8V9vEu7+8KwzlFL+ZvVAB5hfl6jzLJEHRG9fg0/AtjiOPiqHe u59JeAQj+b1En8g/lleD7ovVPoQ8e5v06vBuuXX+PlSswliUSb7yzOEREzJM3D/7b0xrPfOkF rxNbCxB6CUBl7Rq6EDuiGQVeqcj7eIVk6MaZBLaqOW4oe4//PW329sk4OkDp9ADO6TrhrWMC1 dP2xb6MuiG9e/C4zsh7wUU5LmHIfbBPvGtZ8XetTE= Subject: [Buildroot] [PATCH v1] libcdaudio: fix compile on host systems without C++ support 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: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Delivered libcdaudio configure tries to run a C++ check with the host C preprocessor. Fix it by enabling autoreconf (needs a patch for configure.ac/Makefile.am removing ancient lines). Fixes [1]: checking how to run the C++ preprocessor... /lib/cpp configure: error: C++ preprocessor "/lib/cpp" fails sanity check Signed-off-by: Peter Seiderer Acked-by: Yann E. MORIN --- .../0001-libcdaudio-enable-autoreconf.patch | 43 +++++++++++++++++++ package/libcdaudio/libcdaudio.mk | 3 ++ 2 files changed, 46 insertions(+) create mode 100644 package/libcdaudio/0001-libcdaudio-enable-autoreconf.patch diff --git a/package/libcdaudio/0001-libcdaudio-enable-autoreconf.patch b/package/libcdaudio/0001-libcdaudio-enable-autoreconf.patch new file mode 100644 index 0000000000..ab2296c042 --- /dev/null +++ b/package/libcdaudio/0001-libcdaudio-enable-autoreconf.patch @@ -0,0 +1,43 @@ +From 9c2873b1d9292bcf43c862b6777d41c40521424c Mon Sep 17 00:00:00 2001 +From: Peter Seiderer +Date: Sun, 13 Jan 2019 22:27:42 +0100 +Subject: [PATCH] libcdaudio: enable autoreconf + +Fixes the following two autoreconf errors (by simple removing of the +two offending lines): + + configure.ac:20: error: automatic de-ANSI-fication support has been removed + + Makefile.am:2: error: automatic de-ANSI-fication support has been removed + +Signed-off-by: Peter Seiderer +--- + Makefile.am | 1 - + configure.ac | 1 - + 2 files changed, 2 deletions(-) + +diff --git a/Makefile.am b/Makefile.am +index f639dd8..a32cfe6 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -1,5 +1,4 @@ + ## Process this file with automake to produce Makefile.in +-AUTOMAKE_OPTIONS = ansi2knr + SUBDIRS = src + + bin_SCRIPTS = libcdaudio-config +diff --git a/configure.ac b/configure.ac +index bbdd42d..6699ceb 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -17,7 +17,6 @@ AM_CONFIG_HEADER(config.h) + AC_PROG_AWK + AC_PROG_CC + AC_PROG_CPP +-AM_C_PROTOTYPES + AM_PROG_CC_STDC + AC_PROG_INSTALL + AC_PROG_LN_S +-- +2.20.1 + diff --git a/package/libcdaudio/libcdaudio.mk b/package/libcdaudio/libcdaudio.mk index 5d421eba7a..e2c1496287 100644 --- a/package/libcdaudio/libcdaudio.mk +++ b/package/libcdaudio/libcdaudio.mk @@ -11,4 +11,7 @@ LIBCDAUDIO_CONFIG_SCRIPTS = libcdaudio-config LIBCDAUDIO_LICENSE = GPL-2.0+ LIBCDAUDIO_LICENSE_FILES = COPYING +# fix configure failure on host systems without C++ support +LIBCDAUDIO_AUTORECONF = YES + $(eval $(autotools-package))