Bug#1072311: linux-perf can (and should) link against libdebuginfod

2024-05-31 Thread Sergio Durigan Junior
On Friday, May 31 2024, I wrote:

> and that debuginfod-client.c is dual-licensed GPL-3+ and GPL-2+[4]:

I meant to say "LGPL-3+ and GPL-2+" here.

>This file is free software; you can redistribute it and/or modify
>it under the terms of either
>
>  * the GNU Lesser General Public License as published by the Free
>Software Foundation; either version 3 of the License, or (at
>your option) any later version
>
>or
>
>  * the GNU General Public License as published by the Free
>Software Foundation; either version 2 of the License, or (at
>your option) any later version
>
>or both in parallel, as here.

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
https://sergiodj.net/


signature.asc
Description: PGP signature


Bug#1072311: linux-perf can (and should) link against libdebuginfod

2024-05-31 Thread Sergio Durigan Junior
On Friday, May 31 2024, I wrote:

> Dear maintainer,
[...]
> Given all of the above, I would like to request that debuginfod support
> be enabled on Debian's linux-perf.  That would be very useful for our
> users.

Disclaimer: I am not a lawyer and the contents of the bug description
are not legal advice.

Thanks,

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
https://sergiodj.net/


signature.asc
Description: PGP signature


Processed: Re: Bug#1072311: linux-perf can (and should) link against libdebuginfod

2024-05-31 Thread Debian Bug Tracking System
Processing control commands:

> tags -1 + patch
Bug #1072311 [src:linux] linux-perf can (and should) link against libdebuginfod
Added tag(s) patch.

-- 
1072311: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1072311
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



Bug#1072311: linux-perf can (and should) link against libdebuginfod

2024-05-31 Thread Sergio Durigan Junior
Control: tags -1 + patch

MR filed: https://salsa.debian.org/kernel-team/linux/-/merge_requests/1093

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
https://sergiodj.net/


signature.asc
Description: PGP signature


Bug#1072311: linux-perf can (and should) link against libdebuginfod

2024-05-31 Thread Sergio Durigan Junior
Source: linux
Version: 6.8.11-1
Severity: normal

Dear maintainer,

Upon investigating why Debian's linux-perf does not support debuginfod,
I found the following excerpt on its rules file[1]:

# perf can link against libdebuginfod if available, but the result is
# undistributable for the same reason.  Override detection of
# libdebuginfod.
MAKE_PERF += NO_LIBDEBUGINFOD=1

This picked my attention, as I am not aware of any licensing issues that
might prevent linux-perf from linking against libdebuginfod.

While looking at debuginfod source files[2], I found that libdebuginfod
is actually composed of a single file[3]:

libdebuginfod_a_SOURCES = debuginfod-client.c
libdebuginfod_pic_a_SOURCES = debuginfod-client.c

and that debuginfod-client.c is dual-licensed GPL-3+ and GPL-2+[4]:

   This file is free software; you can redistribute it and/or modify
   it under the terms of either

 * the GNU Lesser General Public License as published by the Free
   Software Foundation; either version 3 of the License, or (at
   your option) any later version

   or

 * the GNU General Public License as published by the Free
   Software Foundation; either version 2 of the License, or (at
   your option) any later version

   or both in parallel, as here.

debuginfod.h, which is included from debuginfod-client.c, is also
dual-licensed[5].

Out of an abundance of caution, I contacted debuginfod's upstream
developers and confirmed that the dual-licensing scheme was chosen
exactly in order to allow tools like perf to link against libdebuginfod.
I've also confirmed that Fedora's perf does support debuginfod.

Given all of the above, I would like to request that debuginfod support
be enabled on Debian's linux-perf.  That would be very useful for our
users.

Thank you,

[1]: 
https://salsa.debian.org/kernel-team/linux/-/blob/master/debian/rules.d/tools/perf/Makefile?ref_type=heads#L13-16
[2]: https://sourceware.org/cgit/elfutils/tree/debuginfod
[3]: 
https://sourceware.org/cgit/elfutils/tree/debuginfod/Makefile.am?id=915776dc4ab9308a5c62c42e72b5bd15b7012753#n83
[4]: 
https://sourceware.org/cgit/elfutils/tree/debuginfod/debuginfod-client.c?id=915776dc4ab9308a5c62c42e72b5bd15b7012753
[5]: 
https://sourceware.org/cgit/elfutils/tree/debuginfod/debuginfod.h.in?id=915776dc4ab9308a5c62c42e72b5bd15b7012753

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
https://sergiodj.net/


signature.asc
Description: PGP signature