Re: [patch] PR27783: default debuginfod-urls profile rework
Hi Frank, On Wed, Oct 06, 2021 at 07:25:11PM -0400, Frank Ch. Eigler wrote: > > > +set debuginfod_urls=`find "@sysconfdir@/debuginfod/" -name '*.urls' > > > | xargs cat | tr '\n' ' '` > > > > Can we use cat "@sysconfdir@/debuginfod/*.urls" | tr '\n' ' ' instead > > so we don't need to rely on findutils and xargs? > > One problem with that is that several shells (csh, zsh) throw errors > when a glob expression has no matches. Groan. shells... But there is always the default.url file in there (elfutils.url). Maybe we could even drop an empty.url file in there that is just, well, empty. That way the glob always globs? But if the above is to cumbersome, leave it at find and xargs. I assume they are normally always installed. And for those distros where they aren't, they might not want to install a default DEBUGINFOD_URLS set anyway. Cheers, Mark
[Bug debuginfod/27783] file-based default DEBUGINFOD_URLS
https://sourceware.org/bugzilla/show_bug.cgi?id=27783 Frank Ch. Eigler changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|--- |FIXED --- Comment #4 from Frank Ch. Eigler --- commit a83fe488a7b422fc8260bdb35526d39a195c624a Author: Frank Ch. Eigler Date: Sun Oct 3 17:04:24 2021 -0400 PR27783: switch default debuginfod-urls to drop-in style files Rewrote and commented the /etc/profile.d csh and sh script fragments to take the default $DEBUGINFOD_URLS from the union of drop-in files: /etc/debuginfod/*.urls. Hand-tested with csh and bash, with conditions including no prior $DEBUGINFOD_URLS, nonexistent .urls files, multiple entries in .urls files. Signed-off-by: Frank Ch. Eigler -- You are receiving this mail because: You are on the CC list for the bug.