From patchwork Fri Nov 20 18:04:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1403934 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.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.a=rsa-sha256 header.s=20161025 header.b=hXWK4pOh; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Cd4GK36Mrz9sSs for ; Sat, 21 Nov 2020 05:05:29 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id D94738701E; Fri, 20 Nov 2020 18:05:27 +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 gI6gTPsyXk_u; Fri, 20 Nov 2020 18:05:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7D0AC86FEE; Fri, 20 Nov 2020 18:05:26 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 1805B1BF327 for ; Fri, 20 Nov 2020 18:05:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 1199A87644 for ; Fri, 20 Nov 2020 18:05:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zzFgdXHrRj6Q for ; Fri, 20 Nov 2020 18:05:24 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by hemlock.osuosl.org (Postfix) with ESMTPS id DEF5287650 for ; Fri, 20 Nov 2020 18:05:14 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id j7so10961120wrp.3 for ; Fri, 20 Nov 2020 10:05:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kSZufYSYfATk6FEnodxK78ndkO7+1l2mh7d6tk3ibPk=; b=hXWK4pOh1AydXi25e/uNodqyu5FckyrLVVCCZs2qnBSsn5oHYf0ZvLYRZ0ymBg8XpR HyKTlb3H1qH7HzZR33mBIWCs7zWBE137QHiFPmnd8RWXSKeiZ1zqT3zQePrgIn5FxbSw yWtwgSIey8WUTuWU3RmU8iwfsVH5qkz7e9DVa1kd/DJslYAj4qcZZI38Zoj8yeUhar76 jsmxlnOxrDVBt/ue2VQW8VejvCotVh8Id/qMypzNdGC29bHfCvwD+r5cg2N1O4FfPJx1 LEdaIsqZZWve7kpxzhTduTRxcQMdgDnqTxkHqSBo33/GkaI1UqWt/5MSb+fXrEbW0pV8 jTDw== 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:mime-version :content-transfer-encoding; bh=kSZufYSYfATk6FEnodxK78ndkO7+1l2mh7d6tk3ibPk=; b=Uim9RGL4WWk13uVsZzU3K+W9ggP/8KU1CyZqDmA56UTanDay/DzqKbotK/J6PdK0c0 LEC/vGEHDPTOsf7rJc22mpRcabvjnXp4DHISS73DUXyws9v9UcJUtRyGuD7Ch9ZWa5// ZmwbP0gxroRQJpqjUPgtVJ3M3XMMK1UrterpsrZ4zb32DfDK53vc8kX9CFoNewgSehUE ywVYJCITOoDEXkGYT5P+8Wr+MWV7FCdZJ8fHhmqUspcNe4X/bUnSKlZ4RmxvdJErOG8h KACKpFGZw7I1pFOZBj7zNcBZooYIk+RniE7YC3PUV38h7HY4rukNw/HT3cWDPlQTzpDt CKcA== X-Gm-Message-State: AOAM533zDRjhglJ1O3GniD7m3MiHSIH4qCMIKmJ41k9mXZNzuAOCTa8Q p9awlUq84nHQEiMjRAIsKo0pd58plVVfjA== X-Google-Smtp-Source: ABdhPJxA1m3l8VZ7ZLq1WokhVS9J12ZZVLek774h0IDIA1kEzVTQdirSGnlCHrME8jRjBoxdgbCl4w== X-Received: by 2002:a05:6000:1:: with SMTP id h1mr16967073wrx.127.1605895512397; Fri, 20 Nov 2020 10:05:12 -0800 (PST) Received: from kali.home (2a01cb0881b76d00c2afd0dfa851d2b9.ipv6.abo.wanadoo.fr. [2a01:cb08:81b7:6d00:c2af:d0df:a851:d2b9]) by smtp.gmail.com with ESMTPSA id w15sm5760022wrp.52.2020.11.20.10.05.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2020 10:05:11 -0800 (PST) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Fri, 20 Nov 2020 19:04:09 +0100 Message-Id: <20201120180409.527540-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/cdrkit: fix static build with libmagic 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 , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" libmagic is an optional dependency of gensoimage that can raise the following build failure: /home/buildroot/autobuild/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/8.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: /home/buildroot/autobuild/instance-0/output-1/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libmagic.a(compress.o): in function `uncompressbuf': compress.c:(.text+0x7bc): undefined reference to `lzma_auto_decoder' /home/buildroot/autobuild/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/8.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: compress.c:(.text+0x828): undefined reference to `lzma_code' /home/buildroot/autobuild/instance-0/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/8.3.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: compress.c:(.text+0x848): undefined reference to `lzma_end' collect2: error: ld returned 1 exit status genisoimage/CMakeFiles/genisoimage.dir/build.make:628: recipe for target 'genisoimage/genisoimage' failed Fixes: - http://autobuild.buildroot.org/results/7e06edc363817c9c9a1687ec89e9984a90a2012d Signed-off-by: Fabrice Fontaine --- package/cdrkit/cdrkit.mk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/package/cdrkit/cdrkit.mk b/package/cdrkit/cdrkit.mk index f49d5150f3..67814f1418 100644 --- a/package/cdrkit/cdrkit.mk +++ b/package/cdrkit/cdrkit.mk @@ -18,5 +18,14 @@ else CDRKIT_CONF_OPTS += -DBITFIELDS_HTOL=0 endif +ifeq ($(BR2_PACKAGE_FILE),y) +CDRKIT_DEPENDENCIES += host-pkgconf file +CDRKIT_CONF_OPTS += \ + -DUSE_MAGIC=ON \ + -DEXTRA_LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs libmagic`" +else +CDRKIT_CONF_OPTS += -DUSE_MAGIC=OFF +endif + $(eval $(cmake-package)) $(eval $(host-cmake-package))