From patchwork Sat Feb 3 20:14:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 868940 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zYlT84xyKz9sRV for ; Sun, 4 Feb 2018 07:15:08 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A9664876D5; Sat, 3 Feb 2018 20:15:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kJs7BuckBj1c; Sat, 3 Feb 2018 20:15:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 101E8876F1; Sat, 3 Feb 2018 20:15:06 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 1F7161C01EF for ; Sat, 3 Feb 2018 20:15:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 19AA8876F1 for ; Sat, 3 Feb 2018 20:15:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O0QVmf4DD2jy for ; Sat, 3 Feb 2018 20:15:03 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout02.t-online.de (mailout02.t-online.de [194.25.134.17]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 7BA2E876D5 for ; Sat, 3 Feb 2018 20:15:03 +0000 (UTC) Received: from fwd23.aul.t-online.de (fwd23.aul.t-online.de [172.20.26.128]) by mailout02.t-online.de (Postfix) with SMTP id E326E41ADE0B for ; Sat, 3 Feb 2018 21:15:00 +0100 (CET) Received: from fli4l.lan.fli4l (ECbUtrZTQh8iaFDB6GlE5svO1j1e3fhDCe8OvrXsqzVIIfViZV62-KhdjTHAqpAQk6@[84.161.183.123]) by fwd23.t-online.de with (TLSv1:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1ei4DD-0z53YG0; Sat, 3 Feb 2018 21:14:59 +0100 Received: from mahler.lan.fli4l ([192.168.1.1]:39766 helo=kuhls.lan.fli4l) by fli4l.lan.fli4l with esmtp (Exim 4.90) (envelope-from ) id 1ei4DC-00069I-Bj for buildroot@buildroot.org; Sat, 03 Feb 2018 21:14:58 +0100 From: Bernd Kuhls To: buildroot@buildroot.org Date: Sat, 3 Feb 2018 21:14:58 +0100 Message-Id: <20180203201458.29713-1-bernd.kuhls@t-online.de> X-Mailer: git-send-email 2.11.0 X-ID: ECbUtrZTQh8iaFDB6GlE5svO1j1e3fhDCe8OvrXsqzVIIfViZV62-KhdjTHAqpAQk6 X-TOI-MSGID: 7c9cf8db-0bc3-4440-ac70-ca8ddf44dc8a Subject: [Buildroot] [PATCH 1/1] package/fakedate: fix libcec build error X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 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" This defconfig breaks building libcec: BR2_x86_64=y BR2_REPRODUCIBLE=y BR2_TOOLCHAIN_BUILDROOT_WCHAR=y BR2_TOOLCHAIN_BUILDROOT_CXX=y BR2_PACKAGE_LIBCEC=y with this error message: In file included from /home/bernd/buildroot/output/build/libcec-4.0.2/src/libcec/CECClient.cpp:34:0: /home/bernd/buildroot/output/build/libcec-4.0.2/src/libcec/env.h:92:19: warning: missing terminating " character #define LIB_INFO ("git revision: 2017.11+950-973b1fd, compiled on date: Warning: using $SOURCE_DATE_EPOCH instead of true time The warning emitted by fakedate adds a line break to the output of the date command. This output is stored by libcec configure into env.h to be compiled into the resulting binary: https://github.com/Pulse-Eight/libcec/blob/master/src/libcec/cmake/SetBuildInfo.cmake#L29 src/libcec/env.h contains these two lines: #define LIB_INFO ("git revision: 2017.11+950-973b1fd~dirty, compiled on date: Warning: using $SOURCE_DATE_EPOCH instead of true time Wed Jan 31 19:32:08 UTC 2018 by user@machine on Linux 4.14.16-amd64 (x86_64), features: P8_USB, DRM") Removing the warning from fakedate fixes the build error. Signed-off-by: Bernd Kuhls --- package/fakedate/fakedate | 1 - 1 file changed, 1 deletion(-) diff --git a/package/fakedate/fakedate b/package/fakedate/fakedate index a64d9b9cdf..e83f1be279 100755 --- a/package/fakedate/fakedate +++ b/package/fakedate/fakedate @@ -43,7 +43,6 @@ if [ -n "$SOURCE_DATE_EPOCH" ]; then fi done if [ $FORCE_EPOCH -eq 1 ]; then - echo "date: Warning: using \$SOURCE_DATE_EPOCH instead of true time" >&2 ARGS="-d @$SOURCE_DATE_EPOCH" fi fi