Received: by 10.223.176.5 with SMTP id f5csp1819201wra; Thu, 8 Feb 2018 04:06:20 -0800 (PST) X-Google-Smtp-Source: AH8x224pejmX/gIgqK+BKA5GZYmJwXMZFtgPE8ZwQlgHpHcZD/k1Wg+4arsOsyzJsDtkoXqUmK7H X-Received: by 10.98.208.3 with SMTP id p3mr512505pfg.8.1518091580842; Thu, 08 Feb 2018 04:06:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518091580; cv=none; d=google.com; s=arc-20160816; b=uJCXH8XD0qI3c/+1J18zWJgkJ0nbb/6YEaAu4sq6BJcUn/eSYvX2lMAf/4QQT1y5wN l2gxL5+aKcsvbSdDD67AeJrSoMCI8OGP5mZ48oOtuP4kSdVpGPt3T2aygKxRUIhovVpj ixgcm4ZBoj2Em1CBW9BTlHIcuWWWZF8x6m3UILvOfZwsA4rYYPf7khvUo20ad1I2JX05 r2gzHJwaEt1rfpABGTU33mLgFZtXR71qIZOv6/8kf+R8vKaASQOSOVMHE+IJmiu7E21G YwbBWmxCbe4xeBHF2AKLqLHQV9ucu9ffjhuJorYbbjrxNiJ7PEkjcdcKrqdftvAth/vw UPqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=QwmRhNVB5at2tVYaFWhjXtlJuvRA3lIriINh6CMMulw=; b=faeV7Octrf+rMFt6IOwFfrSHrxspuQDyXD/BkyUr2QWFE9LBBZfk1SBSfoddUFdZyg XLjemTfJUAsA9ADB8jQWQv+v+1DJ5NOgEpUKSw6gYx5NsqvR4QeO2R/Nza4L+iytflqW GX6QUrTt6dmwVl11wEElockGBujI6o5bVs9OPawiquu/qEsk8Eub30cvPuPAuFk/3oIL 3w31NvqpIdmjL3y8/36orOzKkUSU5TU7NnnzTOH065Y1+BDBRG18wyOW/nsr+gLL48KS 1dkv8pw3FvwpxB2XLlGmYHJBmUSy8fuqScNSX79anYXChezqzd0aqBDvhGplO7Hm/t4H 40GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e9+ngAYZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6-v6si2698985plt.467.2018.02.08.04.06.07; Thu, 08 Feb 2018 04:06:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=e9+ngAYZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752442AbeBHMFT (ORCPT + 99 others); Thu, 8 Feb 2018 07:05:19 -0500 Received: from mail-io0-f196.google.com ([209.85.223.196]:32852 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752053AbeBHMFS (ORCPT ); Thu, 8 Feb 2018 07:05:18 -0500 Received: by mail-io0-f196.google.com with SMTP id n7so5521141iob.0 for ; Thu, 08 Feb 2018 04:05:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=QwmRhNVB5at2tVYaFWhjXtlJuvRA3lIriINh6CMMulw=; b=e9+ngAYZIBol2h5Uo3+9aQOw+S/vvh3Y9PEekhN711bEgCsEMxiQ/K9x6XjMApOgl1 xklBnArox6KE+fqk2DtwbZBDqpwi3B/gYQDI1VaAVmVTvbEU6D8bQ2QEH6JcwI+nlMtx uEW1RgoorGzaFW0fxORavjBhmeNtqG9GyoRDRRjv5v6y2HeGFpUAkNh8ZwcqJg5mOdkF NSORogddy0+udW9fgJ0ilHqxWJlEEFtXlWgPloRBvEYyC9iAoq++PAwwWT2ilPlCdgt9 rmg0HvZOUiDhaBv/h4sPigZg+H6EnPoltCw1uW9jOpsq7poP/qmDtv9USLwRYnzQaf4i on4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=QwmRhNVB5at2tVYaFWhjXtlJuvRA3lIriINh6CMMulw=; b=NV+6MtO9Da4rO4FH3Mos1xsXnrPfeiFEiAkt/tCOQfMUGoLRohLrXkz2mPEY3FJw4A AiFwWNx8l3HBUcJPKrzsLWtxGkS9u+DsKResRh4DrqALsHjxIiqHWRuLvG7Jn6cTkqjD UBqcE4FHg7qz9b8b+ckdT17kLhXQT0EElBUSa8XfozNzui7qMugxii8pgDliuS8bq/LR alUfwIvT4AVGUK8h6inmzqSYdTQ6Co4L6fSVhpImSuE5wxKIjeJbtYj5ueHn3EfyXl/9 Wjj6Fugpl9hALKhVAExp9Nn9x2+Tvgd0lYPnEIKWWYf3EPRbQ8obdesh7neDJFVOUUl0 ONow== X-Gm-Message-State: APf1xPBXW3s50jWDh2/uFVqKy474XU/bL3BY36Hwtix4/iHmyl5nGq0q gx1GbwI7S19TDuW+JjtS3Ok= X-Received: by 10.107.68.10 with SMTP id r10mr473783ioa.199.1518091517489; Thu, 08 Feb 2018 04:05:17 -0800 (PST) Received: from x240.zsun.org ([111.197.239.204]) by smtp.googlemail.com with ESMTPSA id h63sm171361ith.32.2018.02.08.04.05.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Feb 2018 04:05:16 -0800 (PST) Subject: Re: [PATCH 1/2] trace-cmd: Fix the detection for swig To: Vladislav Valtchev , Steven Rostedt Cc: johannes.berg@intel.com, johannes@sipsolutions.net, linux-kernel@vger.kernel.org, zsun@redhat.com References: <20180204032014.6962-1-sztsian@gmail.com> <20180204032014.6962-2-sztsian@gmail.com> <20180206181807.2d35393e@gandalf.local.home> <1518024315.3742.16.camel@gmail.com> From: Zamir SUN Message-ID: Date: Thu, 8 Feb 2018 20:05:13 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <1518024315.3742.16.camel@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/08/2018 01:25 AM, Vladislav Valtchev wrote: > On Wed, 2018-02-07 at 22:01 +0800, Zamir SUN wrote: >> >> While just a note for this, in Fedora 27: >> >> $ if command -v swig; then echo 1; else echo 0; fi >> /usr/bin/swig >> 1 >> >> Actually this test has the same problem as of `which swig` - When swig >> exists, the var SWIG_DEFINED will not be 1 (as shown above). >> >> I see Vladislav is already on this thread. I hope this can be fixed >> before merging the patch set. >> > > Hi Zamir, > I'm sorry but I'm unable to reproduce the issue on Fedora 27, > after applying my series of patches. > > In my case (fresh install of Fedora27, no customizations): > if command -v swig; then echo 1; else echo 0; fi > works as expected. > > SWIG_DEFINED does not have to be '1' in order the Makefile to work. > Because the check in my branch is: > > ifeq ($(SWIG_DEFINED), 0) > BUILD_PYTHON := report_noswig > NO_PYTHON = 1 > endif > > So there should be no problem. Just to be sure, I've tried to compile trace-cmd > with my patches first without 'swig' and later with it (on Fedora). > The result was that, in the first case the message 'no swig installed' > was displayed, while in the other case it was not. Or better, a message > saying that 'python-dev' is missing was shown. > [Yes, both swig and python-dev are necessary]. > > After installing also 'python-devel' (in Ubuntu is just '-dev'), the > build system was able to build the rest of the python targets as well. > > > Could you please try by using my fork on GitHub? > https://github.com/vvaltchev/trace-cmd-fork > BRANCH NAME: make8. > > Let me know if you still experience the issue. > Hi Vladislav, Thanks for the URL. I tried to build from your make8 branch, it works fine. I must made some copy-paste mistake yesterday. Sorry for the noise. Thanks. > Thanks, > Vlad > > > -- Zamir SUN Fedora user GPG : 1D86 6D4A 49CE 4BBD 72CF FCF5 D856 6E11 F2A0 525E