From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f46.google.com (mail-io1-f46.google.com [209.85.166.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7CC944C8E for ; Fri, 9 Aug 2024 17:01:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723222912; cv=none; b=P7I3MR/LF6WnJRJ2ZoZwowKJanmWRHkwzKHG/sFszE+dK637e192eaefdebJsZCQ8PQ3T3iCGhIwgVGnYoFnVbCz5ym1SOAjx7SwBvUkbM4SJWWq0ImtfCDdic2m2rgt5jPJAykT/PAZ2ykzuEYBdSDQ9VqLWGdLw2jGu7trQl0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723222912; c=relaxed/simple; bh=kO+4Qg2Kos2wHUaffFnXRBuCVtxo8Uf72SitEfqHUNg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=l5qdB00WeOWGzjxby/qTEhY12MlN6XqU5GM2VwIqkDYuMtbd2AVwtPzyJ03xc+NzL/m5G1A0oN3yILINhgQ+kplmPO70VCZYDTINcTsbzf96FDNmQhpb4UcYRLosLcRRqHdKIHoGAkk8nKwlx0ymeLPtvDUuzO8ukAjvRlgEYTI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fyZecz6t; arc=none smtp.client-ip=209.85.166.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="fyZecz6t" Received: by mail-io1-f46.google.com with SMTP id ca18e2360f4ac-81f8ac6b908so6454739f.1 for ; Fri, 09 Aug 2024 10:01:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1723222909; x=1723827709; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=cDDjHGtk+i/sBtfC6S1Ya7WBwtIwzRoHly+Mr+MUcXc=; b=fyZecz6txWfWabkJ5SO8+fnoemqimtdBt2U84K9lxPKxAUN4ueK4cxRavlcFHAfud/ 0PPAlBbmbj3PdhdfJ04l5nL664pBkc2OM5PEhSm7AtUqh+TGBZYmwN2WKk74Vmp97Fkd NLrs2gAFDEcZvqzqN6f4a1cwUREZaXO5zsgSc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723222909; x=1723827709; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=cDDjHGtk+i/sBtfC6S1Ya7WBwtIwzRoHly+Mr+MUcXc=; b=Maxtcx4GnO9SyHrxhHvtEvm+Ht2v01pvwn60tvw0pgq7Yj0PDaDBzcVu1p+c7pBl6w TSnkHFI6b7IUV049Pp1uQn+NOCmdnp0FEvbsUoahtQbl1ur6pxcXygGGjy9pvNG4R4Rx yoSqbt4D1EKgT+cwDxH3lMeGh7SrpMn9vuk098TDG5+nqNB2mfUB98HKD2j5iIaeYtlr 7Xf1uIAzx0on1xnfFx9YpQ5BiOsw0acx0GZ418aPRVTzn6Uc14lx0Mp15Ks/f7/UYLx1 PTBnYDxVo7kgelLOH8zRCc1Es+35vB93/6o/f27fWETZ1JjHv2sbZPKYLiANQ2yFKTaa gGPQ== X-Forwarded-Encrypted: i=1; AJvYcCV2Kj5dToqXRFXVVhrfYsc1DR2Z2HmW/wFo/oNHTZnh1mQ5Iy+9+6feKQdIT3RUszhQLmU=@vger.kernel.org X-Gm-Message-State: AOJu0YyVBH549KrD2O9QLPxwbujnR2N3sD0tyAJWXj2mxfWm07wdMYzO wyN1lo4EDXQOlryTqWKa/Q1xI9QtagMx4nrK9JlC4Ay8ori7BQ3ybFvtRIoI4JE= X-Google-Smtp-Source: AGHT+IEVM26zTJDnq4KUOavT/txNlVM1PwFY7bjzhsFY01vmETUlAlxZW29W+mujXaC/jkXCKqSlMA== X-Received: by 2002:a5d:9755:0:b0:822:3c35:5fc0 with SMTP id ca18e2360f4ac-8225ee4d6a1mr150211739f.3.1723222909444; Fri, 09 Aug 2024 10:01:49 -0700 (PDT) Received: from [192.168.1.128] ([38.175.170.29]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4ca769105cbsm9501173.27.2024.08.09.10.01.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Aug 2024 10:01:49 -0700 (PDT) Message-ID: <41cb60af-3175-42ab-896f-b890e51cde0d@linuxfoundation.org> Date: Fri, 9 Aug 2024 11:01:48 -0600 Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] selftests/alsa/Makefile: fix relative rpath usage To: Eugene Syromiatnikov Cc: Artem Savkov , linux-sound@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Shuah Khan References: <20240808145639.GA20510@asgard.redhat.com> <83d4e1a3-73fc-4634-b133-82b9e883b98b@linuxfoundation.org> <20240809010044.GA28665@asgard.redhat.com> Content-Language: en-US From: Shuah Khan In-Reply-To: <20240809010044.GA28665@asgard.redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 8/8/24 19:00, Eugene Syromiatnikov wrote: > On Thu, Aug 08, 2024 at 02:20:21PM -0600, Shuah Khan wrote: >> Wouldn't make sense to fix fix this in selftests main Makefile >> instead of changing the all the test makefiles > > As of now, the usage of rpath is localised, so it is relatively easy > to evaluate the effect/prudence of such a change; I am not so confident > in imposing rpath on all of the selftests (and, if doing so, I would > rather opt for runpath, to leave out an ability to override the search > path via LD_LIBRARY_PATH, if such need arises); in that case it is possibly > also worth to add -L$(OUTPUT) to the CFLAGS as well, as the compile-time > counterpart. But, again, I was trying to avoid the task of evaluating > the possible side effects of such a change, considering the variability > in environments and setups selftests are run. Okay. > >> Same comment on all other files. > >> It would be easier to send these as series > > I hesitated to do so due to the fact that different selftests are seemingly > maintained by different people. You can cc everybody on the cover-letter explaining the change and the individual patches can be sent selectively. This is a kind of change it would be good to go as a series so it will be easier for reviewers. I had to comment on all 3 patches you sent - instead I could have sent one reply to the cover letter. It makes it so much easier for people to follow the discussion and add to it. > >> please mentioned the tests run as well after this change. > > I have checked the ldd output after the change remained the same (and that ldd > is able to find the libraries used when run outside the directory the tests > reside in) and did a cursory check of the results of the run of the affected > tests Please mention that then in the change log. I applied this patch and ran alsa test without any issues. You could do the same with: make kselftest TARGETS=alsa (but not so sure about the BPF selftests, as they don't compile as-is > due to numerous "incompatible pointer types" warnings that are forced > into errors by -Werror and the fact that it hanged the machine I tried > to run them on). > I see a bpf patch from you in the inbox - if you mention the issues bpf people might be able to help you. I am not replying to your other patches. Take these as comments on others as well. thanks, -- Shuah