lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <munzs5vq26hnpcdtadxvjveloouvebohrzakrxvvfkhl2ogce2@gk2laokr2che>
Date: Sat, 21 Sep 2024 04:05:11 +0530
From: Abdul Rahim <abdul.rahim@...ahoo.com>
To: Shuah Khan <skhan@...uxfoundation.org>
Cc: perex@...ex.cz, tiwai@...e.com, broonie@...nel.org, shuah@...nel.org, 
	linux-sound@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] kselftest/alsa: add silent flag to reduce noise

On Fri, Sep 20, 2024 at 10:24:56AM -0600, Shuah Khan wrote:
> On 9/20/24 09:27, Shuah Khan wrote:
> > On 9/19/24 15:49, Abdul Rahim wrote:
> > > On Thu, Sep 19, 2024 at 09:40:34AM GMT, Shuah Khan wrote:
> > > > On 9/15/24 17:41, Abdul Rahim wrote:
> > > > > When ALSA is not installed on the users system, the error:
> > > > > 
> > > > > "Package alsa was not found in the pkg-config search path.
> > > > > Perhaps you should add the directory containing `alsa.pc'
> > > > > to the PKG_CONFIG_PATH environment variable
> > > > > Package 'alsa', required by 'virtual:world', not found"
> > > > > 
> > > > 
> > > > extra line?
> > > > 
> > > > > is printed 3 times, which generates unnecessary noise.
> > > > > Hence, Remove unnecessary noise using `--silence-errors` on LDLIBS
> > > > > assignment, so the message is printed only once.
> > > > 
> > > > I would say this message is alerting the user that the package is missing.
> > > > Why would you want to delete it?
> > > > 
> > > > > 
> > > > > Signed-off-by: Abdul Rahim <abdul.rahim@...ahoo.com>
> > > > > ---
> > > > > �� tools/testing/selftests/alsa/Makefile | 2 +-
> > > > > �� 1 file changed, 1 insertion(+), 1 deletion(-)
> > > > > 
> > > > > diff --git a/tools/testing/selftests/alsa/Makefile b/tools/testing/selftests/alsa/Makefile
> > > > > index 25be68025290..cd022fc869fb 100644
> > > > > --- a/tools/testing/selftests/alsa/Makefile
> > > > > +++ b/tools/testing/selftests/alsa/Makefile
> > > > > @@ -2,7 +2,7 @@
> > > > > �� #
> > > > > �� CFLAGS += $(shell pkg-config --cflags alsa) $(KHDR_INCLUDES)
> > > > > -LDLIBS += $(shell pkg-config --libs alsa)
> > > > > +LDLIBS += $(shell pkg-config --silence-errors --libs alsa)
> > > > > �� ifeq ($(LDLIBS),)
> > > > > �� LDLIBS += -lasound
> > > > > �� endif
> > > > 
> > > > 
> > > > thanks,
> > > > -- Shuah
> > > > 
> > > 
> > > This can also be handled like this:
> > > ---
> > > CHECK := $(shell pkg-config --exists alsa; echo $?)
> > > ifneq ($(CHECK),0)
> > > $(error Package alsa not found! Add directory containing alsa.pc in PKG_CONFIG_PATH)
> > > endif
> > > ---
> > > 
> > 
> > This is a better solution than suppressing errors.
> > 
> 
> One more thing. "make kselftest-all" has to continue even if this error causes alsa
> compile to fail.
> 
> thanks,
> -- Shuah
> 

sure

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ