From patchwork Mon Feb 24 10:12:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yegor Yefremov X-Patchwork-Id: 1242988 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.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=googlemail.com header.i=@googlemail.com header.a=rsa-sha256 header.s=20161025 header.b=Wk1feUxc; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48QyZD0ycyz9sPk for ; Mon, 24 Feb 2020 21:13:22 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 2D9BF86CB6; Mon, 24 Feb 2020 10:13:20 +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 ZHrlteCaH40f; Mon, 24 Feb 2020 10:13:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 1BF3386C6D; Mon, 24 Feb 2020 10:13:16 +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 02C301BF2C3 for ; Mon, 24 Feb 2020 10:13:14 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id EB65E86C6D for ; Mon, 24 Feb 2020 10:13:13 +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 qpVeW1UqsOtA for ; Mon, 24 Feb 2020 10:13:12 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ed1-f67.google.com (mail-ed1-f67.google.com [209.85.208.67]) by hemlock.osuosl.org (Postfix) with ESMTPS id D62848650F for ; Mon, 24 Feb 2020 10:13:11 +0000 (UTC) Received: by mail-ed1-f67.google.com with SMTP id m13so11237825edb.6 for ; Mon, 24 Feb 2020 02:13:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=WJVOGYIIEFPKOYdi/MDrBbr+GAv1Kl30gM8kHa3VXcw=; b=Wk1feUxcjYynjzgzShjUQ7HCnY7EqsaPvORcmGrwRbkX0UjY1E3fHtGJHNcE7MrYET XJ4kbYt72tAukHB/+iV9NL/eQ8V9Ub3PhFD6REfhGsTherO9DpIY1Ib/3XTMmTMUEpl+ OLPfyET3AbHYipbbviCw9SXVmaPqz8XuNndud0lUjxMKSr4lKtHToc1x3pWQI6qLqjXD x7D69bP8ZvqhtGMtvp8WVYjOi2gBpXCZG9yBdgZhak9OEz2Au/YiEax4wUzHm3SOzGCH TWgin+AopObP27DOffU5apHM33/EyfaiYBlE/UDZimOnS8elSMsIvusKZ/bVAbyrRub+ SlBg== 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=WJVOGYIIEFPKOYdi/MDrBbr+GAv1Kl30gM8kHa3VXcw=; b=jIOFxUNzBSZdCR0IqdX83gqNOQDfGQ7axPO+rFb6v+RAFpsTBtSba4E40fnh9oYWdG kNvHNULXR18x8DbeFpjKsl4XwlSMwJhHm70D/u3EYGzYzw5QlbUSY4q8nUfti8iK3NVS x3sPD976MkdtH+dO6zDnCsMnEtHvjDrOzXaEJ7aN01cVY23mDS50jl0yEEjHZLAy7doJ S32K23Z94Y8kxtuiHRxtOaQO6/aG5yCSs02JqRVmP2GRhqtE4MMp8YvK3vbvuSzQcXyr qpb9x1zwyfObiEn7KrHVZreTAHL4b7WJonrnS86WPY4PVLPKAJmMvLezZ1qjS+9PqCSX +FCg== X-Gm-Message-State: APjAAAXUvQQAt8mOZ3dky9+s6BiT98YrMfo8IXPQ1st6vEYnkyIcMhNU IaCk+PFNuk9SUT37N/pYCzGyrHPExk4= X-Google-Smtp-Source: APXvYqyZoOJMeRvx6gDCpnoAh163jX/cu2Skj9yXjWnfMxgZoB9J3zzdiT8fbA/hgN5YHPMMF5Ik+A== X-Received: by 2002:a50:93a2:: with SMTP id o31mr46520006eda.160.1582539189968; Mon, 24 Feb 2020 02:13:09 -0800 (PST) Received: from development1.visionsystems.de (mail.visionsystems.de. [213.209.99.202]) by smtp.gmail.com with ESMTPSA id qt20sm788779ejb.65.2020.02.24.02.13.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Feb 2020 02:13:09 -0800 (PST) From: yegorslists@googlemail.com To: buildroot@buildroot.org Date: Mon, 24 Feb 2020 11:12:52 +0100 Message-Id: <20200224101252.29177-1-yegorslists@googlemail.com> X-Mailer: git-send-email 2.17.0 Subject: [Buildroot] [PATCH] package/swig: create a symlink for swig3.0 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: peter@korsgaard.com MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Yegor Yefremov For now swig package creates a symlink to the latest swig version i.e. swig4.0. If the host already has both CMake 3.10 and earlier swig version then the earlier version (swig2.0 or swig3.0) will be detected. This happens because CMake 3.10 doesn't know about swig4.0 and thus searches for swig3.0 first and finds it on the host. With the new symlink CMake will find buildroot's swig binary. Signed-off-by: Yegor Yefremov --- package/swig/swig.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/swig/swig.mk b/package/swig/swig.mk index 3dba3425cf..5881a0e423 100644 --- a/package/swig/swig.mk +++ b/package/swig/swig.mk @@ -27,6 +27,7 @@ SWIG_LICENSE_FILES = LICENSE LICENSE-GPL LICENSE-UNIVERSITIES define HOST_SWIG_INSTALL_SYMLINK ln -fs swig $(HOST_DIR)/bin/swig$(SWIG_VERSION_MAJOR) + ln -fs swig $(HOST_DIR)/bin/swig3.0 endef HOST_SWIG_POST_INSTALL_HOOKS += HOST_SWIG_INSTALL_SYMLINK