public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [Bug debuginfod/27783] New: file-based default DEBUGINFOD_URLS
@ 2021-04-27 18:17 fche at redhat dot com
  2021-05-20  2:12 ` [Bug debuginfod/27783] " fche at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: fche at redhat dot com @ 2021-04-27 18:17 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=27783

            Bug ID: 27783
           Summary: file-based default DEBUGINFOD_URLS
           Product: elfutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: debuginfod
          Assignee: unassigned at sourceware dot org
          Reporter: fche at redhat dot com
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

Having a systemwide default DEBUGINFOD_URLS through profiles.d is a bit clumsy
in that e.g. system services don't get invoked through a login shell don't get
to see it.

So let's instead:

- drop the profile.d files
- add logic to debuginfod-client.c to check for a $configdir/debuginfod_urls
file, if the environment variable is unset, as a fallback

Users can still opt out by an override (including to an empty string) of the
environment variable.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug debuginfod/27783] file-based default DEBUGINFOD_URLS
  2021-04-27 18:17 [Bug debuginfod/27783] New: file-based default DEBUGINFOD_URLS fche at redhat dot com
@ 2021-05-20  2:12 ` fche at redhat dot com
  2021-06-10 13:28 ` fche at redhat dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: fche at redhat dot com @ 2021-05-20  2:12 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=27783

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> ---
putting idea on ice

prototype patch:
https://sourceware.org/pipermail/elfutils-devel/2021q2/003748.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug debuginfod/27783] file-based default DEBUGINFOD_URLS
  2021-04-27 18:17 [Bug debuginfod/27783] New: file-based default DEBUGINFOD_URLS fche at redhat dot com
  2021-05-20  2:12 ` [Bug debuginfod/27783] " fche at redhat dot com
@ 2021-06-10 13:28 ` fche at redhat dot com
  2021-06-11 11:33 ` mark at klomp dot org
  2021-10-07 19:08 ` fche at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: fche at redhat dot com @ 2021-06-10 13:28 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=27783

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|WONTFIX                     |---
             Status|RESOLVED                    |REOPENED

--- Comment #2 from Frank Ch. Eigler <fche at redhat dot com> ---
In the context of fedora https://bugzilla.redhat.com/show_bug.cgi?id=1970312 we
should reexamine this.  Here's another idea.

- retain /etc/profile.d/debuginfod* but change its behaviour:
- instead of containing one hardcoded path, let it search a config file/dir
  such as /etc/debuginfod-urls.d/ and assemble the environment variable
- the --with-debuginfod-urls=FOO elfutils option would arrange to drop in one
  file into this directory (say /etc/debuginfod-urls.d/elfutils.url)
  with the content FOO
- other add-on distros (rpmfusion?  ISVs?  local administrator?) can do the
same

That way a local admin can remove or update or add more files.  A user can
of course still override it in their .profile.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug debuginfod/27783] file-based default DEBUGINFOD_URLS
  2021-04-27 18:17 [Bug debuginfod/27783] New: file-based default DEBUGINFOD_URLS fche at redhat dot com
  2021-05-20  2:12 ` [Bug debuginfod/27783] " fche at redhat dot com
  2021-06-10 13:28 ` fche at redhat dot com
@ 2021-06-11 11:33 ` mark at klomp dot org
  2021-10-07 19:08 ` fche at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: mark at klomp dot org @ 2021-06-11 11:33 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=27783

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at klomp dot org

--- Comment #3 from Mark Wielaard <mark at klomp dot org> ---
(In reply to Frank Ch. Eigler from comment #2)
> In the context of fedora https://bugzilla.redhat.com/show_bug.cgi?id=1970312
> we should reexamine this.  Here's another idea.
> 
> - retain /etc/profile.d/debuginfod* but change its behaviour:
> - instead of containing one hardcoded path, let it search a config file/dir
>   such as /etc/debuginfod-urls.d/ and assemble the environment variable
> - the --with-debuginfod-urls=FOO elfutils option would arrange to drop in one
>   file into this directory (say /etc/debuginfod-urls.d/elfutils.url)
>   with the content FOO
> - other add-on distros (rpmfusion?  ISVs?  local administrator?) can do the
> same
> 
> That way a local admin can remove or update or add more files.  A user can
> of course still override it in their .profile.

I like doing this through /etc/profile.d/debuginfod* much more than doing this
in debuginfod-client.c

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug debuginfod/27783] file-based default DEBUGINFOD_URLS
  2021-04-27 18:17 [Bug debuginfod/27783] New: file-based default DEBUGINFOD_URLS fche at redhat dot com
                   ` (2 preceding siblings ...)
  2021-06-11 11:33 ` mark at klomp dot org
@ 2021-10-07 19:08 ` fche at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: fche at redhat dot com @ 2021-10-07 19:08 UTC (permalink / raw)
  To: elfutils-devel

https://sourceware.org/bugzilla/show_bug.cgi?id=27783

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Frank Ch. Eigler <fche at redhat dot com> ---
commit a83fe488a7b422fc8260bdb35526d39a195c624a
Author: Frank Ch. Eigler <fche@redhat.com>
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 <fche@redhat.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-10-07 19:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-27 18:17 [Bug debuginfod/27783] New: file-based default DEBUGINFOD_URLS fche at redhat dot com
2021-05-20  2:12 ` [Bug debuginfod/27783] " fche at redhat dot com
2021-06-10 13:28 ` fche at redhat dot com
2021-06-11 11:33 ` mark at klomp dot org
2021-10-07 19:08 ` fche at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).